app.d44661e7.js 6.0 MB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,a){e.exports=a("56d7")},"0032":function(e,t,a){},"0080":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"部门",clearable:""},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"编号",clearable:""},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"沼气类型",clearable:""},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isMethaneAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isMethaneExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isMethaneImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编号",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.methaneNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.methaneName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类型",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上次值",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"本次值",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.endAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天用气量",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.methaneConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.putName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dateFormat))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"150","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isMethaneModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"105px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"沼气表编号:",prop:"formNumber"}},[a("el-autocomplete",{ref:"formNumber",staticClass:"inline-input",attrs:{"value-key":"formNumber","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurSelect},model:{value:e.temp.formNumber,callback:function(t){e.$set(e.temp,"formNumber",t)},expression:"temp.formNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"沼气表名称:",prop:"formName"}},[a("el-autocomplete",{ref:"formName",staticClass:"inline-input",attrs:{"value-key":"formName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurSelect},model:{value:e.temp.formName,callback:function(t){e.$set(e.temp,"formName",t)},expression:"temp.formName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"上次值(m³):",prop:"aAmount"}},[a("el-input",{ref:"aAmount",attrs:{disabled:""},model:{value:e.temp.aAmount,callback:function(t){e.$set(e.temp,"aAmount",t)},expression:"temp.aAmount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"沼气类型:"}},[a("span",[e._v(e._s(e.temp.useType))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("span",[e._v(e._s(e.temp.pastureName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:"}},[a("span",[e._v(e._s(e.temp.departName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:"}},[a("span",[e._v(e._s(e.temp.employeName1))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前值(m³):",prop:"endAmount"}},[a("el-input",{ref:"endAmount",model:{value:e.temp.endAmount,callback:function(t){e.$set(e.temp,"endAmount",t)},expression:"temp.endAmount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price1"}},[a("el-input",{ref:"price",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.price1,callback:function(t){e.$set(e.temp,"price1",t)},expression:"temp.price1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.DATE,callback:function(t){e.$set(e.temp,"DATE",t)},expression:"temp.DATE"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"Methane",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isMethaneAdd:[],isMethaneExport:[],isMethaneImport:[],isMethaneModify:[],formNumberSearchList:[],formNameSearchList:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertMethane",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getMethaneList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:""}},getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["ZZ流量计类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],requestFilterParams:{name:"getMethaneList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",measureId:"",useType:"",departName:"",aAmount:"",employeName1:"",formName:"",formNumber:"",endAmount:"",employeName:"",price1:"",note:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,rules:{endAmount:[{type:"number",required:!0,validator:function(t,a,s){a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"insertMethanesMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="cost:methane:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isMethaneAdd=t;var a="cost:methane:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isMethaneExport=s;var i="cost:methane:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isMethaneImport=n;var l="cost:methane:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isMethaneModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},handleDownload:function(){var e=this;this.$alert("ZZ流量计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfit",this.requestParam.parammaps.formType="ZZ流量计",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.formName=this.getdataListParm.parammaps.formName,this.requestParam.parammaps.formNumber=this.getdataListParm.parammaps.formNumber,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.formType,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["编号","牧场","表名称","表编号","上次抄表日期","上次值","抄表日期","本次值","单价","录入人","备注"],r=["编号","牧场","表名称","表编号","抄表日期","本次值","抄表日期2","本次值2","单价2","录入人","备注2"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","表名称","表编号","上次抄表日期","抄表日期","单价","录入人","备注","错误信息"],r=["牧场","表名称","表编号","上次抄表日期","抄表日期","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="ZZ流量计",this.requestFilterParams.parammaps["pastureId"]=d.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]=e,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.formNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="ZZ流量计",this.requestFilterParams.parammaps["pastureId"]=d.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.formName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNumberSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureMethane",this.requestFilterParams.parammaps["formNumber"]=this.temp.formNumber,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formName=t.data.list[0].formName,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId)}))}))},handleformNameSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureMethane",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=this.temp.formName,Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formNumber=t.data.list[0].formNumber,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId)}))}))},blurSelect:function(e){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId=""},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.endAmount="",this.temp.price1="",this.temp.note="",this.temp.employeId="",this.temp.employeName="",this.temp.DATE=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertMethaneExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertMethaneExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertMethaneExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertMethaneExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasureUpdate",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.date,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"updateMethane",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,note:e.temp.note,employeId:e.temp.employeId,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureMethane",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.date,lastRecodeId:e.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.equipmentName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMethane",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"00af":function(e,t,a){"use strict";a("a299")},"00cc":function(e,t,a){},"00ce":function(e,t,a){},"00f5":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件调拨",use:"icon-备件调拨-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件调拨"><defs><style type="text/css"></style></defs><path d="M943.94 298.48L776.8 126a57.64 57.64 0 0 0-41.4-17.53H288.8A57.64 57.64 0 0 0 247.4 126L80.26 298.48a57.64 57.64 0 0 0-15.91 46.32l56.15 518.8a57.64 57.64 0 0 0 57.31 51.4h668.57a57.64 57.64 0 0 0 57.31-51.44l56.16-518.8a57.65 57.65 0 0 0-15.91-46.28zM846.38 857.4H177.81L127.87 396h768.46z m56.16-518.75H121.66L288.8 180.22h446.6L902.54 338.6z" p-id="14234" fill="#ffffff" /><path d="M621.41 794.06a27 27 0 0 0 41.37 0l82.74-92.93c10.44-11.75 11.29-30.11 2.64-43a7.59 7.59 0 0 0-6.32-3.29h-55a7.71 7.71 0 0 1-7.71-7.71V456.88a7.71 7.71 0 0 0-7.71-7.71h-58.65a7.71 7.71 0 0 0-7.71 7.71v190.28a7.71 7.71 0 0 1-7.71 7.71h-55a7.59 7.59 0 0 0-6.32 3.29c-8.65 12.86-7.8 31.23 2.64 43zM278 608.28h35.09a4.92 4.92 0 0 1 4.91 4.92v121.38a4.92 4.92 0 0 0 5 4.92h37.4a4.92 4.92 0 0 0 4.92-4.92V613.2a4.92 4.92 0 0 1 4.92-4.92h35.09a4.84 4.84 0 0 0 4-2.1c5.52-8.2 5-19.92-1.68-27.41l-52.78-59.28a17.25 17.25 0 0 0-26.39 0l-52.78 59.28c-6.66 7.49-7.2 19.21-1.68 27.41a4.84 4.84 0 0 0 3.98 2.1z" p-id="14235" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"01bd":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"描述","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.describe))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.updateDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row"),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"故障详情:",prop:"describe"}},[a("el-input",{ref:"describe",attrs:{type:"text"},model:{value:e.createTemp.describe,callback:function(t){e.$set(e.createTemp,"describe",t)},expression:"createTemp.describe"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)])],1)},i=[],r=(a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=(a("a78e"),a("5f87")),c=a("ed08"),d={name:"Miaoshu",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0},assetTypename:{type:String,default:"1"},assetAction:{type:String,default:"1"}},data:function(){return{textMap:{create:"新增",update:"编辑",copy:"复制",see:"查看详情",addFault:"添加故障"},eqClassId:"",dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getFaultdescription",parammaps:{id:"",eqClassId:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{positionId:"",describe:"",note:""},listPart:[],tableKey:0,isokDisable:!1,postDataPramas:{},dialogStatusSee:"",isDisplay:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,totalSee:0,listSee:[],getdataListParmSee:{name:"getAppearancebyPid",returntype:"Map",parammaps:{}},postUpdatePramas:{},requestParam:{},update:!1,see:!1,rules:{describe:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"updateUpKeepAppearance",importParams:"设备类别名称,部位,故障详情,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParm.parammaps.id=this.assetTypeid,this.getdataListParm.parammaps.eqClassId=this.assetTypeid,this.eqClassId=this.assetTypeid,console.log("eqClassId",eqClassId),this.get_table_data())},assetTypename:function(e){console.log(e)},assetAction:function(e){console.log(e),this.get_table_data()}},created:function(){this.get_table_data()},methods:{tableSort:function(e){Object(c["f"])(e,this.list)},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetCreateTemp:function(){this.createTemp.describe="",this.createTemp.note=""},form_add:function(){""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.positionId="",console.log(this.assetTypeid),console.log(this.assetTypename),console.log(this.assetLable),console.log(this.listPart))},partDelete:function(e){var t=this;console.log(this.listAdd),o["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename;var a={name:"addFaultdescription",parammaps:{describe:e.createTemp.describe,eqClassId:e.assetTypeid}};Object(l["k"])(a).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename;var a={name:"addFaultdescription",parammaps:{describe:e.createTemp.describe,eqClassId:e.assetTypeid}};Object(l["k"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.resetCreateTemp(),console.log(e.dialogStatus),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="update",this.isDisplay=!0,this.update=!0,this.see=!1,this.dialogFormVisibleSee=!0,this.getdataListParmSee.parammaps.id=e.id,this.get_table_dataSee()},updateSave:function(e){var t=this;""!==e.describe&&null!==e.describe&&void 0!==e.describe?(this.postUpdatePramas.name="updateAppearance",this.postUpdatePramas.parammaps=e,Object(l["k"])(this.postUpdatePramas).then((function(e){console.log("新增保存发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):t.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))):this.$message({message:"请完善保养内容",type:"warning",duration:2e3})},updateDelete:function(e){var t=this;console.log(e),o["MessageBox"].confirm("确认是否删除当前信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postUpdatePramas.name="delFaultdescription",t.postUpdatePramas.parammaps={},t.postUpdatePramas.parammaps.id=e.id,Object(l["k"])(t.postUpdatePramas).then((function(e){console.log("新增保存发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.get_table_data(),t.get_table_dataSee(),t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},addFaultData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("添加故障保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["设备类别名称","部位","故障详情","备注","报错信息"],r=["设备类别名称","部位","故障详情","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"故障模板报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},jump:function(){this.$router.push("/console/menu")}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"01cd":function(e,t,a){},"01d2":function(e,t,a){"use strict";a("5d381")},"028a":function(e,t,a){"use strict";a("9318")},"02be":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"0344":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-出库及时率",use:"icon-出库及时率-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-出库及时率"><defs><style type="text/css"></style></defs><path d="M320 341.333333h42.666667v341.333334h-42.666667zM490.666667 256h42.666666v256h-42.666666zM661.333333 256h42.666667v170.666667h-42.666667z" p-id="3100" /><path d="M149.333333 128v725.333333h362.666667v-42.666666H192V170.666667h640v320h42.666667V128H149.333333z" p-id="3101" /><path d="M725.333333 554.666667a149.333333 149.333333 0 1 1-149.333333 149.333333 149.333333 149.333333 0 0 1 149.333333-149.333333m0-42.666667a192 192 0 1 0 192 192 192 192 0 0 0-192-192z" p-id="3102" /><path d="M746.666667 704v-85.333333h-42.666667v128h106.666667v-42.666667h-64z" p-id="3103" /></symbol>'});n.a.add(l);t["default"]=l},"03b2":function(e,t,a){},"03bc":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件出库",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm.parammaps,"useForm",t)},expression:"getdataListParm.parammaps.useForm"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"出库方式"},model:{value:e.getdataListParm.parammaps.useType,callback:function(t){e.$set(e.getdataListParm.parammaps,"useType",t)},expression:"getdataListParm.parammaps.useType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"领用部门",clearable:""},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"SAP上传状态"},model:{value:e.getdataListParm.parammaps.sapStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"sapStatus",t)},expression:"getdataListParm.parammaps.sapStatus"}},e._l(e.easStatus.sapStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{clearable:"",type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isOutStockAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isReceiveTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isOutStockImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")]):e._e()],1),e._v(" "),e.isOutStockExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-upload2"},on:{click:e.handleDownloadEas1}},[e._v("导出EAS")]),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e(),e._v(" "),e.isOutsap?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"partKind",label:"备件种类数",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partKind))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库方式",align:"center","min-width":"100px",formatter:e.useType}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",sortable:"",prop:"creatTime","min-width":"100px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ProofCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ProofCode?a("span",[e._v("已上传")]):a("span",[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sterilisation",label:"冲销状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.sterilisation?a("span",[e._v("已冲销")]):a("span",[e._v("未冲销")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isOutStockSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isOutStockDelete&&4!==s.useType?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"出库记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm2.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm2.parammaps,"useForm",t)},expression:"getdataListParm2.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"领用部门",clearable:""},model:{value:e.getdataListParm2.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"departmentId",t)},expression:"getdataListParm2.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentType,disabled:e.disabled2,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm2.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"eqName",t)},expression:"getdataListParm2.parammaps.eqName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),e.isOutStockExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload2}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初库存",sortable:"",prop:"reportery",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量",sortable:"",prop:"checkoutNumber",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appliname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",sortable:"",prop:"creatTime","min-width":"120px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),e.dialogFormVisible?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.createTemp.useForm,callback:function(t){e.$set(e.createTemp,"useForm",t)},expression:"createTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库方式:",prop:"useType"}},[a("el-radio-group",{on:{change:e.changeStorageType},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e.isOutStockMethod1?a("el-radio",{attrs:{label:0,checked:""},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("领用出库")]):e._e(),e._v(" "),e.isOutStockMethod2?a("el-radio",{attrs:{label:1},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("手动出库")]):e._e(),e._v(" "),e.isOutStockMethod3?a("el-radio",{attrs:{label:2},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("调拨出库")]):e._e(),e._v(" "),e.isOutStockMethod4?a("el-radio",{attrs:{label:5},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("报废出库")]):e._e()],1)],1)],1),e._v(" "),e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.getNumber,placeholder:"请输入领用单号"},on:{select:e.changeApplyCode},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.applyCode))]),e._v(" "),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.departmentName))])]}}],null,!1,174341331),model:{value:e.orderPart.applyCode,callback:function(t){e.$set(e.orderPart,"applyCode",t)},expression:"orderPart.applyCode"}})],1)],1):e._e(),e._v(" "),e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门",disabled:""},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.No2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门"},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.isReceiveTime2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"receiveTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"出库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.receiveTime,callback:function(t){e.$set(e.createTemp,"receiveTime",t)},expression:"createTemp.receiveTime"}})],1)],1):e._e(),e._v(" "),e.isReceiveTime2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"applicatId"}},[a("el-select",{ref:"applicatId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"领用人",disabled:""},model:{value:e.createTemp.applicatId,callback:function(t){e.$set(e.createTemp,"applicatId",t)},expression:"createTemp.applicatId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.No2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"applicatId"}},[a("el-select",{ref:"applicatId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"领用人"},model:{value:e.createTemp.applicatId,callback:function(t){e.$set(e.createTemp,"applicatId",t)},expression:"createTemp.applicatId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.isReceiveTime?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"receiveTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"出库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.receiveTime,callback:function(t){e.$set(e.createTemp,"receiveTime",t)},expression:"createTemp.receiveTime"}})],1)],1):e._e(),e._v(" "),e.isReceiveTime?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1):e._e()],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"500px"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格或供应商"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",[e._v("规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),a("br"),e._v(" "),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("品牌:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.brand))]),e._v("\n |"),a("b",[e._v("供应商:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.providerName))])]}}],null,!1,2767326612),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1):e._e(),e._v(" "),e.No3?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"500px"},attrs:{"value-key":"name","fetch-suggestions":e.allocationSearch,placeholder:"请输入调拨单号"},on:{select:e.handleSelectAllocation},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("调拨单号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.applyCode))]),e._v("\n |"),a("b",[e._v("调入牧场:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.inPastureName))])]}}],null,!1,4201740140),model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.tableCellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"备件图片",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),e.allo?a("el-table-column",{key:19,attrs:{label:"调拨数量",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:20,attrs:{label:"出库数量",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:8,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:9,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{ref:"elautocomplete1",staticClass:"inline-input",attrs:{debounce:0,"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqName(a,t.row)},blur:function(a){e.blurSelectEqName(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr",staticStyle:{margin:"0 0 0 5px"}},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}],null,!1,1093002196)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:10,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:11,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{ref:"elautocomplete2",staticClass:"inline-input",attrs:{debounce:0,"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCode(a,t.row)},blur:function(a){e.blurSelectEqCode(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}],null,!1,3846020883)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:12,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"费用类型"},model:{value:t.row.useTypeV,callback:function(a){e.$set(t.row,"useTypeV",a)},expression:"scope.row.useTypeV"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)]}}],null,!1,3847546736)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:13,attrs:{label:"库位",prop:"location",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}],null,!1,2558406843)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:14,attrs:{label:"库位库存数",prop:"reportery",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:15,attrs:{label:"领用数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},attrs:{disabled:e.disabled},on:{change:function(a){e.changeUseNumber(a,t.row)}},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,293295149)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:16,attrs:{label:"出库数量","min-width":"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"checkoutNumber"}},[a("el-input",{ref:"checkoutNumber",staticStyle:{"margin-top":"15px"},on:{change:function(a){e.changeCheckoutNumber(a,t.row)},blur:function(a){e.blurCheckoutNumber(a,t.row)}},model:{value:t.row.checkoutNumber,callback:function(a){e.$set(t.row,"checkoutNumber",a)},expression:"scope.row.checkoutNumber"}})],1)],1)]}}],null,!1,3742393115)}):e._e(),e._v(" "),a("el-table-column",{key:17,attrs:{label:"单价",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),e.No4?a("el-table-column",{key:18,attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.checkoutNumber))))])]}}],null,!1,268962198)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:21,attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:22,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"费用类型",disabled:2==e.createTemp.useType},model:{value:t.row.useTypeV,callback:function(a){e.$set(t.row,"useTypeV",a)},expression:"scope.row.useTypeV"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)]}}],null,!1,112554361)}):e._e(),e._v(" "),a("el-table-column",{key:23,attrs:{label:"备注",prop:"totalPrice",align:"center","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})]}}],null,!1,2006279678)}),e._v(" "),e.No4?a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)}):e._e()],1),e._v(" "),a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.seeTemp.useForm,callback:function(t){e.$set(e.seeTemp,"useForm",t)},expression:"seeTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库方式:",prop:"useType"}},[0==e.seeTemp.useType||1==e.seeTemp.useType||4==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:0,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),2==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:2,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),3==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:3,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),5==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:3},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[e.oddCodeAllo?a("el-form-item",{attrs:{label:"领用单号:",prop:"oddCode"}},[a("el-input",{ref:"oddCode",attrs:{disabled:""},model:{value:e.seeTemp.oddCode,callback:function(t){e.$set(e.seeTemp,"oddCode",t)},expression:"seeTemp.oddCode"}})],1):e._e()],1),e._v(" "),e.No5?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1):e._e(),e._v(" "),e.isCreatTimeAllo?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"creatTime"}},[a("el-input",{ref:"creatTime",attrs:{disabled:""},model:{value:e.seeTemp.creatTime,callback:function(t){e.$set(e.seeTemp,"creatTime",t)},expression:"seeTemp.creatTime"}})],1)],1):e._e(),e._v(" "),e.isCreatTimeAllo?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1):e._e()],1),e._v(" "),e.No5?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"appliname"}},[a("el-input",{ref:"appliname",attrs:{disabled:""},model:{value:e.seeTemp.appliname,callback:function(t){e.$set(e.seeTemp,"appliname",t)},expression:"seeTemp.appliname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"creatTime"}},[a("el-input",{ref:"creatTime",attrs:{disabled:""},model:{value:e.seeTemp.creatTime,callback:function(t){e.$set(e.seeTemp,"creatTime",t)},expression:"seeTemp.creatTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1):e._e(),e._v(" "),e.isTableAllo1?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"oddCode"}},[a("el-input",{ref:"oddCode",attrs:{disabled:""},model:{value:e.seeTemp.oddCode,callback:function(t){e.$set(e.seeTemp,"oddCode",t)},expression:"seeTemp.oddCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"备件编号","min-width":"150px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.isTableAllo?a("el-table-column",{key:8,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:9,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:10,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:11,attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}],null,!1,2436459771)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:12,attrs:{label:"库位库存数",sortable:"",prop:"reportery",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:13,attrs:{sortable:"",prop:"useNumber",label:"领用数量","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useNumber))])]}}],null,!1,2907969670)}):e._e(),e._v(" "),e.isTableAllo1?a("el-table-column",{key:14,attrs:{sortable:"",prop:"checkoutNumber",label:"调拨数量","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}):e._e(),e._v(" "),a("el-table-column",{key:15,attrs:{label:"出库数量",sortable:"",prop:"checkoutNumber","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{key:16,attrs:{label:"单价",sortable:"",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{key:17,attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),e.isTableAllo1?a("el-table-column",{key:18,attrs:{label:"费用类型",prop:"sumPrice",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}):e._e(),e._v(" "),a("el-table-column",{key:19,attrs:{label:"备注",prop:"sumPrice",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"dflag",label:"冲销状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.dflag?a("span",[e._v("已冲销")]):a("span",[e._v("未冲销")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"-25px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号","min-width":"110px",align:"center",prop:"useForm"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("6b54"),a("7f7f"),a("7514"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u=a("3de8"),h={name:"OutStock",components:{Pagination:o["a"],TreeSelect:u["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],currentRow:{},totalImportInfo:0,listLoadingImportInfo:!0,listImportInfo:[],isOutsap:[],tableKey:0,useTypes:[{id:"0",name:"领用出库"},{id:"1",name:"手动出库"},{id:"4",name:"调拨出库"},{id:"5",name:"报废出库"}],getdataListParmImportInfo:{name:"getImportStockLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:"",deptName:"",useForm:"",stockNumber:"",stockName:"",receiveTime:"",providerName:"",storageName:"",storageTime:""}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"CK"}},temp:{},storage:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,laidNumber:""},dialogPvVisible:!1,isOutStockAdd:[],isReceiveTemplate:[],isOutStockImport:[],isOutStockExport:[],isOutStockSee:[],isOutStockDelete:[],isOutStockMethod1:[],isOutStockMethod2:[],isOutStockMethod3:[],isOutStockMethod4:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["耗用类别-父"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},pickerOptions2:{disabledDate:function(e){return e.getTime()>Date.now()}},No1:!0,No2:!1,No3:!1,No4:!0,isReceiveTime:!0,isReceiveTime2:!1,allo:!1,disabled:!0,isokDisable:!1,total:0,listLoading:!0,dialogFormVisible:!1,dialogFormVisible_See:!1,dialogStatus:"",textMap:{see:"查看详情",update:"编辑",create:"新增",easStatus:"EAS同步—同步失败数据"},getdataListParm:{name:"getBigPartuseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),departmentId:"",inputDatetime:"",useForm:"",useType:"",easStatus:"",sapStatus:""}},list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartuseDetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",useForm:"",startTime:"",stopTime:"",departmentId:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename"),assetCode:"",eqName:""}},requestParam:{name:"downloadPartuseList",parammaps:{pastureName:c.a.get("pasturename"),inputDatetime:""}},downList:[],oddCodeAllo:!0,No5:!0,isCreatTimeAllo:!1,isTableAllo:!0,isTableAllo1:!1,seeTemp:{},listSee:[],totalSee:0,getdataListSee:{name:"getpartUseListBybig",returntype:"Map",parammaps:{}},createTemp:{useType:0,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),receiveTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),applicatId:c.a.get("employeid"),departmentId:c.a.get("departmentid")},requestSparePart:{name:"getPartsListCK",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},requestAllocation:{name:"getTransferCodeCK",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{applyCode:"",pastureId:this.$store.state.user.pastureid}},getAllocationListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},orderPart:{},listAdd:[],EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},EqCodeList:[],requestUseForm:{name:"getApplyCode",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},useForms:[],getParmCreateAdd:{name:"getPartApplyByBig",returntype:"Map",parammaps:{}},postDataPramas:{},selectedArr:[],buttons:[],TotalAmount:0,isPercentage:!1,percentage:1,parentType:[],placeholder:"设备类别",disabled2:!1,getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],sapStatusList:[{name:"所有",id:"0"},{name:"已上传",id:"1"},{name:"未上传",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartuseSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}}}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importStockUse",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,单价,总价,库位,供应商,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,SignColumn",sheetname:"SheetJS"}},uploadData2:function(){return{name:"importStockUseHistory",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,单价,总价,库位,供应商,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.checkoutNumber)>parseInt(e.amount)&&(e.checkoutNumber=e.amount),parseInt(e.checkoutNumber)>parseInt(e.reportery)&&(e.checkoutNumber=e.reportery)}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getTypeList()},methods:{tableSort:function(e){"first"==this.activeName?Object(l["f"])(e,this.list):"second"==this.activeName&&Object(l["f"])(e,this.list2)},tableSort2:function(e){Object(l["f"])(e,this.listSee)},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){if(e.ProofCode)return 0;var a=new Date(e.creatTime),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["r"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},get_auto_buttons:function(){var e=Object(r["v"])(this.$store.state.user.buttons,t);this.isOutsap=e;var t="customs:outStock:add",a=Object(r["v"])(this.$store.state.user.buttons,t);this.isOutStockAdd=a;var s="customs:outStock:template",i=Object(r["v"])(this.$store.state.user.buttons,s);this.isReceiveTemplate=i;var n="customs:outStock:import",l=Object(r["v"])(this.$store.state.user.buttons,n);this.isOutStockImport=l;var o="customs:outStock:export",p=Object(r["v"])(this.$store.state.user.buttons,o);this.isOutStockExport=p;var m="customs:outStock:see",c=Object(r["v"])(this.$store.state.user.buttons,m);this.isOutStockSee=c;var d="customs:outStock:delete",u=Object(r["v"])(this.$store.state.user.buttons,d);this.isOutStockDelete=u;var h="customs:outStock:method1",g=Object(r["v"])(this.$store.state.user.buttons,h);this.isOutStockMethod1=g;var f="customs:outStock:method2",b=Object(r["v"])(this.$store.state.user.buttons,f);this.isOutStockMethod2=b;var v="customs:outStock:method3",y=Object(r["v"])(this.$store.state.user.buttons,v);this.isOutStockMethod3=y;var _="customs:outStock:method4",w=Object(r["v"])(this.$store.state.user.buttons,_);this.isOutStockMethod4=w;var S="customs:outStock:easSynchronization",P=Object(r["v"])(this.$store.state.user.buttons,S);this.isEasSynchronization=P;var x="customs:outStock:manualSynchronization",T=Object(r["v"])(this.$store.state.user.buttons,x);this.isManualSynchronization=T;var k="customs:outStock:closeSynchronization",C=Object(r["v"])(this.$store.state.user.buttons,k);this.isCloseSynchronization=C;var L="customs:outStock:ignoreSynchronization",N=Object(r["v"])(this.$store.state.user.buttons,L);this.isIgnoreSynchronization=N},popoverHide:function(e,t){console.log("选中值",e,t),this.getdataListParm2.parammaps.assetCode=t.typeCode},getTypeList:function(){var e=this;Object(r["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(r["E"])(t.data.list,"id","pid","children"))}))},querySearch:function(e,t){var a=this.restaurants,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelect:function(e){console.log(e)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name),console.log(e.createTemp.departmentName,"this.createTemp.departmentName"))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,console.log(this.$refs["inputDatetime"]),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},useType:function(e){return 0===e.useType||2===e.useType||3===e.useType?"领用出库":1===e.useType?"手动出库":4===e.useType?"调拨出库":5===e.useType?"报废出库":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log(this.seeTemp),this.dialogStatus="see",this.dialogFormVisible_See=!0,this.getdataListSee.parammaps.id=e.id,this.TotalAmount=0,this.getSeeList(),0==this.seeTemp.useType||2==this.seeTemp.useType||3==this.seeTemp.useType?(this.No1=!0,this.oddCodeAllo=!0,this.isCreatTimeAllo=!1,this.No5=!0,this.isTableAllo=!0,this.isTableAllo1=!1):1==this.seeTemp.useType?(this.No1=!1,this.oddCodeAllo=!1,this.isTableAllo=!0,this.isTableAllo1=!1):4==this.seeTemp.useType?(this.oddCodeAllo=!1,this.isCreatTimeAllo=!0,this.No5=!1,this.No1=!1,this.isTableAllo=!1,this.isTableAllo1=!0):5==this.seeTemp.useType&&(this.No1=!1,this.oddCodeAllo=!1,this.isTableAllo=!0,this.isTableAllo1=!1)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCreateTemp:function(){this.createTemp.useType=0,this.createTemp.empId=parseInt(c.a.get("employeid")),this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.receiveTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.applicatId=parseInt(c.a.get("employeid")),this.listAdd=[],this.createTemp.useForm="",this.No1=!0,this.No2=!1,this.No3=!1,this.orderPart={}},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.useForm="",this.createTemp.pastureName=c.a.get("pasturename"),this.createTemp.employeId=c.a.get("employeid"),this.TotalAmount=0,console.log(this.createTemp),this.$nextTick((function(){e.$refs["temp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode})),e.$forceUpdate()}))},changeStorageType:function(e){console.log(e),this.TotalAmount=0,0===e?(this.No1=!0,this.No2=!1,this.No3=!1,this.disabled=!0,this.listAdd=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1):1===e?(this.No1=!1,this.No2=!0,this.No3=!1,this.disabled=!1,this.listAdd=[],this.useForms=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1):2===e?(this.listAdd=[],this.No1=!1,this.No2=!1,this.isReceiveTime=!1,this.isReceiveTime2=!0,this.No3=!0,this.allo=!0,this.No4=!1):5===e&&(this.No1=!1,this.No2=!0,this.No3=!1,this.disabled=!1,this.listAdd=[],this.useForms=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1)},getNumber:function(e,t){console.log("领用单号模糊查询输入值",e),this.requestUseForm.parammaps["applyCode"]=e,Object(r["e"])(this.requestUseForm).then((function(e){console.log("领用单号模糊查询搜索data",e.data.list),t(e.data.list)}))},changeApplyCode:function(e){console.log("领用单号模糊查询选中值",e),this.getParmCreateAdd.parammaps.id=e.id,this.getParmCreateAdd.parammaps.pastureId=c.a.get("pastureid"),this.$set(this.createTemp,"departmentId",e.departmentId),this.createTemp.bid=e.id,this.createTemp.applicatId=e.empId,this.orderPart.applyCode=e.applyCode,this.TotalAmount=0,this.get_table_dataAdd()},get_table_dataAdd:function(){var e=this;Object(r["e"])(this.getParmCreateAdd).then((function(t){if(console.log("领用单号list列表",t.data.list),e.createTemp.applyType=t.data.list[0].applyType,e.listAdd=t.data.list,e.TotalAmount=0,null!==t.data.list){for(var a=0;a<t.data.list.length;a++){if("非维保"==t.data.list[a].applyType?(t.data.list[a].applyType="物耗",e.getDictByName=[{id:61,label:"物耗",value:"物耗"},{id:62,label:"土建",value:"土建"},{id:229,label:"工具",value:"工具"}]):e.get_select_list(),e.$set(t.data.list[a],"useTypeV",t.data.list[a].applyType),""==t.data.list[a].price&&(t.data.list[a].price=0),null==t.data.list[a].checkoutNumber){var s=[];s.push(t.data.list[a].amount,t.data.list[a].reportery),t.data.list[a].minNumber=Math.min.apply(null,s),e.$set(t.data.list[a],"checkoutNumber",t.data.list[a].minNumber)}console.log(t.data.list[a].sumPrice,"========= =="),e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="")}e.TotalAmount=e.TotalAmount.toFixed(2)}}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){if(console.log("备件模糊查询搜索data",e.data.list),null==e.data.list)t([]);else{for(var a=0;a<e.data.list.length;a++)e.data.list[a].useTypeV="维修";t(e.data.list)}}))},handleSelectSparePart:function(e){if(console.log("备件模糊查询选中值",e),this.TotalAmount=0,this.listAdd.length>0)if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"});for(var t=0;t<this.listAdd.length;t++)this.TotalAmount+=parseFloat(this.listAdd[t].checkoutNumber)*parseFloat(this.listAdd[t].price);this.TotalAmount=this.TotalAmount.toFixed(2)}else{null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.TotalAmount=parseFloat(e.checkoutNumber)*parseFloat(e.price),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e),this.TotalAmount=0;for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].checkoutNumber)*parseFloat(this.listAdd[a].price);this.TotalAmount=this.TotalAmount.toFixed(2)}else{null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e),this.$forceUpdate(),this.TotalAmount=0;for(var s=0;s<this.listAdd.length;s++)this.TotalAmount+=parseFloat(this.listAdd[s].checkoutNumber)*parseFloat(this.listAdd[s].price);this.TotalAmount=this.TotalAmount.toFixed(2)}console.log(this.listAdd)},allocationSearch:function(e,t){console.log(e),this.requestAllocation.parammaps.applyCode=e,Object(r["e"])(this.requestAllocation).then((function(e){console.log("调拨单号模糊查询搜索data",e.data.list),null!==e.data.list?t(e.data.list):t([])}))},handleSelectAllocation:function(e){console.log("调拨单号模糊查询选中值",e),this.createTemp.id=e.id,this.createTemp.oddCode=e.applyCode,this.getAllocationListParm.parammaps.id=e.id,this.TotalAmount=0,this.getAllocationList()},getAllocationList:function(){var e=this;Object(r["e"])(this.getAllocationListParm).then((function(t){if(console.log("调拨单号table-data",t.data.list),e.listAdd=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),e.$set(e.listAdd[a],"warehoseCode",""),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="");e.$forceUpdate()}))},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqName:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqName:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCode:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},changeUseNumber:function(e,t){console.log("领用数量",e);for(var a=0;a<this.listAdd.length;a++)if(console.log(this.listAdd[a].id),this.listAdd[a].id===t.id){var s=[];s.push(this.listAdd[a].reportery,parseInt(e))}},changeCheckoutNumber:function(e,t){console.log("出库数量",e,t);for(var a=0;a<this.listAdd.length;a++)if(console.log(this.listAdd[a].id),console.log(this.listAdd[a]),this.listAdd[a].id===t.id){var s=[];s.push(this.listAdd[a].reportery,parseInt(this.listAdd[a].amount),parseInt(e)),this.listAdd[a].minNumber=Math.min.apply(null,s),this.$set(this.listAdd[a],"sumPrice",parseFloat(this.listAdd[a].minNumber)*parseFloat(this.listAdd[a].price)),console.log(this.rules)}console.log(this.listAdd)},blurCheckoutNumber:function(e,t){console.log(e,t),this.TotalAmount=0,this.$set(t,"sumPrice",(parseFloat(t.price)*parseFloat(t.checkoutNumber)).toFixed(2)),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].sumPrice);this.TotalAmount=this.TotalAmount.toFixed(2)},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("备件名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0;for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1){t.listAdd.splice(s,1),console.log(t.listAdd);for(var i=0;i<t.listAdd.length;i++)t.TotalAmount+=parseFloat(t.listAdd[i].checkoutNumber)*parseFloat(t.listAdd[i].price);return}}console.log(t.listAdd),t.TotalAmount=t.TotalAmount.toFixed(2)}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.createTemp.useForm||null==e.createTemp.useForm||void 0==e.createTemp.useForm?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0===this.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;if(0===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].useTypeV||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查费用类型或出库数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].amount)||parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不可大于领用数量或库位库存数",duration:2e3}),!1;this.$set(this.listAdd[t],"checkoutNumber",this.listAdd[t].checkoutNumber.toString())}return"维修"===this.createTemp.applyType?this.createTemp.useType=0:"保养"===this.createTemp.applyType?this.createTemp.useType=2:"非维保"===this.createTemp.applyType&&(this.createTemp.useType=3),console.log(this.orderPart.applyCode),this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,oddCode:this.orderPart.applyCode,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},""==this.createTemp.oddCode?(this.$notify({title:"保存失败",message:"领用单号不得为空",type:"warning",duration:2e3}),!1):(this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:"@insertSpotList.amount",checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},this.postDataPramas.data[1].children[2]={name:"updatePartapplyuseAmount",type:"e",parammaps:{paid:"@insertSpotList.paid",checkoutNumber:"@insertSpotList.checkoutNumber"}},this.postDataPramas.data[2]={name:"updateBigPartApplystatue",type:"e",parammaps:{bid:this.createTemp.bid}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0)}if(1===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].eqName||""==this.listAdd[t].eqCode||null==this.listAdd[t].eqName||null==this.listAdd[t].useTypeV||null==this.listAdd[t].eqCode||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查备件名称或设备内部编号或费用类型或出库数量是否未填写",duration:2e3}),!1;a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不能大于库位库存数",duration:2e3}),this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","No"),!1;this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","Yes")}return this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:0,checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0}if(2===this.createTemp.useType)return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.$store.state.user.departmentid,useForm:this.createTemp.useForm,useType:4,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,oddCode:this.createTemp.oddCode,note:this.createTemp.note}},""==this.createTemp.oddCode?(this.$notify({title:"保存失败",message:"领用单号不得为空",type:"warning",duration:2e3}),!1):(this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:-1,contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",providerId:"@insertSpotList.providerId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",useNumber:0,checkoutNumber:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:0,useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[2]={name:"updateBigPartTransfer",type:"e",parammaps:{id:this.createTemp.id,statue:4,useCode:this.createTemp.useForm}},Object(r["c"])(this.postDataPramas).then((function(t){console.log(e.listAdd),console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0);if(5===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].eqName||""==this.listAdd[t].eqCode||null==this.listAdd[t].eqName||null==this.listAdd[t].useTypeV||null==this.listAdd[t].eqCode||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查备件名称或设备内部编号或费用类型或出库数量是否未填写",duration:2e3}),!1;a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不能大于库位库存数",duration:2e3}),this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","No"),!1;this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","Yes")}return this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},""==this.createTemp.oddCode?(this.$notify({title:"保存失败",message:"领用单号不得为空",type:"warning",duration:2e3}),!1):(this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:0,checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0)}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"No"==t.isNo&&13===a?{background:"red"}:{background:""}},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","报错信息"],r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;this.$alert("备件出库信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.parammaps.formType="备件出库信息",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){if(null!==t.data.list)for(var s=0;s<t.data.list.length;s++)1==t.data.list[s].sterilisation?e.$set(t.data.list[s],"sterilisation","已冲销"):e.$set(t.data.list[s],"sterilisation","未冲销");var i=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","资产品牌","领用类型","领用部门","领用人","备注","冲销状态"],n=["pastureName","useForm","creatTime","partCode","partName","specification","brandName","unit","checkoutNumber","price","sumPrice","warehoseCode","providerName","eqName","eqCode","eqBrand","useTypeV","departmentName","appliname","note","sterilisation"],l=e.formatJson(n,i);a.export_json_to_excel({header:r,data:l,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownload2:function(){var e=this;this.$alert("备件出库记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam={},this.requestParam.name="getPartuseDetailList",this.requestParam.parammaps={},this.requestParam.parammaps.formType="备件出库记录",this.requestParam.parammaps.inputDatetime=this.getdataListParm2.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm2.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm2.parammaps.departmentId,this.requestParam.parammaps.startTime=this.getdataListParm2.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm2.parammaps.stopTime,this.requestParam.parammaps.useForm=this.getdataListParm2.parammaps.useForm,this.requestParam.parammaps.partCode=this.getdataListParm2.parammaps.partCode,this.requestParam.parammaps.partName=this.getdataListParm2.parammaps.partName,this.requestParam.parammaps.providerId=this.getdataListParm2.parammaps.providerId,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["牧场","出库单号","备件编号","备件名称","备件规格","备件品牌","计量单位"," 供应商","设备名称","设备内部编号","费用类型","库位","期初库存","出库数量","单价","总价 ","领用部门 ","领用人","录入人 ","出库 日期","备注 "],r=["pastureName","useForm","partCode","partName","specification","brandName","unit","providerName","eqName","eqCode","useTypeV","warehoseCode","reportery","checkoutNumber","price","sumPrice","departmentName","appliname","empname","creatTime","note"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownloadEas:function(){var e=this;this.$alert("备件出库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartUseEAS",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["*单据编号","业务日期","领料出库单明细$成本对象_名称_l2","领料出库单明细$成本对象_编码","领料出库单明细$仓库_编码","领料出库单明细$库位_编码","领料出库单明细$仓管员_编码","领料出库单体$领料人_编码","领料出库单明细_批次","领料出库单明细_数量","领料出库单明细_辅助数量","领料出库单明细_单位实际成本","领料出库单明细_实际成本","领料出库单明细_生产日期","领料出库单明细_到期日期","领料出库单明细$物料_规格型号","领料出库单明细$物料_名称_l2","领料出库单明细$物料_编码","领料出库单明细$辅助属性_编码","领料出库单明细$计量单位_编码","领料出库单明细$辅助计量单位_编码","领料出库单明细_订单单号","领料出库单明细_备注","成本中心_编码","需求方库存组织_编码","需方库存组织_名称_l2","部门_编码","事务类型_名称_l2","*事务类型_编码","创建者_用户名","创建时间","领料出库单明细$生产线","领料出库单明细$班组","领料出库单明细$领料工序","领料出库单明细$负责人","领料出库单明细$成本对象组_单据编号","领料出库单明细$成本对象组_名称_l2","领料出库单明细$成本项目_编码","领料出库单明细$成本项目_名称_l2","领料出库单体$项目号_编码","领料出库单体$跟踪号_编码","摘要","供应方库存组织_编码","供应方财务组织_编码","需求方财务组织_编码","供方仓库_编码","供方库位_编码","结算价","需方仓库_编码","需方库位_编码","仓管员_编码","领料出库单明细$主制部门_编码","领料出库单明细$主制部门_名称_l2","领料出库单明细$成本中心_编码","领料出库单明细$成本中心_名称_l2","业务类型_编码","业务类型_名称"],r=["*单据编号","业务日期","领料出库单明细$成本对象_名称_l2","领料出库单明细$成本对象_编码","领料出库单明细$仓库_编码","领料出库单明细$库位_编码","领料出库单明细$仓管员_编码","领料出库单体$领料人_编码","领料出库单明细_批次","领料出库单明细_数量","领料出库单明细_辅助数量","领料出库单明细_单位实际成本","领料出库单明细_实际成本","领料出库单明细_生产日期","领料出库单明细_到期日期","领料出库单明细$物料_规格型号","领料出库单明细$物料_名称_l2","领料出库单明细$物料_编码","领料出库单明细$辅助属性_编码","领料出库单明细$计量单位_编码","领料出库单明细$辅助计量单位_编码","领料出库单明细_订单单号","领料出库单明细_备注","成本中心_编码","需求方库存组织_编码","需方库存组织_名称_l2","部门_编码","事务类型_名称_l2","*事务类型_编码","创建者_用户名","创建时间","领料出库单明细$生产线","领料出库单明细$班组","领料出库单明细$领料工序","领料出库单明细$负责人","领料出库单明细$成本对象组_单据编号","领料出库单明细$成本对象组_名称_l2","领料出库单明细$成本项目_编码","领料出库单明细$成本项目_名称_l2","领料出库单体$项目号_编码","领料出库单体$跟踪号_编码","摘要","供应方库存组织_编码","供应方财务组织_编码","需求方财务组织_编码","供方仓库_编码","供方库位_编码","结算价","需方仓库_编码","需方库位_编码","仓管员_编码","领料出库单明细$主制部门_编码","领料出库单明细$主制部门_名称_l2","领料出库单明细$成本中心_编码","领料出库单明细$成本中心_名称_l2","业务类型_编码","业务类型_名称"],n=[["EAS","7.5.0","领料出库单","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["MaterialReq","领料出库单","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["FNumber","FBizDate","FEntry$costObject_name_l2","FEntry$costObject_number","FEntry$warehouse_number","FEntry$location_number","FEntry$stocker_number","FEntry$picker_number","FEntry_lot","FEntry_qty","FEntry_assistQty","FEntry_unitActualCost","FEntry_actualCost","FEntry_mfg","FEntry_exp","FEntry$material_model","FEntry$material_name_l2","FEntry$material_number","FEntry$assistProperty_number","FEntry$unit_number","FEntry$assistUnit_number","FEntry_OrderNumber","FEntry_remark","FCostCenterOrgUnit_number","FStorageOrgUnit_number","FStorageOrgUnit_name_l2","FAdminOrgUnit_number","FTransactionType_name_l2","FTransactionType_number","FCreator_number","FCreateTime","FEntry$ProductLine_number","FEntry$ClassGroup_number","FEntry$ProductLineWPEntry_number","FEntry$person_number","FEntry$costObjectSuite_number","FEntry$costObjectSuite_name_l2","FEntry$costItem_number","FEntry$costItem_name_l2","FEntry$project_number","FEntry$trackNumber_number","FDescription","FSupplyStoreOrgUnit_number","FSupplyCompanyOrgUnit_number","FDemandCompanyOrgUnit_number","FEntry$SupplyWarehouse_number","FEntry$SupplyLocation_number","FEntry$SettlePrice","FEntry$Warehouse_number","FEntry$Location_number","FEntry$Stocker_number","FEntry$AdminOrgUnit1_number","FEntry$AdminOrgUnit1_name","FEntry$CostCenterOrgUnit1_number","FEntry$CostCenterOrgUnit1_name","FBizType_number","FBizType_name_l2"]];if(null!==s){var l=e.formatJsonTemp(r,s);a.export_json_to_excel({multiHeader:n,header:i,data:l,filename:"备件出库EAS",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},handleDownloadEas1:function(){var e=this;this.$alert("备件出库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartUseEASYuan",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["领用部门","牧场","领用单编号","领用日期","供应商编码","供应商名称","出库人","制单日期","品名","物料编码","计量单位","单价","实发数量","总价","备注","领用人","费用类型"],r=["领用部门","牧场","领用单编号","领用日期","供应商编码","供应商名称","出库人","制单日期","品名","物料编码","计量单位","单价","实发数量","总价","备注","领用人","费用类型"];if(null!==s){var n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件出库EAS",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDelate:function(e){var t=this;console.log("点击了删除"),this.getdataListSee.parammaps.id=e.id,this.getSeeList(),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"updatePartRepertoryDelCK",type:"e",parammaps:{id:"@insertSpotList.id",contractId:"@insertSpotList.contractId",partCode:"@insertSpotList.partCode",pastureId:e.pastureId}},t.postDataPramas.data[0].children[1]={name:"deletePartUse",type:"e",parammaps:{id:"@insertSpotList.id"}},t.postDataPramas.data[1]={name:"updatePartApplyDel",type:"e",parammaps:{applyCode:e.useForm}},t.postDataPramas.data[2]={name:"deleteBigPartUse",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},edit_dialog_save:function(){console.log("编辑保存")},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockLaidDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"出库模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartuseSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="2",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartuseSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},g=h,f=(a("7d40"),a("3347"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"f838d956",null);t["default"]=b.exports},"0420":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepLevel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"周期(天)","min-width":"100px",sortable:"",prop:"upkeepCycel","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCycel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":0,"inactive-value":1,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"400",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleMaintenanceContents(s)}}},[e._v("保养内容")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleSparePart(s)}}},[e._v("备件")]),e._v(" "),a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleCopy(s)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养名称:",prop:"upkeepName"}},[a("el-input",{ref:"upkeepName",attrs:{type:"text"},model:{value:e.createTemp.upkeepName,callback:function(t){e.$set(e.createTemp,"upkeepName",t)},expression:"createTemp.upkeepName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养类型:",prop:"upkeepType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"保养类型"},on:{change:e.changeType},model:{value:e.createTemp.upkeepType,callback:function(t){e.$set(e.createTemp,"upkeepType",t)},expression:"createTemp.upkeepType"}},e._l(e.upkeepTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.label}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepLevel"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"保养级别"},model:{value:e.createTemp.upkeepLevel,callback:function(t){e.$set(e.createTemp,"upkeepLevel",t)},expression:"createTemp.upkeepLevel"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.label}})})),1)],1)],1)],1),e._v(" "),e.isDisplay?a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养周期:",prop:"upkeepCycel"}},[a("el-input",{ref:"upkeepCycel",attrs:{type:"text"},model:{value:e.createTemp.upkeepCycel,callback:function(t){e.$set(e.createTemp,"upkeepCycel",t)},expression:"createTemp.upkeepCycel"}})],1)],1)],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"启用:",prop:"enable"}},[a("el-switch",{attrs:{"active-value":0,"inactive-value":1,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.createTemp.enable,callback:function(t){e.$set(e.createTemp,"enable",t)},expression:"createTemp.enable"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusMaintenanceContents],visible:e.dialogFormVisibleMaintenanceContents,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleMaintenanceContents=t}}},[a("div",{staticClass:"content-MaintenanceContents"},[a("el-form",{ref:"maintenanceTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintenanceTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"保养部位:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.maintenanceSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectMaintenance},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.positionName))])]}}]),model:{value:e.maintenanceTemp.positionName,callback:function(t){e.$set(e.maintenanceTemp,"positionName",t)},expression:"maintenanceTemp.positionName"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenance,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"90px",prop:"positionName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目",valign:"middle","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"program",model:{value:t.row.program,callback:function(a){e.$set(t.row,"program",a)},expression:"scope.row.program"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准",valign:"middle",prop:"standard",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"active",model:{value:t.row.standard,callback:function(a){e.$set(t.row,"standard",a)},expression:"scope.row.standard"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"执行动作","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"active"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%","margin-top":"15px"},attrs:{placeholder:"执行动作"},on:{change:e.handleActive},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.listActive,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.maintenanceDelete(s)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.maintenanceSave()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleMaintenanceContents=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSparePart],visible:e.dialogFormVisibleSparePart,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSparePart=t}}},[a("div",{staticClass:"content-SparePart"},[a("el-form",{ref:"sparePartTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.sparePartTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.name))])]}}]),model:{value:e.sparePartTemp.partCode,callback:function(t){e.$set(e.sparePartTemp,"partCode",t)},expression:"sparePartTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSparePart,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.partSave()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleSparePart=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCopy],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"content-copy"},[a("el-form",{staticStyle:{width:"90%px",margin:"0 auto"},attrs:{"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"NewName"}},[a("tree-select",{attrs:{disabled:e.disabled,width:300,size:"small",multiple:"",data:e.parentType,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=(a("a78e"),a("5f87")),c=a("ed08"),d={name:"Baoyang",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0}},data:function(){return{parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getPartList",parammaps:{id:""}},copyTemp:{},upkeepTypes:[],upkeepgrades:[],listActive:[],requestParams:[{name:"getDictByName1",offset:0,pagecount:0,params:["保养类型"]},{name:"getDictByName2",offset:0,pagecount:0,params:["保养级别"]},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],isDisplay:!1,textMap:{create:"新增",update:"编辑",copy:"复制",maintenanceContents:"保养内容",sparePart:"备件"},dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,getdataListParmUpkeep:{name:"getBigUpkeepTemplate",parammaps:{id:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{upkeepName:"",upkeepType:"",upkeepLevel:"",upkeepCycel:"",enable:0},tableKey:0,isokDisable:!1,postDataPramas:{},dialogStatusMaintenanceContents:"",dialogFormVisibleMaintenanceContents:!1,dialogFormVisibleSparePart:!1,dialogStatusSparePart:"",getdataListParmSee:{name:"getPositionPartBypid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},requestParam:{},requestMaintenance:{name:"getPositionByName",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getMaintenanceListParm:{name:"getUpkeepTemplateListbyeq",parammaps:{id:""}},maintenanceTemp:{},listMaintenance:[],postMaintenancePramas:{},requestSparePart:{name:"getPartsListUpkeep",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getSparePartListParm:{name:"getUpkeepPartListbyeq",parammaps:{id:""}},sparePartTemp:{},listSparePart:[],postSparePartPramas:{},rules:{upkeepName:[{type:"string",required:!0,message:"必填",trigger:"blur"}],upkeepType:[{required:!0,message:"必填",trigger:"blur"}],upkeepLevel:[{required:!0,message:"必填",trigger:"blur"}],upkeepCycel:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"updateUpKeepT",importParams:"设备类别名称,保养模板名称,保养级别,保养周期,保养类型,部位,项目,标准,执行动作",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParmUpkeep.parammaps.id=this.assetTypeid,this.get_table_data(),this.getTypeList())}},created:function(){this.get_table_data(),this.get_select_list()},methods:{tableSort:function(e){Object(c["f"])(e,this.list)},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){e.upkeepTypes=t.data.getDictByName1.list,e.upkeepgrades=t.data.getDictByName2.list,e.listActive=t.data.getDictByName.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParmUpkeep).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="setBigUpkeepTemplate",this.requestParam.parammaps={},this.requestParam.parammaps.id=t.id,this.requestParam.parammaps.enable=t.enable,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},resetCreateTemp:function(){this.createTemp.upkeepName="",this.createTemp.upkeepType="",this.createTemp.upkeepLevel="",this.createTemp.enable=0},form_add:function(){""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,console.log(this.assetTypeid))},handleActive:function(e){console.log("执行动作",e)},changeType:function(e){console.log(e),"间隔保养"==e?(this.createTemp.upkeepCycel="",this.isDisplay=!0):"周保养"==e?(this.createTemp.upkeepCycel=7,this.isDisplay=!1):"月保养"==e&&(this.createTemp.upkeepCycel=30,this.isDisplay=!1)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertBigUpkeepTemplate",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqclassId=e.assetTypeid,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertBigUpkeepTemplate",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqclassId=e.assetTypeid,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))},handleCopy:function(e){""!=this.assetTypeid&&(this.dialogFormVisibleCopy=!0,this.dialogStatusCopy="copy",this.defaultCheckedKeys=[],this.copyTemp=Object.assign({},e))},createCopyData:function(){var e=this;if(console.log(this.dataform.selectType),0===this.dataform.selectType.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.dataform.selectType.length;a++){var s={};s["newEqclassId"]=this.dataform.selectType[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"CopyUpKeep",type:"e",parammaps:{newEqclassId:"@insertSpotList.newEqclassId",eqclassid:this.copyTemp.id}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}},popoverHide:function(e,t){console.log("选中值",e,t),this.dataform.selectType=e,this.UpdateDataRelationParam.values=e},getTypeList:function(){var e=this;Object(l["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(l["E"])(t.data.list,"id","pid","children"))}))},handleMaintenanceContents:function(e){this.maintenanceTemp=Object.assign({},e),this.maintenanceTemp.bigId=e.id,console.log(e),this.dialogStatusMaintenanceContents="maintenanceContents",this.dialogFormVisibleMaintenanceContents=!0,this.getMaintenanceList()},getMaintenanceList:function(){var e=this;this.getMaintenanceListParm.parammaps.id=this.maintenanceTemp.id,Object(l["e"])(this.getMaintenanceListParm).then((function(t){console.log("保养部位数据",t.data.list),e.listMaintenance=t.data.list,setTimeout((function(){e.listLoading=!1}),100)}))},maintenanceSearch:function(e,t){console.log("保养部位模糊查询输入值",e),this.requestMaintenance.parammaps["positionName"]=e,this.requestMaintenance.parammaps.id=this.assetTypeid,Object(l["e"])(this.requestMaintenance).then((function(e){console.log("保养部位模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectMaintenance:function(e){console.log("保养部位模糊查询选中值",e),null!=this.listMaintenance?(this.$set(e,"positionId",e.id),this.$set(e,"myid",(new Date).getTime()),this.listMaintenance.push(e)):(this.listMaintenance=[],this.$set(e,"myid",(new Date).getTime()),this.$set(e,"positionId",e.id),this.listMaintenance.push(e))},maintenanceDelete:function(e){var t=this;console.log(e),console.log(this.listMaintenance),o["MessageBox"].confirm("名称:"+e.positionName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listMaintenance.length;a++){if(console.log(t.listMaintenance[a]),t.listMaintenance[a].myid==e.myid)var s=t.listMaintenance.indexOf(t.listMaintenance[a]);if(s>-1)return void t.listMaintenance.splice(s,1)}}))},maintenanceSave:function(e){var t=this;if(0!==this.listMaintenance.length){for(var a=0;a<this.listMaintenance.length;a++)""!==this.listMaintenance[a].program&&""!==this.listMaintenance[a].standard&&""!==this.listMaintenance[a].active&&null!==this.listMaintenance[a].program&&null!==this.listMaintenance[a].standard&&null!==this.listMaintenance[a].active&&void 0!==this.listMaintenance[a].program&&void 0!==this.listMaintenance[a].standard&&void 0!==this.listMaintenance[a].active?(this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deleteUpkeepTemplateListbyeq",type:"e",parammaps:{id:this.maintenanceTemp.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listMaintenance}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertUpkeepTemplate",type:"e",parammaps:{bigId:this.maintenanceTemp.id,positionId:"@insertSpotList.positionId",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active",eqclassId:this.assetTypeid}}):this.$message({message:"请完善保养内容",type:"warning",duration:2e3});Object(l["c"])(this.postDataPramas).then((function(e){console.log("备件保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisibleMaintenanceContents=!1,t.get_table_data(),t.$notify({title:"成功",message:"保养成功",type:"success",duration:2e3})):Object(l["w"])(e,t.$notify)}))}},handleSparePart:function(e){this.sparePartTemp=Object.assign({},e),this.dialogStatusSparePart="sparePart",this.dialogFormVisibleSparePart=!0,this.getSparePartList()},getSparePartList:function(){var e=this;this.getSparePartListParm.parammaps.id=this.sparePartTemp.id,Object(l["e"])(this.getSparePartListParm).then((function(t){console.log("备件数据",t.data.list),e.listSparePart=t.data.list,setTimeout((function(){e.listLoading=!1}),100)}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,this.requestSparePart.parammaps.eqClassId=this.assetTypeid,Object(l["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),null!=this.listSparePart?this.listSparePart.find((function(t){return t.partId===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.$set(e,"partId",e.id),this.$set(e,"myid",(new Date).getTime()),this.listSparePart.push(e)):(this.listSparePart=[],this.$set(e,"partId",e.id),this.$set(e,"myid",(new Date).getTime()),this.listSparePart.push(e)),this.sparePartTemp.partCode=""},partDelete:function(e){var t=this;console.log(e),console.log(this.listSparePart),o["MessageBox"].confirm("名称:"+e.positionName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listSparePart.length;a++){if(console.log(t.listSparePart[a]),t.listSparePart[a].myid==e.myid)var s=t.listSparePart.indexOf(t.listSparePart[a]);if(s>-1)return void t.listSparePart.splice(s,1)}}))},partSave:function(){var e=this;if(0!==this.listSparePart.length){for(var t=0;t<this.listSparePart.length;t++)""!==this.listSparePart[t].amount&&null!==this.listSparePart[t].amount&&void 0!==this.listSparePart[t].amount?(this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deleteUpkeepPartbyeq",type:"e",parammaps:{id:this.sparePartTemp.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listSparePart}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertUpkeepPart",type:"e",parammaps:{bigId:this.sparePartTemp.id,partId:"@insertSpotList.partId",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",amount:"@insertSpotList.amount",note:"@insertSpotList.note"}}):this.$message({message:"请完善保养内容",type:"warning",duration:2e3});Object(l["c"])(this.postDataPramas).then((function(t){console.log("备件保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleSparePart=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}},form_edit:function(e){var t=this;this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateBigUpkeepTemplate",e.postDataPramas.parammaps=e.createTemp,Object(l["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"编辑成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))},form_delete:function(e){var t=this;o["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteBigUpkeepTemplate",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(l["w"])(e,t.$notify)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["设备类别名称","保养模板名称","保养级别","保养周期","保养类型","部位","项目","标准","执行动作","报错信息"],r=["设备类别名称","保养模板名称","保养级别","保养周期","保养类型","部位","项目","标准","执行动作","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"保养模板报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(l["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["设备类别名称","保养模板名称","保养级别","保养周期","保养类型","部位","项目","标准","执行动作"],r=["设备类别名称","保养模板名称","保养级别","保养周期","保养类型","部位","项目","标准","执行动作"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"保养模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},jump:function(){this.$router.push("/console/menu")}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"04a4":function(e,t,a){"use strict";a("17cb")},"04b5":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"器具名称",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"准确度等级、不确定度或最大允许误差","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"测量范围","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.factoryNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"制造单位","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检定周期","min-width":"80px",align:"center",sortable:"",prop:"cycle"}}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"80px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"110px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"检定单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnUnit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量器具用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安装使用地点","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"145px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"器具名称:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入计量器具名称",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入规格型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"准确度等级、不确定度或最大允许误差:",prop:"level"}},[a("el-input",{ref:"level",attrs:{placeholder:"请输入准确度等级、不确定度或最大允许误差",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.level,callback:function(t){e.$set(e.createTemp,"level",t)},expression:"createTemp.level"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"测量范围:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入测量范围",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出厂编号:",prop:"factoryNumber"}},[a("el-input",{ref:"factoryNumber",attrs:{placeholder:"请输入出厂编号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"数量:",prop:"amount"}},[a("el-input",{ref:"amount",attrs:{placeholder:"请输入数量",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.amount,callback:function(t){e.$set(e.createTemp,"amount",t)},expression:"createTemp.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"制造单位:",prop:"unit"}},[a("el-input",{ref:"unit",attrs:{placeholder:"请输入制造单位",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.unit,callback:function(t){e.$set(e.createTemp,"unit",t)},expression:"createTemp.unit"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检定周期:",prop:"cycle"}},[a("el-input",{ref:"cycle",attrs:{placeholder:"请输入检定周期",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cycle,callback:function(t){e.$set(e.createTemp,"cycle",t)},expression:"createTemp.cycle"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检定单位:",prop:"warnUnit"}},[a("el-input",{ref:"warnUnit",attrs:{placeholder:"请输入检定单位",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnUnit,callback:function(t){e.$set(e.createTemp,"warnUnit",t)},expression:"createTemp.warnUnit"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"计量器具用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入计量器具用途",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"安装使用地点:",prop:"location"}},[a("el-input",{ref:"location",attrs:{placeholder:"请输入安装使用地点",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.location,callback:function(t){e.$set(e.createTemp,"location",t)},expression:"createTemp.location"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"Thermometer",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"温度计"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,warnName:"",specification:"",level:"",measureRange:"",factoryNumber:"",amount:"",unit:"",cycle:"",lastCheckDate:"",validityDate:"",warnUnit:"",purpose:"",location:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnWDJ",importParams:"牧场,器具名称,规格型号,准确度等级、不确定度或最大允许误差,测量范围,出厂编号,数量,制造单位,检定周期,上次检定日期,有效期至,检定单位,计量器具用途,安装使用地点",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list||null!==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.level="",this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.amount="",this.createTemp.unit="",this.createTemp.cycle="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.warnUnit="",this.createTemp.purpose="",this.createTemp.location=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="温度计",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="温度计",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="温度计",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],i=["牧场","器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"温度计模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点","报错信息"],r=["牧场","器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"温度计报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("温度计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],filterVal:["pastureName","warnName","specification","level","measureRange","factoryNumber","amount","unit","cycle","lastCheckDate","validityDate","warnUnit","purpose","location"],tableDatas:e.downLoadList,sheetName:"温度计"}];Object(p["d"])(a,"温度计",!0,"xlsx")}))}))}}},h=u,g=(a("5a91"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"4ce67b3a",null);t["default"]=f.exports},"0559":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{clearable:"",placeholder:"调入牧场"},model:{value:e.getdataListParm.parammaps.inpastureId,callback:function(t){e.$set(e.getdataListParm.parammaps,"inpastureId",t)},expression:"getdataListParm.parammaps.inpastureId"}},e._l(e.findAllPastureIn,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"调拨单号",clearable:""},model:{value:e.getdataListParm.parammaps.DBCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"DBCode",t)},expression:"getdataListParm.parammaps.DBCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"调拨设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqname,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqname",t)},expression:"getdataListParm.parammaps.eqname"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetCode",t)},expression:"getdataListParm.parammaps.assetCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.DBCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调出牧场","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.outPastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调入牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inPastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨设备","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨人","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨日期",sortable:"",prop:"transferDate","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"DBCode"}},[a("el-input",{ref:"DBCode",attrs:{placeholder:"请输入调拨单号",disabled:""},model:{value:e.createTemp.DBCode,callback:function(t){e.$set(e.createTemp,"DBCode",t)},expression:"createTemp.DBCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出牧场:",prop:"outPasture"}},["create"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调出牧场",disabled:""},model:{value:e.createTemp.outPasture,callback:function(t){e.$set(e.createTemp,"outPasture",t)},expression:"createTemp.outPasture"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("el-input",{ref:"outPastureName",attrs:{placeholder:"请输入调出牧场",disabled:""},model:{value:e.createTemp.outPastureName,callback:function(t){e.$set(e.createTemp,"outPastureName",t)},expression:"createTemp.outPastureName"}}):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入牧场:",prop:"inPasture"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePastureIn},model:{value:e.createTemp.inPasture,callback:function(t){e.$set(e.createTemp,"inPasture",t)},expression:"createTemp.inPasture"}},e._l(e.findAllPastureIn,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入部门:",prop:"deptInId"}},["create"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调入部门",disabled:"see"===e.dialogStatus},on:{change:e.changeDeptIn},model:{value:e.createTemp.deptInId,callback:function(t){e.$set(e.createTemp,"deptInId",t)},expression:"createTemp.deptInId"}},e._l(e.findAllDepartIn,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("el-input",{ref:"indept",attrs:{placeholder:"请输入调出牧场",disabled:""},model:{value:e.createTemp.indept,callback:function(t){e.$set(e.createTemp,"indept",t)},expression:"createTemp.indept"}}):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-autocomplete",{ref:"assetCode",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"assetCode","fetch-suggestions":e.assetNumberSearch,placeholder:"请输入内容",disabled:"see"===e.dialogStatus},on:{select:e.handleAssetNumberSelect,blur:e.blurAssetNumber},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.assetCode))])]}}]),model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-autocomplete",{ref:"eqName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"eqName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"see"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurFormName},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-autocomplete",{ref:"eqCode",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"eqCode","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"see"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurFormNumber},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出部门:",prop:"outdept"}},[a("el-input",{ref:"outdept",attrs:{placeholder:"请输入调出部门",disabled:""},model:{value:e.createTemp.outdept,callback:function(t){e.$set(e.createTemp,"outdept",t)},expression:"createTemp.outdept"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入规格",disabled:""},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brand"}},[a("el-input",{ref:"brand",staticStyle:{width:"100%"},attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.createTemp.brand,callback:function(t){e.$set(e.createTemp,"brand",t)},expression:"createTemp.brand"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨人:",prop:"empName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调出人",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.empName,callback:function(t){e.$set(e.createTemp,"empName",t)},expression:"createTemp.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨日期:",prop:"transferDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"调拨日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.transferDate,callback:function(t){e.$set(e.createTemp,"transferDate",t)},expression:"createTemp.transferDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",staticStyle:{width:"100%"},attrs:{placeholder:"请输入备注",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=(a("b383"),a("a78e")),m=a.n(p),c={name:"EquipmentAllocation",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:[],total:0,listLoading:!0,findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],findAllPastureIn:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,parammaps:{}}],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{outPasture:[{required:!0,message:"必填",trigger:"blur"}],inPasture:[{required:!0,message:"必填",trigger:"blur"}],deptInId:[{required:!0,message:"必填",trigger:"blur"}],assetCode:[{required:!0,message:"必填",trigger:"blur"}],eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"geteqTransferList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),inputDatetime:"",startTime:"",stopTime:"",inpastureId:"",DBCode:"",eqname:"",assetCode:""}},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",see:"查看设备信息"},requestFilterParams:{name:"geteqbyNameCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},createTemp:{DBCode:"",outPasture:this.$store.state.user.pastureid,inPasture:"",indept:"",assetCode:"",eqName:"",eqCode:"",outdept:"",specification:"",brand:"",empName:m.a.get("employename"),transferDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),note:""},isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},getParmCreateNumber:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"DB"}},postDataPramas:{},findAllDepartIn:[],getParmDeptList:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{}}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllPastureIn=t.data.getPastureList.list}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?e.list=t.data.list:e.list=[],e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime1&&(this.getdataListParm.parammaps.inputDatetime1=""),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp={DBCode:"",outPasture:this.$store.state.user.pastureid,inPasture:"",indept:"",assetCode:"",eqName:"",eqCode:"",outdept:"",specification:"",brand:"",empName:m.a.get("employename"),transferDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),note:""}},form_add:function(){var e=this;this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("调拨单号",t.data.list[0].orderCode),e.createTemp.DBCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changePastureIn:function(e){console.log(e),this.findAllDepartIn.find((function(t){return t.id===e}))&&(console.log(this.findAllPastureIn.find((function(t){return t.id===e})).name),this.$set(this.createTemp,"pastureName",this.findAllPastureIn.find((function(t){return t.id===e})).name)),this.getParmDeptList.parammaps.pastureId=e,this.getdeptList()},getdeptList:function(){var e=this;Object(r["e"])(this.getParmDeptList).then((function(t){e.$nextTick((function(){e.findAllDepartIn=t.data.list}))}))},changeDeptIn:function(e){this.findAllDepartIn.find((function(t){return t.id===e}))&&(console.log(this.findAllDepartIn.find((function(t){return t.id===e})).name),this.$set(this.createTemp,"indept",this.findAllDepartIn.find((function(t){return t.id===e})).name))},assetNumberSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]=e,this.requestFilterParams.parammaps["eqName"]="",this.requestFilterParams.parammaps["assetCode"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},formNumberSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]=e,this.requestFilterParams.parammaps["eqName"]="",this.requestFilterParams.parammaps["assetCode"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},formNameSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]="",this.requestFilterParams.parammaps["eqName"]=e,this.requestFilterParams.parammaps["assetCode"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleAssetNumberSelect:function(e){console.log(e),this.$set(this.createTemp,"assetCode",e.assetCode),this.$set(this.createTemp,"eqName",e.eqName),this.$set(this.createTemp,"eqCode",e.eqCode),this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"specification",e.specification),this.$set(this.createTemp,"brand",e.brand),this.$set(this.createTemp,"outdept",e.deptName),this.$set(this.createTemp,"eqId",e.eqId)},handleformNumberSelect:function(e){console.log(e),this.$set(this.createTemp,"assetCode",e.assetCode),this.$set(this.createTemp,"eqName",e.eqName),this.$set(this.createTemp,"eqCode",e.eqCode),this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"specification",e.specification),this.$set(this.createTemp,"brand",e.brand),this.$set(this.createTemp,"outdept",e.deptName),this.$set(this.createTemp,"eqId",e.eqId)},handleformNameSelect:function(e){console.log(e),this.$set(this.createTemp,"assetCode",e.assetCode),this.$set(this.createTemp,"eqName",e.eqName),this.$set(this.createTemp,"eqCode",e.eqCode),this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"specification",e.specification),this.$set(this.createTemp,"brand",e.brand),this.$set(this.createTemp,"outdept",e.deptName),this.$set(this.createTemp,"eqId",e.eqId)},blurAssetNumber:function(e){this.$set(this.createTemp,"assetCode",""),this.$set(this.createTemp,"eqName",""),this.$set(this.createTemp,"eqCode",""),this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"specification",""),this.$set(this.createTemp,"brand",""),this.$set(this.createTemp,"outdept",""),this.$set(this.createTemp,"eqId","")},blurFormName:function(e){this.$set(this.createTemp,"assetCode",""),this.$set(this.createTemp,"eqName",""),this.$set(this.createTemp,"eqCode",""),this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"specification",""),this.$set(this.createTemp,"brand",""),this.$set(this.createTemp,"outdept",""),this.$set(this.createTemp,"eqId","")},blurFormNumber:function(e){this.$set(this.createTemp,"assetCode",""),this.$set(this.createTemp,"eqName",""),this.$set(this.createTemp,"eqCode",""),this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"specification",""),this.$set(this.createTemp,"brand",""),this.$set(this.createTemp,"outdept",""),this.$set(this.createTemp,"eqId","")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.createTemp),""==e.createTemp.DBCode||null==e.createTemp.DBCode||void 0==e.createTemp.DBCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("调拨单号",t.data.list[0].orderCode),e.createTemp.DBCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"inserteqTransfer",type:"e",parammaps:{eqName:this.createTemp.eqName,eqCode:this.createTemp.eqCode,eqId:this.createTemp.eqId,brand:this.createTemp.brand,assetCode:this.createTemp.assetCode,DBCode:this.createTemp.DBCode,outPasture:this.createTemp.outPasture,inPasture:this.createTemp.inPasture,empName:this.createTemp.empName,transferDate:this.createTemp.transferDate,outdept:this.createTemp.outdept,indept:this.createTemp.indept,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"updateEqTransfer",type:"e",parammaps:{eqId:this.createTemp.eqId}},this.postDataPramas.data[2]={name:"createNewEq",type:"e",parammaps:{eqId:this.createTemp.eqId,pastureId:this.createTemp.inPasture,deptInId:this.createTemp.deptInId,pastureName:this.createTemp.pastureName,departmentName:this.createTemp.indept}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisible=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_see:function(e){this.createTemp.eqCode="",console.log("点击了查看",e),this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"058b":function(e,t,a){"use strict";a("256b")},"05b9":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-合同管理",use:"icon-合同管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-合同管理"><defs><style type="text/css"></style></defs><path d="M281.6 460.8h460.8c12.8 0 25.6-12.8 25.6-25.6s-12.8-25.6-25.6-25.6h-460.8c-12.8 0-25.6 12.8-25.6 25.6s12.8 25.6 25.6 25.6zM284.16 614.4h145.92c15.36 0 28.16-12.8 28.16-25.6 0-15.36-12.8-25.6-28.16-25.6h-145.92c-15.36 0-28.16 10.24-28.16 25.6 0 12.8 12.8 25.6 28.16 25.6zM284.16 768h145.92c15.36 0 28.16-12.8 28.16-25.6 0-15.36-12.8-25.6-28.16-25.6h-145.92c-15.36 0-28.16 10.24-28.16 25.6 0 12.8 12.8 25.6 28.16 25.6zM281.6 307.2h460.8c12.8 0 25.6-12.8 25.6-25.6s-12.8-25.6-25.6-25.6h-460.8c-12.8 0-25.6 12.8-25.6 25.6s12.8 25.6 25.6 25.6z" p-id="6520" fill="#ffffff" /><path d="M896 51.2h-768c-12.8 0-25.6 12.8-25.6 25.6v870.4c0 12.8 12.8 25.6 25.6 25.6h384c15.36 0 25.6-10.24 25.6-25.6s-10.24-25.6-25.6-25.6h-358.4v-819.2h716.8v384c0 15.36 10.24 25.6 25.6 25.6s25.6-10.24 25.6-25.6v-409.6c0-12.8-12.8-25.6-25.6-25.6z" p-id="6521" fill="#ffffff" /><path d="M768 614.4c84.48 0 153.6 69.12 153.6 153.6s-69.12 153.6-153.6 153.6-153.6-69.12-153.6-153.6 69.12-153.6 153.6-153.6m0-51.2c-112.64 0-204.8 92.16-204.8 204.8s92.16 204.8 204.8 204.8 204.8-92.16 204.8-204.8-92.16-204.8-204.8-204.8z" p-id="6522" fill="#ffffff" /><path d="M778.24 675.84l20.48 43.52c2.56 2.56 5.12 5.12 7.68 5.12l46.08 5.12c7.68 0 12.8 12.8 5.12 17.92l-35.84 30.72c-2.56 2.56-2.56 5.12-2.56 10.24l10.24 46.08c2.56 7.68-7.68 15.36-15.36 10.24l-40.96-23.04c-2.56-2.56-7.68-2.56-10.24 0l-40.96 23.04c-7.68 5.12-15.36-2.56-15.36-10.24l10.24-46.08c0-2.56 0-7.68-2.56-10.24l-35.84-30.72c-7.68-5.12-2.56-15.36 5.12-17.92l46.08-5.12c2.56 0 7.68-2.56 7.68-5.12l20.48-43.52c5.12-7.68 15.36-7.68 20.48 0z" p-id="6523" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"05c9":function(e,t,a){"use strict";a("28ee")},"060b":function(e,t,a){"use strict";a("b34f")},"06ea2":function(e,t,a){"use strict";a("f416")},"06f4":function(e,t,a){},"0781":function(e,t,a){"use strict";a.r(t);var s=a("83d6"),i=a.n(s),r=i.a.showSettings,n=i.a.tagsView,l=i.a.fixedHeader,o=i.a.sidebarLogo,p={showSettings:r,tagsView:n,fixedHeader:l,sidebarLogo:o},m={CHANGE_SETTING:function(e,t){var a=t.key,s=t.value;e.hasOwnProperty(a)&&(e[a]=s)}},c={changeSetting:function(e,t){var a=e.commit;a("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:p,mutations:m,actions:c}},"07c3":function(e,t,a){},"07c5":function(e,t,a){"use strict";a("b79c")},"07e39":function(e,t,a){},"08ba":function(e,t,a){},"08ee":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件库存",use:"icon-备件库存-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件库存"><defs><style type="text/css"></style></defs><path d="M89.15968 508.00128c152.3712-152.3968 304.74752-304.768 457.1136-457.1392h-36.20352c152.47872 152.48384 304.95232 304.96768 457.42592 457.47712 23.36256 23.38304 59.56608-12.85632 36.1984-36.22912L546.26816 14.65856c-9.86112-9.86112-26.3424-9.86112-36.20352 0L52.94592 471.77728c-23.35744 23.36768 12.84608 59.60704 36.21376 36.224z" p-id="7349" fill="#ffffff" /><path d="M829.88544 937.40032H225.94048c-29.96224 0-31.232-27.20256-31.232-49.00864v-367.68256c0-33.01888-51.2-33.01888-51.2 0v369.94048c0 31.02208 5.504 59.7504 31.6416 80.36352 19.6864 15.52896 42.0608 17.59232 65.7664 17.59232h588.96896c33.01376-0.00512 33.01376-51.20512 0-51.20512zM860.60544 520.704v312.17152c0 33.01376 51.2 33.01376 51.2 0V520.704c0-33.01888-51.2-33.01888-51.2 0z" p-id="7350" fill="#ffffff" /><path d="M415.57504 602.5472H289.28l25.6 25.6V501.85216l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0V501.85216c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2zM636.47744 826.89024H510.17728l25.6 25.6v-126.29504l-25.6 25.6h126.30016l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.648-25.6-25.6-25.6H510.17728c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.30016c33.01376 0 33.01376-51.2 0-51.2zM415.57504 825.42592H289.28l25.6 25.6v-126.29504l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2z" p-id="7351" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"091e":function(e,t,a){},"0935":function(e,t,a){"use strict";a("4b1a")},"0966":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.table1.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"pastureName",t)},expression:"table1.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"冲销类型"},on:{change:e.change_type},model:{value:e.table1.getdataListParm.parammaps.writeoffType,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"writeoffType",t)},expression:"table1.getdataListParm.parammaps.writeoffType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备管理平台单号"},model:{value:e.table1.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"orderNumber",t)},expression:"table1.getdataListParm.parammaps.orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",placeholder:"是否已开票"},model:{value:e.table1.getdataListParm.parammaps.hasTicket,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"hasTicket",t)},expression:"table1.getdataListParm.parammaps.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isWriteoffAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table1.listLoading,expression:"table1.listLoading"}],key:e.table1.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table1.pageNum-1)*e.table1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"150px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证号","min-width":"150px",align:"center",prop:"materialCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证年度","min-width":"150px",align:"center",prop:"proofYear"}}),e._v(" "),a("el-table-column",{attrs:{label:"凭证中的过账信息","min-width":"150px",align:"center",prop:"chargeDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台单号","min-width":"150px",align:"center",prop:"orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-table-column",{attrs:{label:"是否已开票","min-width":"150px",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.hasTicket?a("span",[e._v("是")]):e._e(),e._v(" "),0==t.row.hasTicket?a("span",[e._v("否")]):e._e(),e._v(" "),""==t.row.hasTicket?a("span"):e._e()]}}],null,!1,4169319136)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台行号","min-width":"150px",align:"center",prop:"rowNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"150px",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isWriteoffSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table1.total>0,expression:"table1.total>0"}],attrs:{total:e.table1.total,page:e.table1.getdataListParm.offset,limit:e.table1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table1.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"create",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.create.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备管理平台单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:"see"==e.dialogStatus},on:{blur:e.blurOrderNumber},model:{value:e.create.temp.orderNumber,callback:function(t){e.$set(e.create.temp,"orderNumber",t)},expression:"create.temp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"冲销类型:",prop:"NumberType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},on:{change:e.changeWriteoff},model:{value:e.create.temp.NumberType,callback:function(t){e.$set(e.create.temp,"NumberType",t)},expression:"create.temp.NumberType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否已开票:",prop:"hasTicket"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},model:{value:e.create.temp.hasTicket,callback:function(t){e.$set(e.create.temp,"hasTicket",t)},expression:"create.temp.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证号:",prop:"materialCode"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.materialCode,callback:function(t){e.$set(e.create.temp,"materialCode",t)},expression:"create.temp.materialCode"}},e._l(e.materialVoucherNoList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"凭证中的过账日期:",prop:"chargeDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"","picker-options":e.pickerOptions,type:"date",placeholder:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.create.temp.chargeDate,callback:function(t){e.$set(e.create.temp,"chargeDate",t)},expression:"create.temp.chargeDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证年度:",prop:"proofYear"}},[a("el-input",{ref:"proofYear",attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.proofYear,callback:function(t){e.$set(e.create.temp,"proofYear",t)},expression:"create.temp.proofYear"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"行号",align:"center",prop:"rowNumber",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"partBrand",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"supplier",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"库位",prop:"warehouse",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更数量",prop:"changeCount",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"unitPrice",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"90"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["create"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=a("2934"),n=a("ed08"),l=a("333d"),o=a("5c96"),p=a("a78e"),m=a.n(p),c={name:"Writeoff",components:{Pagination:l["a"]},data:function(){return{findAllPasture:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,returntype:"Map",parammaps:{}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}}],writeoffList:[{id:1,name:"备件入库"},{id:2,name:"备件退货"},{id:3,name:"备件出库"}],invoicedReturnDocList:[{id:0,name:"否"},{id:1,name:"是"}],materialVoucherNoList:[{id:0,name:"11111"},{id:1,name:"2222"}],table1:{getdataListParm:{name:"getLaidProofList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),writeoffType:"备件入库",orderNumber:"",hasTicket:""}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogStatus:"",dialogFormVisible:!1,textMap:{create:"新增",see:"查看"},rules:{orderNumber:[{required:!0,message:"必填",trigger:"blur"}],NumberType:[{required:!0,message:"必填",trigger:"blur"}]},create:{temp:{applyDate:Object(n["e"])(new Date,"{y}-{m}-{d}")},getdataListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},getdataListParm2:{name:"getPartlaidByBigid",returntype:"Map",parammaps:{bigid:"",hasTicket:1}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},isWriteoffAdd:[],isWriteoffSee:[],isWriteoffDel:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="customs:writeoff:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isWriteoffAdd=t;var a="customs:writeoff:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isWriteoffSee=s;var i="customs:writeoff:del",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isWriteoffDel=n},get_table_data:function(){var e=this;this.table1.listLoading=!0,Object(r["e"])(this.table1.getdataListParm).then((function(t){t.data.list?(console.log("table数据",t.data.list),e.table1.list=t.data.list,e.table1.pageNum=t.data.pageNum,e.table1.pageSize=t.data.pageSize):(e.table1.list=[],e.table1.pageNum=0,e.table1.pageSize=0),t.data.total&&(e.table1.total=t.data.total),setTimeout((function(){e.table1.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),this.table1.listLoading=!0,this.table1.getdataListParm.offset=1,this.get_table_data()},form_add:function(){this.dialogStatus="create",this.dialogFormVisible=!0,this.create.temp={materialCode:"",proofYear:"",chargeDate:"",orderNumber:"",hasTicket:"",orderNumberId:"",NumberType:"",rowsNumber:[]},this.create.list=[]},changeWriteoff:function(e){this.getTableFormList()},blurOrderNumber:function(){this.getTableFormList()},getTableFormList:function(){var e=this,t="authdata/sap/proof/detail",a={OrderNumber:this.create.temp.orderNumber,NumberType:this.create.temp.NumberType};""!=this.create.temp.orderNumber?""!=this.create.temp.NumberType?Object(r["A"])(t,a).then((function(t){console.log(t.msg,"response==="),"fail"!==t.msg?t.data?(e.create.temp=t.data,e.create.temp.rowsNumber=[],t.data.parts?e.create.list=t.data.parts:e.create.list=[]):(e.create.list=[],e.create.temp={}):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})})).catch((function(e){})):this.$message({title:"",message:"冲销类型不能为空",type:"warning",duration:2e3}):this.$message({title:"",message:"设备管理平台单号不能为空",type:"warning",duration:2e3})},handleSelectionChange:function(e){this.create.temp.rowsNumber=[];for(var t=0;t<e.length;t++)this.create.temp.rowsNumber.push(e[t].rowNumber);console.log(this.create.temp.rowsNumber)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["create"].validate((function(t){if(t){var a="authdata/sap/proof/off",s={materialCode:e.create.temp.materialCode,proofYear:e.create.temp.proofYear,chargeDate:e.create.temp.chargeDate,orderNumber:e.create.temp.orderNumber,hasTicket:e.create.temp.hasTicket,rowsNumber:e.create.temp.rowsNumber,orderNumberId:e.create.temp.orderNumberId,NumberType:e.create.temp.NumberType};if(0==e.create.temp.rowsNumber.length)return void e.$message({message:"请选择需要冲销的备件",type:"warning",duration:2e3});Object(r["A"])(a,s).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})}))}}))},change_type:function(e){console.log(e),"备件入库"==e&&(this.table1.getdataListParm.name="getLaidProofList",this.table1.getdataListParm.parammaps.writeoffType="备件入库"),"备件出库"==e&&(this.table1.getdataListParm.name="getReturnProofList",this.table1.getdataListParm.parammaps.writeoffType="备件出库"),"备件退库"==e&&(this.table1.getdataListParm.name="getQuitProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退库"),"备件退货"==e&&(this.table1.getdataListParm.name="getUseProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退货")},form_see:function(e){this.dialogStatus="see",this.create.temp=Object.assign({},e),console.log("row",e),1==e.NumberType&&(this.create.getdataListParm2.name="getPartlaidByBigid"),4==e.NumberType&&(this.create.getdataListParm2.name="getPartquitByBigid"),2==e.NumberType&&(this.create.getdataListParm2.name="getPartrefundByBigid"),3==e.NumberType&&(this.create.getdataListParm2.name="getPartuseByBigid"),this.create.getdataListParm2.parammaps.bigid=e.id,this.getDialogList2(),this.dialogFormVisible=!0},getDialogList2:function(){var e=this;Object(r["e"])(this.create.getdataListParm2).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},getDialogList:function(){var e=this;Object(r["e"])(this.create.getdataListParm).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPasture2=t.data.getPastureList.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDelate:function(e){var t=this;o["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("删除")})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},d=c,u=(a("9df0"),a("a270"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"c6eb8e0c",null);t["default"]=h.exports},"0983":function(e,t,a){},"0a8c":function(e,t,a){},"0af4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.table.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"departName",t)},expression:"table.getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"能源类型"},model:{value:e.table.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"departName",t)},expression:"table.getdataListParm.parammaps.departName"}},e._l(e.energyTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.table.getdataListParm.parammaps.createDate,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"createDate",t)},expression:"table.getdataListParm.parammaps.createDate"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"operation"},[e.isGenerationAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isGenerationExport?a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isGenerationImport?a("el-button",{staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"90px",align:"center",prop:"departName"}}),e._v(" "),a("el-table-column",{attrs:{label:"能源类型","min-":"",width:"90px",align:"center",prop:"energyType"}}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"90px",align:"center",prop:"budget"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际","min-width":"90px",align:"center",prop:"actual"}}),e._v(" "),a("el-table-column",{attrs:{label:"同期","min-width":"90px",align:"center",prop:"contemporaneous"}}),e._v(" "),a("el-table-column",{attrs:{label:"VS同期","min-width":"90px",align:"center",prop:"vsContemporaneous"}}),e._v(" "),a("el-table-column",{attrs:{label:"VS预算","min-width":"90px",align:"center",prop:"vsBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"预算达成率","min-width":"90px",align:"center",prop:"budgetAchievementRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isGenerationEdit?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){e.handleRowDelete()(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("el-form",{ref:"temp",attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.create.temp.pastureId,callback:function(t){e.$set(e.create.temp,"pastureId",t)},expression:"create.temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部门",disabled:"update"==e.create.dialogStatus},model:{value:e.create.temp.departmentId,callback:function(t){e.$set(e.create.temp,"departmentId",t)},expression:"create.temp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"能源类型:",prop:"formNumber"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"能源类型",disabled:"update"==e.create.dialogStatus},model:{value:e.create.temp.employeId,callback:function(t){e.$set(e.create.temp,"employeId",t)},expression:"create.temp.employeId"}},e._l(e.energyTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用量:",prop:"formNumber"}},[a("el-input",{ref:"price1",model:{value:e.create.temp.price1,callback:function(t){e.$set(e.create.temp,"price1",t)},expression:"create.temp.price1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总价:",prop:"formNumber"}},[a("el-input",{ref:"price1",model:{value:e.create.temp.price1,callback:function(t){e.$set(e.create.temp,"price1",t)},expression:"create.temp.price1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"记录人:",prop:"formNumber"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.create.temp.employeId,callback:function(t){e.$set(e.create.temp,"employeId",t)},expression:"create.temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.create.temp.DATE,callback:function(t){e.$set(e.create.temp,"DATE",t)},expression:"create.temp.DATE"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.create.temp.note,callback:function(t){e.$set(e.create.temp,"note",t)},expression:"create.temp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.create.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.create.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=(a("ed08"),a("333d")),o=(a("5c96"),a("5f87")),p=a("a78e"),m=a.n(p),c={name:"Generation",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{isGenerationAdd:[],isGenerationExport:[],isGenerationImport:[],isGenerationEdit:[],table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:m.a.get("pasturename"),departName:""}}},energyTypeList:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],createDepartList:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},textMap:{update:"编辑",create:"新增",delete:"删除"},create:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{}},isokDisable:!1,isPercentage:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],percentage:1,edit:0}},computed:{headers:function(){return{token:Object(o["a"])()}},uploadData:function(){return{name:"insertElecsMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="cost:generation:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isGenerationAdd=t;var a="cost:generation:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isGenerationExport=s;var i="cost:generation:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isGenerationImport=n;var l="cost:generation:edit",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isGenerationEdit=o},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(r["e"])(this.table.getdataListParm).then((function(t){null==t.data.list?e.table.list=[]:(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize),setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.get_table_data()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","错误信息"],r=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"电表导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},form_reset:function(){this.create.temp.pastureId=parseInt(m.a.get("pastureid")),this.create.temp.departmentId="",this.create.temp.employeId=m.a.get("employeid")},form_add:function(){this.form_reset(),this.edit=1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getDepartParam.parammaps.pastureId=this.create.temp.pastureId,this.getCreateDepartDownList()},add_dialog_save_again:function(){},form_edit:function(e){this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==m.a.get("departmentid")}))?(e.create.temp.departmentId=parseInt(m.a.get("departmentid")),e.create.temp.departmentName=e.createDepartList.find((function(e){return e.id==m.a.get("departmentid")})).name):(e.create.temp.departmentId=t.data.list[0].id,e.create.temp.departmentId=t.data.list[0].id))}))},handleRowDelete:function(){},edit_dialog_save:function(){},handleDownload:function(){},form_delete:function(){}}},d=c,u=(a("6842"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"5233d2c6",null);t["default"]=h.exports},"0b47":function(e,t,a){},"0b6d":function(e,t,a){},"0b8f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-operation",staticStyle:{height:"50px"}},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"区域","min-width":"150px",align:"center",prop:"areaName"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"150px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场全称","min-width":"150px",align:"center",prop:"companyName"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场编号","min-width":"150px",align:"center",prop:"pastureNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"中心","min-width":"150px",align:"center",prop:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"地图经度","min-width":"150px",align:"center",prop:"longitude"}}),e._v(" "),a("el-table-column",{attrs:{label:"地图纬度","min-width":"150px",align:"center",prop:"latitude"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center",prop:"note"}}),e._v(" "),a("el-table-column",{attrs:{label:"顺序","min-width":"150px",align:"center",prop:"sort"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"230","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("div",{staticClass:"create"},[a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},["create"==e.create.dialogStatus?a("el-form-item",{attrs:{label:"所属区域:",prop:"areaId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"所属区域"},model:{value:e.create.temp.areaId,callback:function(t){e.$set(e.create.temp,"areaId",t)},expression:"create.temp.areaId"}},e._l(e.regionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):a("el-form-item",{attrs:{label:"所属区域:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"所属区域",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.areaid,callback:function(t){e.$set(e.create.temp,"areaid",t)},expression:"create.temp.areaid"}},e._l(e.regionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:parseInt(e.id)}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.pastureName,callback:function(t){e.$set(e.create.temp,"pastureName",t)},expression:"create.temp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"牧场全称:",prop:"companyName"}},[a("el-input",{ref:"companyName",staticStyle:{width:"100%"},attrs:{placeholder:"牧场全称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.companyName,callback:function(t){e.$set(e.create.temp,"companyName",t)},expression:"create.temp.companyName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"牧场编号:",prop:"pastureNumber"}},[a("el-input",{ref:"pastureNumber",staticStyle:{width:"100%"},attrs:{placeholder:"牧场编号",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.pastureNumber,callback:function(t){e.$set(e.create.temp,"pastureNumber",t)},expression:"create.temp.pastureNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"中心: ",prop:"center"}},[a("el-input",{ref:"center",staticStyle:{width:"100%"},attrs:{placeholder:"中心",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.center,callback:function(t){e.$set(e.create.temp,"center",t)},expression:"create.temp.center"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"地图经度:",prop:"longitude"}},[a("el-input",{ref:"longitude",staticStyle:{width:"100%"},attrs:{type:"number",placeholder:"请输入数字",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.longitude,callback:function(t){e.$set(e.create.temp,"longitude",t)},expression:"create.temp.longitude"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"地图纬度:",prop:"latitude"}},[a("el-input",{ref:"latitude",staticStyle:{width:"100%"},attrs:{type:"number",placeholder:"请输入数字",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.latitude,callback:function(t){e.$set(e.create.temp,"latitude",t)},expression:"create.temp.latitude"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",staticStyle:{width:"100%"},attrs:{placeholder:"备注",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.note,callback:function(t){e.$set(e.create.temp,"note",t)},expression:"create.temp.note"}})],1)],1)],1),e._v(" "),"create"!==e.create.dialogStatus?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"顺序:",prop:"sort"}},[a("el-input",{ref:"sort",staticStyle:{width:"100%"},attrs:{type:"number",placeholder:"顺序",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1)],1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["see"!==e.create.dialogStatus?a("el-button",{attrs:{disabled:e.isokDisable,type:"primary"},on:{click:function(t){"create"==e.create.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.create.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)])},i=[],r=(a("55dd"),a("7f7f"),a("ac6a"),a("2934")),n=a("333d"),l=(a("5c96"),a("a78e")),o=a.n(l),p={name:"RanchManagement",components:{Pagination:n["a"]},data:function(){return{requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"getareaList",offset:0,pagecount:0,returntype:"Map",parammaps:{}}],findAllPasture:[],regionList:[],areaIds:[],table:{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getPastureInforList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},create:{dialogFormVisible:!1,dialogStatus:"",rules:{areaId:[{required:!0,message:"必填",trigger:"blur"}],pastureName:[{required:!0,message:"必填",trigger:"blur"}],companyName:[{required:!0,message:"必填",trigger:"blur"}],pastureNumber:[{required:!0,message:"必填",trigger:"blur"}]},temp:{areaId:"",pastureName:"",pastureNumber:"",longitude:"",latitude:"",note:"",sort:"",center:""}},postDataParam:{},textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.regionList=t.data.getareaList.list,e.regionList.forEach((function(t){e.areaIds[t.id]=t.name}))}))},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(r["e"])(this.table.getdataListParm).then((function(t){e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,t.data.total&&(e.table.total=t.data.total),setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.create.temp.areaId="",this.create.temp.pastureName="",this.create.temp.pastureNumber="",this.create.temp.longitude="",this.create.temp.latitude="",this.create.temp.note="",this.create.temp.sort="",this.create.temp.center=""},form_add:function(){var e=this;this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"insertPasture",type:"e",parammaps:{pastureName:e.create.temp.pastureName,pastureNumber:e.create.temp.pastureNumber,longitude:e.create.temp.longitude,latitude:e.create.temp.latitude,note:e.create.temp.note,center:e.create.temp.center,companyName:e.create.temp.companyName}},e.postDataParam.data[1]={name:"insertPastureDept",type:"e",parammaps:{pastureName:e.create.temp.pastureName,pastureId:"@insertPasture.LastInsertId",areaId:e.create.temp.areaId}},Object(r["c"])(e.postDataParam).then((function(t){console.log("新增保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.get_table_data())})))}))},form_edit:function(e){console.log(e),this.create.temp=Object.assign({},e),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"updatePastureDept",type:"e",parammaps:{name:e.create.temp.pastureName,companyName:e.create.temp.companyName,pastureNumber:e.create.temp.pastureNumber,center:e.create.temp.center,region:e.areaIds[e.create.temp.areaid],longitude:e.create.temp.longitude,latitude:e.create.temp.latitude,note:e.create.temp.note,id:e.create.temp.id,sort:e.create.temp.sort}},e.postDataParam.data[1]={name:"updateDepartment",type:"e",parammaps:{dname:e.create.temp.pastureName,pastureId:e.create.temp.areaid,id:e.create.temp.id}},Object(r["c"])(e.postDataParam).then((function(t){console.log("编辑保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.get_table_data())})))}))},form_see:function(e){this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.temp=Object.assign({},e)}}},m=p,c=(a("ed87"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"0c46":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-btn"},[a("div",{staticClass:"btn-l"},[a("el-button",{staticClass:"filter-item",attrs:{disabled:e.isDisableAdd,type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block","margin-left":"10px"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess,"on-error":e.handleImportExcelErro}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{disabled:e.isDisableImport,type:"warning",icon:"el-icon-upload2"}},[e._v("上传")])],1),e._v(" "),e.isFolderDelate?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{disabled:e.isDisableDelate,type:"danger",icon:"el-icon-delete"},on:{click:e.handleFolderDelate}},[e._v("删除")]):e._e(),e._v(" "),e.isFileDownload?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleFileDownload}},[e._v("下载")]):e._e(),e._v(" "),e.isFileDelate?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.handleFileDelate}},[e._v("删除")]):e._e()],1),e._v(" "),e.isFilter1?a("div",{staticClass:"btn-r"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"文件名称"},model:{value:e.getdataListAllParm.parammaps.docname,callback:function(t){e.$set(e.getdataListAllParm.parammaps,"docname",t)},expression:"getdataListAllParm.parammaps.docname"}}),e._v(" "),e.isFilter1?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]):e._e()],1):e._e(),e._v(" "),e.isFilter2?a("div",{staticClass:"btn-r"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"文件名称"},model:{value:e.getdataListParmDetail.parammaps.docname,callback:function(t){e.$set(e.getdataListParmDetail.parammaps,"docname",t)},expression:"getdataListParmDetail.parammaps.docname"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")])],1):e._e()]),e._v(" "),e.fileList?a("div",{staticClass:"app-list"},e._l(e.list,(function(t,s){return a("div",{key:s,staticClass:"contentCard",attrs:{"body-style":{padding:"5px"}}},[a("div",{staticClass:"contentCard-img"},[a("svg-icon",{staticClass:"contentCard-icon",attrs:{"icon-class":"file1"},on:{click:function(a){return e.handlFile(t)}}}),e._v(" "),a("el-checkbox",{staticClass:"contentCard-checkbox",attrs:{name:"type"},model:{value:t.checkeds,callback:function(a){e.$set(t,"checkeds",a)},expression:"item.checkeds"}})],1),e._v(" "),a("div",{staticClass:"contentCard-title"},[t.isDirectName?a("span",{staticClass:"contentCard-title-name",on:{click:function(a){return e.form_edit(t)}}},[e._v(e._s(t.direct))]):e._e(),e._v(" "),t.isDirectInput?a("input",{directives:[{name:"model",rawName:"v-model",value:t.direct,expression:"item.direct"}],staticClass:"contentCard-title-input",attrs:{id:"direct",type:"text"},domProps:{value:t.direct},on:{blur:function(a){return e.blurName(t)},input:function(a){a.target.composing||e.$set(t,"direct",a.target.value)}}}):e._e()])])})),0):e._e(),e._v(" "),e.detailList?a("div",{staticClass:"app-detailList"},[a("div",{staticClass:"title"},[a("a",{staticClass:"all-file",on:{click:e.goBack}},[e._v("全部文件")]),e._v(" "),a("span",[e._v(">"+e._s(e.temp.direct))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDetail,expression:"listLoadingDetail"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDetail,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDetail-1)*e.pageSizeDetail+1))])]}}],null,!1,1645367981)}),e._v(" "),a("el-table-column",{attrs:{label:"文档名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.docname))])]}}],null,!1,4263726761)}),e._v(" "),a("el-table-column",{attrs:{label:"文件大小",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fileSize))])]}}],null,!1,745363813)}),e._v(" "),a("el-table-column",{attrs:{label:"上传时间","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dtime))])]}}],null,!1,2651456663)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDownloadRow(s)}}},[e._v("下载")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelateRow(s)}}},[e._v("删除")])]}}],null,!1,896426133)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDetail>0,expression:"totalDetail>0"}],attrs:{total:e.totalDetail,page:e.getdataListParmDetail.offset,limit:e.getdataListParmDetail.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmDetail,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmDetail,"pagecount",t)},pagination:e.get_table_dataDetail}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-content"},[a("el-form",{ref:"createTemp",staticStyle:{width:"50%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"文件名称:",prop:"direct"}},[a("el-input",{ref:"direct",attrs:{placeholder:"请输入文件名称"},model:{value:e.createTemp.direct,callback:function(t){e.$set(e.createTemp,"direct",t)},expression:"createTemp.direct"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=a("2934"),n=a("5f87"),l=a("6724"),o=a("333d"),p=a("bc3a"),m=a.n(p),c=a("5c96"),d={name:"File",components:{Pagination:o["a"]},directives:{waves:l["a"]},data:function(){return{isDisableAdd:!1,isDisableImport:!0,isDisableDelate:!1,isokDisable:!1,isDirectName:!0,isDirectInput:!1,isFilter1:!0,isFilter2:!1,rules:{direct:[{required:!0,message:"必填",trigger:"blur"}]},checkeds:[],getdataListParm:{name:"getDirectorylist",parammaps:{}},list:[],total:0,pageNum:"",pageSize:"",listLoading:!0,textMap:{create:"新增"},dialogFormVisible:!1,dialogStatus:"",createTemp:{direct:""},requestParam:{},fileList:!0,detailList:!1,listDetail:[],listLoadingDetail:!1,totalDetail:0,getdataListParmDetail:{name:"getFilelist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:"",docname:""}},getdataListAllParm:{name:"searchFileList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{docname:""}},temp:{},postDataPramas:{},isFolderDelate:!0,isFileDownload:!1,isFileDelate:!1,selectionList:[]}},computed:{headers:function(){return{optname:"insertcustomdoc",id:1,token:Object(n["a"])()}},uploadData:function(){return{}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/upload/"+this.temp.id+"/"+this.temp.direct}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(console.log("list数据",t.data.list),t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)"false"==t.data.list[a].checkeds&&(t.data.list[a].checkeds=!1,t.data.list[a].isDirectName=!0,t.data.list[a].isDirectInput=!1);e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){var e=this;this.fileList=!1,this.detailList=!0,console.log("点击了全局搜索"),this.listLoadingDetail=!0,this.getdataListAllParm.offset=1,Object(r["e"])(this.getdataListAllParm).then((function(t){console.log("list数据",t.data.list),e.listDetail=t.data.list,e.pageNumDetail=t.data.pageNum,e.pageSizeDetail=t.data.pageSize,t.data.total&&(e.totalDetail=t.data.total),setTimeout((function(){e.listLoadingDetail=!1}),100)}))},form_search2:function(){console.log("点击了局部搜索"),this.getdataListParmDetail.offset=1,this.get_table_dataDetail()},resetCreateTemp:function(){this.createTemp.direct=""},form_add:function(){this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertDirectory",e.requestParam.parammaps={},e.requestParam.parammaps.direct=e.createTemp.direct,Object(r["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击标题得到数据",e);for(var t=0;t<this.list.length;t++)this.list[t].id===e.id&&(this.list[t].isDirectName=!1,this.list[t].isDirectInput=!0);this.$nextTick((function(){document.getElementById("direct").focus()}))},blurName:function(e){var t=this;console.log("失去焦点得到的值",e),e.isDirectName=!0,e.isDirectInput=!1,this.requestParam.name="updateDirectory",this.requestParam.parammaps={},this.requestParam.parammaps.id=e.id,this.requestParam.parammaps.direct=e.direct,Object(r["k"])(this.requestParam).then((function(e){console.log("修改保存发送参数",t.requestParam),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(e,t.$notify)}))},handlFile:function(e){this.isFolderDelate=!1,this.isFileDownload=!0,this.isFileDelate=!0,console.log("点击了文件",e),this.temp=e,this.fileList=!1,this.detailList=!0,this.isDisableAdd=!0,this.isDisableImport=!1,this.isFilter1=!1,this.isFilter2=!0,this.getdataListParmDetail.parammaps.id=e.id,this.get_table_dataDetail()},get_table_dataDetail:function(){var e=this;this.listLoadingDetail=!0,Object(r["e"])(this.getdataListParmDetail).then((function(t){console.log("list数据",t.data.list),console.log(t.data.pageNum,t.data.pageSize),null!==t.data.list||null!==t.data?(e.listDetail=t.data.list,e.pageNumDetail=t.data.pageNum,e.pageSizeDetail=t.data.pageSize,t.data.total&&(e.totalDetail=t.data.total)):e.listDetail=[],setTimeout((function(){e.listLoadingDetail=!1}),100)}))},goBack:function(){this.fileList=!0,this.detailList=!1,this.isDisableAdd=!1,this.isDisableImport=!0,this.isFilter1=!0,this.isFilter2=!1,this.isFolderDelate=!0,this.isFileDownload=!1,this.isFileDelate=!1},handleFolderDelate:function(){var e=this;if(this.list.length>0){this.checkeds=[];for(var t=0;t<this.list.length;t++)1==this.list[t].checkeds&&this.checkeds.push({id:this.list[t].id});console.log(this.checkeds),this.checkeds.length>0?c["MessageBox"].confirm("确认删除以下选中文件?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.checkeds}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"deleteDirectory",type:"e",parammaps:{id:"@insertSpotList.id"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("删除保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})})):this.$message({type:"warning",message:"请选择要删出的文件夹"})}else this.$message({type:"warning",message:"无文件要删除"})},beforeImportExcel:function(e){var t=e.size/1024/1024<100;return t||this.$message.error("上传文件大小不能超过 100MB!"),t},handleImportExcelSuccess:function(e,t){e.execresult.RowsAffected>0?(this.$message({title:"成功",message:"上传成功",type:"success",duration:2e3}),this.get_table_dataDetail()):this.$notify({title:"失败",message:"上传失败或文件名重复",type:"danger",duration:2e3})},handleImportExcelErro:function(e,t,a){console.log(e.message),this.$message.error(e.message)},handleDownloadFolder:function(){console.log("点击了文件夹下载-接口待对",this.checkeds),this.checkeds=[];for(var e=0;e<this.list.length;e++)1==this.list[e].checkeds&&(console.log(this.list[e]),this.checkeds.push(this.list[e].id));console.log(this.checkeds),this.checkeds.length>0||console.log("请选择文件夹")},handleFileDownload:function(){var e=this;if(this.listDetail.length>0)if(this.selectionList.length>0){console.log(this.selectionList);for(var t=function(t){var a="http://127.0.0.1:8082/authdata/downloadfile/"+e.selectionList[t].id;m.a.get(a,{headers:{token:Object(n["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(a){if(a){var s=new Blob([a.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(s),r=document.createElement("a");r.style.display="none",r.href=i;var n=e.selectionList[t].docname;r.setAttribute("download",n),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i)}})).catch((function(t){e.$message.error(t)}))},a=0;a<this.selectionList.length;a++)t(a)}else this.$message({type:"warning",message:"请选择要下载的文件"});else this.$message({type:"warning",message:"无文件要下载"})},handleFileDelate:function(){var e=this;this.listDetail.length>0?this.selectionList.length>0?(console.log(this.selectionList),c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t<e.selectionList.length;t++){var a="http://127.0.0.1:8082/authdata/removefile/"+e.selectionList[t].id,s=Object(n["a"])();m.a.defaults.headers.common["Authorization"]=s,m.a.defaults.headers.common["token"]=s,m.a.post(a,{}).then((function(t){console.log(t),"ok"==t.data.msg?(e.$message({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.get_table_dataDetail()):e.$notify({title:"失败",message:"删除失败",type:"danger",duration:2e3})})).catch((function(t){e.$message.error(t)}))}}))):this.$message({type:"warning",message:"请选择要下载的文件"}):this.$message({type:"warning",message:"无文件要下载"})},handleDownloadRow:function(e){var t=this;console.log("行内下载");var a="http://127.0.0.1:8082/authdata/downloadfile/"+e.id;m.a.get(a,{headers:{token:Object(n["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),s=window.URL.createObjectURL(a),i=document.createElement("a");i.style.display="none",i.href=s,console.log(e.docname);var r=e.docname;i.setAttribute("download",r),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(s)}})).catch((function(e){t.$message.error(e)}))},handleDelateRow:function(e){var t=this,a="http://127.0.0.1:8082/authdata/removefile/"+e.id,s=Object(n["a"])();m.a.defaults.headers.common["Authorization"]=s,m.a.defaults.headers.common["token"]=s,m.a.post(a,{}).then((function(e){console.log(e),"ok"==e.data.msg?(t.$message({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.get_table_dataDetail()):t.$notify({title:"失败",message:"删除失败",type:"danger",duration:2e3})})).catch((function(e){t.$message.error(e)}))},handleSelectionChange:function(e){console.log(e),this.selectionList=e}}},u=d,h=(a("4a2c"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"88dde536",null);t["default"]=g.exports},"0c5a":function(e,t,a){"use strict";a("d310")},"0c69":function(e,t,a){},"0cf7":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("4c19");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},contrastData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{contrastData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.contrastData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lastData,a=e.thisData,s=e.text,i=(e.thisMinData,e.days);this.chart.setOption({title:{text:s+"月用水量同期对比",subtext:""},tooltip:{trigger:"axis"},legend:{data:["去年同期","今年日用量"],orient:"vertical"},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},dataView:{readOnly:!1},magicType:{type:["line","bar"]},restore:{},saveAsImage:{}}},xAxis:{type:"category",name:"日期",boundaryGap:!1,data:i},yAxis:{type:"value",name:"m³",axisLabel:{formatter:"{value}"}},grid:[{top:"25%",left:"15%",bottom:"5%"}],series:[{name:"去年同期",type:"line",data:t,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"}]}},{name:"今年日用量",type:"line",data:a,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"},[{symbol:"none",x:"90%",yAxis:"max"},{symbol:"circle",label:{normal:{position:"start",formatter:"最大值"}},type:"max",name:"最高点"}]]}}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"0d8c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件入库",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"入库单号"},model:{value:e.getdataListParm.parammaps.laidCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"laidCode",t)},expression:"getdataListParm.parammaps.laidCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"入库方式"},model:{value:e.getdataListParm.parammaps.laidType,callback:function(t){e.$set(e.getdataListParm.parammaps,"laidType",t)},expression:"getdataListParm.parammaps.laidType"}},e._l(e.laidTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"SAP上传状态"},model:{value:e.getdataListParm.parammaps.sapStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"sapStatus",t)},expression:"getdataListParm.parammaps.sapStatus"}},e._l(e.easStatus.sapStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isStorageAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isStorageTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isStorageImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")]):e._e()],1),e._v(" "),e.isStorageExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),e.isStorageExportEAS?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-upload2"},on:{click:e.handleDownloadEas1}},[e._v("导出EAS")]):e._e(),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e(),e._v(" "),e.isStorageSap?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laidCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件种类数",sortable:"",prop:"partKind",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partKind))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库方式",align:"center","min-width":"110px",formatter:e.laidType}}),e._v(">\n "),a("el-table-column",{attrs:{label:"录入人","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库日期",sortable:"",prop:"creatTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ProofCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ProofCode?a("span",[e._v("已上传")]):a("span",[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sterilisation",label:"冲销状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.sterilisation?a("span",[e._v("已冲销")]):a("span",[e._v("未冲销")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isStorageSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isStorageDelete&&2!==s.laidType?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"入库记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"入库单号"},model:{value:e.getdataListParm2.parammaps.laidCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"laidCode",t)},expression:"getdataListParm2.parammaps.laidCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laidCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"storageAmount",label:"入库数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageAmount))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库日期",sortable:"",prop:"creatTime","min-width":"120px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"storage",staticStyle:{width:"90%",margin:"0 auto"},attrs:{model:e.storage,rules:e.rules,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库单号:",prop:"laidCode"}},[a("el-input",{ref:"laidCode",attrs:{disabled:""},model:{value:e.storage.laidCode,callback:function(t){e.$set(e.storage,"laidCode",t)},expression:"storage.laidCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},model:{value:e.storage.pastureId,callback:function(t){e.$set(e.storage,"pastureId",t)},expression:"storage.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.storage.employeId,callback:function(t){e.$set(e.storage,"employeId",t)},expression:"storage.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库方式:",prop:"laidType"}},[a("el-radio-group",{on:{change:e.changeStorageType},model:{value:e.storage.laidType,callback:function(t){e.$set(e.storage,"laidType",t)},expression:"storage.laidType"}},[e.isStorageMethod1?a("el-radio",{attrs:{label:0,disabled:"update"===e.dialogStatus},model:{value:e.storage.laidType,callback:function(t){e.$set(e.storage,"laidType",t)},expression:"storage.laidType"}},[e._v("采购入库")]):e._e(),e._v(" "),e.isStorageMethod2?a("el-radio",{attrs:{label:1,disabled:"update"===e.dialogStatus},model:{value:e.storage.laidType,callback:function(t){e.$set(e.storage,"laidType",t)},expression:"storage.laidType"}},[e._v("手动入库")]):e._e(),e._v(" "),e.isStorageMethod3?a("el-radio",{attrs:{label:2,disabled:"update"===e.dialogStatus},model:{value:e.storage.laidType,callback:function(t){e.$set(e.storage,"laidType",t)},expression:"storage.laidType"}},[e._v("调拨入库")]):e._e()],1)],1)],1),e._v(" "),e.isProvider?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商",disabled:"update"===e.dialogStatus},on:{change:e.changeProvider},model:{value:e.storage.providerId,callback:function(t){e.$set(e.storage,"providerId",t)},expression:"storage.providerId"}},e._l(e.findAllProvider,(function(t){return a("el-option",{key:t.id,attrs:{clearable:"",label:t.name,value:t.id,disabled:"update"===e.dialogStatus}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库日期:",prop:"storageTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"入库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.storage.storageTime,callback:function(t){e.$set(e.storage,"storageTime",t)},expression:"storage.storageTime"}})],1)],1)],1),e._v(" "),e.No1?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("el-autocomplete",{ref:"buyeCode",staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.buyeCodeSearch,placeholder:"请输入采购单号"},on:{select:e.handleSelectBuyeCode},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(s.buyeCode))])]}}],null,!1,3437052226),model:{value:e.storage.buyeCode,callback:function(t){e.$set(e.storage,"buyeCode",t)},expression:"storage.buyeCode"}})],1)],1)],1):e._e(),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1):e._e(),e._v(" "),e.No3?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.allocationSearch,placeholder:"请输入调拨单号"},on:{select:e.handleSelectAllocation},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("调拨单号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.applyCode))]),e._v(" \n |  "),a("b",[e._v("调出牧场:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.pastureName))])]}}],null,!1,1201093909),model:{value:e.storage.applyCode,callback:function(t){e.$set(e.storage,"applyCode",t)},expression:"storage.applyCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right","margin-top":"10px","margin-left":"10px"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),"0"==e.storage.laidType?a("el-button",{staticStyle:{float:"right"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleEmptySpareParts()}}},[e._v("删除空备件")]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),e.isWarehoseCodeAllo?a("el-table-column",{key:6,attrs:{label:"供应商",prop:"brand",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}):e._e(),e._v(" "),a("el-table-column",{key:7,attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.isWarehoseCode?a("el-table-column",{key:8,attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchWarehoseCode,"value-key":"warehoseCode",placeholder:"库位"},on:{select:function(a){e.handleSelectWarehoseCode(a,t.row)},blur:function(a){e.blurWarehoseCode(a,t.row)}},model:{value:t.row.warehoseCode,callback:function(a){e.$set(t.row,"warehoseCode",a)},expression:"scope.row.warehoseCode"}})]}}],null,!1,2175160199)}):e._e(),e._v(" "),e.isWarehoseCodeAllo?a("el-table-column",{key:9,attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchWarehoseCodeAllo,"value-key":"warehoseCode",placeholder:"库位"},on:{select:function(a){e.handleSelectWarehoseCodeAllo(a,t.row)},blur:function(a){e.blurWarehoseCodeAllo(a,t.row)}},model:{value:t.row.warehoseCode,callback:function(a){e.$set(t.row,"warehoseCode",a)},expression:"scope.row.warehoseCode"}})]}}],null,!1,544092681)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:10,attrs:{label:"采购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:11,attrs:{label:"已入库数量",prop:"receiveAmount",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}],null,!1,809119489)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:12,attrs:{valign:"middle",label:"本次入库数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"reportery"}},[a("el-input",{ref:"reportery1",staticStyle:{"margin-top":"15px"},on:{blur:e.blurReportery},model:{value:t.row.reportery,callback:function(a){e.$set(t.row,"reportery",a)},expression:"scope.row.reportery"}})],1)],1)]}}],null,!1,2004583671)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:13,attrs:{label:"本次入库数量",valign:"middle","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"reportery"}},[a("el-input",{ref:"reportery",staticStyle:{"margin-top":"15px"},on:{blur:e.blurReportery},model:{value:t.row.reportery,callback:function(a){e.$set(t.row,"reportery",a)},expression:"scope.row.reportery"}})],1)],1)]}}],null,!1,2124252646)}):e._e(),e._v(" "),e.No3?a("el-table-column",{key:14,ref:"price",attrs:{valign:"middle",label:"调拨数量",prop:"price",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.No3?a("el-table-column",{key:15,ref:"price",attrs:{valign:"middle",label:"入库数量",prop:"price",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),a("el-table-column",{key:16,attrs:{label:"单价",prop:"price",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),e.isSumPrice?a("el-table-column",{key:17,ref:"sumPrice",attrs:{label:"总价",prop:"sumPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.sumPrice=t.row.price*parseFloat(t.row.reportery))))])]}}],null,!1,3587975847)}):e._e(),e._v(" "),e.No3?a("el-table-column",{key:18,ref:"sumPrice",attrs:{label:"总价",prop:"sumPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}):e._e(),e._v(" "),e.isDel?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)}):e._e()],1),e._v(" "),a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库单号:",prop:"laidCode"}},[a("el-input",{ref:"laidCode",attrs:{disabled:""},model:{value:e.seeTemp.laidCode,callback:function(t){e.$set(e.seeTemp,"laidCode",t)},expression:"seeTemp.laidCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"employeId"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库方式:",prop:"laidType"}},[a("el-radio-group",{model:{value:e.seeTemp.laidType,callback:function(t){e.$set(e.seeTemp,"laidType",t)},expression:"seeTemp.laidType"}},[a("el-radio",{attrs:{label:0,disabled:""},model:{value:e.seeTemp.laidType,callback:function(t){e.$set(e.seeTemp,"laidType",t)},expression:"seeTemp.laidType"}},[e._v("采购入库")]),e._v(" "),a("el-radio",{attrs:{label:1,disabled:""},model:{value:e.seeTemp.laidType,callback:function(t){e.$set(e.seeTemp,"laidType",t)},expression:"seeTemp.laidType"}},[e._v("手动入库")]),e._v(" "),a("el-radio",{attrs:{label:2,disabled:""},model:{value:e.seeTemp.laidType,callback:function(t){e.$set(e.seeTemp,"laidType",t)},expression:"seeTemp.laidType"}},[e._v("调拨入库")])],1)],1)],1),e._v(" "),e.isProvider?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库日期:",prop:"seeTemp"}},[a("el-input",{ref:"storageTime",attrs:{disabled:""},model:{value:e.seeTemp.creatTime,callback:function(t){e.$set(e.seeTemp,"creatTime",t)},expression:"seeTemp.creatTime"}})],1)],1)],1),e._v(" "),a("el-row",[e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"purchaseId"}},[a("el-input",{ref:"purchaseId",attrs:{disabled:""},model:{value:e.seeTemp.purchaseId,callback:function(t){e.$set(e.seeTemp,"purchaseId",t)},expression:"seeTemp.purchaseId"}})],1)],1):e._e()],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"80px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),e.isWarehoseCodeAllo?a("el-table-column",{attrs:{label:"供应商",prop:"brandName",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),e.No1?a("el-table-column",{attrs:{sortable:"",prop:"buyAmount",label:"采购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyAmount))])]}}],null,!1,2524596740)}):e._e(),e._v(" "),e.No1?a("el-table-column",{attrs:{sortable:"",label:"已入库数量",prop:"receivedAmount",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receivedAmount))])]}}],null,!1,761254309)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:5,attrs:{sortable:"",prop:"storageAmount",label:"本次入库数量","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageAmount))])]}}],null,!1,1263821043)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:6,attrs:{sortable:"",prop:"storageAmount",label:"本次入库数量","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageAmount))])]}}],null,!1,1263821043)}):e._e(),e._v(" "),e.No3?a("el-table-column",{key:7,ref:"price",attrs:{sortable:"",prop:"storageAmount",valign:"middle",label:"调拨数量",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageAmount))])]}}],null,!1,1263821043)}):e._e(),e._v(" "),e.No3?a("el-table-column",{key:8,ref:"price",attrs:{sortable:"",prop:"storageAmount",valign:"middle",label:"入库数量",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageAmount))])]}}],null,!1,1263821043)}):e._e(),e._v(" "),a("el-table-column",{key:9,attrs:{sortable:"",label:"单价",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{key:10,attrs:{sortable:"",label:"总价",prop:"sumPrice",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{key:11,attrs:{prop:"dflag",label:"冲销状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.dflag?a("span",[e._v("已冲销")]):a("span",[e._v("未冲销")])]}}])})],1),e._v(" "),a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"-25px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号","min-width":"110px",align:"center",prop:"laidCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center",prop:"providerName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u={name:"Storage",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(3)}},data:function(){return{isSap:1,isSrm:1,selectList:[],currentRow:{},orderAAA:{},temp:{},isStorageSap:[],isStorageAdd:[],isStorageTemplate:[],isStorageImport:[],isStorageExport:[],isStorageExportEAS:[],isStorageSee:[],isStorageDelete:[],isStorageMethod1:[],isStorageMethod2:[],isStorageMethod3:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],rules:{providerId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},laidTypes:[{id:"0",name:"采购入库"},{id:"1",name:"手动入库"},{id:"2",name:"调拨入库"}],findAllProvider:[],findAllProvider2:[],findAllPasture:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProviderByCt",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"findAllProvider",offset:0,pagecount:0,params:[]}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogFormVisible:!1,dialogFormVisible_See:!1,dialogStatus:"",textMap:{see:"查看详情",update:"编辑",create:"新增",easStatus:"EAS同步—同步失败数据"},No1:!0,No2:!1,No3:!1,isProvider:!0,isDel:!0,isWarehoseCode:!0,isWarehoseCodeAllo:!1,isSumPrice:!0,requestAllocation:{name:"getTransferCodeRK",returntype:"Map",parammaps:{applyCode:"",pastureId:this.$store.state.user.pastureid}},getAllocationListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},disabled:!1,isokDisable:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getBigStockLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{laidNumber:"",inputDatetime:"",pastureName:c.a.get("pasturename"),easStatus:"",sapStatus:""}},activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartlaideDetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",laidCode:"",stopTime:"",startTime:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename")}},requestParam:{name:"downloadPartlaideList",parammaps:{pastureName:c.a.get("pasturename"),inputDatetime:""}},downList:[],listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartLaidListBybig",returntype:"Map",parammaps:{}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"RK"}},storage:{inCount:0,oldVal:0,laidType:0,providerId:"",storageTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid},TotalAmount:0,orderPart:{},requestSparePart:{name:"getPartListByProvider",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:this.$store.state.user.pastureid}},orderCode:{},requestBuyeCode:{name:"getBuyeCode",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getBuyDetailListParm:{name:"getBuydetailByBig",returntype:"Map",parammaps:{}},requeststoreHouse:{name:"getWarehouseListByProvider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},requeststoreHouseAllo:{name:"getWarehouselistDB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),warehoseCode:""}},warehoseCodeList:[],listAdd:[],isPrice:!0,isPriceInput:!1,postDataPramas:{},rowUpdateData:{},buttons:[],isPercentage:!1,percentage:1,easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],sapStatusList:[{name:"所有",id:"0"},{name:"已上传",id:"1"},{name:"未上传",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartlaidSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}}}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importStockLaid",importParams:"牧场,入库单编号,入库日期,物料编码,品名,规格型号,品牌,计量单位,数量,单价,总价,库位,供应商",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.reportery)>parseInt(e.amount)-parseInt(e.receiveAmount)&&(e.reportery=parseInt(e.amount)-parseInt(e.receiveAmount))}))}}},created:function(){this.get_select_list(),this.get_table_data(),this.get_table_data2();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.list2):"first"==this.activeName&&Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:storage:sap",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isStorageSap=t;var a="customs:storage:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isStorageAdd=s;var i="customs:storage:template",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isStorageTemplate=n;var l="customs:storage:import",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isStorageImport=o;var p="customs:storage:export",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isStorageExport=m;var c="customs:storage:exportEAS",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isStorageExportEAS=d;var u="customs:storage:see",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isStorageSee=h;var g="customs:storage:delete",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isStorageDelete=f;var b="customs:storage:method1",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isStorageMethod1=v;var y="customs:storage:method2",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isStorageMethod2=_;var w="customs:storage:method3",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isStorageMethod3=S;var P="customs:storage:easSynchronization",x=Object(r["v"])(this.$store.state.user.buttons,P);this.isEasSynchronization=x;var T="customs:storage:manualSynchronization",k=Object(r["v"])(this.$store.state.user.buttons,T);this.isManualSynchronization=k;var C="customs:storage:closeSynchronization",L=Object(r["v"])(this.$store.state.user.buttons,C);this.isCloseSynchronization=L;var N="customs:storage:ignoreSynchronization",D=Object(r["v"])(this.$store.state.user.buttons,N);this.isIgnoreSynchronization=D},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){console.log("下拉框数据",t.data),e.findAllProvider=t.data.findAllProviderByCt.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.findAllProvider2=t.data.findAllProvider.list}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){console.log("table数据",t.data.list),e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},laidType:function(e){return 0===e.laidType?"采购入库":1===e.laidType?"手动入库":2===e.laidType?"调拨入库":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},form_see:function(e){this.seeTemp=Object.assign({},e),this.TotalAmount=0,console.log("查看上方数据(从table读取)",this.seeTemp),this.dialogStatus="see",this.dialogFormVisible_See=!0,0===this.seeTemp.laidType?(this.No1=!0,this.No2=!1,this.No3=!1,this.isProvider=!0,this.isWarehoseCode=!0,this.isSumPrice=!0,this.isWarehoseCodeAllo=!1,this.isDel=!0):1===this.seeTemp.laidType?(this.No1=!1,this.No2=!0,this.No3=!1,this.isProvider=!0,this.isWarehoseCode=!0,this.isSumPrice=!0,this.isWarehoseCodeAllo=!1,this.isDel=!0):2===this.seeTemp.laidType&&(this.No1=!1,this.No2=!1,this.No3=!0,this.isProvider=!1,this.isWarehoseCode=!1,this.isWarehoseCodeAllo=!0,this.isSumPrice=!1,this.isDel=!1),this.getdataListSee.parammaps.id=e.id,this.getSeeList()},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCreateTemp:function(){this.listAdd=[],this.storage.inCount=0,this.storage.storageTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.storage.providerId="",this.storage.employeId=this.$store.state.user.employeid,this.storage.departmentId=this.$store.state.user.departmentid,this.storage.pastureId=this.$store.state.user.pastureid,this.storage.laidCode="",this.TotalAmount=0},form_add:function(){var e=this;this.resetCreateTemp(),this.storage.laidCode="",this.dialogStatus="create",this.dialogFormVisible=!0,this.storage.pastureId=this.$store.state.user.pastureid,this.storage.employeId=this.$store.state.user.employeid,console.log(this.storage),this.$nextTick((function(){e.$refs["temp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("入库单号",t.data.list[0].orderCode),e.storage.laidCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeProvider:function(e){console.log(e),this.storage.providerId=e,this.TotalAmount=0,console.log(this.findAllProvider.find((function(t){return t.id===e})).flexPrice),this.$set(this.storage,"flexPrice",this.findAllProvider.find((function(t){return t.id===e})).flexPrice),1===parseInt(this.findAllProvider.find((function(t){return t.id===e})).flexPrice)?(this.isPriceInput=!0,this.isPrice=!1):(this.isPriceInput=!1,this.isPrice=!0),this.listAdd=[]},buyeCodeSearch:function(e,t){var a=this;console.log("采购单号模糊查询输入值",e),console.log(this.$refs["providerId"]),""!==this.storage.providerId?(this.requestBuyeCode.parammaps["buyeCode"]=e,this.requestBuyeCode.parammaps["providerId"]=this.storage.providerId,Object(r["e"])(this.requestBuyeCode).then((function(e){console.log("采购单号模糊查询搜索data",e.data.list),null===e.data.list?a.buyeCodeList=[]:a.buyeCodeList=e.data.list,t(e.data.list)}))):this.$notify({title:"",message:"请选择供应商",type:"warning",duration:2e3})},handleSelectBuyeCode:function(e){console.log("采购单号模糊查询选中值",e),this.TotalAmount=0,this.storage.orderCode=e.buyeCode,this.storage.orderCodeId=e.id,this.getBuyDetailListParm.parammaps.id=e.id,this.getBuyDetailListParm.parammaps.pastureId=c.a.get("pastureid"),this.getBuyDetailList()},getBuyDetailList:function(){var e=this;Object(r["e"])(this.getBuyDetailListParm).then((function(t){if(console.log("采购入库table-data",t.data.list),e.listAdd=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.$set(e.listAdd[a],"warehoseCode",t.data.list[a].warehoseCode),e.$set(e.listAdd[a],"locationId",t.data.list[a].warehoseCodeId),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="");e.$forceUpdate()})),this.$forceUpdate()},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),console.log(this.$refs["providerId"]),""!==this.storage.providerId?(this.requestSparePart.parammaps["partCode"]=e,this.requestSparePart.parammaps["providerId"]=this.storage.providerId,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null!==e.data.list?t(e.data.list):t([])}))):this.$notify({title:"",message:"请选择供应商",type:"warning",duration:2e3})},allocationSearch:function(e,t){console.log(e),this.requestAllocation.parammaps.applyCode=e,Object(r["e"])(this.requestAllocation).then((function(e){console.log("调拨单号模糊查询搜索data",e.data.list),null!==e.data.list?t(e.data.list):t([])}))},handleSelectAllocation:function(e){console.log("调拨单号模糊查询选中值",e),this.storage.id=e.id,this.getAllocationListParm.parammaps.id=e.id,this.getAllocationList()},getAllocationList:function(){var e=this;Object(r["e"])(this.getAllocationListParm).then((function(t){if(console.log("调拨单号table-data",t.data.list),e.listAdd=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),e.$set(e.listAdd[a],"warehoseCode",""),e.$set(e.listAdd[a],"contractId","-"+t.data.list[a].pastureId+e.listAdd[a].partId),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}e.$forceUpdate()}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"locationId",e.warehoseCodeId),this.$set(e,"warehoseCode",e.warehoseCode),this.listAdd.unshift(e))},querySearchWarehoseCode:function(e,t){var a=this;console.log("库位模糊查询输入值",e),this.requeststoreHouse.parammaps["warehoseCode"]=e,this.requeststoreHouse.parammaps.providerId=this.storage.providerId,Object(r["e"])(this.requeststoreHouse).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.warehoseCodeList=e.data.list,t(a.warehoseCodeList)})),this.$forceUpdate()},handleSelectWarehoseCode:function(e,t){console.log("库位模糊查询选中值",e),console.log("库位模糊查询选中值所在行",t),this.$set(t,"locationId",e.id),this.$set(t,"warehoseCode",e.warehoseCode),this.$forceUpdate()},blurWarehoseCode:function(e,t){console.log(e,t),t.warehoseCode="",t.locationId=""},querySearchWarehoseCodeAllo:function(e,t){var a=this;console.log("库位模糊查询输入值",e),this.requeststoreHouseAllo.parammaps["warehoseCode"]=e,Object(r["e"])(this.requeststoreHouseAllo).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.warehoseCodeList=e.data.list,t(a.warehoseCodeList)})),this.$forceUpdate()},handleSelectWarehoseCodeAllo:function(e,t){console.log("库位模糊查询选中值",e),console.log("库位模糊查询选中值所在行",t),this.$set(t,"locationId",e.id),this.$set(t,"warehoseCode",e.warehoseCode),this.$forceUpdate()},blurWarehoseCodeAllo:function(e,t){console.log(e,t),t.warehoseCode="",t.locationId=""},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0,console.log(e.id);for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1);t.TotalAmount+=parseFloat(t.listAdd[a].sumPrice)}t.TotalAmount=t.TotalAmount.toFixed(2)}))},blurReportery:function(){console.log(this.listAdd),this.TotalAmount=0;for(var e=0;e<this.listAdd.length;e++)console.log(this.listAdd[e].sumPrice),void 0!==this.listAdd[e].reportery&&"undefined"!==this.listAdd[e].reportery&&(this.TotalAmount+=parseFloat(this.listAdd[e].sumPrice));this.TotalAmount=this.TotalAmount.toFixed(2)},handleEmptySpareParts:function(){var e=this;if(this.listAdd.length>0){for(var t=[],a=0;a<this.listAdd.length;a++)void 0!=this.listAdd[a].reportery&&null!=this.listAdd[a].reportery&&""!=this.listAdd[a].reportery||t.push(this.listAdd[a].id);if(0==t.length)return this.$message({type:"warning",message:"当前无备件需要清空",duration:2e3}),!1;p["MessageBox"].confirm("是否清空入库数量为空备件?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){if(t.length>0){for(var a=0;a<e.listAdd.length;a++)for(var s=0;s<t.length;s++)e.listAdd[a].id==t[s]&&e.listAdd.splice(a,1);e.$notify({title:"成功",message:"清空成功",type:"success",duration:2e3})}})).catch((function(){e.$message({type:"info",message:"已取消"})}))}else this.$message({type:"warning",message:"当前无备件需要清空",duration:2e3})},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["storage"].validate((function(t){t&&(""==e.storage.laidCode||null==e.storage.laidCode||void 0==e.storage.laidCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("入库单号",t.data.list[0].orderCode),e.storage.laidCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0===this.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;if(0===this.storage.laidType){for(var t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].locationId||""==this.listAdd[t].locationId||null==this.listAdd[t].reportery||""===this.listAdd[t].reportery||null==this.listAdd[t].price||""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查库位及本次入库数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,s=parseFloat(this.listAdd[t].amount)-parseFloat(this.listAdd[t].receiveAmount);if(!a.test(this.listAdd[t].reportery))return this.$message({type:"error",message:"本次入库请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].reportery)>s)return this.$message({type:"error",message:"本次入库数量不可大于未入库数",duration:2e3}),!1}for(var i=0;i<this.listAdd.length;i++)this.listAdd[i].contractId=this.listAdd[i].id,this.listAdd[i].providerId=this.storage.providerId;return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartlaid",type:"e",parammaps:{providerId:this.storage.providerId,pastureId:this.storage.pastureId,storageTime:this.storage.storageTime,laidCode:this.storage.laidCode,empId:this.storage.employeId,No1Id:this.storage.orderCode,laidType:this.storage.laidType,purchaseId:this.storage.orderCode}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartlaid",type:"e",parammaps:{bigId:"@insertBigPartlaid.LastInsertId",buydetailId:"@insertSpotList.bid",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",buyAmount:"@insertSpotList.amount",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",orderNumber:"@insertSpotList.orderNumber",providerId:"@insertSpotList.providerId",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",bigBuyerId:"@insertSpotList.id",receivedAmount:"@insertSpotList.receiveAmount",buyeCode:this.storage.orderCode,reporteryQ:"@insertSpotList.reporteryQ"}},this.postDataPramas.data[1].children[1]={name:"insertPartRepertory",type:"e",parammaps:{reportery:"@insertSpotList.reportery",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brand:"@insertSpotList.brand",brandId:"@insertSpotList.brandId",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",flexPrice:this.storage.flexPrice}},this.postDataPramas.data[1].children[2]={name:"updateBuydetailAmount",type:"e",parammaps:{reportery:"@insertSpotList.reportery",bid:"@insertSpotList.bid"}},this.postDataPramas.data[2]={name:"updateBuydetailAmountZero",type:"e",parammaps:{bigId:this.getBuyDetailListParm.parammaps.id}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}if(1===this.storage.laidType){for(t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].locationId||null==this.listAdd[t].reportery||""===this.listAdd[t].reportery)return this.$message({type:"warning",message:"请检查库位及本次入库数量是否未填写",duration:2e3}),!1;var n=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!n.test(this.listAdd[t].reportery))return this.$message({type:"error",message:"本次入库请输入正数,最多保留两位小数点",duration:2e3}),!1;this.listAdd[t].storageAmount=0,this.listAdd[t].bigBuyerId=0,this.listAdd[t].receiveAmount=0,this.listAdd[t].amount=0,this.listAdd[t].buydetailId=-1,this.listAdd[t].contractId=this.listAdd[t].id,this.listAdd[t].providerId=this.storage.providerId}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartlaid",type:"e",parammaps:{providerId:this.storage.providerId,pastureId:this.storage.pastureId,storageTime:this.storage.storageTime,laidCode:this.storage.laidCode,empId:this.storage.employeId,No1Id:this.storage.orderCode,laidType:this.storage.laidType}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartlaid",type:"e",parammaps:{bigId:"@insertBigPartlaid.LastInsertId",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",buyAmount:0,specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",orderNumber:"@insertSpotList.orderNumber",providerId:"@insertSpotList.providerId",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",bigBuyerId:"@insertSpotList.bigBuyerId",receivedAmount:"@insertSpotList.receiveAmount",buydetailId:-1,reporteryQ:"@insertSpotList.reporteryQ"}},this.postDataPramas.data[1].children[1]={name:"insertPartRepertory",type:"e",parammaps:{reportery:"@insertSpotList.reportery",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brand:"@insertSpotList.brand",brandId:"@insertSpotList.brandId",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",flexPrice:this.storage.flexPrice}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}if(2===this.storage.laidType){for(t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].locationId)return this.$message({type:"warning",message:"请检查库位是否未填写",duration:2e3}),!1;this.listAdd[t].storageAmount=0,this.listAdd[t].bigBuyerId=0,this.listAdd[t].receiveAmount=0,this.listAdd[t].buydetailId=-1,this.listAdd[t].storageAmount=0,this.listAdd[t].reporteryQ=0}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartlaid",type:"e",parammaps:{providerId:this.storage.providerId,pastureId:c.a.get("pastureid"),storageTime:this.storage.storageTime,laidCode:this.storage.laidCode,empId:this.storage.employeId,No1Id:this.storage.orderCode,laidType:this.storage.laidType}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartlaid",type:"e",parammaps:{bigId:"@insertBigPartlaid.LastInsertId",pastureId:c.a.get("pastureid"),locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",buyAmount:0,specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",orderNumber:"@insertSpotList.orderNumber",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.amount",contractId:"@insertSpotList.contractId",bigBuyerId:"@insertSpotList.bigBuyerId",receivedAmount:"@insertSpotList.receiveAmount",buydetailId:-1,reporteryQ:"@insertSpotList.reporteryQ"}},this.postDataPramas.data[1].children[1]={name:"insertPartRepertory",type:"e",parammaps:{reportery:"@insertSpotList.amount",pastureId:c.a.get("pastureid"),locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brand:"@insertSpotList.brand",brandId:"@insertSpotList.brandId",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},this.postDataPramas.data[2]={name:"updateBigPartTransfer",type:"e",parammaps:{id:this.storage.id,statue:1,laidCode:this.storage.laidCode}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}},form_edit:function(e){this.storage=Object.assign({},e),this.defaultCheckedKeys=[this.temp.eqClassId],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["storage"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigPartlaid",type:"v",parammaps:{pastureId:e.storage.providerId,storageTime:e.storage.storageTime,laidCode:e.storage.laidCode,empId:e.storage.employeId,No1Id:e.storage.No1Id,laidType:e.storage.laidType}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPartlaid",type:"e",parammaps:{bigId:"@insertSpotList.bigId",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",orderNumber:"@insertSpotList.orderNumber",providerId:"@insertSpotList.providerId",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.storageAmount",contractId:"@insertSpotList.contractId",bigBuyerId:"@insertSpotList.bigBuyerId",receivedAmount:"@insertSpotList.receivedAmount"}},e.postDataPramas.data[1].children[2]={name:"insertPartRepertory",type:"e",parammaps:{reportery:"@insertSpotList.reportery",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brand:"@insertSpotList.brand",brandId:"@insertSpotList.brandId",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){if(e.ProofCode)return 0;var a=new Date(e.creatTime),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["m"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})})),console.log(e.isSap)):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},handleDelate:function(e){var t=this;console.log("点击了删除"),this.seeTemp=Object.assign({},e),this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList(),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"updatePartRepertoryDel",type:"e",parammaps:{id:"@insertSpotList.id",contractId:"@insertSpotList.contractId",partCode:"@insertSpotList.partCode",pastureId:e.pastureId}},t.postDataPramas.data[0].children[1]={name:"deletePartLaid",type:"e",parammaps:{id:"@insertSpotList.id"}},t.postDataPramas.data[0].children[2]={name:"updateBuydetailDel",type:"e",parammaps:{storageAmount:"@insertSpotList.storageAmount",buydetailId:"@insertSpotList.buydetailId"}},t.postDataPramas.data[1]={name:"deleteBigPartLaid",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},changeStorageType:function(e){console.log("入库方式",e),this.TotalAmount=0,0===e?(this.No2=!1,this.No1=!0,this.No3=!1,this.disabled=!0,this.listAdd=[],this.isProvider=!0,this.isWarehoseCode=!0,this.isWarehoseCodeAllo=!1,this.isSumPrice=!0,this.isDel=!0):1===e?(this.No2=!0,this.No1=!1,this.No3=!1,this.disabled=!1,this.listAdd=[],this.isProvider=!0,this.isWarehoseCode=!0,this.isWarehoseCodeAllo=!1,this.isSumPrice=!0,this.isDel=!0):2===e&&(this.No1=!1,this.No2=!1,this.No3=!0,this.listAdd=[],this.isProvider=!1,this.isWarehoseCode=!1,this.isWarehoseCodeAllo=!0,this.isSumPrice=!1,this.isDel=!1)},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商","error_msg"],r=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("备件入库信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.parammaps.formType="备件入库信息",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.laidCode=this.getdataListParm.parammaps.laidCode,this.requestParam.parammaps.laidType=this.getdataListParm.parammaps.laidType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){if(""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"storageAmount",parseFloat(t.data.list[a].storageAmount)),e.$set(t.data.list[a],"price",parseFloat(t.data.list[a].price)),e.$set(t.data.list[a],"sumPrice",parseFloat(t.data.list[a].sumPrice)),1==t.data.list[a].sterilisation?e.$set(t.data.list[a],"sterilisation","已冲销"):e.$set(t.data.list[a],"sterilisation","未冲销");e.$nextTick((function(){var e=[{tHeader:["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商","冲销状态","error_msg"],filterVal:["pastureName","laidCode","creatTime","partCode","partName","specification","brandName","unit","storageAmount","price","sumPrice","warehoseCode","providerName","sterilisation",""],tableDatas:t.data.list,sheetName:"备件入库信息"}];Object(l["d"])(e,"备件入库信息",!0,"xlsx")}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},No1Search:function(e,t){console.log("采购单号模糊查询输入值",e),this.requestFilterParams.name="findPurchaseSolr",this.requestFilterParams.parammaps={},this.requestFilterParams.parammaps["orderA"]=e,this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleSelectPurchase:function(e){console.log(e)},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockLaidDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商"],r=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"入库模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownloadEas1:function(){var e=this;this.$alert("备件入库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartLaidEASYuan",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.laidCode=this.getdataListParm.parammaps.laidCode,this.requestParam.parammaps.laidType=this.getdataListParm.parammaps.laidType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){if(null!==t.data.list)for(var s=0;s<t.data.list.length;s++)e.$set(t.data.list[s],"数量",parseFloat(t.data.list[s]["数量"])),e.$set(t.data.list[s],"总价",parseFloat(t.data.list[s]["总价"])),e.$set(t.data.list[s],"单价",parseFloat(t.data.list[s]["单价"]));var i=t.data.list;console.log(i);var r=["牧场","入库单编号","入库日期","供应商编码","供应商","入库人","制单日期","品名","物料编码","计量单位","单价","数量","总价","备注"],n=["牧场","入库单编号","入库日期","供应商编码","供应商","入库人","制单日期","品名","物料编码","计量单位","单价","数量","总价","备注"];if(null!==i){var l=e.formatJsonTemp(n,i);a.export_json_to_excel({header:r,data:l,filename:"备件入库EAS:",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},handleDownloadEas:function(){var e=this;this.$alert("备件入库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartLaidEAS",this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.createTime=this.getdataListParm.parammaps.createTime,this.requestParam.parammaps.createTime=this.getdataListParm.parammaps.useStatus,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["*单据编号","*业务日期","*事务类型_编码","事务类型_名称_l2","付款方式_名称_l2","*供应商_编码","供应商_名称_l2","创建者_用户名","制单日期","币别_编码","*库存组织_编码","库存组织_名称_l2","成本中心_编码","成本中心_名称_l2","折算方式","是否价外税","是否含税","是否是初始化单","*汇率","摘要","部门_编码","*采购入库单分录$仓库_编码","采购入库单分录$仓管员_编码","采购入库单分录$库位_编码","采购入库单分录$物料_名称_l2","*采购入库单分录$物料_编码","*采购入库单分录$计量单位_编码","采购入库单分录$辅助属性_编码","采购入库单分录$采购员_编码","采购入库单分录$采购组_编码","*采购入库单分录$采购组织_编码","采购入库单分录_供应商批次号","采购入库单分录_单价","采购入库单分录_实际单价","*采购入库单分录_数量","采购入库单分录_辅助数量","采购入库单分录_单位材料成本","采购入库单分录_单位采购成本","采购入库单分录_含税单价","采购入库单分录_金额","采购入库单分录_税率","采购入库单分录_税额","采购入库单分录_价税合计","采购入库单分录_实际含税单价","采购入库单分录_实际成本","采购入库单分录_采购成本","采购入库单分录_采购费用","采购入库单分录_材料成本","采购入库单分录_本位币税额","采购入库单分录_本位币价税合计","采购入库单分录_批次","采购入库单分录_生产日期","采购入库单分录_到期日期","采购入库单分录_折扣","采购入库单分录_折扣率","采购入库单分录_是否完全核销","采购入库单分录_是否赠品","采购入库单分录_备注","采购入库单分录$项目号_编码","采购入库单分录$跟踪号_编码","业务类型_编码","业务类型_名称"],r=["*单据编号","*业务日期","*事务类型_编码","事务类型_名称_l2","付款方式_名称_l2","*供应商_编码","供应商_名称_l2","创建者_用户名","制单日期","币别_编码","*库存组织_编码","库存组织_名称_l2","成本中心_编码","成本中心_名称_l2","折算方式","是否价外税","是否含税","是否是初始化单","*汇率","摘要","部门_编码","*采购入库单分录$仓库_编码","采购入库单分录$仓管员_编码","采购入库单分录$库位_编码","采购入库单分录$物料_名称_l2","*采购入库单分录$物料_编码","*采购入库单分录$计量单位_编码","采购入库单分录$辅助属性_编码","采购入库单分录$采购员_编码","采购入库单分录$采购组_编码","*采购入库单分录$采购组织_编码","采购入库单分录_供应商批次号","采购入库单分录_单价","采购入库单分录_实际单价","*采购入库单分录_数量","采购入库单分录_辅助数量","采购入库单分录_单位材料成本","采购入库单分录_单位采购成本","采购入库单分录_含税单价","采购入库单分录_金额","采购入库单分录_税率","采购入库单分录_税额","采购入库单分录_价税合计","采购入库单分录_实际含税单价","采购入库单分录_实际成本","采购入库单分录_采购成本","采购入库单分录_采购费用","采购入库单分录_材料成本","采购入库单分录_本位币税额","采购入库单分录_本位币价税合计","采购入库单分录_批次","采购入库单分录_生产日期","采购入库单分录_到期日期","采购入库单分录_折扣","采购入库单分录_折扣率","采购入库单分录_是否完全核销","采购入库单分录_是否赠品","采购入库单分录_备注","采购入库单分录$项目号_编码","采购入库单分录$跟踪号_编码","业务类型_编码","业务类型_名称"],n=[["EAS","7.5.0","采购(委外)入库单导入","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["purInWarehs","采购(委外)入库单导入","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["FNumber","FBizDate","FTransactionType_number","FTransactionType_name_l2","FPaymentType_name_l2","FSupplier_number","FSupplier_name_l2","FCreator_number","FCreateTime","FCurrency_number","FStorageOrgUnit_number","FStorageOrgUnit_name_l2","FCostCenterOrgUnit_number","FCostCenterOrgUnit_name_l2","FConvertMode","FIsPriceInTax","FIsInTax","FIsInitBill","FExchangeRate","FDescription","FAdminOrgUnit_number","FEntry$warehouse_number","FEntry$stocker_number","FEntry$location_number","FEntry$material_name_l2","FEntry$material_number","FEntry$unit_number","FEntry$assistProperty_number","FEntry$No1Person_number","FEntry$No1Group_number","FEntry$No1OrgUnit_number","FEntry_supplierLotNo","FEntry_price","FEntry_actualPrice","FEntry_qty","FEntry_assistQty","FEntry_unitMaterialCost","FEntry_unitPurchaseCost","FEntry_taxPrice","FEntry_amount","FEntry_taxRate","FEntry_tax","FEntry_taxAmount","FEntry_actualTaxPrice","FEntry_actualCost","FEntry_No1Cost","FEntry_No1Fee","FEntry_materialCost","FEntry_localTax","FEntry_localTaxAmount","FEntry_lot","FEntry_mfg","FEntry_exp","FEntry_discountAmount","FEntry_discountRate","FEntry_isFullWriteOff","FEntry_isPresent","FEntry_remark","FEntry$project_number","FEntry$trackNumber_number","FBizType_number","FBizType_name_l2"]];if(null!==s){var l=e.formatJsonTemp(r,s);a.export_json_to_excel({multiHeader:n,header:i,data:l,filename:"备件入库EAS:",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleformNameSelect:function(e){this.temp.assetName=e.assetName,this.temp.assetId=e.assetId,this.temp.deptName=e.deptName,this.temp.pastureName=e.pastureName},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetM",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["assetName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list,console.log(a.formNumberSearchList);var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestPam.name="updatebigpartlaidSync",t.requestPam.parammaps={},t.requestPam.parammaps.issync="2",t.requestPam.parammaps.id=e.id,Object(r["k"])(t.reestParam).then((function(e){"fl"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.getLitEasStatusLs(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.getLiEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartlaidSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},h=u,g=(a("68d5"),a("d7d6"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"9f799346",null);t["default"]=f.exports},"0e42":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("4c19");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barPastureData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barPastureData:{deep:!0,handler:function(e){this.setOptions(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barPastureData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sourceDate;e.text;this.chart.setOption({title:{text:"最近12个月用水量同期对比",subtext:""},legend:{x:"right"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},dataset:{source:t},xAxis:{type:"category",name:"最近12个月",formatter:"",axisLabel:{interval:0,rotate:40}},yAxis:{name:"m³"},grid:[{left:"15%",right:"17%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]});var a=this;this.chart.on("click",(function(e){console.log(e.name),a.$emit("chartClick",e.name.substring(0,7))}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"0eb8":function(e,t,a){},"0f40":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表编号"},model:{value:e.getdataListParm.parammaps.formNunber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNunber",t)},expression:"getdataListParm.parammaps.formNunber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表类型"},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表结构"},model:{value:e.getdataListParm.parammaps.useType,callback:function(t){e.$set(e.getdataListParm.parammaps,"useType",t)},expression:"getdataListParm.parammaps.useType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表名","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.formName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表编号",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.formNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表结构",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表类型",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.formType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"具体位置","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"倍率",sortable:"",prop:"Multiple","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Multiple))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"负责人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否统计","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.isInfo,callback:function(a){e.$set(t.row,"isInfo",a)},expression:"scope.row.isInfo"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表结构:",prop:"useType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"表结构",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表类型:",prop:"formType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"表类型",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.formType,callback:function(t){e.$set(e.createTemp,"formType",t)},expression:"createTemp.formType"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表名称:",prop:"formName"}},[a("el-input",{ref:"formName",model:{value:e.createTemp.formName,callback:function(t){e.$set(e.createTemp,"formName",t)},expression:"createTemp.formName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表编号:",prop:"formNumber"}},[a("el-input",{ref:"formNumber",model:{value:e.createTemp.formNumber,callback:function(t){e.$set(e.createTemp,"formNumber",t)},expression:"createTemp.formNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价:",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.createTemp.price,callback:function(t){e.$set(e.createTemp,"price",t)},expression:"createTemp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:",prop:"Multiple"}},[a("el-input",{ref:"Multiple",attrs:{disabled:""},model:{value:e.createTemp.Multiple,callback:function(t){e.$set(e.createTemp,"Multiple",t)},expression:"createTemp.Multiple"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前值:",prop:"startAmount"}},[a("el-input",{ref:"startAmount",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.createTemp.startAmount,callback:function(t){e.$set(e.createTemp,"startAmount",t)},expression:"createTemp.startAmount"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"具体位置:",prop:"location"}},[a("el-input",{ref:"location",model:{value:e.createTemp.location,callback:function(t){e.$set(e.createTemp,"location",t)},expression:"createTemp.location"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"100%",top:"-3px"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departName"}},[a("el-input",{ref:"departName",attrs:{disabled:""},model:{value:e.seeTemp.departName,callback:function(t){e.$set(e.seeTemp,"departName",t)},expression:"seeTemp.departName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表结构:",prop:"useType"}},[a("el-input",{ref:"useType",attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表类型:",prop:"formType"}},[a("el-input",{ref:"formType",attrs:{disabled:""},model:{value:e.seeTemp.formType,callback:function(t){e.$set(e.seeTemp,"formType",t)},expression:"seeTemp.formType"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表名称:",prop:"formName"}},[a("el-input",{ref:"formName",attrs:{disabled:""},model:{value:e.seeTemp.formName,callback:function(t){e.$set(e.seeTemp,"formName",t)},expression:"seeTemp.formName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"表编号:",prop:"formNumber"}},[a("el-input",{ref:"formNumber",attrs:{disabled:""},model:{value:e.seeTemp.formNumber,callback:function(t){e.$set(e.seeTemp,"formNumber",t)},expression:"seeTemp.formNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价:",prop:"price"}},[a("el-input",{ref:"price",attrs:{disabled:""},model:{value:e.seeTemp.price,callback:function(t){e.$set(e.seeTemp,"price",t)},expression:"seeTemp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:",prop:"Multiple"}},[a("el-input",{ref:"Multiple",attrs:{disabled:""},model:{value:e.seeTemp.Multiple,callback:function(t){e.$set(e.seeTemp,"Multiple",t)},expression:"seeTemp.Multiple"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前值:",prop:"endAmount"}},[a("el-input",{ref:"endAmount",attrs:{disabled:""},model:{value:e.seeTemp.endAmount,callback:function(t){e.$set(e.seeTemp,"endAmount",t)},expression:"seeTemp.endAmount"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"具体位置:",prop:"location"}},[a("el-input",{ref:"location",attrs:{disabled:""},model:{value:e.seeTemp.location,callback:function(t){e.$set(e.seeTemp,"location",t)},expression:"seeTemp.location"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"上次录入时间:",prop:"endDate"}},[a("el-input",{ref:"endDate",attrs:{disabled:""},model:{value:e.seeTemp.endDate,callback:function(t){e.$set(e.seeTemp,"endDate",t)},expression:"seeTemp.endDate"}})],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"用量记录",name:"second"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"lastAmount",label:"上次值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"endAmount",label:"本次值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.endAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"waterConsumption",label:"用量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSee,page:e.getSeeListParm.offset,limit:e.getSeeListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getSeeListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getSeeListParm,"pagecount",t)},pagination:e.getSeeList}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c),u={name:"Measure",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{rules:{useType:[{required:!0,message:"必填",trigger:"blur"}],formType:[{required:!0,message:"必填",trigger:"blur"}],formName:[{required:!0,message:"必填",trigger:"blur"}],formNumber:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],createDepartList:[],edit:0,useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["表类型"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},dialogFormVisible:!1,dialogFormVisibleSee:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",see:"查看详情"},tableKey:0,list:null,total:0,listLoading:!1,getdataListParm:{name:"getMeasureList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),departName:"",formNunber:""}},createTemp:{departmentId:this.$store.state.user.departmentid,departmentName:"",location:"",startAmount:"",formName:"",formType:"",useType:"",price:"",employeId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,formNumber:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),Multiple:"1"},requestParam:{},activeName:"first",seeTemp:{},listSee:[],totalSee:0,getSeeListParm:{name:"getAllMeasureTypeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importMeasureNew",importParams:"牧场,表名称,表编号,表结构,表类型,部门,位置,最后一次抄表值,单价,管理人,倍率",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listSee)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==d.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(d.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==d.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name),console.log(e.createTemp.departmentName,"this.createTemp.departmentName"))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateMeasureInfo",this.requestParam.parammaps["isInfo"]=t.isInfo,this.requestParam.parammaps["id"]=t.id,Object(r["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"变更成功",type:"success",duration:2e3})}))},resetcreateTemp:function(){this.createTemp={departmentId:parseInt(d.a.get("departmentid")),departmentName:"",location:"",startAmount:"",formName:"",formType:"",useType:"",price:"",employeId:parseInt(d.a.get("employeid")),pastureId:parseInt(d.a.get("pastureid")),formNumber:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),Multiple:"1"}},form_add:function(){var e=this;this.resetcreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertMeasure",e.requestParam.parammaps=e.createTemp,""==e.createTemp.price&&(e.createTemp.price=0),""==e.createTemp.Multiple&&(e.createTemp.Multiple=1),""==e.createTemp.startAmount&&(e.createTemp.startAmount=0),Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertMeasure",e.requestParam.parammaps=e.createTemp,""==e.createTemp.price&&(e.createTemp.price=0),""==e.createTemp.Multiple&&(e.createTemp.Multiple=1),""==e.createTemp.startAmount&&(e.createTemp.startAmount=0),Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.resetcreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),this.createTemp.departmentId=parseInt(e.departmentId),this.createTemp.inputDatetime=e.endDate,this.createTemp.startAmount=e.endAmount,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="updateMeasure",e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.formName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMeasure",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},form_see:function(e){this.seeTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.getSeeList()},getSeeList:function(){var e=this;this.listLoading=!0,this.getSeeListParm.parammaps.id=this.seeTemp.id,Object(r["e"])(this.getSeeListParm).then((function(t){null!==t.data.list?(e.listSee=t.data.list,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize):e.listSee=[],e.totalSee=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","表名称","表编号","表结构","表类型","部门","位置","最后一次抄表值","单价","管理人","倍率","错误信息"],r=["牧场","表名称","表编号","表结构","表类型","部门","位置","最后一次抄表值","单价","管理人","倍率","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"计量设备管理",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"0f9a":function(e,t,a){"use strict";a.r(t);var s=a("b775");function i(e){return Object(s["a"])({url:"/auth",method:"post",data:e})}function r(){return Object(s["a"])({url:"/authdata/userinfo",method:"get"})}function n(){return Object(s["a"])({url:"/authdata/logout",method:"post"})}var l=a("2934"),o=a("5f87"),p=a("a18c"),m=a("5c96"),c=a("a78e"),d=a.n(c),u={token:Object(o["a"])(),name:"",avatar:"",pastureid:"",pasturename:"",pasturenumber:"",employename:"",employeid:"",departmentid:"",departmentname:"",depids:"",sumamount:"",roles:[],buttons:[],meslist:[]},h={SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){e.name=t,d.a.set("name",t)},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_PASTUREID:function(e,t){d.a.set("pastureid",t),e.pastureid=t},SET_PASTURENAME:function(e,t){d.a.set("pasturename",t),e.pasturename=t},SET_PASTURENUMBER:function(e,t){d.a.set("pasturenumber",t),e.pasturenumber=t},SET_EMPLOYEID:function(e,t){d.a.set("employeid",t),e.employeid=t},SET_EMPLOYENAME:function(e,t){d.a.set("employename",t),e.employename=t},SET_DEPARTMENTID:function(e,t){d.a.set("departmentid",t),e.departmentid=t},SET_DEPARTMENTNAME:function(e,t){d.a.set("departmentname",t),e.departmentname=t},SET_DEPIDS:function(e,t){d.a.set("depids",t),e.depids=t},SET_SUMAMOUNT:function(e,t){d.a.set("sumamount",t),sessionStorage.setItem("sumamount",JSON.stringify(t)),e.sumamount=t},SET_MESLIST:function(e,t){sessionStorage.setItem("meslist",JSON.stringify(t)),e.meslist=t},SET_BUTTONS:function(e,t){d.a.set("buttons",t),sessionStorage.setItem("buttons",JSON.stringify(t)),e.buttons=t},SET_ISHOMEPAGE:function(e,t){d.a.set("isHomePage",t),sessionStorage.setItem("isHomePage",JSON.stringify(t)),e.isHomePage=t}},g={login:function(e,t){var a=e.commit,s=t.username,r=t.password;return new Promise((function(e,t){i({username:s.trim(),password:r}).then((function(s){var i=s.data,r=s.msg;"ok"!==r&&(Object(m["Message"])({message:i,type:"error",duration:5e3}),t(i)),a("SET_TOKEN",i.token),null==d.a&&console.log(1),Object(o["c"])(i.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,a=e.state;return new Promise((function(e,s){r(a.token).then((function(a){var i=a.data;i||s("Verification failed, please Login again.");var r=i.role,n=i.username,o=i.avatar;(!r||r.length<=0)&&s("getInfo: roles must be a non-null array!"),Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:n}}).then((function(e){console.log("getUserPCButtons=================",e),null!==e.data.list?t("SET_BUTTONS",e.data.list):t("SET_BUTTONS",[])})),Object(l["e"])({name:"findByUserPastureName",parammaps:{jwt_username:n}}).then((function(e){e.data.list.length>0&&(t("SET_PASTUREID",e.data.list[0].pastureId),t("SET_PASTURENAME",e.data.list[0].pastureName),t("SET_PASTURENUMBER",e.data.list[0].pastureNumber),t("SET_EMPLOYEID",e.data.list[0].employeId),t("SET_EMPLOYENAME",e.data.list[0].employeName),t("SET_DEPARTMENTID",e.data.list[0].departmentId),t("SET_DEPARTMENTNAME",e.data.list[0].departmentName),t("SET_DEPIDS",e.data.list[0].depIds),d.a.set("gdepartmentname",e.data.list[0].departmentName)),Object(l["e"])({name:"getNoMesCount",parammaps:{empId:e.data.list[0].employeId,pastureId:e.data.list[0].pastureId,deptId:e.data.list[0].departmentId}}).then((function(e){t("SET_SUMAMOUNT",e.data.list[0].sumAmount)})),Object(l["e"])({name:"getNoMesList",page:1,offset:1,pagecount:5,parammaps:{empId:e.data.list[0].employeId,pastureId:e.data.list[0].pastureId,deptId:e.data.list[0].departmentId}}).then((function(e){t("SET_MESLIST",e.data.list)})),Object(l["e"])({name:"gethomepagemenu",parammaps:{}}).then((function(e){t("SET_ISHOMEPAGE",e.data.list[0].cou)}))})),window.setInterval((function(){setTimeout((function(){Object(l["e"])({name:"getNoMesCount",parammaps:{empId:d.a.get("employeid"),pastureId:d.a.get("pastureid"),deptId:d.a.get("departmentid")}}).then((function(e){t("SET_SUMAMOUNT",e.data.list[0].sumAmount)})),Object(l["e"])({name:"getNoMesList",page:1,offset:1,pagecount:5,parammaps:{empId:d.a.get("employeid"),pastureId:d.a.get("pastureid"),deptId:d.a.get("departmentid")}}).then((function(e){t("SET_MESLIST",e.data.list)}))}),0)}),18e5),t("SET_ROLES",r),t("SET_NAME",n),t("SET_AVATAR",o),e(i)})).catch((function(e){s(e)}))}))},logout:function(e){var t=e.commit,a=e.state;return new Promise((function(e,s){n(a.token).then((function(){t("SET_BUTTONS",[]),t("SET_TOKEN",""),t("SET_ROLES",[]),d.a.remove("employename"),d.a.remove("employeid"),d.a.remove("pastureid"),Object(o["b"])(),Object(p["c"])(),e(),location.reload()})).catch((function(e){s(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:h,actions:g}},"0fc4":function(e,t,a){"use strict";a("03b2")},"0ff8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.parammaps,"pastureName",t)},expression:"tableObj.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj.parammaps.departName,callback:function(t){e.$set(e.tableObj.parammaps,"departName",t)},expression:"tableObj.parammaps.departName"}},e._l(e.departList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tableObj.parammaps.date,callback:function(t){e.$set(e.tableObj.parammaps,"date",t)},expression:"tableObj.parammaps.date"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.form_export}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天生物质颗粒用量","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remarks))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.see_record(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.tableObj.offset,limit:e.tableObj.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules1,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.departList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.temp.departmentName,callback:function(t){e.$set(e.temp,"departmentName",t)},expression:"temp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前生物质颗粒用量:",prop:"dosage"}},[a("el-input",{ref:"dosage",model:{value:e.temp.dosage,callback:function(t){e.$set(e.temp,"dosage",t)},expression:"temp.dosage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.temp.price,callback:function(t){e.$set(e.temp,"price",t)},expression:"temp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前费用:",prop:"expense"}},[a("el-input",{ref:"expense",model:{value:e.temp.expense,callback:function(t){e.$set(e.temp,"expense",t)},expression:"temp.expense"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"记录人:",prop:"inputid"}},[a("el-select",{ref:"inputid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"记录人"},on:{change:e.change_emp},model:{value:e.temp.inputid,callback:function(t){e.$set(e.temp,"inputid",t)},expression:"temp.inputid "}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"记录人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.temp.empname,callback:function(t){e.$set(e.temp,"empname",t)},expression:"temp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[a("el-input",{ref:"remarks",model:{value:e.temp.remarks,callback:function(t){e.$set(e.temp,"remarks",t)},expression:"temp.remarks"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"用量记录",visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("牧场:"+e._s(e.dosageRecordTemp.pastureName))]),e._v(" "),a("span",[e._v("部门:"+e._s(e.dosageRecordTemp.departmentName))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",prop:"dosage","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"expense",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.get_record_list}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules2,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_delete_sure()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("ade3")),n=a("2934"),l=a("6724"),o=a("ed08"),p=a("333d"),m=(a("5c96"),a("5f87")),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"BiomassConsum",components:{Pagination:p["a"]},directives:{waves:l["a"]},data:function(){var e;return{isokDisable:!1,isElecAdd:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},tableObj:{name:"getBiomass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadObj:{name:"getBiomass",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadList:[],useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],pastureList:[],departList1:[],departList2:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",departName:"",dosage:"",price:"",expense:"",remarks:"",empname:"",date:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputid:this.$store.state.user.employeid,departmentId:"",pastureId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getBiomassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{departmentId:""}},dosageRecordTemp:{},rules1:(e={pastureId:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],dosage:[{required:!0,message:"必填",trigger:"blur"}],price:[{required:!0,message:"必填",trigger:"blur"}]},Object(r["a"])(e,"departmentId",[{required:!0,message:"必填",trigger:"blur"}]),Object(r["a"])(e,"expense",[{required:!0,message:"必填",trigger:"blur"}]),e),rules2:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importBiomass",importParams:"牧场,部门,当天生物质颗粒用量,单价,当天费用,记录人,日期,备注",sheetname:"生物质颗粒用量"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(o["f"])(e,this.list)},tableSort2:function(e){Object(o["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:biomass:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="cost:biomass:export",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isElecExport=s;var i="cost:biomass:import",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isElecImport=r;var l="cost:biomass:modify",o=Object(n["v"])(this.$store.state.user.buttons,l);this.isElecModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},form_export:function(){var e=this;this.downLoadObj.parammaps=this.tableObj.parammaps,Object(n["e"])(this.downLoadObj).then((function(t){null!==t.data.list?e.downLoadList=t.data.list:e.downLoadList=[];var a=[{tHeader:["牧场","部门","当天生物质颗粒用量","单价","当天费用","记录人","日期","备注"],filterVal:["pastureName","departmentName","dosage","price","expense","empname","date","remarks"],tableDatas:e.downLoadList,sheetName:"生物质颗粒用量"}];Object(o["d"])(a,"生物质颗粒用量",!0,"xlsx")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","部门","当天生物质颗粒用量","单价","当天费用","记录人","日期","备注","错误信息"],r=["牧场","部门","当天生物质颗粒用量","单价","当天费用","记录人","日期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;"现代牧业"==this.tableObj.parammaps.pastureName&&(this.tableObj.parammaps.pastureName=""),this.listLoading=!0,Object(n["e"])(this.tableObj).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.pastureList=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.get_departList1(),e.get_departList2()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureList.find((function(t){return t.name==e})).id,this.tableObj.parammaps.departName="",this.get_departList1()},get_departList1:function(){var e=this;Object(n["e"])(this.getDepartParam1).then((function(t){e.departList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.temp.departmentId="",this.get_departList2()},get_departList2:function(){var e=this;Object(n["e"])(this.getDepartParam2).then((function(t){e.departList2=t.data.list}))},form_search:function(){this.listLoading=!0,this.tableObj.offset=1,null==this.tableObj.parammaps.date&&(this.tableObj.parammaps.date=""),this.get_table_data()},change_emp:function(e){console.log("记录人",e),this.$set(this.temp,"inputid",e),this.$forceUpdate()},form_reset:function(){this.temp.pastureName="",this.temp.departName="",this.temp.dosage="",this.temp.price="",this.temp.expense="",this.temp.remarks="",this.temp.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.temp.empname="",this.temp.inputid=this.$store.state.user.employeid,this.temp.departmentId="",this.temp.pastureId=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log("this.temp=====>",this.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertBiomass",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertBiomass",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){var t=this;console.log("row=======",e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a={name:"updateBiomass",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},form_delete_sure:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){if(t){var a={name:"delBiomass",offset:0,pagecount:0,parammaps:{date:e.deleteTemp.startTime}};Object(n["k"])(a).then((function(t){"fail"==t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())}))}}))},see_record:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),console.log("row=========see_record",e),this.get_record_list()},get_record_list:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.departmentId=this.dosageRecordTemp.departmentId,Object(n["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"102f":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-校验",use:"icon-校验-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-校验"><defs><style type="text/css"></style></defs><path d="M936.16128 716.40064c-23.07072-38.46144-22.70208-39.1936-22.70208-39.1936s-79.67232 22.34368-94.51008-54.02624c-46.14656 0-46.14656 0-46.14656 0s-12.73856 76.48256-94.14144 53.84704c-23.54176 39.2192-24.33536 40.448-24.35584 40.46848 0.03072 0.0256 63.7184 44.51328 0 104.94464 24.72448 40.65792 24.72448 40.65792 24.72448 40.65792s70.3488-30.35136 93.39904 52.56192c46.6944 0 46.6944 0 46.6944 0s14.65856-76.19072 93.76768-53.66272c22.52288-38.46144 22.89664-38.81984 22.89664-38.81984S876.0576 771.66592 936.16128 716.40064zM794.86976 823.26528c-29.74208 0-53.85728-24.11008-53.85728-53.84704 0-29.7472 24.1152-53.84704 53.85728-53.84704 29.73696 0 53.85216 24.09984 53.85216 53.84704C848.72192 799.1552 824.60672 823.26528 794.86976 823.26528z" p-id="3098" /><path d="M924.96896 339.22048c-22.47168-53.12-54.6304-100.81792-95.58016-141.7728-40.96-40.96-88.65792-73.1136-141.77792-95.58016-55.00928-23.26528-113.42848-35.06176-173.63456-35.06176s-118.62016 11.79648-173.62944 35.06176c-53.12 22.46656-100.81792 54.62528-141.7728 95.58016-40.96 40.95488-73.1136 88.65792-95.58016 141.7728-23.26528 55.00416-35.06688 113.42336-35.06688 173.63456 0 60.20608 11.79648 118.62016 35.06688 173.63456 22.46656 53.12 54.62528 100.81792 95.58016 141.76768 40.95488 40.96 88.6528 73.11872 141.7728 95.58016 55.00928 23.2704 113.42336 35.072 173.62944 35.072 58.29632 0 114.88256-11.16672 168.36096-32.98816-14.03904-11.71968-26.37312-25.40032-36.57728-40.64256-41.23648 14.6688-85.57056 22.72768-131.78368 22.72768-217.89184 0-395.15648-177.26976-395.15648-395.15136 0-217.89184 177.26464-395.15648 395.15648-395.15648 104.97024 0 200.43264 41.22112 271.26784 108.22144-182.71744 92.2368-298.46528 366.27456-298.46528 366.27456L415.232 456.81664l-147.58912 87.34208c62.58176 21.8624 152.04864 91.7504 228.02432 183.4496 53.6576-96.06144 219.09504-292.61312 299.56608-310.07744-31.03744-69.36064-13.66016-125.824-9.04192-190.70464 75.648 72.02816 122.94144 173.57824 122.94144 286.0288 0 34.048-4.33664 67.10272-12.47744 98.64704 16.10752 8.8576 30.81216 19.96288 43.66336 32.91648 13.09184-42.39872 19.70688-86.4768 19.70688-131.5584C960.03072 452.64384 948.22912 394.22464 924.96896 339.22048z" p-id="3099" /></symbol>'});n.a.add(l);t["default"]=l},1056:function(e,t,a){"use strict";a("2ad8")},1072:function(e,t,a){},"10c5":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e.isAssetTypeAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增 ")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{disabled:e.isokDisable,type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","tree-props":{children:"children"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"类别编号名称","min-width":"400px","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeCode)+"("+e._s(t.row.typeName)+") ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"层级",sortable:"",prop:"section","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.section))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"子类数",sortable:"",prop:"childrens","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.childrens))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否保养","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==parseInt(t.row.childrens)?a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEqplanChange(t.$index,t.row)}},model:{value:t.row.eqplan,callback:function(a){e.$set(t.row,"eqplan",a)},expression:"scope.row.eqplan"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否启停","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==parseInt(t.row.childrens)?a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEqstartChange(t.$index,t.row)}},model:{value:t.row.eqstart,callback:function(a){e.$set(t.row,"eqstart",a)},expression:"scope.row.eqstart"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isAssetTypeUpdate?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),0===s.childrens&&0===s.bes&&0===s.eps&&0===s.eqts&&0===s.es?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除 ")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[e.parentDeptVisible?a("el-form-item",{attrs:{label:"上级分类",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:350,size:"small",clearable:"",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1):e._e(),e._v(" "),a("el-form-item",{staticStyle:{width:"300px"},attrs:{label:"类别编号",prop:"temptypeCode"}},[a("el-input",{ref:"temptypeCode",attrs:{placeholder:"请输入编码"},model:{value:e.deptform.temptypeCode,callback:function(t){e.$set(e.deptform,"temptypeCode",t)},expression:"deptform.temptypeCode"}},[a("template",{slot:"prepend"},[e._v(e._s(e.deptform.tempPtypeCode))])],2)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"300px"},attrs:{label:"类别名称",prop:"typeName"}},[a("el-input",{ref:"typeName",model:{value:e.deptform.typeName,callback:function(t){e.$set(e.deptform,"typeName",t)},expression:"deptform.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1),e._v(" "),"update"==e.dialogStatus&&0==parseInt(e.deptform.childrens)?a("el-form-item",{attrs:{label:"是否保养",prop:"eqplan"}},[a("el-switch",{ref:"eqplan",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.eqplan,callback:function(t){e.$set(e.deptform,"eqplan",t)},expression:"deptform.eqplan"}})],1):e._e(),e._v(" "),"update"==e.dialogStatus&&0==parseInt(e.deptform.childrens)?a("el-form-item",{attrs:{label:"是否启停",prop:"eqstart "}},[a("el-switch",{ref:"eqstart ",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.eqstart,callback:function(t){e.$set(e.deptform,"eqstart",t)},expression:"deptform.eqstart "}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["新增"===e.textMap[e.dialogStatus]?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v(" 保存并新增 ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v(" 取消并关闭 ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("3de8")),n=a("6724"),l=a("61f7"),o=a("2934"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"AssetType",components:{TreeSelect:r["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1}],parentDept:[],listLoading:!0,requestParam:{name:"createAssetType",parammaps:{}},deptform:{id:"",tempPtypeCode:"",temptypeCode:"",typeName:"",typeCode:"",pid:"",sort:"",enable:"",eqplan:"",eqstart:""},getDeptListParm:{name:"geteqclasslist"},rules:{temptypeCode:[{type:"string",required:!0,message:"类别编码必填",trigger:"blur"},{validator:l["b"],trigger:"blur"}],typeName:[{type:"string",required:!0,message:"类别名称必填",trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"typeNameCode"},nodeKey:"id",defaultCheckedKeys:[],buttons:[],isAssetTypeAdd:[],isAssetTypeUpdate:[],isPercentage:!1,percentage:1}},created:function(){var e=this;Object(o["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{tableSort:function(e){Object(d["f"])(e,this.list)},get_auto_buttons:function(){var e="console:assetType:insert",t=Object(o["v"])(this.$store.state.user.buttons,e);this.isAssetTypeAdd=t;var a="console:assetType:update",s=Object(o["v"])(this.$store.state.user.buttons,a);this.isAssetTypeUpdate=s},popoverHide:function(e,t){this.deptform.pid=e,null!==e?this.deptform.typeCode=t.typeCode:this.deptform.pid=-1,this.getMaxCode()},get_table_data:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.getDeptListParm).then((function(t){if(e.list=t.data,console.log(e.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable),t.data.list[a].eqplan=parseInt(t.data.list[a].eqplan),t.data.list[a].eqstart=parseInt(t.data.list[a].eqstart);e.list=Object(o["E"])(t.data.list,"id","pid","children"),console.log(e.list)}e.parentDept=e.list,setTimeout((function(){e.listLoading=!1}),500)}))},resetRequestParam:function(){this.requestParam={name:"createAssetType",parammaps:{}},this.deptform.id="",this.deptform.pid=-1,this.deptform.typeName="",this.deptform.typeCode="",this.deptform.sort="0",this.deptform.enable=1,this.deptform.eqplan=1,this.deptform.eqstart=1,this.deptform.temptypeCode="",this.deptform.tempPtypeCode=""},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.defaultCheckedKeys=[],this.parentDeptVisible=!0,this.dialogFormVisible=!0,this.deptform.pid=-1,this.deptform.enable=1,this.deptform.eqstart=1,this.deptform.eqplan=1,this.getMaxCode(),this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},getMaxCode:function(){var e=this;this.requestParam.name="getEQMaxcodeByPid",this.requestParam.parammaps={},this.requestParam.parammaps.pid=this.deptform.pid,Object(o["e"])(this.requestParam).then((function(t){console.log(t,"----------------"),t.data.list.length>0&&(""===t.data.list[0].parentcode?e.deptform.tempPtypeCode=e.deptform.typeCode+".":e.deptform.tempPtypeCode=t.data.list[0].parentcode,e.deptform.temptypeCode=t.data.list[0].newcode,-1===e.requestParam.parammaps.pid&&(e.deptform.typeCode=e.deptform.tempPtypeCode+e.deptform.temptypeCode,e.deptform.tempPtypeCode=""))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createAssetType",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps.pid=-1:e.requestParam.parammaps.pid=e.deptform.pid,e.requestParam.parammaps.typeName=e.deptform.typeName,e.deptform.typeCode=e.deptform.tempPtypeCode+e.deptform.temptypeCode,e.requestParam.parammaps.typeCode=e.deptform.typeCode,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.eqstart=e.deptform.eqstart,e.requestParam.parammaps.eqplan=e.deptform.eqplan,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createAssetType",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps.pid=-1:e.requestParam.parammaps.pid=e.deptform.pid,e.requestParam.parammaps.typeName=e.deptform.typeName,e.deptform.typeCode=e.deptform.tempPtypeCode+e.deptform.temptypeCode,e.requestParam.parammaps.typeCode=e.deptform.typeCode,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.eqstart=e.deptform.eqstart,e.requestParam.parammaps.eqplan=e.deptform.eqplan,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.deptform.id="",e.deptform.typeName="",e.getMaxCode(),e.$nextTick((function(){e.$refs["dataForm"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},form_edit:function(e){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.defaultCheckedKeys=[e.pid],this.parentDeptVisible=e.pid>0,console.log(e),this.deptform.childrens=e.childrens,this.deptform.id=e.id,this.deptform.pid=e.pid,this.deptform.typeName=e.typeName,this.deptform.typeCode=e.typeCode,this.deptform.tempPtypeCode=this.deptform.typeCode.substr(0,this.deptform.typeCode.lastIndexOf(".")+1),this.deptform.temptypeCode=this.deptform.typeCode.substr(this.deptform.typeCode.lastIndexOf(".")+1),this.deptform.sort=e.sort,this.deptform.enable=e.enable,this.deptform.eqstart=e.eqstart,this.deptform.eqplan=e.eqplan,this.dialogStatus="update",this.dialogFormVisible=!0},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateAssetTypeD",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps.pid=-1:e.requestParam.parammaps.pid=e.deptform.pid,e.requestParam.parammaps.typeName=e.deptform.typeName,e.deptform.typeCode=e.deptform.tempPtypeCode+e.deptform.temptypeCode,e.requestParam.parammaps.typeCode=e.deptform.typeCode,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.eqstart=e.deptform.eqstart,e.requestParam.parammaps.eqplan=e.deptform.eqplan,e.requestParam.parammaps.id=e.deptform.id,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},handleDownload:function(){var e=this;this.$alert("设备类别正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="geteqclasslist",Object(o["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["类别名称","类别编号","层级","子类数","供应商数","品牌数","设备数","模板数","是否启用"],r=["typeName","typeCode","section","childrens","eps","bes","es","eqts","enable"],n=Object(o["x"])(r,s);a.export_json_to_excel({header:i,data:n,filename:"设备类别",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateAssetTypeD",this.requestParam.parammaps={},null===t.pid||""===t.pid?this.requestParam.parammaps.pid=-1:this.requestParam.parammaps.pid=t.pid,this.requestParam.parammaps.typeName=t.typeName,this.deptform.typeCode=t.tempPtypeCode+t.temptypeCode,this.requestParam.parammaps.typeCode=t.typeCode,this.requestParam.parammaps.enable=t.enable,this.requestParam.parammaps.eqstart=t.eqstart,this.requestParam.parammaps.eqplan=t.eqplan,this.requestParam.parammaps.id=t.id,Object(o["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(o["w"])(e,a.$notify)}))},handleEqplanChange:function(e,t){var a=this;this.requestParam.name="updateAssetTypeD",this.requestParam.parammaps={},null===t.pid||""===t.pid?this.requestParam.parammaps.pid=-1:this.requestParam.parammaps.pid=t.pid,this.requestParam.parammaps.typeName=t.typeName,this.deptform.typeCode=t.tempPtypeCode+t.temptypeCode,this.requestParam.parammaps.typeCode=t.typeCode,this.requestParam.parammaps.enable=t.enable,this.requestParam.parammaps.eqstart=t.eqstart,this.requestParam.parammaps.eqplan=t.eqplan,this.requestParam.parammaps.id=t.id,Object(o["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(o["w"])(e,a.$notify)}))},handleEqstartChange:function(e,t){var a=this;this.requestParam.name="updateAssetTypeD",this.requestParam.parammaps={},null===t.pid||""===t.pid?this.requestParam.parammaps.pid=-1:this.requestParam.parammaps.pid=t.pid,this.requestParam.parammaps.typeName=t.typeName,this.deptform.typeCode=t.tempPtypeCode+t.temptypeCode,this.requestParam.parammaps.typeCode=t.typeCode,this.requestParam.parammaps.enable=t.enable,this.requestParam.parammaps.eqstart=t.eqstart,this.requestParam.parammaps.eqplan=t.eqplan,this.requestParam.parammaps.id=t.id,Object(o["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(o["w"])(e,a.$notify)}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备类别名称:"+e.typeName+"("+e.typeCode+")","确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAssetType",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(o["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败",type:"error",duration:2e3})}))}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"10c9":function(e,t,a){},"11a1":function(e,t,a){},"11c2":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规程型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"生产厂家","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂日期","min-width":"80px",align:"center",sortable:"",prop:"factoryNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"80px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"110px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"校验周期","min-width":"80px",align:"center",sortable:"",prop:"amount"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入设备名称",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规程型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入规格型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生产厂家:",prop:"level"}},[a("el-input",{ref:"level",attrs:{placeholder:"请输入生产厂家",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.level,callback:function(t){e.$set(e.createTemp,"level",t)},expression:"createTemp.level"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出厂编号:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入出厂编号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出场日期:",prop:"factoryNumber"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请输入出场日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用部门:",prop:"departmentName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入使用部门",disabled:"see"===e.dialogStatus},on:{change:e.changeDepartment},model:{value:e.createTemp.departmentName,callback:function(t){e.$set(e.createTemp,"departmentName",t)},expression:"createTemp.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"empName"}},[a("el-select",{ref:"empName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入责任人",disabled:"see"===e.dialogStatus},on:{change:e.changeEmp},model:{value:e.createTemp.empName,callback:function(t){e.$set(e.createTemp,"empName",t)},expression:"createTemp.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验周期:",prop:"amount"}},[a("el-input",{ref:"amount",attrs:{placeholder:"请输入检验周期",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.amount,callback:function(t){e.$set(e.createTemp,"amount",t)},expression:"createTemp.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"请输入备注",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"InsulatAingAppliances",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"绝缘用具"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,departmentName:this.$store.state.user.departmentname,departmentId:this.$store.state.user.departmentid,warnName:"",specification:"",level:"",measureRange:"",factoryNumber:"",lastCheckDate:"",validityDate:"",amount:"",note:"",empId:"",empName:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnJY",importParams:"牧场,设备名称,规程型号,生产厂家,出厂编号,出厂日期,使用部门,责任人,校验日期,有效期至,校验周期,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list||null!==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.departmentName=this.$store.state.user.departmentname,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.level="",this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.amount="",this.createTemp.note="",this.createTemp.empName="",this.createTemp.empId=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},changeDepartment:function(e){this.createTemp.departmentId=this.findAllDepart.find((function(t){return t.name===e})).id},changeEmp:function(e){this.createTemp.empId=this.findAllEmploye.find((function(t){return t.name===e})).id},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="绝缘用具",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="绝缘用具",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="绝缘用具",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],i=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"绝缘用具模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注","报错信息"],r=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"绝缘用具报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("绝缘用具正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],filterVal:["pastureName","warnName","specification","level","measureRange","factoryNumber","departmentName","empName","lastCheckDate","validityDate","amount","note"],tableDatas:e.downLoadList,sheetName:"绝缘用具"}];Object(p["d"])(a,"绝缘用具",!0,"xlsx")}))}))}}},h=u,g=(a("5c16"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"bc7f2a28",null);t["default"]=f.exports},"11d5":function(e,t,a){"use strict";a("ca68")},"12a5":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol>'});n.a.add(l);t["default"]=l},1342:function(e,t,a){"use strict";a("1e25")},1360:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),e._v(" "),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),e._v(" "),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),e._v(" "),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])},i=[],r={name:"Todo",directives:{focus:function(e,t,a){var s=t.value,i=a.context;s&&i.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},"139b":function(e,t,a){},"13f2":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{on:{dblclick:e.x}},[e.col.editable&&e.onEdit?a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.value,expression:"value",modifiers:{lazy:!0}}],staticStyle:{border:"0",height:"40px",width:"100%"},domProps:{value:e.value},on:{change:function(t){e.value=t.target.value}}}):a("span",[e.icon?a("i",{class:e.icon}):e._e(),e._v(e._s(e.label))])])},i=[],r=(a("7514"),a("7f7f"),{props:{col:Object,row:Object},data:function(){var e=this.row[this.col.name];return{onEdit:!1,value:e}},computed:{label:function(){var e=this.row[this.col.name];return this.col.holder?"switch"===this.col.holder?e?this.col.activeText:this.col.inactiveText:"radio-group"===this.col.holder||"checkbox-group"===this.col.holder||"select"===this.col.holder?this.col.options.find((function(t){return t.value===e})).label:e:e},icon:function(){var e=this.row[this.col.name];if("switch"===this.col.holder)return e?this.col.activeIconClass:this.col.inactiveIconClass}},watch:{value:function(){this.$emit("edit",this.row,this.col,this.value),this.onEdit=!1}},methods:{x:function(){this.onEdit=!this.onEdit},blur:function(){this.onEdit=!1}}}),n=r,l=(a("e7db"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"73128713",null);t["default"]=o.exports},1413:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v("\n 这个页面取消,暂停开发T T\n "),e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,clearable:"",disabled:e.disabled,placeholder:"请选择设备类别","checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"指定维修人",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"资产名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"指定维修人",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"一级督办",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"二级督办",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"三级督办",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"推送时间(分)",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"折旧年限",sortable:"",align:"center",prop:"depreciation"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用时长(年)",sortable:"",align:"center",prop:"serviceDuration"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用率(%)",sortable:"",align:"center",prop:"utilizationRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicsDel2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-dialog",{directives:[{name:"show",rawName:"v-show",value:e.dialogFormVisible,expression:"dialogFormVisible"}],attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.eqClassId,callback:function(t){e.$set(e.createTemp,"eqClassId",t)},expression:"createTemp.eqClassId"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入编号",disabled:""},model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号"},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号"},model:{value:e.createTemp.financeCode,callback:function(t){e.$set(e.createTemp,"financeCode",t)},expression:"createTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格"},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{select:function(t){e.handleSelectBrand(t)}},model:{value:e.createTemp.brandName,callback:function(t){e.$set(e.createTemp,"brandName",t)},expression:"createTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商"},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途"},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.createTemp.status,callback:function(t){e.$set(e.createTemp,"status",t)},expression:"createTemp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.purchaseDate,callback:function(t){e.$set(e.createTemp,"purchaseDate",t)},expression:"createTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.entranceDate,callback:function(t){e.$set(e.createTemp,"entranceDate",t)},expression:"createTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限"},model:{value:e.createTemp.depreciation,callback:function(t){e.$set(e.createTemp,"depreciation",t)},expression:"createTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值"},model:{value:e.createTemp.yuanzhi,callback:function(t){e.$set(e.createTemp,"yuanzhi",t)},expression:"createTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值"},model:{value:e.createTemp.salvage,callback:function(t){e.$set(e.createTemp,"salvage",t)},expression:"createTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值"},model:{value:e.createTemp.subtractvalue,callback:function(t){e.$set(e.createTemp,"subtractvalue",t)},expression:"createTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-select",{ref:"upkeepgrade",staticClass:"filter-item",attrs:{placeholder:"保养级别"},on:{"visible-change":e.upkeepgradeChange,change:e.changeUpkeepgrade},model:{value:e.createTemp.upkeepgrade,callback:function(t){e.$set(e.createTemp,"upkeepgrade",t)},expression:"createTemp.upkeepgrade"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用"},model:{value:e.createTemp.yearUpkeepCost,callback:function(t){e.$set(e.createTemp,"yearUpkeepCost",t)},expression:"createTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用"},model:{value:e.createTemp.yearMaintainCost,callback:function(t){e.$set(e.createTemp,"yearMaintainCost",t)},expression:"createTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数"},model:{value:e.createTemp.baseHours,callback:function(t){e.$set(e.createTemp,"baseHours",t)},expression:"createTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empname","fetch-suggestions":e.employeSearch,placeholder:"请输入责任人"},on:{select:e.handleSelectEmploye},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.name))])]}}]),model:{value:e.createTemp.employeName,callback:function(t){e.$set(e.createTemp,"employeName",t)},expression:"createTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUser"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.createTemp.inputUser,callback:function(t){e.$set(e.createTemp,"inputUser",t)},expression:"createTemp.inputUser"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.seeTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.seeTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"card"},[a("el-tabs",{on:{"tab-click":e.form_seeTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassName"}},[a("el-input",{ref:"eqClassName",attrs:{placeholder:"请输入设备类别",disabled:""},model:{value:e.seeTemp.eqClassName,callback:function(t){e.$set(e.seeTemp,"eqClassName",t)},expression:"seeTemp.eqClassName"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入资产编号",disabled:""},model:{value:e.seeTemp.assetCode,callback:function(t){e.$set(e.seeTemp,"assetCode",t)},expression:"seeTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号",disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.seeTemp.financeCode,callback:function(t){e.$set(e.seeTemp,"financeCode",t)},expression:"seeTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格",disabled:""},model:{value:e.seeTemp.specification,callback:function(t){e.$set(e.seeTemp,"specification",t)},expression:"seeTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-input",{ref:"brandName",attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.seeTemp.brandName,callback:function(t){e.$set(e.seeTemp,"brandName",t)},expression:"seeTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"请输入供应商",disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途",disabled:""},model:{value:e.seeTemp.purpose,callback:function(t){e.$set(e.seeTemp,"purpose",t)},expression:"seeTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-input",{ref:"status",attrs:{placeholder:"请输入状态",disabled:""},model:{value:e.seeTemp.status,callback:function(t){e.$set(e.seeTemp,"status",t)},expression:"seeTemp.status"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-input",{ref:"purchaseDate",attrs:{placeholder:"请输入购置日期",disabled:""},model:{value:e.seeTemp.purchaseDate,callback:function(t){e.$set(e.seeTemp,"purchaseDate",t)},expression:"seeTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-input",{ref:"entranceDate",attrs:{placeholder:"请输入入场日期",disabled:""},model:{value:e.seeTemp.entranceDate,callback:function(t){e.$set(e.seeTemp,"entranceDate",t)},expression:"seeTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限",disabled:""},model:{value:e.seeTemp.depreciation,callback:function(t){e.$set(e.seeTemp,"depreciation",t)},expression:"seeTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值",disabled:""},model:{value:e.seeTemp.yuanzhi,callback:function(t){e.$set(e.seeTemp,"yuanzhi",t)},expression:"seeTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值",disabled:""},model:{value:e.seeTemp.salvage,callback:function(t){e.$set(e.seeTemp,"salvage",t)},expression:"seeTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值",disabled:""},model:{value:e.seeTemp.subtractvalue,callback:function(t){e.$set(e.seeTemp,"subtractvalue",t)},expression:"seeTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-input",{ref:"upkeepgrade",attrs:{placeholder:"请输入保养级别",disabled:""},model:{value:e.seeTemp.upkeepgrade,callback:function(t){e.$set(e.seeTemp,"upkeepgrade",t)},expression:"seeTemp.upkeepgrade"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用",disabled:""},model:{value:e.seeTemp.yearUpkeepCost,callback:function(t){e.$set(e.seeTemp,"yearUpkeepCost",t)},expression:"seeTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用",disabled:""},model:{value:e.seeTemp.yearMaintainCost,callback:function(t){e.$set(e.seeTemp,"yearMaintainCost",t)},expression:"seeTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数",disabled:""},model:{value:e.seeTemp.baseHours,callback:function(t){e.$set(e.seeTemp,"baseHours",t)},expression:"seeTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"请输入牧场",disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{placeholder:"请输入部门",disabled:""},model:{value:e.seeTemp.deptName,callback:function(t){e.$set(e.seeTemp,"deptName",t)},expression:"seeTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{placeholder:"请输入责任人",disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUserName"}},[a("el-input",{ref:"inputUserName",attrs:{placeholder:"请输入录入人",disabled:""},model:{value:e.seeTemp.inputUserName,callback:function(t){e.$set(e.seeTemp,"inputUserName",t)},expression:"seeTemp.inputUserName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",attrs:{placeholder:"请输入录入时间",disabled:""},model:{value:e.seeTemp.inputDatetime,callback:function(t){e.$set(e.seeTemp,"inputDatetime",t)},expression:"seeTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}})],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"点检记录",name:"second"}},[a("el-date-picker",{ref:"inputDatetimeCheck1",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1,callback:function(t){e.$set(e.getAssetBigSpotCheckListParm.parammaps,"inputDatetimeSpotCheck1",t)},expression:"getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSportCheck}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSpotCheck1-1)*e.pageSizeSpotCheck1+1))])]}}],null,!1,1006182765)}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",sortable:"",prop:"inspectionResults","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",sortable:"",prop:"empname","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSpotCheck1,page:e.getAssetBigSpotCheckListParm.offset,limit:e.getAssetBigSpotCheckListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"pagecount",t)},pagination:e.getAssetBigSpotCheckList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"保养单号"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepCode",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"保养类型"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepType,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepType",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepType"}},e._l(e.maintainTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeUpkeepbyeq",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"inputDatetimeUpkeepbyeq",t)},expression:"getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchUpkeepbyeq}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpkeepbyeq,expression:"listLoadingUpkeepbyeq"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpkeepbyeq,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumUpkeepbyeq-1)*e.pageSizeUpkeepbyeq+1))])]}}],null,!1,1082609005)}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号",prop:"upkeepCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养名称",prop:"upkeepName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型",prop:"upkeepType","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别",prop:"upkeepLevel","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养人",prop:"upkeepPerson","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养费用",prop:"upkeepCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalUpkeepbyeq,page:e.getBigupkeepbyeqParm.offset,limit:e.getBigupkeepbyeqParm.pagecount},on:{"update:page":function(t){return e.$set(e.getBigupkeepbyeqParm,"offset",t)},"update:limit":function(t){return e.$set(e.getBigupkeepbyeqParm,"pagecount",t)},pagination:e.getBigupkeepbyeqList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"维修记录",name:"fouth"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"维修单号"},model:{value:e.getAssetMaintainParm.parammaps.repairCode,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"repairCode",t)},expression:"getAssetMaintainParm.parammaps.repairCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetMaintain",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"inputDatetimeAssetMaintain",t)},expression:"getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetMaintain}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetMaintain,expression:"listLoadingAssetMaintain"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetMaintain-1)*e.pageSizeAssetMaintain+1))])]}}],null,!1,353234157)}),e._v(" "),a("el-table-column",{attrs:{label:"维修单号",prop:"repairCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修人",prop:"requestName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人",prop:"empname","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"诊断故障",prop:"details","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用",sortable:"",prop:"maintenanceCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetMaintain,page:e.getAssetMaintainParm.offset,limit:e.getAssetMaintainParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetMaintainParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetMaintainParm,"pagecount",t)},pagination:e.getAssetMaintainList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"启停记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.startTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"startTime",t)},expression:"getAssetSTTParm.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.stopTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"stopTime",t)},expression:"getAssetSTTParm.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetSTT,expression:"listLoadingAssetSTT"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetSTT-1)*e.pageSizeAssetSTT+1))])]}}],null,!1,1514873197)}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人",prop:"blockName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetSTT,page:e.getAssetSTTParm.offset,limit:e.getAssetSTTParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetSTTParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetSTTParm,"pagecount",t)},pagination:e.getAssetSTTList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"变更记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更状态"},model:{value:e.getAssetChangeParm.parammaps.changeStatue,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"changeStatue",t)},expression:"getAssetChangeParm.parammaps.changeStatue"}},e._l(e.changeStates,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetChange",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetChangeParm.parammaps.inputDatetimeAssetChange,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"inputDatetimeAssetChange",t)},expression:"getAssetChangeParm.parammaps.inputDatetimeAssetChange"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetChange}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetChange,expression:"listLoadingAssetChange"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetChange-1)*e.pageSizeAssetChange+1))])]}}],null,!1,1891472333)}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",formatter:e.changeStatue,prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",prop:"changeName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetChange,page:e.getAssetChangeParm.offset,limit:e.getAssetChangeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetChangeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetChangeParm,"pagecount",t)},pagination:e.getAssetChangeList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"备件领用记录",name:"seventh"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getAssetPartApplyParm.parammaps.useCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"useCode",t)},expression:"getAssetPartApplyParm.parammaps.useCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getAssetPartApplyParm.parammaps.partCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partCode",t)},expression:"getAssetPartApplyParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getAssetPartApplyParm.parammaps.partName,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partName",t)},expression:"getAssetPartApplyParm.parammaps.partName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetPartApply",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"inputDatetimeAssetPartApply",t)},expression:"getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetPartApply}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetPartApply,expression:"listLoadingAssetPartApply"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetPartApply,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetPartApply-1)*e.pageSizeAssetPartApply+1))])]}}],null,!1,3522052013)}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",sortable:"",prop:"partCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"useNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际出库数量",sortable:"",prop:"checkoutNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间",sortable:"",prop:"receiveTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"距离上次时间(天)",sortable:"",prop:"dif","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetPartApply,page:e.getAssetPartApplyParm.offset,limit:e.getAssetPartApplyParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetPartApplyParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetPartApplyParm,"pagecount",t)},pagination:e.getAssetPartApplyList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"费用统计",name:"eighth"}},[a("el-row",[a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}}):e._e()]),e._v(" "),a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}}):e._e()])],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],"append-to-body":"",visible:e.dialogFormVisible_ChartSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible_ChartSee=t}}},[a("div",{staticClass:"app-contentSee"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getChartSeeParm.parammaps.useTypeV,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"useTypeV",t)},expression:"getChartSeeParm.parammaps.useTypeV"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getChartSeeParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"inputDatetime2",t)},expression:"getChartSeeParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchChartSee}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChartSee,expression:"listLoadingChartSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listChartSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChartSee-1)*e.pageSizeChartSee+1))])]}}],null,!1,747959405)}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"单号",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.RUcode))])]}}],null,!1,3074352844)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"领用日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatTime))])]}}],null,!1,462173042)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}],null,!1,1252061914)}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"退库数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}],null,!1,3036156380)}),e._v(" "),a("el-table-column",{key:12,attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{key:13,attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChartSee>=0,expression:"totalChartSee>=0"}],attrs:{total:e.totalChartSee,page:e.getChartSeeParm.offset,limit:e.getChartSeeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getChartSeeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getChartSeeParm,"pagecount",t)},pagination:e.getChartSeeList}})],1)])],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"batchChangeTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.batchChange.temp,"label-position":"right","label-width":"115px"},nativeOn:{click:function(e){e.preventDefault()},submit:function(e){e.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更部门"},on:{change:e.changeBatchDept},model:{value:e.batchChange.temp.departmentId,callback:function(t){e.$set(e.batchChange.temp,"departmentId",t)},expression:"batchChange.temp.departmentId"}},e._l(e.batchChange.deptList,(function(e){return a("el-option",{key:e.deptid,attrs:{label:e.departmentName,value:e.deptid}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更责任人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更责任人"},on:{change:e.changeBatchPerson},model:{value:e.batchChange.temp.employeeId,callback:function(t){e.$set(e.batchChange.temp,"employeeId",t)},expression:"batchChange.temp.employeeId"}},e._l(e.batchChange.personList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"AssetDesignee",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},placeholder:"请选择设备类别",findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{proId:"",brandId:"",assetCode:"",eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{uploadData:function(){return{name:"importStockUse",importParams:"牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/equipment"}},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:h.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.getDownClassList(),this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.get_table_data()},methods:{beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation=""},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var a=[],s=[];void 0==e.picpath||""==e.picpath?a.push():a.push(e.picpath);for(var i=0;i<a.length;i++){var r={};this.$set(r,"url",a[i]),s.push(r)}this.$set(this.createTemp,"fileList",s),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber,console.log(t.data.list[0].createNumber),console.log(e.createTemp.assetCode),e.$forceUpdate()}))},changeSHStatue:function(e){this.statueReason=2==e},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("42ed"),a("058b"),a("c6e2"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"73a42eab",null);t["default"]=y.exports},1468:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useEmpName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("a",{staticStyle:{"border-bottom":"1px solid #333"},on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt))]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e(),e._v(" "),"已录制未上传"==t.row.videoTxt?a("el-link",[e._v("已录制未上传 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),3==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),e.dialogFormVisible_See?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机修:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close_diago()}}},[e._v("关闭")])],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},close_diago:function(){console.log(0xa1b01d4b1c7),this.dialogFormVisible_See=!1},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||8==e.SHStatue?"未通过":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核"},{title:"机修审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"设备主管审核"}]):7===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!1,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("d731"),a("5ee1"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"7184727b",null);t["default"]=g.exports},1574:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"部门",clearable:""},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"编号",clearable:""},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表结构"},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSteamAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isSteamExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isSteamImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编号",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.steamNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.steamName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表结构",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天用气量",sortable:"",prop:"steamConsumption",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.steamConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"倍率",sortable:"",prop:"rate",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用",sortable:"",prop:"sumPrice",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.putName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",sortable:"",prop:"dateFormat"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSteamModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDosageRecord(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"105px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"蒸汽表编号:",prop:"formNumber"}},[a("el-autocomplete",{ref:"formNumber",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formNumber","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurSelect},model:{value:e.temp.formNumber,callback:function(t){e.$set(e.temp,"formNumber",t)},expression:"temp.formNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"蒸汽表名称:",prop:"formName"}},[a("el-autocomplete",{ref:"formName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurSelect},model:{value:e.temp.formName,callback:function(t){e.$set(e.temp,"formName",t)},expression:"temp.formName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"蒸汽类型:"}},[a("span",[e._v(e._s(e.temp.useType))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("span",[e._v(e._s(e.temp.pastureName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:"}},[a("span",[e._v(e._s(e.temp.departName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:"}},[a("span",[e._v(e._s(e.temp.employeName1))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用量:",prop:"consumption"}},[a("el-input",{ref:"consumption",on:{blur:e.handleBlurConsumption},model:{value:e.temp.consumption,callback:function(t){e.$set(e.temp,"consumption",t)},expression:"temp.consumption"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price1"}},[a("el-input",{ref:"price",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.price1,callback:function(t){e.$set(e.temp,"price1",t)},expression:"temp.price1"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:",prop:"rate"}},[a("el-input",{ref:"rate",attrs:{disabled:""},model:{value:e.temp.rate,callback:function(t){e.$set(e.temp,"rate",t)},expression:"temp.rate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.DATE,callback:function(t){e.$set(e.temp,"DATE",t)},expression:"temp.DATE"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("表名称:"+e._s(e.dosageRecordTemp.formName))]),e._v(" "),a("span",[e._v("表编号:"+e._s(e.dosageRecordTemp.formNumber))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",sortable:"",prop:"waterConsumption","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.getDosageRecordList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.deleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=(a("5c96"),a("5f87")),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"Steam",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isSteamAdd:[],isSteamExport:[],isSteamImport:[],isSteamModify:[],formNumberSearchList:[],formNameSearchList:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertSteam",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getSteamList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:""}},useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["ZQ流量计类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},requestFilterParams:{name:"getSteamList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{consumption:"",pastureName:"",useType:"",departName:"",aAmount:"",employeName1:"",formName:"",formNumber:"",measureId:"",endAmount:"",employeName:"",price1:"",note:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getAllMeasureTypeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dosageRecordTemp:{},rules:{endAmount:[{type:"number",required:!0,validator:function(t,a,s){a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],price1:[{required:!0,message:"必填",trigger:"blur"}],consumption:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"insertSteamsMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:steam:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSteamAdd=t;var a="cost:steam:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSteamcExport=s;var i="cost:steam:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSteamImport=n;var l="cost:steam:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isSteamModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},handleDownload:function(){var e=this;this.$alert("ZQ流量计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfit",this.requestParam.parammaps.formType="ZQ流量计",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.formName=this.getdataListParm.parammaps.formName,this.requestParam.parammaps.formNumber=this.getdataListParm.parammaps.formNumber,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.formType,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注"],r=["编号","牧场","表名称","表编号","抄表日期2","用量","单价2","录入人","备注2"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","错误信息"],r=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"蒸汽表导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="ZQ流量计",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]=e,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.formNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="ZQ流量计",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.formName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNumberSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureSteam",this.requestFilterParams.parammaps["formNumber"]=this.temp.formNumber,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formName=t.data.list[0].formName,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.price1=t.data.list[0].price,e.temp.rate=t.data.list[0].rate,e.$forceUpdate())}))}))},handleformNameSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureSteam",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=this.temp.formName,Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formNumber=t.data.list[0].formNumber,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.price1=t.data.list[0].price,e.temp.rate=t.data.list[0].rate,e.$forceUpdate())}))}))},blurSelect:function(e){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId=""},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null==t.data.list?e.list=[]:(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.consumption="",this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId="",this.temp.endAmount="",this.temp.price1="",this.temp.note="",this.temp.employeId="",this.temp.employeName="",this.temp.DATE=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},handleBlurConsumption:function(){"create"==this.dialogStatus?""!==this.temp.aAmount&&void 0!==this.temp.consumption&&""!==this.temp.consumption&&null!==this.temp.consumption&&(this.temp.endAmount=parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)):(this.$set(this.temp,"endAmount",parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)),this.$forceUpdate())},handleBlurEndAmount:function(){"create"==this.dialogStatus?"undefined"!==this.temp.endAmount&&""!==this.temp.endAmount&&null!==this.temp.endAmount&&""!==this.temp.aAmount&&(this.temp.consumption=parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)):(this.$set(this.temp,"consumption",parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertSteamExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertSteamExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertSteamExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertSteamExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasureUpdate",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.date,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"updateSteam",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,rate:e.temp.rate,id:e.temp.id,note:e.temp.note,employeId:e.temp.employeId,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureSteam",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.date,lastRecodeId:e.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},deleteData:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){t&&(e.requestParam.name="deletedatastem",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.codeType=4,e.requestParam.parammaps.startTime=e.deleteTemp.startTime,e.requestParam.parammaps.stopTime=e.deleteTemp.startTime,Object(r["k"])(e.requestParam).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())})))}))},handleDosageRecord:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),this.getDosageRecordList()},getDosageRecordList:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.id=this.dosageRecordTemp.measureId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"15a2":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备运行统计",use:"icon-设备运行统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备运行统计"><defs><style type="text/css"></style></defs><path d="M562.752 544H512.32a32 32 0 1 1 0-64h50.432l-41.28-41.28a32 32 0 1 1 45.12-45.44l96 96a32 32 0 0 1 0 45.12l-96 96a32 32 0 0 1-45.12-45.12l41.28-41.28zM384 544a32 32 0 1 1 0-64 32 32 0 0 1 0 64z m-150.912 40a288.096 288.096 0 0 0 557.824 0 32 32 0 1 0-61.952-16 224.096 224.096 0 0 1-433.92 0 32 32 0 0 0-61.952 16z m0.32 1.184a32 32 0 1 0 61.312-18.368 32 32 0 0 0-61.312 18.368zM295.04 456a224.096 224.096 0 0 1 433.92 0 32 32 0 0 0 61.952-15.936 288.096 288.096 0 0 0-557.824 0 32 32 0 0 0 61.952 15.936z m-0.064 0.288a32 32 0 1 0-61.824-16.512 32 32 0 0 0 61.824 16.512z" p-id="24318" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"15bc":function(e,t,a){},"15c9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"center"},[e._v(e._s(this.$route.name||""))])},i=[],r={name:"Simple",props:["view"]},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},"15e1":function(e,t,a){"use strict";a("f9fb")},1608:function(e,t,a){"use strict";a("9284")},"16a4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"合同管理",name:"first"}},[e.isContractManagement?a("div",{staticClass:"contractManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"pastureName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"statue",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"providerName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime1",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1"}}),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批日期","end-placeholder":"审批日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime2",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter}},[e._v("搜索")]),e._v(" "),a("div",[e.tab1.contractManagement.isContractAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Create}},[e._v("新增")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeContractManagementAll()}},model:{value:e.tab1.contractManagement.radioAll,callback:function(t){e.$set(e.tab1.contractManagement,"radioAll",t)},expression:"tab1.contractManagement.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.contractManagement.listLoading,expression:"tab1.contractManagement.listLoading"}],key:e.tab1.contractManagement.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.contractManagement.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.contractManagement.pageNum-1)*e.tab1.contractManagement.pageSize+1))])]}}],null,!1,1244293581)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"110px",align:"center",prop:"statued"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center",prop:"providerName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"","min-width":"120px",align:"center",prop:"startTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"","min-width":"120px",align:"center",prop:"stopTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}],null,!1,2232091448)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批时间",sortable:"","min-width":"120px",align:"center",prop:"SHdateTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.tab1.contractManagement.isContractSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1DetailsSpareParts(s)}}},[e._v("备件明细")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1ChangeRecord(s)}}},[e._v("变更记录")]):e._e(),e._v(" "),!e.tab1.contractManagement.isContractChange||"正常"!=s.statued&&"已过期"!=s.statued?e._e():a("el-button",{attrs:{disabled:18==parseInt(s.pastureId)&&18!==parseInt(e.isGroupAdministrator),type:"warning",size:"mini"},on:{click:function(t){return e.handleTab1Change(s)}}},[e._v("变更")])]}}],null,!1,3555687819)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.contractManagement.total>0,expression:"tab1.contractManagement.total>0"}],attrs:{total:e.tab1.contractManagement.total,page:e.tab1.contractManagement.getdataListParm.offset,limit:e.tab1.contractManagement.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"pagecount",t)},pagination:e.getTab1List}})],1):e._e(),e._v(" "),e.isDetailsSpareParts?a("div",{staticClass:"DetailsSpareParts"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("备件明细")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partCode",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partName",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件规格"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.specification,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"specification",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.specification"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter2}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[e.tab1.contractManagement.isContractAdd&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Create2}},[e._v("新增")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractChange&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Change2}},[e._v("变更")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Export2}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoading,expression:"tab1.detailsSpareParts.listLoading"}],key:e.tab1.detailsSpareParts.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.detailsSpareParts.pageNum-1)*e.tab1.detailsSpareParts.pageSize+1))])]}}],null,!1,3360292269)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"120px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"120px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"120px",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center",prop:"brand"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"120px",align:"center",prop:"unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"","min-width":"120px",align:"center",prop:"planAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"","min-width":"120px",align:"center",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"120px",align:"center",prop:"remark"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.detailsSpareParts.total>0,expression:"tab1.detailsSpareParts.total>0"}],attrs:{total:e.tab1.detailsSpareParts.total,page:e.tab1.detailsSpareParts.getdataListParm.offset,limit:e.tab1.detailsSpareParts.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"pagecount",t)},pagination:e.getTab1List2}})],1):e._e(),e._v(" "),e.isChangeRecord?a("div",{staticClass:"ChangeRecord"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("变更记录")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack2()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"流水编号"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更类型"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.SHtype,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"SHtype",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.SHtype"}},e._l(e.changeTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"stuteSH",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.stuteSH"}},e._l(e.auditStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"tab1InputDatetime3",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter3}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeChangeRecordAll()}},model:{value:e.tab1.changeRecord.radioAll,callback:function(t){e.$set(e.tab1.changeRecord,"radioAll",t)},expression:"tab1.changeRecord.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-radio-button",{attrs:{label:"待处理"}}),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.changeRecord.listLoading,expression:"tab1.changeRecord.listLoading"}],key:e.tab1.changeRecord.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.pageNum-1)*e.tab1.changeRecord.pageSize+1))])]}}],null,!1,3286316621)}),e._v(" "),a("el-table-column",{attrs:{label:"流水编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.SHtype?a("span",[e._v("新增合同")]):e._e(),e._v(" "),1==t.row.SHtype?a("span",[e._v("新增备件")]):e._e(),e._v(" "),2==t.row.SHtype?a("span",[e._v("变更备件")]):e._e(),e._v(" "),3==t.row.SHtype?a("span",[e._v("合同变更")]):e._e()]}}],null,!1,1395037520)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.SHStatus||3==t.row.SHStatus||5==t.row.SHStatus?a("span",[e._v("审核中")]):e._e(),e._v(" "),4==t.row.SHStatus||6==t.row.SHStatus||8==t.row.SHStatus?a("span",[e._v("未通过")]):e._e(),e._v(" "),7==t.row.SHStatus?a("span",[e._v("通过")]):e._e()]}}],null,!1,950457820)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1See3(s)}}},[e._v("查看")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?e._e():a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Update3(s)}}},[e._v("编辑")]),e._v(" "),e.tab1.changeRecord.isContractExamineZG&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")]):a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")])]}}],null,!1,2852534092)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.total>0,expression:"tab1.changeRecord.total>0"}],attrs:{total:e.tab1.changeRecord.total,page:e.tab1.changeRecord.getdataListParm.offset,limit:e.tab1.changeRecord.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"pagecount",t)},pagination:e.getTab1List3}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"合同明细",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab2.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"pastureName",t)},expression:"tab2.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPastureList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab2.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"contractCode",t)},expression:"tab2.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab2.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"statue",t)},expression:"tab2.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab2.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab2.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab2.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partCode",t)},expression:"tab2.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab2.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partName",t)},expression:"tab2.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab2.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"providerName",t)},expression:"tab2.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab2.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab2.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab2Filter}},[e._v("搜索")]),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab2Export}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.listLoading,expression:"tab2.listLoading"}],key:e.tab2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab2.pageNum-1)*e.tab2.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"",prop:"startTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"",prop:"planAmount","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatorMan))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",prop:"creatorTime","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab2.total>0,expression:"tab2.total>0"}],attrs:{total:e.tab2.total,page:e.tab2.getdataListParm.offset,limit:e.tab2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab2.getdataListParm,"pagecount",t)},pagination:e.getTab2List}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.contractManagement.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.contractManagement.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.contractManagement.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{disabled:""},model:{value:e.tab1.contractManagement.create.temp.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"contractCode",t)},expression:"tab1.contractManagement.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:e.disabled},model:{value:e.tab1.contractManagement.create.temp.pastureId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureId",t)},expression:"tab1.contractManagement.create.temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入供应商名称或供应商编号"},on:{focus:e.handleFocusProvider,blur:e.handleBlurProvider,select:e.handleSelectProvider},model:{value:e.tab1.contractManagement.create.temp.providerName,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"providerName",t)},expression:"tab1.contractManagement.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.startTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"startTime",t)},expression:"tab1.contractManagement.create.temp.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled,type:"date",clearable:!1,placeholder:"截止日期","picker-options":e.pickerOptions2,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.stopTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"stopTime",t)},expression:"tab1.contractManagement.create.temp.stopTime"}})],1)],1),e._v(" "),"create"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statue,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statue",t)},expression:"tab1.contractManagement.create.temp.statue"}},e._l(e.contractStatus2List,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"change"==e.dialogStatus||"see"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statued,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statued",t)},expression:"tab1.contractManagement.create.temp.statued"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus},on:{change:e.changeIsZero},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorId"}},[a("el-select",{ref:"creatorId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus,placeholder:"录入人"},on:{change:e.changeCreatorMan},model:{value:e.tab1.contractManagement.create.temp.creatorId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorId",t)},expression:"tab1.contractManagement.create.temp.creatorId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:"date","picker-options":e.pickerOptions3,placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.contractManagement.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorTime",t)},expression:"tab1.contractManagement.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注",disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.remark,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"remark",t)},expression:"tab1.contractManagement.create.temp.remark"}})],1)],1),e._v(" "),"see"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"synchronousPasture"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",placeholder:"同步牧场",disabled:"18"!==e.isGroupAdministrator},model:{value:e.tab1.contractManagement.create.temp.synchronousPasture,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"synchronousPasture",t)},expression:"tab1.contractManagement.create.temp.synchronousPasture"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"pastureName2"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"同步牧场",disabled:"see"==e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.pastureName2,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureName2",t)},expression:"tab1.contractManagement.create.temp.pastureName2"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["change"==e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.terminationData()}}},[e._v("终止合同")]):e._e(),e._v(" "),"see"!==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.changeData()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.contractManagement.create.dialogFormVisible=!1,e.getTab1List(),e.tab1.contractManagement.create.temp.providerName=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.detailsSpareParts.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.detailsSpareParts.create,"dialogFormVisible",t)}}},[0!==e.tab1.detailsSpareParts.updateList.SHtype&&3!==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name1","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.tab1.detailsSpareParts.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts,"partCode",t)},expression:"tab1.detailsSpareParts.partCode"}})],1)],1)],1)],1),e._v(" "),"tab1create2"==e.dialogStatus?a("div",{staticClass:"filter-container",staticStyle:{float:"right"}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleTab1DownloadTemp2}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{disabled:e.tab1.detailsSpareParts.isDisabledImport,type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoadingAdd,expression:"tab1.detailsSpareParts.listLoadingAdd"}],key:e.tab1.detailsSpareParts.tableKeyAdd,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{focus:function(a){return e.handleFocusBrand(t.row)},blur:function(a){return e.handleBlurBrand(t.row)},select:function(a){e.handleSelectBrand(a,t.row)}},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})]}}],null,!1,317411465)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"70px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"planAmount"}},[a("el-input",{ref:"planAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.planAmount,callback:function(a){e.$set(t.row,"planAmount",a)},expression:"scope.row.planAmount"}})],1)],1)]}}],null,!1,2115901298)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}],null,!1,875317540)}),e._v(" "),a("el-table-column",{attrs:{label:"税码","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.taxcode,callback:function(a){e.$set(t.row,"taxcode",a)},expression:"scope.row.taxcode"}})]}}],null,!1,2208511593)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:"",maxlength:"100","show-word-limit":""},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}],null,!1,892001844)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,2490411768)})],1)],1):e._e(),e._v(" "),0==e.tab1.detailsSpareParts.updateList.SHtype||3==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"牧场",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.pastureName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"pastureName",t)},expression:"tab1.detailsSpareParts.create.temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.contractCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"contractCode",t)},expression:"tab1.detailsSpareParts.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.providerName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"providerName",t)},expression:"tab1.detailsSpareParts.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.startTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"startTime",t)},expression:"tab1.detailsSpareParts.create.temp.startTime"}})],1)],1),e._v(" "),"tab1Update2"==e.dialogStatus&&0==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.stopTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTime",t)},expression:"tab1.detailsSpareParts.create.temp.stopTime"}})],1)],1):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus&&0!==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期后:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.detailsSpareParts.create.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("el-input",{ref:"creatorMan",attrs:{placeholder:"录入人",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.creatorMan,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorMan",t)},expression:"tab1.detailsSpareParts.create.temp.creatorMan"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype||"tab1Update2"==e.dialogStatus,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorTime",t)},expression:"tab1.detailsSpareParts.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注"},model:{value:e.tab1.detailsSpareParts.create.temp.remark,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"remark",t)},expression:"tab1.detailsSpareParts.create.temp.remark"}})],1)],1),e._v(" "),0!==e.tab1.detailsSpareParts.create.temp.SHtype&&"tab1Update2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3!==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e()],1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["tab1create2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1change2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.detailsSpareParts.create.dialogFormVisible=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-see"},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"128px"}},[0==e.tab1.changeRecord.see.temp.SHtype||3==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureName)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.providerName)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.startTime)+" ")])])],1),e._v(" "),"tab1See2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3!==e.tab1.changeRecord.see.temp.SHtype&&0!==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&0==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.changeRecord.see.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:""},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.remark)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"共享牧场:",prop:"pastureNamesOld"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesOld)+" ")])])],1),e._v(" "),3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后共享牧场:",prop:"pastureNamesNow"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesNow)+" ")])])],1)],1)],1):e._e(),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype||2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"流水编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1)],1):e._e()]),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandhis))])]}}],null,!1,1279656175)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmounthis))])]}}],null,!1,2535967211)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pricehis))])]}}],null,!1,2997895897)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.tab1.changeRecord.see.active,"align-center":"","finish-status":"success"}},e._l(e.tab1.changeRecord.see.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.tab1.changeRecord.isContractExamineZG&&2==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.tab1.changeRecord.see.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.examine.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.examine,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.examine.temp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeExamineStatue},model:{value:e.tab1.changeRecord.examine.temp.statueSH,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"statueSH",t)},expression:"tab1.changeRecord.examine.temp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.tab1.changeRecord.examine.isReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.tab1.changeRecord.examine.temp.workflowNote,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"workflowNote",t)},expression:"tab1.changeRecord.examine.temp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["tab1examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"tab1examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.changeRecord.examine.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("6b54"),a("7514"),a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5f87"),d=a("5c96"),u={inject:["reload"],name:"ContractManagement",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isGroupAdministrator:m.a.get("pastureid"),isEmployeid:m.a.get("employeid"),isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],activeName:"first",contractStatusList:[{id:"0",name:"正常"},{id:"1",name:"已过期"},{id:"2",name:"终止"},{id:"3",name:"新增未通过"}],contractStatus2List:[{id:"1",name:"正常"},{id:"0",name:"终止"}],auditStatusList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],changeTypeList:[{id:"0",name:"新增合同"},{id:"1",name:"新增备件"},{id:"2",name:"变更备件"},{id:"3",name:"合同变更"}],isZeroInventoryList:[{id:"0",name:"否"},{id:"1",name:"是"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllPastureList2:[],findAllDepart:[],findAllEmploye:[],findAllCategory:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllPastureForContract",offset:0,pagecount:0,returntype:"Map",parammaps:{id:18}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:18}},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],isokDisable:!1,disabled:!0,rules:{},textMap:{create:"新增合同",see:"查看详情",change:"变更合同",tab1create2:"新增备件",tab1change2:"变更备件",tab1examine:"审核",tab1examine2:"审核2",tab1examine3:"审核2",tab1See2:"查看",tab1Update2:"编辑"},dialogStatus:"",isContractManagement:!0,isDetailsSpareParts:!1,isChangeRecord:!1,tab1:{contractManagement:{radioAll:"全部",isContractAdd:[],isContractExport:[],isContractSee:[],isContractChange:[],isDisabled:!1,tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),pastureName:m.a.get("pasturename"),contractCode:"",statue:"",stuteSH:"",providerName:"",tab1InputDatetime1:"",startTime:"",stopTime:"",tab1InputDatetime2:"",SHdateTimeF:"",SHdateTimeE:"",SHnums:2}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"HT"}},create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:"",synchronousPasture:[],synchronousPastureList:[]},changeEchoParm:{name:"getBigcontractPId",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{}}}},detailsSpareParts:{tableKey:1,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{specification:"",partName:"",partCode:"",pastureId:"",providerId:"",stopTime:"",flag:"",isZeroStock:"",statue:""}},partCode:"",requestSparePart:{name:"",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},detailsList:[],updateList:[],tableKeyAdd:0,listLoadingAdd:!1,listAdd:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:""}},isDisabledImport:!0,clearImportExcelParm:{name:"deletecontract_upload",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}},importExcelParm:{name:"getcontract_uploadlist",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}}},changeRecord:{isContractExamineZG:[],isContractExamineZX:[],isContractDelete:[],isStatueReason:!1,isReason:!1,radioAll:"全部",tableKey:2,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),contractCode:"",tab1InputDatetime3:"",startTime:"",stopTime:"",SHStatus:"",SHtype:"",pastureId:"",providerId:"",stopTime1:"",flag:"",isZeroStock:"",statue:"",SHnums:2,stuteSH:""}},see:{dialogFormVisible:!1,activeList:[],active:3,temp:{},tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigSH",returntype:"Map",page:0,offset:0,pagecount:10,parammaps:{}}},examine:{dialogFormVisible:!1,temp:{statueSH:1},isReason:!1}}},postDataPramas:{},pickerOptions2:{disabledDate:function(t){return Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<=e.tab1.contractManagement.create.temp.startTime||Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<Object(l["e"])(Date.now(),"{y}-{m}-{d}")}},pickerOptions3:{disabledDate:function(e){return e.getTime()>Date.now()}},tab2:{tableKey:0,listLoading:!1,total:0,getdataListParm:{name:"contractDetailV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",providerName:"",contractCode:"",stopTime:"",startTime:"",statue:"",partCode:"",partName:"",isZeroStock:"",pastureName:""}},list:[]},UpdateDataParam:{},UpdateDataParam2:{},pending:{total:0,getdataListParm:{name:"providerPactListV2",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}}}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"insertcontract_upload",importParams:"备件编号,备件名称,规格型号,计量单位,品牌,计划量,单价,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){console.log(this.$route.query.contractCode),this.get_select_list();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.getTab1List(),this.getPendingList(),void 0==this.$route.query.contractCode?this.tab1.contractManagement.getdataListParm.parammaps.contractCode="":this.tab1.contractManagement.getdataListParm.parammaps.contractCode=this.$route.query.contractCode},methods:{tableSort1:function(e){Object(l["f"])(e,this.tab1.detailsSpareParts.list)},tableSort2:function(e){Object(l["f"])(e,this.tab2.list)},get_auto_buttons:function(){var e="customs:contract:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.tab1.contractManagement.isContractAdd=t;var a="customs:contract:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.tab1.contractManagement.isContractSee=s;var i="customs:contract:examineZG",n=Object(r["v"])(this.$store.state.user.buttons,i);this.tab1.changeRecord.isContractExamineZG=n;var l="customs:contract:examineZX",o=Object(r["v"])(this.$store.state.user.buttons,l);this.tab1.changeRecord.isContractExamineZX=o;var p="customs:contract:delete",m=Object(r["v"])(this.$store.state.user.buttons,p);this.tab1.changeRecord.isContractDelete=m;var c="customs:contract:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.tab1.contractManagement.isContractExport=d;var u="customs:contract:change",h=Object(r["v"])(this.$store.state.user.buttons,u);this.tab1.contractManagement.isContractChange=h},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPastureList2=t.data.findAllPastureForContract.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},handleClick:function(){"first"==this.tab1.contractManagement.create.temp.activeName?(console.log("点击了合同管理"),this.getTab1List()):(console.log("点击了合同明细"),this.getTab2List())},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.loginid=this.tab1.contractManagement.getdataListParm.parammaps.loginid,this.pending.getdataListParm.parammaps.pastureName=this.tab1.contractManagement.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.contractCode=this.tab1.contractManagement.getdataListParm.parammaps.contractCode,this.pending.getdataListParm.parammaps.statue=this.tab1.contractManagement.getdataListParm.parammaps.statue,this.pending.getdataListParm.parammaps.stuteSH=this.tab1.contractManagement.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.providerName=this.tab1.contractManagement.getdataListParm.parammaps.providerName,this.pending.getdataListParm.parammaps.tab1InputDatetime1=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,this.pending.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.startTime,this.pending.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.stopTime,this.pending.getdataListParm.parammaps.tab1InputDatetime2=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,this.pending.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF,this.pending.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE,this.pending.getdataListParm.parammaps.SHnums=0,Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},getTab1List:function(){var e=this;this.tab1.contractManagement.listLoading=!0,""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1?(this.tab1.contractManagement.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[0],this.tab1.contractManagement.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[1]):(this.tab1.contractManagement.getdataListParm.parammaps.startTime="",this.tab1.contractManagement.getdataListParm.parammaps.stopTime=""),""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2?(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[0],this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[1]):(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF="",this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=""),Object(r["e"])(this.tab1.contractManagement.getdataListParm).then((function(t){null!==t.data.list?(e.tab1.contractManagement.list=t.data.list,e.tab1.contractManagement.pageNum=t.data.pageNum,e.tab1.contractManagement.pageSize=t.data.pageSize):e.tab1.contractManagement.list=[],e.tab1.contractManagement.total=t.data.total,setTimeout((function(){e.tab1.contractManagement.listLoading=!1}),300)}))},handleTab1Filter:function(){this.tab1.contractManagement.listLoading=!0,null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1=""),null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2=""),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List(),this.getPendingList(),"全部"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2,this.getTab1List()):"待处理"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0,this.getTab1List()):"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1,this.getTab1List())},changeContractManagementAll:function(){"全部"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2:"待处理"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0:"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List()},changeTime:function(e){""!==this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.stopTime<=this.tab1.contractManagement.create.temp.startTime?(this.tab1.contractManagement.create.temp.stopTime="",this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId=""):Object(l["e"])(new Date,"{y}-{m}-{d}")<=this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.statue="1":this.tab1.contractManagement.create.temp.statue="0":(this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId="")},changeIsZero:function(e){console.log(e)},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelectProvider:function(e){this.$set(this.tab1.contractManagement.create.temp,"providerId",e.id),this.$set(this.tab1.contractManagement.create.temp,"providerName",e.name)},handleFocusProvider:function(){this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName=""},handleBlurProvider:function(){""==this.tab1.contractManagement.create.temp.providerId&&(this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName="")},changeCreatorMan:function(e){this.tab1.contractManagement.create.temp.creatorMan=this.findAllEmploye.find((function(t){return t.id==e})).name},resetCreateTemp:function(){if(this.tab1.contractManagement.create.temp.synchronousPastureList=[],18==m.a.get("pastureid"))for(var e=0;e<this.findAllPasture.length;e++)this.tab1.contractManagement.create.temp.synchronousPastureList.push(this.findAllPasture[e].id);else this.tab1.contractManagement.create.temp.synchronousPastureList.push(parseInt(m.a.get("pastureid")));this.tab1.contractManagement.create.temp={contractCode:"",pastureId:parseFloat(m.a.get("pastureid")),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:parseFloat(m.a.get("employeid")),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),synchronousPasture:this.tab1.contractManagement.create.temp.synchronousPastureList,synchronousPasture2:[]}},handleTab1Create:function(){this.resetCreateTemp(),this.dialogStatus="create",this.tab1.contractManagement.create.dialogFormVisible=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.tab1.contractManagement.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("合同编号",t.data.list[0].orderCode),e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.tab1.contractManagement.create.temp.contractCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate(),e.saveCreateData()}))})):e.saveCreateData())}))},saveCreateData:function(){var e=this;if(this.postDataPramas={},18==m.a.get("pastureid")&&-1==this.tab1.contractManagement.create.temp.synchronousPasture.indexOf(18))return this.$message({type:"error",message:"当前合同归属于现代牧业,未选中,共享牧场请选中现代牧业!",duration:2e3}),!1;this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontract",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId}},this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.stopTime,contractCode:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:1,remark:this.tab1.contractManagement.create.temp.remark,SHtype:0}};for(var t=[],a=0;a<this.tab1.contractManagement.create.temp.synchronousPasture.length;a++){var s={};s.pastureId=this.tab1.contractManagement.create.temp.synchronousPasture[a],t.push(s)}18==m.a.get("pastureid")&&(this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPastureBigcontract",type:"e",parammaps:{bigcontractId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId"}}),Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_see:function(e){var t=this;console.log("查看",e),e.statue=String(e.statue),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.dialogStatus="see",this.tab1.contractManagement.create.dialogFormVisible=!0;var a="未通过原因:"+this.tab1.contractManagement.create.temp.workflowNote;2==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=1):3==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):4==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson,status:"error",reason:a},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):5==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):6==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=3):7==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson}],this.tab1.contractManagement.create.temp.active=4):8==this.tab1.contractManagement.create.temp.SHStatus&&(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson,status:"error",reason:a}],this.tab1.contractManagement.create.temp.active=4),this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},handleTab1Change:function(e){var t=this;console.log("变更",e),this.$set(e,"mystopTime",e.stopTime),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.tab1.contractManagement.create.temp.statue=String(this.tab1.contractManagement.create.temp.statue),this.dialogStatus="change",this.tab1.contractManagement.create.dialogFormVisible=!0,this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},terminationData:function(){var e=this,t="确认终止合同?";t=1==this.tab1.contractManagement.create.temp.isZeroStock?"若此合同库存中有剩余库存,建议先进行退货操作。":"确认终止合同?",d["MessageBox"].confirm(t,{confirmButtonText:"确认终止",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDataPramas={},e.postDataPramas.name="updatecontractstatuV2",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.tab1.contractManagement.create.temp,e.postDataPramas.parammaps.creatorId=m.a.get("employeid"),e.postDataPramas.parammaps.creatorMan=m.a.get("employename"),e.postDataPramas.parammaps.creatorTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),Object(r["k"])(e.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},changeData:function(){var e=this;if(18==m.a.get("pastureid")&&(this.UpdateDataParam={},this.UpdateDataParam.name="pasture_bigcontract",this.UpdateDataParam.dataname="bigcontract_id",this.UpdateDataParam.datavalue=this.tab1.contractManagement.create.temp.id,this.UpdateDataParam.valuename="pasture_id",this.UpdateDataParam.values=this.tab1.contractManagement.create.temp.synchronousPasture,Object(r["u"])(this.UpdateDataParam).then((function(t){"fail"!==t.msg&&(e.UpdateDataParam2.name="updateBigcontractPId",e.UpdateDataParam2.parammaps={},e.UpdateDataParam2.parammaps.bigcontract_id=e.tab1.contractManagement.create.temp.id,e.UpdateDataParam2.parammaps.enable=0,Object(r["k"])(e.UpdateDataParam2).then((function(e){})))}))),this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontractSH",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,stopTime:this.tab1.contractManagement.create.temp.mystopTime,flag:this.tab1.contractManagement.create.temp.flag,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue}},18==m.a.get("pastureid")){for(var t=[],a=function(a){t.push(e.findAllPasture.find((function(t){return t.id==e.tab1.contractManagement.create.temp.synchronousPasture[a]})).name)},s=0;s<this.tab1.contractManagement.create.temp.synchronousPasture.length;s++)a(s);this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3,pastureNamesOld:this.tab1.contractManagement.create.temp.synchronousPastureName2.toString(),pastureNamesNow:t.toString()}}}else this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3}};Object(r["c"])(this.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1DetailsSpareParts:function(e){console.log("备件明细",e),this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.isContractManagement=!1,this.isDetailsSpareParts=!0,this.tab1.detailsSpareParts.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.detailsSpareParts.getdataListParm.parammaps.providerId=e.providerId,this.tab1.detailsSpareParts.getdataListParm.parammaps.stopTime=e.stopTime,this.tab1.detailsSpareParts.getdataListParm.parammaps.flag=e.flag,this.tab1.detailsSpareParts.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.detailsSpareParts.getdataListParm.parammaps.statue=e.statue,this.tab1.detailsSpareParts.getdataListParm.parammaps.partCode="",this.tab1.detailsSpareParts.getdataListParm.parammaps.partName="",this.tab1.detailsSpareParts.getdataListParm.parammaps.specification="",this.getTab1List2()},handleTab1goBack:function(){this.isContractManagement=!0,this.isDetailsSpareParts=!1,this.tab1.detailsSpareParts.total=0,this.getTab1List()},getTab1List2:function(){var e=this;this.tab1.detailsSpareParts.listLoading=!0,Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)if(null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.detailsSpareParts.list=t.data.list,e.tab1.detailsSpareParts.pageNum=t.data.pageNum,e.tab1.detailsSpareParts.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.detailsSpareParts.total=t.data.total:e.tab1.detailsSpareParts.total=0}else e.tab1.detailsSpareParts.list=[];setTimeout((function(){e.tab1.detailsSpareParts.listLoading=!1}),300)}))},handleTab1Filter2:function(){this.tab1.detailsSpareParts.listLoading=!0,this.tab1.detailsSpareParts.getdataListParm.offset=1,this.getTab1List2()},sparePartSearch:function(e,t){this.tab1.detailsSpareParts.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestSparePart).then((function(e){null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.tab1.detailsSpareParts.listAdd.length>0?this.tab1.detailsSpareParts.listAdd.find((function(t){return t.partCode==e.partCode}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.$set(e,"taxcode",""),this.tab1.detailsSpareParts.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.tab1.detailsSpareParts.listAdd.unshift(e))},brandSearch:function(e,t){var a=this;this.tab1.detailsSpareParts.requestBrand.parammaps["brandName"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestBrand).then((function(e){a.tab1.detailsSpareParts.BrandList=e.data.list,t(a.tab1.detailsSpareParts.BrandList)}))},handleSelectBrand:function(e,t){this.$set(t,"brandName",e.brandName),this.$set(t,"brandId",e.brandId),this.$forceUpdate()},handleFocusBrand:function(e){this.$set(e,"brandName",""),this.$set(e,"brandId","")},handleBlurBrand:function(e){""==e.brandId&&(this.$set(e,"brand",""),this.$set(e,"brandName",""),this.$set(e,"brandId",""))},partDelete:function(e){var t=this;console.log("备件明细-备件删除",e),d["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.tab1.detailsSpareParts.listAdd.length;a++){if(console.log(t.tab1.detailsSpareParts.listAdd[a]),t.tab1.detailsSpareParts.listAdd[a].myid===e.myid)var s=t.tab1.detailsSpareParts.listAdd.indexOf(t.tab1.detailsSpareParts.listAdd[a]);if(s>-1)return void t.tab1.detailsSpareParts.listAdd.splice(s,1)}}))},handleTab1DownloadTemp2:function(){var e=this;console.log("备件明细-备件模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],r=e.formatJsonTemp(i,a);t.export_json_to_excel({header:s,data:r,filename:"备件明细模板",autoWidth:!0,bookType:"xlsx"})}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;console.log(e),"ok"==e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","报错信息"],r=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"合同报错信息",autoWidth:!0,bookType:"xlsx"})}))),this.getImportExcelList()):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"==e?Object(l["e"])(t[e]):t[e]}))}))},getClearImportExcelList:function(){var e=this;Object(r["k"])(this.tab1.detailsSpareParts.clearImportExcelParm).then((function(t){console.log(t.msg),"ok"==t.msg&&(e.tab1.detailsSpareParts.isDisabledImport=!1)}))},getImportExcelList:function(){var e=this;Object(r["e"])(this.tab1.detailsSpareParts.importExcelParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0==t.data.list[a].picpath?(t.data.list[a].picpath="",t.data.list[a].srcpath=""):(e.$set(t.data.list[a],"srcpath","http://127.0.0.1:8082/"+t.data.list[a].srcpath),e.$set(t.data.list[a],"picpath","http://127.0.0.1:8082/"+t.data.list[a].picpath)),t.data.list[a].myid=(new Date).getTime()+a;e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.detailsSpareParts.list=[]}))},handleTab1Create2:function(){console.log("备件明细-新增/变更"),this.dialogStatus="tab1create2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.partCode="",this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={},this.getClearImportExcelList()},add_dialog_save2:function(){var e=this;if(console.log("备件明细-新增保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:1}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Change2:function(){console.log("备件明细-变更"),this.dialogStatus="tab1change2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts"},changeData2:function(){var e=this;if(console.log("备件明细-变更保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:2}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId",pastureName:"@insertSpotList.pastureName",partId:"@insertSpotList.partId",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Export2:function(){var e=this;console.log("备件明细-导出"),this.$alert("备件明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t),e.tab1.detailsSpareParts.getdataListParm.pagecount=10),e.percentage=e.percentage}),1e3);this.tab1.detailsSpareParts.getdataListParm.pagecount="",Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),null!==t.data.list&&e.$nextTick((function(){var e=[{tHeader:["备件编号","备件名称","备件规格","备件品牌","计量单位","计划量","单价","备注"],filterVal:["partCode","partName","specification","brand","unit","planAmount","price","remark"],tableDatas:t.data.list,sheetName:"合同管理-备件明细"}];Object(l["d"])(e,"合同管理-备件明细",!0,"xlsx")}))}))},handleTab1ChangeRecord:function(e){console.log("变更记录"),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.isContractManagement=!1,this.isChangeRecord=!0,this.tab1.changeRecord.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.changeRecord.getdataListParm.parammaps.providerId=e.providerId,this.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.stopTime,this.tab1.changeRecord.getdataListParm.parammaps.flag=e.flag,this.tab1.changeRecord.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.changeRecord.getdataListParm.parammaps.statue=e.statue,this.tab1.changeRecord.getdataListParm.parammaps.contractCode="",this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3="",this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime="",this.tab1.changeRecord.getdataListParm.parammaps.SHtype="",this.tab1.changeRecord.getdataListParm.parammaps.stuteSH="",this.getTab1List3()},handleTab1goBack2:function(){this.isContractManagement=!0,this.isChangeRecord=!1,this.tab1.changeRecord.total=0,this.getTab1List()},getTab1List3:function(){var e=this;this.tab1.changeRecord.listLoading=!0,void 0!==this.$refs["tab1InputDatetime3"]&&null!==this.$refs["tab1InputDatetime3"].value?(this.tab1.changeRecord.getdataListParm.parammaps.startTime=this.$refs["tab1InputDatetime3"].value[0],this.tab1.changeRecord.getdataListParm.parammaps.stopTime=this.$refs["tab1InputDatetime3"].value[1]):(this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab1.changeRecord.getdataListParm).then((function(t){e.tab1.changeRecord.list=t.data.list,e.tab1.changeRecord.pageNum=t.data.pageNum,e.tab1.changeRecord.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.changeRecord.total=t.data.total:e.tab1.changeRecord.total=0,setTimeout((function(){e.tab1.changeRecord.listLoading=!1}),300)}))},handleTab1Filter3:function(){this.tab1.changeRecord.listLoading=!0,null==this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3&&(this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3=""),this.tab1.changeRecord.getdataListParm.offset=1,"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},changeChangeRecordAll:function(){"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},handleTab1See3:function(e){console.log("变更记录-查看"),this.tab1.changeRecord.see.temp=Object.assign({},e),this.dialogStatus="tab1See2",this.tab1.changeRecord.see.dialogFormVisible=!0,0!=e.SHtype&&1!=e.SHtype&&2!=e.SHtype||(this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See());var t="未通过原因:"+this.tab1.changeRecord.see.temp.workflowNote;2==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=1):3==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):4==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson,status:"error",reason:t},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):5==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):6==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=3):7==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson}],this.tab1.changeRecord.see.active=4):8==this.tab1.changeRecord.see.temp.SHStatus&&(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson,status:"error",reason:t}],this.tab1.changeRecord.see.active=4)},getTab1List3See:function(){var e=this;Object(r["e"])(this.tab1.changeRecord.see.getdataListParm).then((function(t){if(null!==t.data.list){e.tab1.changeRecord.see.pageNum=t.data.pageNum,e.tab1.changeRecord.see.pageSize=t.data.pageSize,t.data.total&&(e.tab1.changeRecord.see.total=t.data.total);for(var a=0;a<t.data.list.length;a++)if(t.data.list[a].myid=(new Date).getTime()+a,null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.changeRecord.see.list=t.data.list,e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.changeRecord.see.list=[],e.tab1.detailsSpareParts.listAdd=[];setTimeout((function(){e.tab1.changeRecord.see.listLoading=!1}),300)}))},handleTab1Update3:function(e){console.log("变更记录-编辑",e),this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.create.temp=Object.assign({},e),this.dialogStatus="tab1Update2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See(),1==e.SHtype?(this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={}):(this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts")},edit_dialog_save2:function(){var e=this;if(console.log("编辑保存"),0==this.tab1.detailsSpareParts.updateList.SHtype||3==this.tab1.detailsSpareParts.updateList.SHtype)this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updateBigcontractV2",type:"e",parammaps:{id:this.tab1.detailsSpareParts.create.temp.id,startTime:this.tab1.detailsSpareParts.create.temp.startTime,stopTime:this.tab1.detailsSpareParts.create.temp.stopTime,isZeroStock:this.tab1.detailsSpareParts.create.temp.isZeroStock,remark:this.tab1.detailsSpareParts.create.temp.remark,stopTimeHis:this.tab1.detailsSpareParts.create.temp.stopTimeHis}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(0==e.tab1.detailsSpareParts.updateList.SHtype&&(e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.create.temp.stopTime),e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}));else{if(0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""==this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return console.log(this.tab1.detailsSpareParts.listAdd[t]),this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deleteContract",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],2==this.tab1.detailsSpareParts.updateList.SHtype?this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}}:(this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}}),this.postDataPramas.data[2]={name:"updateBigcontract",type:"e",parammaps:{id:this.tab1.detailsSpareParts.updateList.id}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}},changeExamineStatue:function(e){this.tab1.changeRecord.examine.isReason=2==e},handleTab1Examine:function(e){console.log("变更记录-审核"),this.dialogStatus="tab1examine",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.temp=Object.assign({},e),this.tab1.changeRecord.examine.isReason=!1,void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.keyupSubmit()},keyupSubmit:function(){var e=this;"tab1examine"!=this.dialogStatus&&"tab1examine2"!=this.dialogStatus&&"tab1examine3"!=this.dialogStatus||(document.onkeydown=function(t){var a=window.event.keyCode;13===a&&("tab1examine"==e.dialogStatus?e.createExamineData():e.createExamineData3())})},createExamineData:function(){var e=this;console.log("点击了设备主管审核确认1"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.name="contractCharge",e.postDataPramas.parammaps={},e.postDataPramas.parammaps.id=e.tab1.changeRecord.examine.temp.id,1===e.tab1.changeRecord.examine.temp.statueSH?e.postDataPramas.parammaps.statue=5:e.postDataPramas.parammaps.statue=4,e.postDataPramas.parammaps.empId=m.a.get("employeid"),e.postDataPramas.parammaps.workflowNote=e.tab1.changeRecord.examine.temp.workflowNote,Object(r["k"])(e.postDataPramas).then((function(t){console.log("设备主管审核确认发送参数",e.postDataPramas),"fail"!==t.msg?(e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList()):Object(r["w"])(t,e.$notify)})))}))},handleTab1Examine3:function(e){console.log(" 变更记录-审核3"),void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.dialogStatus="tab1examine3",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.isReason=!1,this.keyupSubmit()},createExamineData3:function(){var e=this;console.log("点击了设备中心审核确认3"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],1==e.tab1.changeRecord.examine.temp.statueSH?(e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:7,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},1==e.tab1.changeRecord.examine.temp.SHtype||2==e.tab1.changeRecord.examine.temp.SHtype?e.postDataPramas.data[1]={name:"updateContractEnable",type:"e",parammaps:{id:e.tab1.changeRecord.examine.temp.id}}:3==e.tab1.changeRecord.examine.temp.SHtype&&(e.postDataPramas.data[1]={name:"updatecontractdate",type:"e",parammaps:{pastureId:e.tab1.changeRecord.examine.temp.pastureId,providerId:e.tab1.changeRecord.examine.temp.providerId,stopTimeHis:e.tab1.changeRecord.examine.temp.stopTimeHis,flag:e.tab1.changeRecord.examine.temp.flag,isZeroStock:e.tab1.changeRecord.examine.temp.isZeroStock,statue:e.tab1.changeRecord.examine.temp.statue,startTime:e.tab1.changeRecord.examine.temp.startTime,stopTime:e.tab1.changeRecord.examine.temp.stopTime,id:e.tab1.changeRecord.examine.temp.id}})):e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:8,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(7==e.postDataPramas.data[0].parammaps.statue?3==e.tab1.changeRecord.examine.temp.SHtype?e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTimeHis:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTime:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.detailsList.stopTime,e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.examine.isStatueReason=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList())})))}))},handleTab1Delete3:function(e){var t=this;console.log("变更记录-删除"),console.log("点击了删除"),d["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas={},t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigContract",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deleteContract",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getTab1List3(),t.getPendingList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getTab2List:function(){var e=this;this.tab2.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab2.getdataListParm).then((function(t){null!==t.data.list?(e.tab2.list=t.data.list,e.tab2.pageNum=t.data.pageNum,e.tab2.pageSize=t.data.pageSize,t.data.total&&(e.tab2.total=t.data.total)):e.tab2.list=[],setTimeout((function(){e.tab2.listLoading=!1}),300)}))},handleTab2Filter:function(){this.listLoading2=!0,null===this.tab2.getdataListParm.parammaps.inputDatetime&&(this.tab2.getdataListParm.parammaps.inputDatetime=""),this.tab2.getdataListParm.offset=1,this.getTab2List()},handleTab2Export:function(){var e=this;this.$alert("合同明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),this.tab2.getdataListParm.pagecount="",Object(r["e"])(this.tab2.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].isZeroStock?t.data.list[a].isZeroStock="否":t.data.list[a].isZeroStock="是";e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)}else e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);e.tab2.getdataListParm.pagecount=10,e.$nextTick((function(){var e=[{tHeader:["牧场","合同编号","合同状态","供应商","合同开始日期","合同截止日期","零库存","备件编号","备件名称","规格","备件品牌","计量单位","计划量","单价","备注","录入人","录入日期"],filterVal:["pastureName","contractCode","statue","providerName","startTime","stopTime","isZeroStock","partCode","partName","specification","brand","unit","planAmount","price","remark","creatorMan","creatorTime"],tableDatas:t.data.list,sheetName:"合同明细"}];Object(l["d"])(e,"合同明细",!0,"xlsx")}))}))}}},h=u,g=(a("04a4"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"07679b10",null);t["default"]=f.exports},1711:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[e.isPasture?a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.tableObj.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"pastureName",t)},expression:"tableObj.getdataListParm.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),e.isPasture||e.isType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备类别",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"eqClassId",t)},expression:"tableObj.getdataListParm.parammaps.eqClassId"}},e._l(e.eqClassList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.remark,value:e.id}})})),1):e._e(),e._v(" "),e.isPasture?a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"280px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.tableObj.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"inputDatetime",t)},expression:"tableObj.getdataListParm.parammaps.inputDatetime"}}):e._e(),e._v(" "),e.isType2?a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.tableObj.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"eqName",t)},expression:"tableObj.getdataListParm.parammaps.eqName"}}):e._e(),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.form_export}},[e._v("导出")])],1),e._v(" "),e.isTitle?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goFirst}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(this.pastureName))])]):e._e(),e._v(" "),e.isTitle2?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goFirst}},[e._v("所有牧场")]),e._v(">"),a("span",{on:{click:e.goSecond}},[e._v(e._s(this.pastureName))]),e._v(">"),a("span",[e._v(e._s(this.typename))])]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),e.isPasture?a("el-table-column",{key:1,attrs:{label:"牧场","min-width":"140px",sortable:"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.table_click(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,330012250)}):e._e(),e._v(" "),e.isPasture?a("el-table-column",{key:5,attrs:{label:"设备二级分类名称",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.eqClassName))])]}}],null,!1,2021499641)}):e._e(),e._v(" "),e.isType?a("el-table-column",{key:5,attrs:{label:"设备三级分类名称",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.table_click2(s)}}},[e._v(e._s(s.eqClassName))])]}}],null,!1,1406721222)}):e._e(),e._v(" "),e.isType2?a("el-table-column",{attrs:{label:"设备名称",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.eqName))])]}}],null,!1,115683383)}):e._e(),e._v(" "),e.isType2?a("el-table-column",{attrs:{label:"设备内部编号",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.eqCode))])]}}],null,!1,4147381757)}):e._e(),e._v(" "),a("el-table-column",{key:6,attrs:{label:"维修次数",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.count))])]}}])}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"平均维修时间(MTTR)",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.mttr))])]}}])}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"无故障时间(MTTF)",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.mttf))])]}}])}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"平均故障间隔时间(MTBF)",sortable:"","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.mtbf))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>0,expression:"tableObj.total>0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.parammaps.offset,limit:e.tableObj.getdataListParm.parammaps.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm.parammaps,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm.parammaps,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=(a("7f7f"),a("6724")),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"MaintenanceFault",components:{Pagination:n["a"],TreeSelect:p["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(e){return e.getTime()>(new Date).getTime()-864e5}},isTitle:!1,isTitle2:!1,isPasture:!0,isType:!1,isType2:!1,pastureName:"",eqName:"",eqNameList:[],pastureList:[],eqClassList:[],eqClassList2:[],eqClassList3:[],pageNum:0,pageSize:0,tableObj:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"pasture",returntype:"Map",parammaps:{eqClassId:"",startTime:"",pastureName:"",pastureId:"",endTime:"",level:1,page:1,offset:1,pagecount:10,eqName:"",inputDatetime:[]}}},disabled:!1,placeholder:"请选择设备类别",nodeKey:"id",parentClass:[],getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},dataform:{eqClassId:"",typeCode:""},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.getTimeFn(),this.get_select_list()},methods:{get_select_list:function(){var e=this,t=[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"getEqClassBengbu",offset:0,pagecount:0,returntype:"Map",parammaps:{section:"2"}}];Object(l["f"])(t).then((function(t){e.pastureList=t.data.findAllPasture.list,e.eqClassList=t.data.getEqClassBengbu.list})),Object(l["e"])({name:"getEqClassBengbu",offset:0,pagecount:0,returntype:"Map",parammaps:{section:"2"}}).then((function(t){e.eqClassList2=t.data.list})),Object(l["e"])({name:"getEqClassBengbu",offset:0,pagecount:0,returntype:"Map",parammaps:{section:"3"}}).then((function(t){e.eqClassList3=t.data.list}))},tableSort1:function(e){Object(o["f"])(e,this.tableObj.list)},getTimeFn:function(){var e=this,t=new Date,a=new Date;t.setTime(t.getTime()-6048e5),e.tableObj.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tableObj.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tableObj.getdataListParm.parammaps.startTime=e.tableObj.getdataListParm.parammaps.inputDatetime[0],e.tableObj.getdataListParm.parammaps.endTime=e.tableObj.getdataListParm.parammaps.inputDatetime[1],e.get_table_data()},get_table_data:function(){var e=this;this.tableObj.listLoading=!0,18==c.a.get("pastureid")?this.tableObj.getdataListParm.parammaps.pastureId="":this.tableObj.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),Object(l["g"])(this.tableObj.getdataListParm.parammaps).then((function(t){console.log("table数据",t.data),e.tableObj.list=t.data,e.pageNum=t.pageNum,e.pageSize=t.pageSize,e.tableObj.total=t.total,setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},form_search:function(){this.tableObj.listLoading=!0,this.tableObj.getdataListParm.offset=1,this.tableObj.getdataListParm.parammaps.startTime=this.tableObj.getdataListParm.parammaps.inputDatetime[0],this.tableObj.getdataListParm.parammaps.endTime=this.tableObj.getdataListParm.parammaps.inputDatetime[1],this.isPasture,this.get_table_data()},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.name&&null==t.typename&&1===a&&1==this.isPasture||1==this.isType&&null!==t.typename&&1==a?{textDecoration:"underline"}:(this.isType2,{textDecoration:"none"})},table_click:function(e){"现代牧业"!==e.name&&(this.pastureName=e.pastureName,this.tableObj.getdataListParm.parammaps.offset=1,this.tableObj.getdataListParm.parammaps.pastureId=e.pastureId,this.tableObj.getdataListParm.parammaps.pastureName=e.pastureName,this.tableObj.getdataListParm.parammaps.level="2",this.tableObj.getdataListParm.parammaps.eqClassId="",this.get_table_data(),this.isPasture=!1,this.isType=!0,this.isType2=!1,this.isTitle=!0,this.isTitle2=!1),this.eqClassList=this.eqClassList3},table_click2:function(e){this.tableObj.getdataListParm.parammaps.offset=1,this.typename=e.eqClassName,this.tableObj.getdataListParm.parammaps.pastureId=e.pastureId,this.tableObj.getdataListParm.parammaps.pastureName=e.pastureName,this.tableObj.getdataListParm.parammaps.level="3",this.tableObj.getdataListParm.parammaps.eqClassId=e.eqClassId,this.tableObj.getdataListParm.parammaps.eqName="",this.get_table_data(),this.isPasture=!1,this.isType=!1,this.isType2=!0,this.isTitle=!1,this.isTitle2=!0},table_click3:function(e){"现代牧业"==c.a.get("pasturename")||this.pastureName==c.a.get("pasturename")?this.$router.push({path:"/maintenance/MaintenancePlan",query:{myPath:"CompletionRateMaintenance",eqCode:e.eqCode,pastureName:this.pastureName}}):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},goFirst:function(){console.log("goFirst"),this.tableObj.getdataListParm.offset=1,this.tableObj.getdataListParm.parammaps.level="1",this.tableObj.getdataListParm.parammaps.eqName="",this.tableObj.getdataListParm.parammaps.eqClassId="",this.tableObj.getdataListParm.parammaps.pastureId="",this.tableObj.getdataListParm.parammaps.pastureName="",this.eqClassList=this.eqClassList2,this.get_table_data(),this.isType=!1,this.isType2=!1,this.isTitle=!1,this.isTitle2=!1,this.isPasture=!0},goSecond:function(){console.log("goSecond"),this.isType=!0,this.isType2=!1,this.isTitle=!0,this.isTitle2=!1,this.tableObj.getdataListParm.offset=1,this.tableObj.getdataListParm.parammaps.level="2",this.tableObj.getdataListParm.parammaps.eqName="",this.tableObj.getdataListParm.parammaps.eqClassId="",this.tableObj.getdataListParm.parammaps.pastureId="",this.tableObj.getdataListParm.parammaps.pastureName="",this.eqClassList=this.eqClassList3,this.get_table_data()},form_export:function(){var e=this;if(18==c.a.get("pastureid")?this.tableObj.getdataListParm.parammaps.pastureId="":this.tableObj.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.isPasture){console.log("设备导出"),this.$alert("维修故障统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.tableObj.getdataListParm.parammaps,this.downLoadParm.getdataListParm.parammaps.pagecount="",Object(l["g"])(this.downLoadParm.getdataListParm.parammaps).then((function(t){""!==t.data&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data;var a=[{tHeader:["牧场","设备二级分类名称","维修次数","平均维修时间(MTTR)","无故障时间(MTTF)","平均故障间隔时间(MTBF)"],filterVal:["pastureName","eqClassName","count","mttr","mttf","mtbf"],tableDatas:e.downLoadParm.list,sheetName:"设备"}];Object(o["d"])(a,"维修故障统计",!0,"xlsx")}))}))}else if(this.isType){console.log("设备导出"),this.$alert("维修故障统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.tableObj.getdataListParm.parammaps,this.downLoadParm.getdataListParm.parammaps.pagecount="",Object(l["g"])(this.downLoadParm.getdataListParm.parammaps).then((function(t){""!==t.data&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data;var a=[{tHeader:["设备三级分类名称","维修次数","平均维修时间(MTTR)","无故障时间(MTTF)","平均故障间隔时间(MTBF)"],filterVal:["eqClassName","count","mttr","mttf","mtbf"],tableDatas:e.downLoadParm.list,sheetName:"设备"}];Object(o["d"])(a,"维修故障统计",!0,"xlsx")}))}))}else{console.log("设备导出"),this.$alert("维修故障统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.tableObj.getdataListParm.parammaps,this.downLoadParm.getdataListParm.parammaps.pagecount="",Object(l["g"])(this.downLoadParm.getdataListParm.parammaps).then((function(t){""!==t.data&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data;var a=[{tHeader:["设备名称","设备内部编号","维修次数","平均维修时间(MTTR)","无故障时间(MTTF)","平均故障间隔时间(MTBF)"],filterVal:["维修次数","维修次数","count","mttr","mttf","mtbf"],tableDatas:e.downLoadParm.list,sheetName:"设备"}];Object(o["d"])(a,"维修故障统计",!0,"xlsx")}))}))}}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},1735:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"调入牧场"},model:{value:e.getdataListParm.parammaps.pastureNameIN,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureNameIN",t)},expression:"getdataListParm.parammaps.pastureNameIN"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"调拨单号"},model:{value:e.getdataListParm.parammaps.applyCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyCode",t)},expression:"getdataListParm.parammaps.applyCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"调拨状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search1}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调出牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调入牧场","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureNameIN))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨日期",sortable:"",prop:"creatTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"调拨状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{prop:"sapStatus",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:2==t.row.sapStatus,expression:"scope.row.sapStatus == 2"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.sapStatus,expression:"scope.row.sapStatus == 1"}]},[e._v("上传成功")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.sapStatus||"undefined"==typeof t.row.sapStatus,expression:"scope.row.sapStatus == 0 || typeof(scope.row.sapStatus)== 'undefined'"}]},[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),2==s.statue&&s.pastureId==e.loginPastureid?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReturn(s)}}},[e._v("确认退回")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReturn(s)}}},[e._v("确认退回")]),e._v(" "),4==s.statue&&s.inPastureId==e.loginPastureid?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReject(s)}}},[e._v("驳回")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReject(s)}}},[e._v("驳回")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调出牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入牧场:",prop:"inPastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调入牧场"},model:{value:e.createTemp.inPastureId,callback:function(t){e.$set(e.createTemp,"inPastureId",t)},expression:"createTemp.inPastureId"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调拨人"},on:{change:e.changeEmp},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨日期:",prop:"applyDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"调拨日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.applyDate,callback:function(t){e.$set(e.createTemp,"applyDate",t)},expression:"createTemp.applyDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购组:",prop:"groupName"}},[a("el-input",{ref:"groupName",model:{value:e.createTemp.groupName,callback:function(t){e.$set(e.createTemp,"groupName",t)},expression:"createTemp.groupName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.amount*t.row.price)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.seeTemp.applyCode,callback:function(t){e.$set(e.seeTemp,"applyCode",t)},expression:"seeTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入牧场:",prop:"inPastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"调入牧场"},model:{value:e.seeTemp.inPastureId,callback:function(t){e.$set(e.seeTemp,"inPastureId",t)},expression:"seeTemp.inPastureId"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨人:",prop:"emp"}},[a("el-input",{ref:"emp",attrs:{disabled:""},model:{value:e.seeTemp.emp,callback:function(t){e.$set(e.seeTemp,"emp",t)},expression:"seeTemp.emp"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨日期:",prop:"applyDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",disabled:"",placeholder:"调拨日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.seeTemp.applyDate,callback:function(t){e.$set(e.seeTemp,"applyDate",t)},expression:"seeTemp.applyDate"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨数量",sortable:"",prop:"amount","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Allot",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isAllotsap:[],currentRow:{},loginPastureid:c.a.get("pastureid"),isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllPasture2:[],findAllDepart:[],findAllEmploye:[],statues:[{id:"0",name:"调拨中"},{id:"1",name:"调拨完成"},{id:"2",name:"驳回中"},{id:"3",name:"退回完成"}],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,returntype:"Map",parammaps:{}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{create:"新增",see:"查看"},rules:{inPastureId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},getdataListParm:{name:"getBigPartTransferList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),applyCode:"",statue:"",pastureNameIN:"",inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,empId:this.$store.state.user.employeid,employeId:this.$store.state.user.employeid,applyDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),groupName:""},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"DB"}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3}},created:function(){this.get_select_list(),this.get_table_data()},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.amount)>parseInt(e.reportery)&&(e.amount=parseInt(e.reportery))}))}}},methods:{handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){var a=new Date(e.creatTime),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["q"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},tableSort:function(e){Object(l["f"])(e,this.listSee)},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},statue:function(e){return 0==e.statue?"调拨中":1==e.statue?"调拨完成":2==e.statue?"驳回中":3==e.statue?"退回完成":4==e.statue?"调拨中":void 0},form_search1:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.employeId=this.$store.state.user.employeid,this.createTemp.empId=this.$store.state.user.employeid,this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.applyCode="",this.createTemp.groupName="",this.listAdd=[]},form_add:function(){this.resetCreateTemp(),this.createTemp.applyCode="",this.dialogStatus="create",this.dialogFormVisible=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeEmp:function(e){this.createTemp.emp=this.findAllEmploye.find((function(t){return t.id==e})).name},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.id),console.log(this.listAdd),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e)),this.$forceUpdate()},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.applyCode||null==e.createTemp.applyCode||void 0==e.createTemp.applyCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查调拨数量是否未填写",duration:2e3}),!1;if(parseFloat(this.listAdd[t].amount)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"调拨数量不可大于现有库存数量",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].amount)))return this.$message({type:"error",message:"调拨数量请输入正数,且最多保留两位小数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartTransfer",type:"e",parammaps:{pastureId:this.createTemp.pastureId,inPastureId:this.createTemp.inPastureId,applyCode:this.createTemp.applyCode,empId:this.createTemp.empId,emp:this.createTemp.emp,applyDate:this.createTemp.applyDate,groupName:this.createTemp.groupName}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertParttTransfer",type:"e",parammaps:{bigId:"@insertBigPartTransfer.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",brandName:"@insertSpotList.brand",amount:"@insertSpotList.amount",providerName:"@insertSpotList.providerName",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",partRepId:"@insertSpotList.partRepId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,e.pastureId=String(e.pastureId),console.log(e.pastureId),this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList()},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.seeTemp.providerName=t.data.list.providerName,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPasture2=t.data.getPastureList.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDownload:function(){alert("点击了导出")},handleReturn:function(e){var t=this;console.log("点击了确认退回"),this.seeTemp=Object.assign({},e),this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList(),p["MessageBox"].confirm("是否确认将调拨单备件退回至库存",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"updateBigPartTransfer",type:"e",parammaps:{id:e.id,statue:3}},t.postDataPramas.data[1]={name:" getPartTransferbybigid",type:"e",parammaps:{id:e.id,statue:3}},t.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[2].children=[],t.postDataPramas.data[2].children[0]={name:"updatePartRepertoryDB",type:"e",parammaps:{amount:"@insertSpotList.amount",partRepId:"@insertSpotList.partRepId"}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"退回成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消确认退回"})}))},handleReject:function(e){var t=this;console.log("点击了驳回"),p["MessageBox"].confirm("是否确认将调拨单驳回",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="updateBigPartTransfer",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,t.requestParam.parammaps.statue=2,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"驳回成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消驳回"})}))}}}),u=d,h=(a("2d90"),a("8c3d"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"5fbc6c69",null);t["default"]=g.exports},"17cb":function(e,t,a){},"180e":function(e,t,a){"use strict";a.r(t);a("ac6a"),a("c5f6");var s,i,r=a("f6f4"),n=a("5bf6"),l=a("29c8"),o=a("b04b"),p={name:"ElFormField",components:{ElPair:n["default"],ElAutoput:l["default"],ElVerify:o["default"]},mixins:[r["a"]],props:{item:{type:Object,default:function(){}},value:{},index:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1}},methods:{input:function(e){this.$emit("input",this.index,e)}},render:function(e){var t,a=this,s=this.item||{};s.value=this.value,s.disabled=this.disabled;var i=this.item.holder||"input";switch(i){case"text":i="input";break;case"textare":i="input",s.type="textarea";break;case"password":i="input",s.type="password";break;case"time-range":i="el-time-picker",s.isRange=!0;break;case"date-range":case"data-time-range":i="el-date-picker";break;case"radio-group":t=[],this.item.options.forEach((function(a){return t.push(e("el-radio",{props:{label:a.value,disabled:a.disabled}},[a.label]))}));break;case"checkbox-group":t=[],this.item.options.forEach((function(a){return t.push(e("el-checkbox",{props:{label:a.value,disabled:a.disabled}},[a.label]))}));break;case"select":t=[],this.item.options.forEach((function(a){return t.push(e("el-option",{props:a}))}));break;default:}return e("el-".concat(i),{props:s,on:{change:a.input.bind(a)}},t)}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},1879:function(e,t,a){"use strict";a("8a90")},"18f0":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="M116.426 2.821l8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol>'});n.a.add(l);t["default"]=l},"192b":function(e,t,a){"use strict";a("00ce")},"1b01":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-库存汇总",use:"icon-库存汇总-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存汇总"><defs><style type="text/css"></style></defs><path d="M928.282 277.57l-76.078-146.396c-18.802-36.082-65.373-64.339-106.022-64.339h-467.77c-40.593 0-87.326 28.094-106.292 63.906L96.096 274.148c-16.41 31.029-29.235 82.762-29.235 117.812v481.738c0 46.027 37.387 83.468 83.467 83.468h723.34c46.027 0 83.469-37.442 83.469-83.468V395.384c0-34.997-12.66-86.785-28.855-117.814zM145.33 300.177l75.97-143.353c9.51-17.933 36.734-34.344 57.112-34.344h467.771c20.27 0 47.278 16.41 56.679 34.398l76.08 146.34c3.586 6.956 6.955 15.87 10.052 25.433H134.19c3.37-10.705 7.065-20.813 11.14-28.474z m756.161 573.52c0 15.324-12.443 27.821-27.822 27.821h-723.34c-15.378 0-27.822-12.498-27.822-27.821V391.959c0-2.228 0.435-5.163 0.651-7.661h777.408c0.327 3.695 0.924 7.824 0.924 11.085v478.314z" p-id="25147" fill="#ffffff" /><path d="M745.913 537.54L605.765 687.25l-56.568-56.46c-10.869-10.869-28.475-10.869-39.344 0-10.868 10.867-10.868 28.474 0 39.342l76.296 76.08c5.435 5.433 12.499 8.15 19.617 8.15 3.859 0 7.662-0.978 11.305-2.608 4.074-1.414 7.878-3.587 11.03-6.903L786.56 575.58c10.488-11.194 9.89-28.8-1.304-39.343-11.196-10.434-28.802-9.89-39.344 1.304zM429.046 578.187h-166.99c-15.325 0-27.823 12.445-27.823 27.823s12.499 27.823 27.823 27.823h166.991c15.378 0 27.823-12.445 27.823-27.823s-12.445-27.823-27.824-27.823zM344.6 696.87h-83.468c-15.378 0-27.822 12.498-27.822 27.821 0 15.433 12.444 27.823 27.822 27.823H344.6c15.38 0 27.823-12.39 27.823-27.823 0-15.323-12.444-27.822-27.823-27.822z" p-id="25148" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"1cf0":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-资产标准管理",use:"icon-资产标准管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-资产标准管理"><defs><style type="text/css"></style></defs><path d="M923.369092 186.076976l-822.738184 0c-36.676317 0-66.514903 29.838585-66.514903 66.514903l0 372.483456c0 36.676317 29.838585 66.514903 66.514903 66.514903l822.738184 0c36.676317 0 66.514903-29.838585 66.514903-66.514903l0-372.483456C989.883995 215.915561 960.045409 186.076976 923.369092 186.076976zM938.718685 625.075335c0 8.463766-6.885827 15.349593-15.349593 15.349593l-72.65474 0 0-109.493763c0-14.129812-11.452843-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 109.493763-75.724659 0 0-72.65474c0-14.129812-11.452843-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 72.65474-75.724659 0 0-72.65474c0-14.129812-11.452843-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 72.65474-75.724659 0 0-72.65474c0-14.129812-11.453866-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 72.65474-75.724659 0 0-72.65474c0-14.129812-11.453866-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 72.65474-75.724659 0 0-109.493763c0-14.129812-11.453866-25.582655-25.582655-25.582655s-25.582655 11.452843-25.582655 25.582655l0 109.493763-64.46829 0c-8.463766 0-15.349593-6.885827-15.349593-15.349593l0-372.483456c0-8.463766 6.885827-15.349593 15.349593-15.349593l822.738184 0c8.463766 0 15.349593 6.885827 15.349593 15.349593L938.718685 625.075335z" fill="" p-id="1258" /><path d="M833.318146 775.501346l-642.636293 0c-14.128789 0-25.582655 11.452843-25.582655 25.582655s11.453866 25.582655 25.582655 25.582655l642.636293 0c14.129812 0 25.582655-11.452843 25.582655-25.582655S847.447958 775.501346 833.318146 775.501346z" fill="" p-id="1259" /></symbol>'});n.a.add(l);t["default"]=l},"1d6f":function(e,t,a){"use strict";a("bcbd")},"1dc7":function(e,t,a){},"1e25":function(e,t,a){},"1e68":function(e,t,a){},"1ec6":function(e,t,a){"use strict";a("43fa")},"1ed9":function(e,t,a){},"1f02":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block",top:"-3px"},attrs:{height:200,width:300,size:"small",data:e.equipmentCategory.list,disabled:e.equipmentCategory.disabled,"default-props":e.equipmentCategory.defaultProps,"node-key":e.equipmentCategory.nodeKey,placeholder:e.equipmentCategory.placeholder,"checked-keys":e.equipmentCategory.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.table.getdataListParm.partClassId,callback:function(t){e.$set(e.table.getdataListParm,"partClassId",t)},expression:"table.getdataListParm.partClassId"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"},on:{click:e.form_search}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{staticClass:"elTable",attrs:{slot:"reference",border:"",data:e.table.list,"header-align":"center","row-style":e.rowStyle,"cell-style":e.cellStyle},slot:"reference"},[a("el-table-column",{attrs:{label:"备件类别","min-width":"240px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit||0==t.row.isDispaly?a("span",[e._v(e._s(t.row.partName))]):a("tree-select",{staticStyle:{display:"inline-block"},attrs:{size:"small",width:200,display:t.row.dispaly,data:e.equipmentCategory.list,disabled:e.equipmentCategory.disabled,"default-props":e.equipmentCategory.defaultProps,"node-key":e.equipmentCategory.nodeKey,placeholder:e.equipmentCategory.placeholder,"checked-keys":e.equipmentCategory.defaultCheckedKeys},on:{popoverHide:e.popoverHide2},model:{value:t.row.partClassId,callback:function(a){e.$set(t.row,"partClassId",a)},expression:"scope.row.partClassId"}})]}}])}),e._v(" "),e._l(e.table.tablelist,(function(t,s){return a("el-table-column",{key:s,attrs:{align:"center",property:t.property,label:t.label,"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row[t.column.property]))]):e._e(),e._v(" "),t.row.Edit?a("el-input",{attrs:{type:"number"},model:{value:t.row[t.column.property],callback:function(a){e.$set(t.row,t.column.property,a)},expression:"scope.row[scope.column.property]"}}):e._e()]}}],null,!0)})})),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[s.isCreate?a("el-button",{attrs:{disabled:e.isokDisable,type:"success",size:"mini"},on:{click:function(t){return e.add_dialog_save(s)}}},[e._v("保存")]):e._e(),e._v(" "),s.isCreate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.createCancel(s)}}},[e._v("取消")]):e._e(),e._v(" "),s.isUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),s.isUpdateSave?a("el-button",{attrs:{disabled:e.isokDisable,type:"success",size:"mini"},on:{click:function(t){return e.edit_dialog_save(s)}}},[e._v("保存")]):e._e(),e._v(" "),s.isUpdateSave?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.updateCancel(s)}}},[e._v("取消")]):e._e(),e._v(" "),s.isUpdate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleRowDelete(s)}}},[e._v("删除")]):e._e()]}}])})],2),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("2934"),n=a("333d"),l=a("5c96"),o=a("3de8"),p=a("5f87"),m=a("ed08"),c={name:"StandardStock",components:{Pagination:n["a"],TreeSelect:o["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},equipmentCategory:{getdataListParm:{name:"getStandardPartClass"},list:[],placeholder:"备件类别",nodeKey:"id",defaultCheckedKeys:[],disabled:!1,defaultProps:{children:"children",label:"partClassNameCode"},display:"none"},table:{tableKey:0,list:[],tablelist:[],total:0,listLoading:!0,idsArray:[],getdataListParm:{partClassId:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},createTemp:{},postDataParm:{},isokDisable:!1,headers:{optname:"insertcustompic",id:1,token:Object(p["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",isPercentage:!1,percentage:1,downloadParam:{}}},computed:{uploadData:function(){return{name:"importPartsStandard",importParams:"牧场,一级备件类别,二级备件类别,标准库存(元)",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.getEquipmentCategoryList(),this.get_table_data()},methods:{getEquipmentCategoryList:function(){var e=this;Object(r["e"])(this.equipmentCategory.getdataListParm).then((function(t){null!==t.data.list?e.equipmentCategory.list=Object(r["E"])(t.data.list,"id","pid","children"):e.equipmentCategory.list=[]}))},popoverHide:function(e,t){null!==e?void 0===t.children?this.table.getdataListParm.partClassId=t.partClassId:(this.equipmentCategory.defaultCheckedKeys=[],this.table.getdataListParm.partClassId="",this.$message({type:"warning",message:"请选择具体设备类型"})):(this.equipmentCategory.defaultCheckedKeys=[],this.table.getdataListParm.partClassId="")},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(r["t"])(this.table.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list),e.table.tablelist=t.data.list[0],e.table.idsArray=[];for(var a=0;a<e.table.tablelist.length;a++)e.table.idsArray.push(e.table.tablelist[a].id);e.table.list=t.data.list[1];for(var s=0;s<e.table.list.length;s++)e.$set(e.table.list[s],"Edit",!1),e.$set(e.table.list[s],"NoEdit",!0),e.$set(e.table.list[s],"isCreate",!1),e.$set(e.table.list[s],"isUpdate",!0),e.$set(e.table.list[s],"isUpdateSave",!1),e.$set(e.table.list[s],"isDispaly",!1),e.$set(e.table.list[s],"dispaly","none");e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.tablelist=[],e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.get_table_data()},form_add:function(){console.log("新增");for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;for(var t={},a=0;a<this.table.tablelist.length;a++){t.myId=(new Date).valueOf(),t.Edit=!0,t.NoEdit=!1,t.isCreate=!0,t.isUpdate=!1,t.isUpdateSave=!1,t.display="block",t.typeName="",t.partClassId="",t.eqCode="",t.typeName="",t.isDispaly=!0,t.display="block",t[this.table.tablelist[a].property]="";var s=a+1;t["pastureId"+s]=this.table.tablelist[a].id}this.equipmentCategory.defaultCheckedKeys=[],this.createTemp=t,this.table.list.unshift(t)},popoverHide2:function(e,t){console.log(e,t),1==this.createTemp.isCreate&&(null!==e?void 0==t.children?(this.createTemp.partClassId=t.id,this.createTemp.eqCode=t.partClassCode,this.createTemp.typeName=t.partClassName):(this.createTemp.partClassId="",this.createTemp.eqCode="",this.createTemp.typeName="",this.$message({type:"warning",message:"请选择具体设备类型"})):(this.createTemp.partClassId="",this.createTemp.eqCode="",this.createTemp.typeName=""))},add_dialog_save:function(e){var t=this;if(console.log("新增保存",e),console.log(this.table.tablelist,"this.table.tablelist"),""==this.createTemp.partClassId)return this.$message({type:"error",message:"设备类别必填",duration:2e3}),!1;for(var a=[],s=0;s<this.table.tablelist.length;s++)""!==e[this.table.tablelist[s].property]&&0!==e[this.table.tablelist[s].property]&&"0"!==e[this.table.tablelist[s].property]&&a.push(e[this.table.tablelist[s].property]);if(0==a.length)return this.$message({type:"error",message:"请检查录入数据,至少有一条不为0!",duration:2e3}),!1;l["MessageBox"].confirm("是否保存?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.table.tablelist.length;a++)""==e[t.table.tablelist[a].property]&&(e[t.table.tablelist[a].property]=0);t.postDataParm={},t.postDataParm.check="insert",t.postDataParm.name="partStandard",t.postDataParm.param={},t.postDataParm.param=t.createTemp,Object(r["F"])(t.postDataParm).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}),t.get_table_data()):t.$notify({title:"失败",message:"新增失败-"+e.data,type:"danger",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))},createCancel:function(e){for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},form_edit:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,this.equipmentCategory.defaultCheckedKeys=[e.partClassId],this.createTemp=e},edit_dialog_save:function(e){for(var t=this,a=[],s=0;s<this.table.tablelist.length;s++)""!==e[this.table.tablelist[s].property]&&0!==e[this.table.tablelist[s].property]&&"0"!==e[this.table.tablelist[s].property]&&a.push(e[this.table.tablelist[s].property]);if(0==a.length)return this.$message({type:"error",message:"请检查录入数据,至少有一条不为0!",duration:2e3}),!1;console.log(a.length);for(var i=0;i<this.table.tablelist.length;i++)""==e[this.table.tablelist[i].property]&&(e[this.table.tablelist[i].property]=0);this.postDataParm={},this.postDataParm.check="update",this.postDataParm.name="partStandard",this.postDataParm.param={},this.postDataParm.param=this.createTemp,console.log("编辑保存",this.postDataParm),Object(r["F"])(this.postDataParm).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"失败-"+e.data,type:"danger",duration:2e3})}))},updateCancel:function(e){e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.get_table_data()},handleRowDelete:function(e){var t=this;l["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataParm={},t.postDataParm.check="delete",t.postDataParm.name="partStandard",t.postDataParm.param={},t.postDataParm.param=e,Object(r["F"])(t.postDataParm).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败-"+e.data,type:"danger",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDownloadTemp:function(){var e=[{tHeader:["牧场","一级备件类别","二级备件类别","标准库存(元)"],filterVal:["牧场","一级备件类别","二级备件类别","标准库存(元)"],tableDatas:[],sheetName:"SheetJS"}];Object(m["d"])(e,"标准库存模板",!0,"xlsx")},handleDownload:function(){var e=this;this.$alert("备件基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam={},this.downloadParam=this.table.getdataListParm,Object(r["t"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));for(var a=[],s=[],i=0;i<t.data.list[0].length;i++)a.push(t.data.list[0][i].label),s.push(t.data.list[0][i].property);a.unshift("设备类别"),s.unshift("partName"),console.log(a,s),e.$nextTick((function(){var e=[{tHeader:a,filterVal:s,tableDatas:t.data.list[1],sheetName:"标准库存"}];Object(m["d"])(e,"标准库存",!0,"xlsx")}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","一级备件类别","二级备件类别","标准库存"],r=["牧场","一级备件类别","二级备件类别","标准库存"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})}}},d=c,u=(a("dd52"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"02be662f",null);t["default"]=h.exports},"1f13":function(e,t,a){},"1f56":function(e,t,a){},"1f7e":function(e,t,a){"use strict";a("8d0b")},"1f93":function(e,t,a){},2044:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("a7dc");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["Industries","Technology","Forex","Gold","Forecasts"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"Industries"},{value:240,name:"Technology"},{value:149,name:"Forex"},{value:100,name:"Gold"},{value:59,name:"Forecasts"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"215b":function(e,t,a){"use strict";a("67cb")},"217b":function(e,t,a){},"21d3":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件退库",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"EAS同步状态"},model:{value:e.getdataListParm.parammaps.easStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"easStatus",t)},expression:"getdataListParm.parammaps.easStatus"}},e._l(e.easStatus.easStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isRetreatAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库日期",sortable:"",prop:"quitDate","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ProofCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ProofCode?a("span",[e._v("已上传")]):a("span",[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isRetreatSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isRetreatDelate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"退库记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm2.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm2.parammaps,"useForm",t)},expression:"getdataListParm2.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),a("div",[e.isRetreatExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量",sortable:"",prop:"useNumber","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useNumber))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量",sortable:"",prop:"quitNumber","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库原因",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库日期","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitDate))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"useForm","fetch-suggestions":e.spareNumberSearch,placeholder:"请输入出库单号"},on:{select:e.handleSelectSpareNumber,blur:e.handleBlurSpareNumber},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.useForm))])]}}]),model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部门"},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"quitId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.quitId,callback:function(t){e.$set(e.createTemp,"quitId",t)},expression:"createTemp.quitId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退库日期",prop:"quitDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"退库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.quitDate,callback:function(t){e.$set(e.createTemp,"quitDate",t)},expression:"createTemp.quitDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退库原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"退库原因"},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已退库数量",prop:"quitNumberC",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumberC))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已出库数量",prop:"checkoutNumber",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"quitNumber"}},[a("el-input",{staticStyle:{"margin-top":"15px"},on:{blur:e.blurQuitNumber},model:{value:t.row.quitNumber,callback:function(a){e.$set(t.row,"quitNumber",a)},expression:"scope.row.quitNumber"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.quitNumber))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.seeTemp.useForm,callback:function(t){e.$set(e.seeTemp,"useForm",t)},expression:"seeTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"quitName"}},[a("el-input",{ref:"quitName",attrs:{disabled:""},model:{value:e.seeTemp.quitName,callback:function(t){e.$set(e.seeTemp,"quitName",t)},expression:"seeTemp.quitName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退库日期:",prop:"quitDate"}},[a("el-input",{ref:"quitDate",attrs:{disabled:""},model:{value:e.seeTemp.quitDate,callback:function(t){e.$set(e.seeTemp,"quitDate",t)},expression:"seeTemp.quitDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退库原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已退库数量",sortable:"",prop:"applyNumber","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已出库数量",sortable:"",prop:"useNumber","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量",sortable:"",prop:"quitNumber","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号","min-width":"110px",align:"center",prop:"useForm"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d={isSap:1,isSrm:1,selectList:[],name:"Retreat",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{buttons:[],currentRow:{},isRetreatsap:[],isRetreatSee:[],isRetreatExport:[],isRetreatAdd:[],isRetreatDelate:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{zgExamine:"主管审核",kgExamine:"库管审核",zlExamine:"审核",update:"编辑",create:"新增",see:"查看",ImportInfo:"导入信息",easStatus:"EAS同步—同步失败数据"},rules:{applyCode:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"1",name:"审核中"},{id:"2",name:"已通过"},{id:"3",name:"未通过"}],getdataListParm:{name:"getBigPartquitlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),useForm:"",inputDatetime:"",startTime:"",stopTime:"",easStatus:""}},tableKey:0,listLoading:!0,total:0,list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartquitDetaillist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",useForm:"",startTime:"",stopTime:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename")}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},listLoadingSee:!0,listSee:[],totalSee:0,dialogStatusSee:"",dialogFormVisibleSee:!1,seeTemp:{},getdataListSee:{name:"getPartquitlist",returntype:"Map",parammaps:{}},dialogFormVisible:!1,dialogStatus:"",createTemp:{useForm:"",applyCode:"",quitDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),deptId:this.$store.state.user.departmentid,quitId:this.$store.state.user.employeid,note:"",pastureId:this.$store.state.user.pastureid},requestSparePart:{name:"getpartUseListBybigTK",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},requestSpareNumber:{name:"getBigpartusecode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateAmount:{name:"getPartsAmountList",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],postDataPramas:{},downloadParam:{},TotalAmount:0,isPercentage:!1,percentage:1,easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartquitSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}}}},computed:{},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.quitNumber)>parseInt(e.checkoutNumber)-parseInt(e.quitNumberC)&&(e.quitNumber=parseInt(e.checkoutNumber)-parseInt(e.quitNumberC))}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,console.log(e.buttons,"that.buttons"),e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list2)},tableSort2:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:Retreat:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isRetreatAdd=t;var a="customs:Retreat:sap",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isRetreatsap=s;var i="customs:Retreat:see",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isRetreatSee=n;var l="customs:Retreat:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isRetreatExport=o;var p="customs:Retreat:delate",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isRetreatDelate=m;var c="customs:retreat:easSynchronization",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isEasSynchronization=d;var u="customs:retreat:manualSynchronization",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isManualSynchronization=h;var g="customs:retreat:closeSynchronization",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isCloseSynchronization=f;var b="customs:retreat:ignoreSynchronization",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isIgnoreSynchronization=v},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},statue:function(e){return 0==e.statue?"审核中":1==e.statue?"已通过":"未通过"},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data()},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){console.log("table数据",t.data.list),e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},resetCreateTemp:function(){this.createTemp.useForm="",this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.deptId=this.$store.state.user.departmentid,this.createTemp.applyCode="",this.createTemp.note="",this.createTemp.quitId=this.$store.state.user.employeid,this.createTemp.quitDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.listAdd=[],this.TotalAmount=0,this.createTemp.id=""},form_add:function(){this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},spareNumberSearch:function(e,t){console.log("出库单号模糊查询输入值",e),this.requestSpareNumber.parammaps["applyCode"]=e,Object(r["e"])(this.requestSpareNumber).then((function(e){console.log("出库单号模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectSpareNumber:function(e){console.log("出库单号模糊查询选中值",e),console.log("出库单号模糊查询选中值",e.id),this.createTemp.applyCode=e.useForm,this.createTemp.id=e.id,this.listAdd=[],this.TotalAmount=0,this.$forceUpdate()},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps.id=this.createTemp.id,this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){if(e.ProofCode)return 0;var a=new Date(e.creatTime),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["o"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},handleBlurSpareNumber:function(){this.createTemp.applyCode="",this.createTemp.id=""},handleSelectSparePart:function(e){var t=this;if(console.log("备件模糊查询选中值",e),this.$set(e,"sumPrice",(parseFloat(e.quitNumber)*parseFloat(e.price)).toFixed(2)),console.log("备件模糊查询选中值",e.id),console.log(this.listAdd),this.TotalAmount=0,this.listAdd.length>0)if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"});for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].quitNumber)*parseFloat(this.listAdd[a].price),this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))}else this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["e"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0].reporteryNum),e.reportery=a.data.list[0].reporteryNum,t.listAdd.unshift(e);for(var s=0;s<t.listAdd.length;s++)t.TotalAmount+=parseFloat(t.listAdd[s].quitNumber)*parseFloat(t.listAdd[s].price),t.TotalAmount=parseFloat(t.TotalAmount.toFixed(2));null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$forceUpdate()}))})),console.log(this.listAdd.length);else this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["e"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0].reporteryNum),t.$set(e,"reportery",a.data.list[0].reporteryNum),t.listAdd.unshift(e);for(var s=0;s<t.listAdd.length;s++)t.TotalAmount+=parseFloat(t.listAdd[s].quitNumber)*parseFloat(t.listAdd[s].price),t.TotalAmount=parseFloat(t.TotalAmount.toFixed(2));null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$forceUpdate()}))}));this.$forceUpdate()},blurQuitNumber:function(){this.TotalAmount=0;for(var e=0;e<this.listAdd.length;e++)this.TotalAmount+=parseFloat(this.listAdd[e].price)*parseFloat(this.listAdd[e].quitNumber),this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(console.log(e.listAdd),0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(console.log(e.listAdd[a].refundNumber),null==e.listAdd[a].quitNumber||""===e.listAdd[a].quitNumber)return e.$message({type:"warning",message:"请检查退库数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;console.log(e.listAdd[a].quitNumber),console.log(e.listAdd[a].checkoutNumber),console.log("退库数量",e.listAdd[a].quitNumber),console.log("已出库数量",e.listAdd[a].checkoutNumber),console.log("领用数量",e.listAdd[a].quitNumberC);var i=parseFloat(e.listAdd[a].checkoutNumber)-parseFloat(e.listAdd[a].quitNumberC);if(console.log(i),!s.test(parseFloat(e.listAdd[a].quitNumber)))return e.$message({type:"error",message:"退库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(e.listAdd[a].quitNumber)>i)return e.$message({type:"error",message:"退库数量不可大于出库数量-已退库数量",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigPartquit",type:"e",parammaps:{pastureId:e.createTemp.pastureId,deptId:e.createTemp.deptId,useForm:e.createTemp.applyCode,employeId:e.createTemp.employeId,quitId:e.createTemp.quitId,quitDate:e.createTemp.quitDate,note:e.createTemp.note}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPartquit",type:"e",parammaps:{bigId:"@insertBigPartquit.LastInsertId",location:"@insertSpotList.warehoseCode",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brand:"@insertSpotList.brandName",contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",providerId:"@insertSpotList.providerId",applyNumber:"@insertSpotList.quitNumberC",quitNumber:"@insertSpotList.quitNumber",useNumber:"@insertSpotList.checkoutNumber",reportery:"@insertSpotList.reportery",partUseId:"@insertSpotList.id"}},e.postDataPramas.data[1].children[1]={name:"updatePartRepertoryTK",type:"e",parammaps:{quitNumber:"@insertSpotList.quitNumber",providerId:"@insertSpotList.providerId",partCode:"@insertSpotList.partCode",contractId:"@insertSpotList.contractId",price:"@insertSpotList.price",locationId:"@insertSpotList.locationId"}},e.postDataPramas.data[1].children[2]={name:"updatePartUseQuit",type:"e",parammaps:{quitNumber:"@insertSpotList.quitNumber",id:"@insertSpotList.id"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1,setTimeout((function(){e.get_table_data()}),1e3))})),!0}return e.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1}}))},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0;for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1);t.TotalAmount=parseFloat(t.listAdd[a].quitNumber)*parseFloat(t.listAdd[a].price),t.TotalAmount=parseFloat(t.TotalAmount.toFixed(2))}}))},handleDelate:function(e){var t=this;console.log("点击了删除"),this.seeTemp=Object.assign({},e),this.getdataListSee.parammaps.bigId=this.seeTemp.id,this.getSeeList(),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"updatePartRepertoryTKDel",type:"e",parammaps:{quitNumber:"@insertSpotList.quitNumber",providerId:"@insertSpotList.providerId",partCode:"@insertSpotList.partCode",contractId:"@insertSpotList.contractId",pastureId:e.pastureId}},t.postDataPramas.data[0].children[1]={name:"deletePartQuit",type:"e",parammaps:{id:"@insertSpotList.id"}},t.postDataPramas.data[0].children[2]={name:"updatePartUseDel",type:"e",parammaps:{quitNumber:"@insertSpotList.quitNumber",partUseId:"@insertSpotList.partUseId"}},t.postDataPramas.data[1]={name:"deleteBigPartQuit",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},form_see:function(e){this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),this.seeTemp.quitDate=Object(l["e"])(this.seeTemp.quitDate,"{y}-{m}-{d}"),this.TotalAmount=0,console.log("查看上方数据(从table读取)",this.seeTemp),this.getSeeList()},getSeeList:function(){var e=this;this.getdataListSee.parammaps.bigId=this.seeTemp.id,Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list){e.TotalAmount=0;for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("退库记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="getPartquitDetaillist",this.downloadParam.parammaps=this.getdataListParm2.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","出库单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","库位","出库数量","退库数量","单价","总价","退库原因","录入人","退库日期"],filterVal:["pastureName","useForm","partCode","partName","specification","brand","unit","providerName","location","useNumber","refundNumber","price","sumPrice","note","empname","quitDate"],tableDatas:t.data.list,sheetName:"退库记录"}];Object(l["d"])(e,"退库记录",!0,"xlsx")}))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartquitSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="2",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartquitSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},u=d,h=(a("577d"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"37a0b9bb",null);t["default"]=g.exports},"220d":function(e,t,a){},2233:function(e,t,a){"use strict";a("fbe0")},2286:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-保养计划",use:"icon-保养计划-usage",viewBox:"0 0 1088 1024",content:'<symbol class="icon" viewBox="0 0 1088 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-保养计划"><defs><style type="text/css"></style></defs><path d="M569.664 668.672a6.656 6.656 0 0 1-4.864-2.112 7.296 7.296 0 0 1-1.984-5.056v-61.952c0-3.904 3.072-7.168 6.784-7.168h352.128c3.84 0 6.912 3.2 6.912 7.168v61.888a7.04 7.04 0 0 1-6.912 7.232H569.664z m0 152.256a6.656 6.656 0 0 1-4.864-2.112 7.296 7.296 0 0 1-1.984-5.056v-61.888a7.04 7.04 0 0 1 6.784-7.168h352.128c3.84 0 6.912 3.2 6.912 7.104v61.888a7.04 7.04 0 0 1-6.912 7.232H569.664z m505.344-408.704v544.384a54.656 54.656 0 0 1-14.976 37.76 50.304 50.304 0 0 1-36.224 15.616h-921.6a50.304 50.304 0 0 1-36.224-15.616 54.656 54.656 0 0 1-14.976-37.76V148.736c0-29.44 22.912-53.376 51.2-53.376h161.28a7.04 7.04 0 0 0 6.912-7.168V57.152c0-21.056 16.384-38.144 36.544-38.144 20.224 0 36.544 17.088 36.544 38.144v31.04a7.04 7.04 0 0 0 6.848 7.168h425.088a7.04 7.04 0 0 0 6.848-7.168V57.152c0-21.056 16.384-38.144 36.544-38.144 20.224 0 36.608 17.088 36.608 38.144v31.04a7.04 7.04 0 0 0 6.848 7.168h161.152c13.568 0 26.624 5.632 36.224 15.616 9.6 10.048 14.976 23.616 14.976 37.76v263.552h0.384v-0.064z m-72.832 64.64h-0.64v-0.576H130.88a6.656 6.656 0 0 0-4.864 2.112 7.168 7.168 0 0 0-1.984 5.12v443.136a7.04 7.04 0 0 0 6.848 7.104h864.512a7.04 7.04 0 0 0 6.784-7.168V476.864zM270.4 178.624a7.424 7.424 0 0 0-2.048-5.056 6.592 6.592 0 0 0-4.928-2.048H130.816a6.912 6.912 0 0 0-6.784 7.104v214.272a7.04 7.04 0 0 0 6.848 7.168h863.744a7.04 7.04 0 0 0 6.848-7.168V178.624a7.36 7.36 0 0 0-1.984-5.056 6.72 6.72 0 0 0-4.864-2.048h-132.416a6.72 6.72 0 0 0-4.864 2.048 7.36 7.36 0 0 0-1.984 5.056v30.912a37.312 37.312 0 0 1-36.544 38.08 37.376 37.376 0 0 1-36.608-38.08v-30.912a7.36 7.36 0 0 0-1.984-5.056 6.592 6.592 0 0 0-4.864-2.048H350.336a7.04 7.04 0 0 0-6.848 7.104v30.912a39.04 39.04 0 0 1-10.688 26.944 35.584 35.584 0 0 1-25.856 11.072 37.44 37.44 0 0 1-36.544-38.208v-30.72z m25.6 533.824a6.784 6.784 0 0 0 9.728 1.152l161.28-133.056a6.592 6.592 0 0 1 9.6 1.216l36.864 48.576a7.36 7.36 0 0 1-1.088 10.048l-224.064 184.832-0.128-0.128-86.656-114.112a7.36 7.36 0 0 1 1.152-9.984l46.592-38.528a6.72 6.72 0 0 1 9.664 1.152l36.992 48.896 0.064-0.064z" fill="#ffffff" p-id="5536" /></symbol>'});n.a.add(l);t["default"]=l},"22c3":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.deptName,callback:function(t){e.$set(e.getdataListParm.parammaps,"deptName",t)},expression:"getdataListParm.parammaps.deptName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.createTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"createTime",t)},expression:"getdataListParm.parammaps.createTime"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"内部编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"内部编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lrTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-popover",{attrs:{placement:"right",width:"170",trigger:"click"}},[a("div",[e.isBasicsUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑\n ")]):e._e(),e._v(" "),e.isBasicsDel?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除\n ")]):e._e()],1),e._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[e._v("操作")])],1),e._v(" "),e.isBasicsCard?a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(t){return e.handleCard(s)}}},[e._v("卡片")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-content"},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"设备类别",prop:"assTypeId"}},[a("tree-select",{staticStyle:{width:"330px"},attrs:{height:400,width:330,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:"update"===e.dialogStatus,"checked-keys":e.defaultCheckedKeys,clearable:""},on:{popoverHide:e.popoverHide}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"350px"},attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容"},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",attrs:{disabled:""},on:{popoverHide:e.popoverHide},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"内部编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{ref:"employeId",staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人",prop:"employeId"}},[a("el-select",{ref:"employeId",staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCard],visible:e.dialogFormVisibleCard,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(this.temp.equipmentName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(this.temp.assetNumber))])]),e._v(" "),a("div",{staticClass:"card",staticStyle:{width:"100%",margin:"0 auto"}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"six"}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"equipmentNumber"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态",disabled:""},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{disabled:""},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容",disabled:""},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{disabled:""},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场",disabled:""},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门",disabled:""},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人",disabled:""},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"内部编号",prop:"assetNumber"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{disabled:""},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",attrs:{disabled:""},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{disabled:""},model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",attrs:{disabled:""},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",attrs:{disabled:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"点检记录",name:"first"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inspectionResults))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalSpotCheck1,page:e.getdataListParmGetAssetSpotCheck1.offset,limit:e.getdataListParmGetAssetSpotCheck1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetSpotCheck1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetSpotCheck1,"pagecount",t)},pagination:e.getSportCheck}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"保养记录",name:"second"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintain1,expression:"listLoadingMaintain1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养设定",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件领用状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalMaintain1,page:e.getdataListParmGetAssetMaintain1.offset,limit:e.getdataListParmGetAssetMaintain1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"pagecount",t)},pagination:e.getMaintain1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"维修记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintain1,expression:"listLoadingMaintain1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"维修单编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请人",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障现象","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appearanceName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dealTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理结果","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkResult))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalMaintain1,page:e.getdataListParmGetAssetMaintain1.offset,limit:e.getdataListParmGetAssetMaintain1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"pagecount",t)},pagination:e.getMaintain1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"设备启停记录",name:"fouth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"启用时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmGetAssetSTT1.parammaps.enabledTime,callback:function(t){e.$set(e.getdataListParmGetAssetSTT1.parammaps,"enabledTime",t)},expression:"getdataListParmGetAssetSTT1.parammaps.enabledTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"停用时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmGetAssetSTT1.parammaps.blockTime,callback:function(t){e.$set(e.getdataListParmGetAssetSTT1.parammaps,"blockTime",t)},expression:"getdataListParmGetAssetSTT1.parammaps.blockTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSTT1,expression:"listLoadingSTT1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"停用时间",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"停用人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalSTT1,page:e.getdataListParmGetAssetSTT1.offset,limit:e.getdataListParmGetAssetSTT1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetSTT1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetSTT1,"pagecount",t)},pagination:e.getSTT1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"变更记录",name:"fifith"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChange1,expression:"listLoadingChange1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalChange1,page:e.getdataListParmGetAssetChange1.offset,limit:e.getdataListParmGetAssetChange1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetChange1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetChange1,"pagecount",t)},pagination:e.getChange1}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)])])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("3de8"),c=a("a78e"),d=a.n(c),u={name:"Basics",components:{Pagination:o["a"],TreeSelect:m["a"]},directives:{waves:n["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],tableKey:0,list:null,total:0,totalSTT1:0,totalSpotCheck1:0,totalChange1:0,totalMaintain1:0,totalBasics:0,listLoading:!0,listLoadingbasics:!0,listLoadingSTT1:!0,listLoadingSpotCheck1:!0,listLoadingChange1:!0,listLoadingMaintain1:!0,listAssetSTT1:[],listAssetSpotCheck1:[],listAssetChange1:[],listAssetMaintain1:[],activeName:"six",getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:d.a.get("pasturename"),status:"",createTime:""}},getdataListParmGetBasics:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetSTT1:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetSpotCheck1:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetChange1:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetMaintain1:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getAssetSTT1",offset:0,pagecount:0,parammaps:{}}],temp:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",equipmentNumber:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,equipmentName:"",specification:"",providerName:"",financeNumber:"",status:"",purpose:"",purchaseDate:"",entranceDate:"",assetNumber:"",yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:""},dialogFormVisible:!1,dialogStatus:"",dialogFormVisibleCard:!1,dialogStatusCard:"",textMap:{update:"编辑",create:"新增",card:"查看设备信息"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],assTypeId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},parentClass:[],defaultProps:{children:"children",label:"name"},nodeKey:"id",defaultCheckedKeys:[],Classid:"",buttons:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.getDownClassList(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="asset:basics:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=n;var l="asset:basics:del",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isBasicsDel=o},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return console.log(e),function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){this.temp.providerId=e.id,this.temp.providerName=e.name},get_table_data:function(){var e=this;this.listLoading=!0,null===this.getdataListParm.parammaps.createTime&&(this.getdataListParm.parammaps.createTime=""),Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},getBasics:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetBasics).then((function(e){a.listBasics=e.data.list,e.data.total&&(a.totalBasics=e.data.total),setTimeout((function(){a.listLoadingBasics=!1}),100)}))},getSTT1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetSTT1).then((function(e){a.listAssetSTT1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalSTT1=e.data.total),setTimeout((function(){a.listLoadingSTT1=!1}),100)}))},getSportCheck:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetSpotCheck1).then((function(e){a.listAssetSpotCheck1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalSpotCheck1=e.data.total),setTimeout((function(){a.listLoadingSpotCheck1=!1}),100)}))},getChange1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetChange1).then((function(e){a.listAssetChange1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalChange1=e.data.total),setTimeout((function(){a.listLoadingChange1=!1}),100)}))},getMaintain1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetMaintain1).then((function(e){a.listAssetMaintain1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalMaintain1=e.data.total),setTimeout((function(){a.listLoadingMaintain1=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},popoverHide:function(e,t){console.log(t.checkNumber),this.getdataEQNumber.parammaps.checkNumber=t.checkNumber,0===t.children.length?(this.temp.assTypeId=e,this.getEQNumber()):(this.defaultCheckedKeys=[],this.$message({type:"warning",message:"请选择具体设备类型"}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=d.a.get("pastureid"),Object(r["e"])(this.getdataEQNumber).then((function(t){e.temp.equipmentNumber=t.data.list[0].createNumber}))},getDownClassList:function(){var e=this;Object(r["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},form_searchSTT:function(){this.listLoading=!0,this.getdataListParmGetAssetSTT1.offset=1,this.getSTT1()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.defaultCheckedKeys=[],this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid,this.temp.equipmentNumber="",this.temp.equipmentName="",this.temp.specification="",this.temp.providerName="",this.temp.financeNumber="",this.temp.status="",this.temp.providerName="",this.temp.purpose="",this.temp.purchaseDate="",this.temp.purchaseDate="",this.temp.entranceDate="",this.temp.assetNumber="",this.temp.yearUpkeepCost="",this.temp.yearMaintainDost="",this.temp.yuanzhi="",this.temp.financeNumber="",this.temp.inputDatetime=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.form_reset(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.defaultCheckedKeys=[this.temp.assTypeId],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.equipmentName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleCard:function(e){this.temp=Object.assign({},e),this.dialogStatusCard="card",this.dialogFormVisibleCard=!0,this.getdataListParmGetAssetSTT1.parammaps.assetId=e.id,this.getdataListParmGetAssetSTT1.parammaps.pastureId=e.pastureId,this.getSTT1(this.getdataListParmGetAssetSTT1.parammaps.assetId,this.getdataListParmGetAssetSTT1.parammaps.pastureId),this.getdataListParmGetAssetSpotCheck1.parammaps.assetId=e.id,this.getdataListParmGetAssetSpotCheck1.parammaps.pastureId=e.pastureId,this.getSportCheck(this.getdataListParmGetAssetSpotCheck1.parammaps.assetId,this.getdataListParmGetAssetSpotCheck1.parammaps.pastureId),this.getdataListParmGetAssetChange1.parammaps.assetId=e.id,this.getdataListParmGetAssetChange1.parammaps.pastureId=e.pastureId,this.getChange1(this.getdataListParmGetAssetChange1.parammaps.assetId,this.getdataListParmGetAssetChange1.parammaps.pastureId),this.getdataListParmGetAssetMaintain1.parammaps.assetId=e.id,this.getdataListParmGetAssetMaintain1.parammaps.pastureId=e.pastureId,this.getMaintain1(this.getdataListParmGetAssetMaintain1.parammaps.assetId,this.getdataListParmGetAssetMaintain1.parammaps.pastureId)}}},h=u,g=(a("c727"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"b8542bb2",null);t["default"]=f.exports},2327:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieTypeData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieTypeData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieTypeData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TypeData,a=e.text;this.chart.setOption({title:{text:a+"月类型统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){console.log(e),s.$emit("chartClickType",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},2377:function(e,t,a){},"238f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("98d6");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barCharDeptData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barCharDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barCharDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.xAxisData,e.seriesData,e.text);this.chart.setOption({title:{text:t+"维修成本柱状图",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"15%",bottom:"3%",containLabel:!0},xAxis:[{name:"水表名称",type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:40}}],yAxis:[{name:"吨",type:"value"}],series:[{type:"bar",barWidth:"60%",data:[10,52,200,334,390,330,220]}]});var a=this;this.chart.on("click",(function(e){console.log(e),a.$emit("barClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"23f9":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件申购记录",use:"icon-备件申购记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件申购记录"><defs><style type="text/css"></style></defs><path d="M708.445424 338.699008c0-16.93495-13.54796-29.918412-29.918412-29.918413H344.343991c-16.93495 0-29.918412 13.54796-29.918412 29.918413 0 16.93495 13.54796 29.918412 29.918412 29.918412h333.618523c16.93495 0.564498 30.482911-12.983462 30.48291-29.918412zM556.030871 512c0-16.93495-13.54796-29.918412-29.918412-29.918412H344.343991c-16.93495 0-29.918412 13.54796-29.918412 29.918412 0 16.93495 13.54796 29.918412 29.918412 29.918412h181.203969c16.93495 0 30.482911-13.54796 30.482911-29.918412zM344.343991 654.253583c-16.93495 0-29.918412 13.54796-29.918412 29.918413 0 16.93495 13.54796 29.918412 29.918412 29.918412h120.238148c16.93495 0 29.918412-13.54796 29.918412-29.918412 0-16.93495-13.54796-29.918412-29.918412-29.918413H344.343991z" p-id="7077" /><path d="M827.554576 582.562293c15.241455 0 27.660419-12.418964 27.660418-27.660419V218.46086c0-42.337376-34.434399-77.336273-77.336273-77.336273H237.653804c-42.337376 0-77.336273 34.434399-77.336274 77.336273v599.497244c0 42.337376 34.434399 77.336273 77.336274 77.336273h340.392503c2.257993 0.564498 3.951488 0.564498 5.644983 0.564498 15.241455 0 27.660419-12.418964 27.660419-27.660419 0-14.676957-12.418964-27.095921-27.095921-27.660419H237.653804c-12.418964 0-22.015436-10.16097-22.015436-22.015435V218.46086c0-12.418964 10.16097-22.015436 22.015436-22.015436h540.224917c12.418964 0 22.015436 10.16097 22.015436 22.015436v336.441014c0 15.241455 12.418964 27.660419 27.660419 27.660419z" p-id="7078" /><path d="M839.409041 780.701213h-63.788313v-45.159868h63.788313c13.54796 0 24.273429-10.725469 24.273429-24.273429s-10.725469-24.273429-24.273429-24.273429H829.812569l25.966924-26.531422c9.596472-9.596472 9.031974-24.837927 0-34.434399-9.596472-9.596472-24.837927-9.031974-34.434399 0l-0.564499 0.564498-55.320838 55.885337c-1.128997 1.128997-2.257993 2.257993-2.822491 3.951488h-19.757442c-1.128997-1.128997-1.693495-2.822492-2.822492-3.951488l-55.320838-55.885337-0.564498-0.564498c-9.596472-9.596472-24.837927-9.596472-34.4344 0-9.596472 9.596472-9.596472 24.837927 0 34.434399l25.966924 26.531422h-11.854465c-13.54796 0-24.273429 10.725469-24.273429 24.273429s10.725469 24.273429 24.273429 24.273429h63.788313v45.159868h-63.223815c-13.54796 0-24.273429 10.725469-24.273428 24.273429s10.725469 24.273429 24.273428 24.273429H728.202867v51.369349c0 13.54796 10.725469 24.273429 24.273428 24.273429s24.273429-10.725469 24.273429-24.273429v-51.369349h63.788313c13.54796 0 24.273429-10.725469 24.273429-24.273429-1.128997-13.54796-11.854465-24.273429-25.402425-24.273429z" p-id="7079" /></symbol>'});n.a.add(l);t["default"]=l},"241a":function(e,t,a){},2429:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-基础信息",use:"icon-基础信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-基础信息"><defs><style type="text/css"></style></defs><path d="M702 671a19 19 0 1 0 0 39 19 19 0 1 0 0-39z" p-id="23866" /><path d="M517 58C270 58 69 258 69 506s201 448 448 448 448-201 448-448S764 58 517 58z m213 659c-15 15-39 16-53 2L566 610a113 113 0 0 1-49 11 115 115 0 0 1-111-146l49 49c20 20 55 19 77-3s24-56 3-77l-49-49a115 115 0 0 1 135 160l111 110c14 14 13 37-2 52z m64-194a41 41 0 0 1-35 35h-38l-9 3a36 36 0 0 0-11 7 42 42 0 0 0-7 10l-31-31a146 146 0 0 0 6-41 151 151 0 0 0-151-151 151 151 0 0 0-152 151 151 151 0 0 0 193 145l31 31h-5l-7 6h-1a34 34 0 0 0-8 19v37a40 40 0 0 1-36 34h-33a40 40 0 0 1-35-35v-34a34 34 0 0 0-10-20 35 35 0 0 0-26-10h-17l-2 2-19 18-8 8a41 41 0 0 1-50 0l-23-23a41 41 0 0 1 0-50l8-8 13-13 6-5a34 34 0 0 0 6-11 35 35 0 0 0-23-43h-44a40 40 0 0 1-35-36v-29a41 41 0 0 1 35-35h38a34 34 0 0 0 30-38 10 10 0 0 0 0-3c0-1-1-2-1-3v-4h-1v-2h-1v-2l-19-18-8-8a41 41 0 0 1 1-50l23-23a40 40 0 0 1 50-1l8 8 13 13 6 6a34 34 0 0 0 44-1 30 30 0 0 0 8-10v-53a41 41 0 0 1 36-35h32a40 40 0 0 1 36 35v38a36 36 0 0 0 10 20l11 7a34 34 0 0 0 35-5l18-19 8-8c15-11 35-11 50 1l22 23a40 40 0 0 1 0 50l-8 8-13 13-6 6a29 29 0 0 0-5 11 34 34 0 0 0 13 39h1a32 32 0 0 0 15 5h38a40 40 0 0 1 35 36z" p-id="23867" /></symbol>'});n.a.add(l);t["default"]=l},2544:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),e._v(" "),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),e._v(" "),a("label",{attrs:{for:"toggle-all"}}),e._v(" "),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,s){return a("todo",{key:s,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),e._v(" "),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v("\n "+e._s(e._f("pluralize")(e.remaining,"item"))+" left\n ")]),e._v(" "),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,s){return a("li",{key:s},[a("a",{class:{selected:e.visibility===s},on:{click:function(t){t.preventDefault(),e.visibility=s}}},[e._v(e._s(e._f("capitalize")(s)))])])})),0)])])},i=[],r=(a("ac6a"),a("ced4")),n="todos",l={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},o=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],p={components:{Todo:r["default"]},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:l,todos:o}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return l[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(n,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},m=p,c=(a("3511"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"256b":function(e,t,a){},2574:function(e,t,a){},"25a4":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-维修成本分析",use:"icon-维修成本分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-维修成本分析"><defs><style type="text/css"></style></defs><path d="M258.56 76.8c-28.16 0-53.76 5.12-79.36 17.92-15.36 7.68-20.48 28.16-7.68 40.96l87.04 87.04-30.72 30.72-87.04-87.04c-5.12-5.12-10.24-7.68-17.92-7.68-10.24 0-17.92 5.12-23.04 15.36-33.28 66.56-23.04 151.04 33.28 207.36 35.84 35.84 79.36 51.2 125.44 51.2 20.48 0 40.96-2.56 58.88-10.24l284.16 284.16c-23.04 64-7.68 135.68 40.96 186.88 35.84 35.84 79.36 51.2 125.44 51.2 28.16 0 53.76-5.12 79.36-17.92 15.36-7.68 20.48-28.16 7.68-40.96l-87.04-87.04 30.72-30.72 87.04 87.04c5.12 5.12 10.24 7.68 17.92 7.68 10.24 0 17.92-5.12 23.04-15.36 33.28-66.56 23.04-151.04-33.28-207.36-35.84-35.84-79.36-51.2-125.44-51.2-20.48 0-40.96 2.56-61.44 10.24l-284.16-284.16c23.04-64 7.68-135.68-40.96-186.88-33.28-33.28-76.8-51.2-122.88-51.2z m-33.28 230.4c12.8 0 25.6-5.12 35.84-15.36l30.72-30.72c20.48-20.48 20.48-51.2 0-71.68l-58.88-58.88c7.68 0 15.36-2.56 23.04-2.56 33.28 0 66.56 12.8 89.6 38.4 35.84 35.84 46.08 87.04 30.72 133.12-7.68 17.92-2.56 38.4 12.8 53.76l284.16 284.16c10.24 10.24 23.04 15.36 35.84 15.36 5.12 0 12.8 0 17.92-2.56 12.8-5.12 28.16-7.68 43.52-7.68 33.28 0 66.56 12.8 89.6 38.4 30.72 30.72 43.52 71.68 35.84 112.64l-58.88-58.88c-10.24-10.24-23.04-15.36-35.84-15.36-12.8 0-25.6 5.12-35.84 15.36l-30.72 30.72c-10.24 10.24-15.36 23.04-15.36 35.84s5.12 25.6 15.36 35.84l58.88 58.88c-7.68 0-15.36 2.56-23.04 2.56-33.28 0-66.56-12.8-89.6-38.4-35.84-35.84-46.08-87.04-30.72-133.12 7.68-17.92 2.56-38.4-12.8-53.76l-284.16-284.16c-10.24-10.24-23.04-15.36-35.84-15.36-5.12 0-10.24 0-17.92 2.56-12.8 5.12-28.16 7.68-43.52 7.68-33.28 0-66.56-12.8-89.6-38.4-30.72-30.72-43.52-71.68-35.84-112.64l58.88 58.88c10.24 10.24 23.04 15.36 35.84 15.36z" p-id="14192" fill="#ffffff" /><path d="M337.92 563.2c-12.8 0-25.6 5.12-35.84 15.36l-184.32 184.32c-20.48 20.48-20.48 51.2 0 71.68l71.68 71.68c10.24 10.24 23.04 15.36 35.84 15.36 12.8 0 25.6-5.12 35.84-15.36l184.32-184.32c20.48-20.48 20.48-51.2 0-71.68l-71.68-71.68c-7.68-10.24-20.48-15.36-35.84-15.36z m-110.08 307.2l-71.68-71.68 184.32-184.32 71.68 71.68-184.32 184.32zM849.92 138.24l35.84 35.84-89.6 89.6-17.92-17.92-17.92-17.92 89.6-89.6m0-61.44c-7.68 0-12.8 2.56-17.92 7.68l-125.44 125.44c-10.24 10.24-10.24 25.6 0 35.84l17.92 17.92-125.44 125.44c-10.24 10.24-10.24 25.6 0 35.84 5.12 5.12 12.8 7.68 17.92 7.68s12.8-2.56 17.92-7.68l125.44-125.44 17.92 17.92c5.12 5.12 12.8 7.68 17.92 7.68s12.8-2.56 17.92-7.68l125.44-125.44c10.24-10.24 10.24-25.6 0-35.84l-71.68-71.68c-2.56-5.12-10.24-7.68-17.92-7.68z" p-id="14193" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"25e1":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.exeCommand}},[e._t("prefix"),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.commands,(function(t){return a("el-dropdown-item",{key:t.index,attrs:{divided:t.divided,command:t}},[a("span",[e._v(e._s(t.label))])])})),1),e._v(" "),e._t("suffix")],2)},i=[],r={props:{commands:{type:Array,default:function(){return[]}}},methods:{exeCommand:function(e){this.$emit("redirect",e)}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,"04c794d5",null);t["default"]=o.exports},2655:function(e,t,a){},"26b9":function(e,t,a){"use strict";a("87bd")},"26c4":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-steam",use:"icon-steam-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-steam"><defs><style type="text/css"></style></defs><path d="M740.224 691.2H793.6a51.2 51.2 0 1 1 0 102.4H230.4a51.2 51.2 0 1 1 0-102.4h53.376a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0zM307.2 230.4a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 281.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 409.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 537.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 665.6 256a25.6 25.6 0 0 1 25.6-25.6z" p-id="3604" /></symbol>'});n.a.add(l);t["default"]=l},"26c5":function(e,t,a){},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"270a":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-供应商",use:"icon-供应商-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-供应商"><defs><style type="text/css"></style></defs><path d="M906 115.5H118v101h788v-101z m50.5 495v-101L906 262H118L67.5 509.5v101H118v298h495v-298h197v298h101v-298h45.5zM512 807.5H214v-197h298v197z" p-id="18070" /></symbol>'});n.a.add(l);t["default"]=l},"28b6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tree-view"},[a("div",{staticClass:"tree-view-flex tree-view-header"},[e._l(e.columns,(function(t){return a("div",{key:t.index,staticClass:"title",style:e.colStyle(t)},[e._v(e._s(t.label))])})),e._v(" "),e.actions?a("div",{staticClass:"title",style:e.actionsStyle},[e._v("操作")]):e._e()],2),e._v(" "),a("el-tree",{ref:"tree",staticClass:"tree-view-box",attrs:{data:e.rows,"show-checkbox":""},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var s=t.data;return a("div",{staticClass:"tree-view-flex tree-view-row"},[e._l(e.columns,(function(t){return a("el-table-cell",{key:s.index+t.index,style:e.rowStyle(t),attrs:{col:t,row:s}})})),e._v(" "),e.actions?a("div",{staticClass:"tree-actions",style:e.actionsStyle},e._l(e.actions.items,(function(t){return a("el-btn",{key:t.index,attrs:{act:t,row:s,size:"mini"},on:{action:e.ajax}})})),1):e._e()],2)}}])})],1)},i=[],r=a("13f2"),n=a("68a0"),l={components:{ElTableCell:r["default"],ElBtn:n["default"]},props:["columns","rows","actions"],computed:{actionsStyle:function(){var e=this.actions?"".concat(80*this.actions.items.length,"px"):0;return{width:e}}},methods:{ajax:function(e){this.$emit("action",e)},rowSelect:function(e){e&&this.$refs.tree.setCheckedKeys(e)},colStyle:function(e){var t={width:e.width||"60px",textAlign:e.textAlign||"center"};return t},rowStyle:function(e){var t={width:e.width||"60px"};return t}}},o=l,p=(a("e384"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"27fe3d92",null);t["default"]=m.exports},"28d0":function(e,t,a){},"28ee":function(e,t,a){},2934:function(e,t,a){"use strict";a.d(t,"A",(function(){return r})),a.d(t,"z",(function(){return n})),a.d(t,"D",(function(){return l})),a.d(t,"e",(function(){return o})),a.d(t,"g",(function(){return p})),a.d(t,"h",(function(){return m})),a.d(t,"C",(function(){return c})),a.d(t,"f",(function(){return d})),a.d(t,"a",(function(){return u})),a.d(t,"q",(function(){return h})),a.d(t,"o",(function(){return g})),a.d(t,"p",(function(){return f})),a.d(t,"r",(function(){return b})),a.d(t,"m",(function(){return v})),a.d(t,"n",(function(){return y})),a.d(t,"s",(function(){return _})),a.d(t,"k",(function(){return w})),a.d(t,"i",(function(){return S})),a.d(t,"d",(function(){return P})),a.d(t,"l",(function(){return x})),a.d(t,"c",(function(){return T})),a.d(t,"B",(function(){return k})),a.d(t,"y",(function(){return C})),a.d(t,"w",(function(){return L})),a.d(t,"u",(function(){return N})),a.d(t,"b",(function(){return D})),a.d(t,"t",(function(){return $})),a.d(t,"j",(function(){return I})),a.d(t,"F",(function(){return q})),a.d(t,"E",(function(){return A})),a.d(t,"v",(function(){return M})),a.d(t,"x",(function(){return O}));a("6762"),a("2fdb");var s=a("b775"),i=a("ed08");function r(e,t){return Object(s["a"])({url:"http://127.0.0.1:8082/"+e,method:"post",timeout:6e5,data:t})}function n(e){return Object(s["a"])({url:"/authdata/partslistSGv2",method:"post",data:e})}function l(e){return Object(s["a"])({url:"/authdata/startStopRecord",method:"post",data:e})}function o(e){return Object(s["a"])({url:"/authdata/GetDataByName",method:"post",data:e})}function p(e){return Object(s["a"])({url:"/authdata/maintain",method:"post",data:e})}function m(e){return Object(s["a"])({url:"/authdata/GetReportform",method:"post",data:e})}function c(e,t){return Object(s["a"])({url:"/authdata/"+t,method:"post",data:e})}function d(e){return Object(s["a"])({url:"/authdata/GetDataByNames",method:"post",data:e})}function u(e){return Object(s["a"])({url:"/authdata/EasSync",method:"post",data:e})}function h(e){return Object(s["a"])({url:"/authdata/sap/transfer/send",method:"post",data:e})}function g(e){return Object(s["a"])({url:"/authdata/sap/quitproof/send",method:"post",data:e})}function f(e){return Object(s["a"])({url:"/authdata/sap/refundproof/send",method:"post",data:e})}function b(e){return Object(s["a"])({url:"/authdata/sap/useproof/send",method:"post",data:e})}function v(e){return Object(s["a"])({url:"/authdata/sap/laidproof/send",method:"post",data:e})}function y(e){return Object(s["a"])({url:"/authdata/sap/order/send",method:"post",data:e})}function _(e){return Object(s["a"])({url:"/authdata/srm/order/send",method:"post",data:e})}function w(e){return Object(s["a"])({url:"/authdata/PostDataByName",method:"post",data:e})}function S(e){return Object(s["a"])({url:"/authdata/GetUpkeepPlan",method:"post",data:e})}function P(e){return Object(s["a"])({url:"/authdata/GetAccount",method:"post",timeout:6e6,data:e})}function x(e){return Object(s["a"])({url:"/authdata/PostDataByNames",method:"post",data:e})}function T(e){return Object(s["a"])({url:"/authdata/ExecDataByConfig",method:"post",data:e})}function k(e){return Object(s["a"])({url:"/authdata/removeimage",method:"post",data:e})}function C(e){return Object(s["a"])({url:"/authdata/GetRecuDataByName",method:"post",data:e})}function L(e,t){e.data.includes("Duplicate")?t({title:"失败",message:"不可以录入重复数据",type:"error",duration:2e3}):t({title:"失败",message:"数据存在错误,请校验好重新录入,不可以录入数据",type:"error",duration:2e3})}function N(e){return Object(s["a"])({url:"/authdata/UpdateDataRelation",method:"post",data:e})}function D(e){return Object(s["a"])({url:"/data/Equipment",method:"post",timeout:6e6,data:e})}function $(e){return Object(s["a"])({url:"/data/StandardPart",method:"post",data:e})}function I(e){return Object(s["a"])({url:"/data/PastureDepartment",method:"post",data:e})}function q(e){return Object(s["a"])({url:"/data/updateAndInster",method:"post",data:e})}function A(e,t,a,s){for(var i=[],r={},n=t,l=a,o=s,p=0,m=0,c=e.length;p<c;p++)r[e[p][n]]=e[p];for(;m<c;m++){var d=e[m],u=r[d[l]];u?(!u[o]&&(u[o]=[]),u[o].push(d)):i.push(d)}return i}function M(e,t){for(var a=0;a<e.length;a++)if(e[a].path===t&&e[a].menu_id&&e[a].path)return!0;return!1}function O(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(i["default"])(t[e]):t[e]}))}))}},2950:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"475px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({legend:{},tooltip:{},dataset:{source:[["product","2015","2016","2017"],["10月",43.3,85.8,93.7],["9月",83.1,73.4,55.1],["8月",86.4,65.2,82.5],["7月",72.4,53.9,39.1]]},xAxis:[{type:"category",gridIndex:0,name:"最近12个月"}],yAxis:[{gridIndex:0,name:"总费用"}],grid:[{bottom:"58%"},{top:"58%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},2995:function(e,t,a){"use strict";a("b0a6")},"29c8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-autocomplete",{attrs:{options:e.options,"fetch-suggestions":e.querySearch,placeholder:e.label,label:e.label},on:{select:e.handleSelect},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)},i=[],r=(a("c5f6"),{props:{value:[String,Number],options:{type:Array,default:function(){return[]}},label:{type:String,default:""},name:String,url:String},data:function(){return{selected:void 0}},methods:{querySearch:function(e,t){var a=this.options,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return-1!==t.value.indexOf(e.toLowerCase())}},handleSelect:function(e){var t=this;e&&(e.id?this.$emit("input",e.id):""!==e.value?(this.$emit("input",-1),this.$HttpPost({url:this.url},{value:e.value}).then((function(a){a.item&&(t.options.push(a.item),t.$emit("input",e.id))}))):this.$emit("input",e.id))}}}),n=r,l=(a("370a"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"24d81588",null);t["default"]=o.exports},"29d4":function(e,t,a){"use strict";a("0eb8")},"2a05":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{staticClass:"filter-item",attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"费用分类"},on:{change:e.changeCost},model:{value:e.cost,callback:function(t){e.cost=t},expression:"cost"}},e._l(e.costList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-radio-group",{staticStyle:{float:"right","margin-top":"20px"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"集团"}},[e._v("集团")]),e._v(" "),a("el-radio",{attrs:{label:"一中心"}},[e._v("一中心")]),e._v(" "),a("el-radio",{attrs:{label:"二中心"}},[e._v("二中心")]),e._v(" "),a("el-radio",{attrs:{label:"三中心"}},[e._v("三中心")])],1)],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团"+e._s(e.costTypeName)+":"+e._s(e.totaltitle)+"万元\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1),e._v(" "),a("el-dialog",{attrs:{title:"详情",visible:e.dialogFormVisibleCard,width:"90%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"rowSeeData",staticStyle:{width:"100%",margin:"0 auto"},attrs:{model:e.rowSeeData,"label-position":"right","label-width":"120px"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSee.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"eqName",t)},expression:"getdataListParmSee.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSee.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"assetCode",t)},expression:"getdataListParmSee.parammaps.assetCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"领用开始日期","end-placeholder":"领用结束日期"},model:{value:e.getdataListParmSee.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"inputDatetime",t)},expression:"getdataListParmSee.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadDelivery}},[e._v("导出")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqSpecification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>=0,expression:"totalSee>=0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7f7f"),a("ac6a"),a("313e")),n=a.n(r),l=a("6724"),o=a("333d"),p=a("2934"),m=a("ed08"),c=a("a78e"),d=a.n(c);a("817d");var u={name:"QueryRepair",directives:{waves:l["a"]},components:{Pagination:o["a"]},data:function(){return{yearDate:new Date,radio:"集团",cost:"",totaltitle:0,costTypeName:"所有维修费",costList:[{id:"",name:"全部费用"},{id:"挤奶处",name:"直接费用"},{id:"牧场办公室",name:"管理费用"},{id:1,name:"制造费用"}],pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"getpSumNow",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonth",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDay",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonth",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonth",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null,total:0,listLoading:!0,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogFormVisibleCard:!1,listLoadingSee:!0,rowSeeData:{},listSee:[],totalSee:0,getdataListParmSee:{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid"),pastureName:d.a.get("pasturename")}},buttons:[],isBarChart1:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1Parm.parammaps.departmentName=this.cost,this.getLineChart1Parm.parammaps.departmentName=this.cost,this.getLineChart2Parm.parammaps.departmentName=this.cost,this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1(),this.getBarChart2()}},radio:{deep:!0,handler:function(e,t){console.log(e,t),this.getBarChart1Parm.parammaps.center="集团"==e?"":e,this.getBarChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(p["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryRepair:pastures",t=Object(p["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(p["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.totaltitle=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(p["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.year)}))},getPieChart1:function(){var e=this;Object(p["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(p["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度维修费用对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],right:40,x:"right"},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年维修费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getdataListParmSee.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=n.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月维修费用对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],x:"right"},color:["#769cfc","#FFB800","#6bda00"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年维修费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"预算",type:"line",data:e.budget,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name,i.getdataListParmSee.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=n.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"年每月单头牛维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"日期",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}"}}],series:[{name:"今年维修费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=n.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40,x:"right"},color:["#42b983","#769cfc","#FFB800","#fb9999","#ba99fb","#99fbf2","#b5ffc5","#edffb5","#ff9d6e","#897cf3"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{label:{show:!0,position:"inside"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getdataListParmSee.parammaps.deptName=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var a={title:{text:t+"维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["维修费用"],x:"right"},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"12%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"设备类别",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}"}}],series:[{name:"维修费用",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()};var s=this;s.barChart2.on("click",(function(e,t){console.log(e),s.getdataListParmSee.parammaps.typeName=e.name,s.getdataListParmSee.offset=1,s.get_table_dataSee(),s.dialogFormVisibleCard=!0}))},form_searchDelivery:function(){null==this.getdataListParmSee.parammaps.inputDatetime&&(this.getdataListParmSee.parammaps.startTime="",this.getdataListParmSee.parammaps.stopTime=""),this.getdataListParmSee.offset=1,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;void 0!==this.getdataListParmSee.parammaps.inputDatetime&&null!==this.getdataListParmSee.parammaps.inputDatetime?(this.getdataListParmSee.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParmSee.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParmSee.parammaps.startTime="",this.getdataListParmSee.parammaps.stopTime=""),Object(p["e"])(this.getdataListParmSee).then((function(t){e.listSee=t.data.list,console.log("记录列表数据",t.data.list),e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))},handleDownloadDelivery:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="geteqclassSumDay",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParmSee.parammaps,Object(p["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["资产编号","设备名称","设备内部编号","设备规格","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["assetCode","eqName","eqCode","eqSpecification","receiveTime","deptName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList,sheetName:"设备维修费用"}];Object(m["d"])(a,"设备维修费用",!0,"xlsx")}))}))},changeCost:function(e){console.log(e),"挤奶处"==e?this.costTypeName="直接维修费":"牧场办公室"==e?this.costTypeName="管理维修费":1==e?this.costTypeName="制造维修费":""==e?(this.costTypeName="所有维修费",this.cost=""):this.costTypeName="所有维修费",this.getBarChart1Parm.parammaps.departmentName=this.cost,this.getLineChart1Parm.parammaps.departmentName=this.cost,this.getLineChart2Parm.parammaps.departmentName=this.cost,this.getBarChart1(),this.getLineChart1(),this.getLineChart2()}}},h=u,g=(a("da2d"),a("5dc5"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"01be137f",null);t["default"]=f.exports},"2a0b":function(e,t,a){},"2a3d":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-password"><path d="M108.8 44.322H89.6v-5.36c0-9.04-3.308-24.163-25.6-24.163-23.145 0-25.6 16.881-25.6 24.162v5.361H19.2v-5.36C19.2 15.281 36.798 0 64 0c27.202 0 44.8 15.281 44.8 38.961v5.361zm-32 39.356c0-5.44-5.763-9.832-12.8-9.832-7.037 0-12.8 4.392-12.8 9.832 0 3.682 2.567 6.808 6.407 8.477v11.205c0 2.718 2.875 4.962 6.4 4.962 3.524 0 6.4-2.244 6.4-4.962V92.155c3.833-1.669 6.393-4.795 6.393-8.477zM128 64v49.201c0 8.158-8.645 14.799-19.2 14.799H19.2C8.651 128 0 121.359 0 113.201V64c0-8.153 8.645-14.799 19.2-14.799h89.6c10.555 0 19.2 6.646 19.2 14.799z" /></symbol>'});n.a.add(l);t["default"]=l},"2ad8":function(e,t,a){},"2ae7":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block",top:"0"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,"checked-keys":e.defaultCheckedKeys,placeholder:e.placeholder},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,"show-summary":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deapartmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentCategory(s)}}},[e._v(e._s(s.partClassName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产标准数量",align:"center",prop:"equipmentNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际数量",align:"center",prop:"realNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"差异",align:"center",prop:"differences"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"StandardAssetAllocation",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){return{findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getEquipmentAndEquipmentStandard",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),pastureName:c.a.get("pasturename"),departmentName:"",eqClassId:""}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},statueReason:!1,downLoadParm:{},downLoadList:[],pageNum:0,pageSize:0,isPercentage:!1,percentage:1,isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data(),this.getDownClassList()},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this;this.listLoading=!0,"现代牧业"==this.getdataListParm.parammaps.pastureName&&(this.getdataListParm.parammaps.pastureId=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){var e=this;this.listLoading=!0,this.getdataListParm.offset=1,this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e.getdataListParm.parammaps.pastureName})).id,this.get_table_data()},popoverHide:function(e,t){console.log(e,t),void 0===t.children?this.getdataListParm.parammaps.eqClassId=t.eqClassId:(this.defaultCheckedKeys=[],this.$message({type:"warning",message:"请选择具体设备类型"}))},getDownClassList:function(){var e=this;Object(r["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},tableCellStyle:function(e){e.row,e.column,e.rowIndex;var t=e.columnIndex;return 3===t?{textDecoration:"underline"}:{textDecoration:"none"}},clickEquipmentCategory:function(e){console.log("跳转了"),"现代牧业"==c.a.get("pasturename")||e.name==c.a.get("pasturename")?(this.$router.push({path:"/asset/basics",query:{myPath:"AssetStandardManagement",pastureName:e.name,pastureId:e.pastureId,departmentId:parseInt(e.departmentId),eqClassId:e.eqClassId}}),this.getdataListParm.parammaps.pastureName=e.name,this.getdataListParm.parammaps.pastureId=e.pastureId,this.getdataListParm.parammaps.departmentId=e.departmentId,this.getdataListParm.parammaps.eqClassId=e.eqClassId,this.getdataListParm.parammaps.eqClassName=e.eqClassName):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},handleDownload:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","牧场","部门","责任人","录入人","录入时间","折旧年限","使用时长(年)","使用率(%)"],filterVal:["eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","pastureName","deptName","employeName","inputUserName","inputDatetime","depreciation","serviceDuration","utilizationRate"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(l["d"])(a,"设备基础信息",!0,"xlsx")}))}}},u=d,h=(a("65ff"),a("549e"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"de9559bc",null);t["default"]=g.exports},"2b33":function(e,t,a){"use strict";a("67fb")},"2b3a":function(e,t,a){},"2b3f":function(e,t,a){},"2b4e":function(e,t,a){"use strict";a("6d01")},"2bc1":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",{staticClass:"el-main"},[a("div",{staticClass:"top",attrs:{slot:"top"},slot:"top"},[a("div",e._l(e.view.btns.items,(function(t){return a("el-btn",{key:t.label,attrs:{act:t,"multi-select":e.multiSelect,plain:!0},on:{action:e.handleButton}})})),1),e._v(" "),a("ve-form",{staticClass:"form-inline",attrs:{view:e.view.search},on:{search:e.search}})],1),e._v(" "),a("ve-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{slot:"content",rows:e.rows,columns:e.view.columns,actions:e.view.actions},on:{action:e.ajax,edit:e.edit,sort:e.sortChange,multipleSelection:e.handleSelectionChange},slot:"content"}),e._v(" "),e.pSize>0?a("el-pagination",{attrs:{slot:"foot",background:"","current-page":e.page,layout:"total, prev, pager, next",total:e.total,"page-size":e.pSize},on:{"update:currentPage":function(t){e.page=t},"update:current-page":function(t){e.page=t},"current-change":e.handleCurrentChange},slot:"foot"}):e._e()],1)},i=[],r=(a("55dd"),a("5af4")),n=a("cead"),l=a("68a0"),o=a("c1ca"),p={columns:[{index:"user-name",label:"用户名",name:"name",colWidth:200,sortable:!0,editable:!0,editUrl:"/table/edit/name.json"},{index:"user-sex",label:"性别",name:"sex",colWidth:100,holder:"switch",activeText:"男",inactiveText:"女",activeIconClass:"el-icon-location",inactiveIconClass:"el-icon-location-outline"},{index:"user-year",label:"年龄",name:"year",colWidth:100},{index:"user-depart",label:"部门",name:"depart",colWidth:200,holder:"select",options:[{value:1,label:"第一中学"},{value:2,label:"第二中学"},{value:3,label:"第三中学"},{value:4,label:"第四中学"}]},{index:"user-address",label:"地址",name:"address",align:"left"}],btns:{items:[{icon:"el-icon-edit",type:"primary",label:"新建",next:"/form.json",size:"medium"},{icon:"el-icon-delete",url:"/delete.json",multiSelect:!0,type:"danger",label:"删除",size:"medium"}]},department:[{label:"名称",name:"name",index:"department-name"},{label:"状态",name:"sex",index:"department-sex"},{label:"简介",name:"display",index:"department-display",width:"200px"}],actions:{items:[{icon:"el-icon-edit",next:"/form.json",type:"primary",label:"修改"},{icon:["el-icon-location-outline","el-icon-location"],switch:"sex",switchUrl:["/sex.json?sex=1","/sex.json?sex=0"],label:["女","男"],type:["primary","denger"]},{icon:"el-icon-edit",url:"/status.json",type:"success",label:"状态",disable:"sex"}]}},m={components:{Pannel:r["default"],VeTable:n["default"],ElBtn:l["default"],VeForm:o["default"]},data:function(){return{multipleSelection:[],searchValues:{},sort:{},page:1,pSize:10,total:0,formInline:{user:"",region:""},view:{name:"TableView",columns:p.columns,search:{size:"medium",inline:!0,fields:[{index:"user-name",label:"用户名",name:"name"}]},btns:p.btns,actions:p.actions,url:"/table/data.json"}}},computed:{params:function(){var e=this;return{page:e.page,sort:e.sort,search:e.searchValues}},multiSelect:function(){return 0!==this.multipleSelection.length}},mounted:function(){this.getData()},methods:{handleButton:function(e){var t;e.multiSelect&&(t={id:this.multipleSelection.map((function(e){return e.id}))}),this.ajax(e,t)},handleSelectionChange:function(e){this.multipleSelection=e},search:function(e){this.search=e,this.getData()},handleCurrentChange:function(){this.getData()},sortChange:function(e){e&&e.column&&e.column.sortable&&(this.page=1,this.sort={column:e.column.property,order:e.order},this.getData())},getData:function(){},freshTable:function(e){var t=this;e&&(e.rows&&(this.rows=e.rows),e.total&&(this.total=e.total),this.$nextTick((function(){e.selected&&t.$refs.table.rowSelect(e.selected)})))}}},c=m,d=(a("abdf"),a("2877")),u=Object(d["a"])(c,s,i,!1,null,"7a7aa4c4",null);t["default"]=u.exports},"2c1d":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备使用记录",use:"icon-设备使用记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备使用记录"><defs><style type="text/css"></style></defs><path d="M489.195232 151.638724l221.29188 4.097998a31.759483 31.759483 0 0 0 21.002238-8.195996 32.783982 32.783982 0 0 0 9.220495-21.002238v-34.832982a31.759483 31.759483 0 0 0-8.195995-21.002238 32.271732 32.271732 0 0 0-21.002239-8.708245l-220.77963-3.585748a132.160428 132.160428 0 0 1 8.708246 46.614724 123.964433 123.964433 0 0 1-10.757245 46.614725z m183.3854-28.685985a16.904241 16.904241 0 0 1-10.244994-4.610247 16.391991 16.391991 0 0 1-4.097998-10.757244 15.879741 15.879741 0 0 1 4.610248-10.244995 16.391991 16.391991 0 0 1 10.244994-4.097997 20.489989 20.489989 0 0 1 10.757244 4.610247 12.806243 12.806243 0 0 1 3.585748 10.244995 13.830742 13.830742 0 0 1-14.855242 14.855241z m-358.574805 57.884219a90.155951 90.155951 0 0 0 20.489989 13.830743 102.449944 102.449944 0 0 0 62.494466 9.732744 102.449944 102.449944 0 0 0 55.32297-27.149235A102.449944 102.449944 0 0 0 383.15954 0.012806a102.449944 102.449944 0 0 0-73.251711 29.198234 124.988932 124.988932 0 0 0-17.92874 22.026738 72.73946 72.73946 0 0 0-9.732744 24.587987 6.146997 6.146997 0 0 0 0 7.171496 4.610247 4.610247 0 0 0 6.146996 0l75.812959-18.44099 35.857481 36.88198-14.855242 51.224972-21.002239 4.610248-35.345231 8.195995a68.129213 68.129213 0 0 0-17.41649 5.122498 10.244994 10.244994 0 0 0 0 5.634747 10.244994 10.244994 0 0 0 0 5.634746z m165.45666 396.481285H246.388864c-6.659246 0-12.293993-9.732745-12.293993-22.026738s5.634747-21.514488 12.293993-21.514489h233.073623c7.171496 0 12.293993 9.732745 12.293994 21.514489s-5.122497 22.026738-12.293994 22.026738z m0 142.405422H246.388864c-6.659246 0-12.293993-9.732745-12.293993-21.514488s5.634747-22.026738 12.293993-22.026738h233.073623c7.171496 0 12.293993 9.732745 12.293994 22.026738s-5.122497 21.514488-12.293994 21.514488z m294.54359-285.323095H540.932454c-6.659246 0-12.293993-9.732745-12.293993-22.026738s5.634747-21.002239 12.293993-21.002238h233.073623c6.659246 0 12.293993 9.732745 12.293994 21.002238s-5.634747 22.026738-12.293994 22.026738z m0 142.917673H540.932454c-6.659246 0-12.293993-9.732745-12.293993-22.026738s5.634747-21.514488 12.293993-21.514489h233.073623c6.659246 0 12.293993 9.732745 12.293994 21.514489s-5.634747 22.026738-12.293994 22.026738zM236.14387 395.469591v43.028977h256.12486v-43.028977z m246.904365 33.808482H246.388864v-24.075737h236.659371z m0 0M874.407023 173.153212v461.02475h40.979978V129.611986a40.467728 40.467728 0 0 0-11.781744-28.685985 40.979978 40.979978 0 0 0-29.198234-12.293993h-86.057953v40.979978h45.077975a40.979978 40.979978 0 0 1 40.979978 43.541226z" p-id="2688" /><path d="M515.832218 979.434274h-322.717325a40.979978 40.979978 0 0 1-28.685984-12.293993 39.443229 39.443229 0 0 1-11.781744-29.198234V173.153212a40.979978 40.979978 0 0 1 40.467728-41.492227h45.077975v-40.979978H152.647165A40.467728 40.467728 0 0 0 123.448931 102.462751a42.004477 42.004477 0 0 0-12.293994 29.198234v850.334538a40.979978 40.979978 0 0 0 41.492228 40.467728h363.185053zM720.732106 666.961944a162.895412 162.895412 0 1 1-114.743937 47.639224 160.846413 160.846413 0 0 1 114.743937-47.639224z m0-32.271733a194.142645 194.142645 0 1 0 137.795175 56.85972 194.654894 194.654894 0 0 0-137.795175-56.85972z m0 0" p-id="2689" /><path d="M771.957078 732.017659l-141.380923 158.285164v36.36973l35.857481-3.585748 141.380923-158.285164z m0 0" p-id="2690" /></symbol>'});n.a.add(l);t["default"]=l},"2c77":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}})],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团用水量:"+e._s(e.total)+"万m³\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("333d"),m=a("2934"),c=a("a78e"),d=a.n(c);a("817d");var u={name:"QueryWater",directives:{waves:o["a"]},components:{Pagination:p["a"]},data:function(){var e;return e={yearDate:new Date,total:"",pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"getpSumNowWater",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(m["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryWater:pastures",t=Object(m["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(m["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(m["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(m["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(m["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(m["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"月每日用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40,x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"用水量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["用水量"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"水表名称",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"用水量",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}}}},h=u,g=(a("4e4f"),a("37cd"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"6fcf2db2",null);t["default"]=f.exports},"2c7e":function(e,t,a){},"2cbe":function(e,t,a){},"2cf3":function(e,t,a){},"2d90":function(e,t,a){"use strict";a("f7a9")},"2ebe":function(e,t,a){},"2edb":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-water",use:"icon-water-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-water"><defs><style type="text/css"></style></defs><path d="M384 714.656C384 779.456 441.312 832 512 832s128-52.544 128-117.344c0-43.2-42.656-121.408-128-234.656-85.344 113.248-128 191.456-128 234.656z" p-id="2195" /><path d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM256 128h512v224H256V128zM160 896V128h32v288h640V128h32l0.064 768H160z" p-id="2196" /><path d="M328 192h64v96h-64zM488 192h64v96h-64zM648 192h64v96h-64z" p-id="2197" /></symbol>'});n.a.add(l);t["default"]=l},"2ef3":function(e,t,a){"use strict";a("5856")},"2efb":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),e._v(" "),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),e._v(" "),a("label",{attrs:{for:"toggle-all"}}),e._v(" "),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,s){return a("todo",{key:s,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),e._v(" "),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v("\n "+e._s(e._f("pluralize")(e.remaining,"item"))+" left\n ")]),e._v(" "),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,s){return a("li",{key:s},[a("a",{class:{selected:e.visibility===s},on:{click:function(t){t.preventDefault(),e.visibility=s}}},[e._v(e._s(e._f("capitalize")(s)))])])})),0)])])},i=[],r=(a("ac6a"),a("472a")),n="todos",l={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},o=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],p={components:{Todo:r["default"]},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:l,todos:o}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return l[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(n,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},m=p,c=(a("9dde"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"2f11":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol>'});n.a.add(l);t["default"]=l},"2f27":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"prev",staticClass:"dashboard-editor-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{style:{position:"fixed",height:"55px",top:"90px",zIndex:"999",marginBottom:"50px",background:"#f0f2f5",width:e.myWidth}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份",format:"yyyy-MM","value-format":"yyyy-MM",clearable:!1},on:{change:e.changeTime},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140pxmargin-top:5px"},attrs:{placeholder:"快捷跳转方式"},on:{"visible-change":function(t){return e.changeJump(t,e.jump)}},model:{value:e.jump,callback:function(t){e.jump=t},expression:"jump"}},e._l(e.jumpList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px","margin-top":"5px"},attrs:{placeholder:"全部牧场"},on:{change:e.changePasture},model:{value:e.pastureId,callback:function(t){e.pastureId=t},expression:"pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"0","margin-top":"5px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("div",{staticStyle:{"margin-top":"50px"}},[a("div",[a("h3",{attrs:{id:"equipmentIndexCostTable"}},[e._v("设备指标")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipmentIndexCostTable.listLoading,expression:"equipmentIndexCostTable.listLoading"}],key:e.equipmentIndexCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipmentIndexCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentIndex(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"repairCostTable"}},[e._v("维修费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.repairCostTable.listLoading,expression:"repairCostTable.listLoading"}],key:e.repairCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.repairCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickRepairCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterCostTable"}},[e._v("水费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterCostTable.listLoading,expression:"waterCostTable.listLoading"}],key:e.waterCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecCostTable"}},[e._v("电费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecCostTable.listLoading,expression:"elecCostTable.listLoading"}],key:e.elecCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort4}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasCostTable"}},[e._v("柴油费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasCostTable.listLoading,expression:"gasCostTable.listLoading"}],key:e.gasCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort5}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterConsumptionTable"}},[e._v("水量(吨)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterConsumptionTable.listLoading,expression:"waterConsumptionTable.listLoading"}],key:e.waterConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort6}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecConsumptionTable"}},[e._v("电量(度)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecConsumptionTable.listLoading,expression:"elecConsumptionTable.listLoading"}],key:e.elecConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort7}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasConsumptionTable"}},[e._v("柴油用量(L)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasConsumptionTable.listLoading,expression:"gasConsumptionTable.listLoading"}],key:e.gasConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"bioConsumptionTable"}},[e._v("燃动用量")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.bioConsumptionTable.listLoading,expression:"bioConsumptionTable.listLoading"}],key:e.bioConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.bioConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickBioConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialog.listLoading,expression:"dialog.listLoading"}],key:e.dialog.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.dialog.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort9}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"70px",align:"center",prop:"deptname"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dialog.total>=0,expression:"dialog.total>=0"}],attrs:{total:e.dialog.total,page:e.dialog.getdataListParm.offset,limit:e.dialog.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.dialog.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.dialog.getdataListParm,"pagecount",t)},pagination:e.get_table_dataDialog}})],1)])],1)},i=[],r=(a("c5f6"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("a78e"),m=a.n(p),c=a("bc3a"),d=a.n(c),u=a("5f87");a("0fd4");var h={name:"EquipmentIndex",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{jump:"",jumpList:[{name:"设备指标",id:"0"},{name:"维修费用",id:"4"},{name:"水费",id:"1"},{name:"电费",id:"2"},{name:"柴油费",id:"3"},{name:"水量",id:"5"},{name:"电量",id:"6"},{name:"柴油量",id:"7"}],pastureId:m.a.get("pasturename"),findAllPasture:[],getPastureParam:{name:"findAllPastureBySbzb",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},departmentId:"",findAllDept:[],yearDate:[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")],equipmentIndexCostTable:{listLoading:!0,list:[],tableKey:0,getdataListParm:{name:"getChooseEqMonthBudgetListSumAll",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},repairCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWX",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseWaterPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseElectricityPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthiolPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWater",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthElectricity",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthOilT",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},bioConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getLgnitionChargePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gaoilConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseGasolinePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},coalConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseCoalPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},dialog:{dialogFormVisible:!1,tableKey:0,listLoading:!0,list:null,total:0,getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:""}}},dialogStatus:"",textMap:{},requestParam:{name:"",offset:0,pagecount:0,parammaps:{}},downloadAll:{},isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},myWidth:""}},created:function(){this.getWindowWidth(),this.getPastureDownList(),this.getlistEquipmentIndex()},methods:{getWindowWidth:function(){var e=this;this.$nextTick((function(){e.myWidth=e.$refs.prev.clientWidth-30+"px",console.log(e.myWidth)}))},sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(o["f"])(e,this.equipmentIndexCostTable.list)},tableSort2:function(e){Object(o["f"])(e,this.repairCostTable.list)},tableSort3:function(e){Object(o["f"])(e,this.waterCostTable.list)},tableSort4:function(e){Object(o["f"])(e,this.elecCostTable.list)},tableSort5:function(e){Object(o["f"])(e,this.gasCostTable.list)},tableSort6:function(e){Object(o["f"])(e,this.waterConsumptionTable.list)},tableSort7:function(e){Object(o["f"])(e,this.elecConsumptionTable.list)},tableSort8:function(e){Object(o["f"])(e,this.gasConsumptionTable.list)},tableSort9:function(e){Object(o["f"])(e,this.dialog.list)},changeJump:function(e,t){e||""!==t&&(console.log(t),"维修费用"==t?window.scrollTo(0,document.getElementById("repairCostTable").offsetTop-150):"水费"==t?window.scrollTo(0,document.getElementById("waterCostTable").offsetTop-150):"电费"==t?window.scrollTo(0,document.getElementById("elecCostTable").offsetTop-150):"柴油费"==t?window.scrollTo(0,document.getElementById("gasCostTable").offsetTop-150):"水量"==t?window.scrollTo(0,document.getElementById("waterConsumptionTable").offsetTop-150):"电量"==t?window.scrollTo(0,document.getElementById("elecConsumptionTable").offsetTop-150):"柴油量"==t?window.scrollTo(0,document.getElementById("gasConsumptionTable").offsetTop-150):window.scrollTo(0,document.getElementById("equipmentIndexCostTable").offsetTop-150))},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="DownloadEquipment",this.requestParam.offset=0,this.requestParam.pagecount=0,this.requestParam.parammaps={},this.requestParam.parammaps.startTime=this.yearDate[0],this.requestParam.parammaps.endTime=this.yearDate[1],"现代牧业"==this.pastureId?this.requestParam.parammaps.pastureId="":this.requestParam.parammaps.pastureId=this.pastureId,this.requestParam.parammaps.departmentId=this.departmentId,this.requestParam.parammaps.deptId=this.requestParam.parammaps.departmentId,console.log(this.requestParam);var a=this.requestParam,s="http://127.0.0.1:8082/authdata/downloadmailreport";d()({method:"post",url:s,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream"}),s=window.URL.createObjectURL(a),i=document.createElement("a");i.style.display="none",i.href=s;var r="设备指标.xlsx";i.setAttribute("download",r),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(s)}}))},getPastureDownList:function(){var e=this;Object(r["e"])(this.getPastureParam).then((function(t){e.findAllPasture=t.data.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDept=t.data.list}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.getDepartDownList(),this.departmentId="",this.getlistEquipmentIndex()},changeTime:function(){Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")]:Object(o["e"])(this.yearDate[0],"{y}-{m}")!==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(this.yearDate[1],"{y}-{m}")+"-00"]:Object(o["e"])(this.yearDate[0],"{y}-{m}")!==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[1],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(this.yearDate[0],"{y}-{m}")+"-00",Object(o["e"])(new Date,"{y}-{m}-{d}")]:this.yearDate=[Object(o["e"])(this.yearDate[0],"{y}-{m}")+"-00",Object(o["e"])(this.yearDate[1],"{y}-{m}")+"-00"],this.getlistEquipmentIndex()},getlistEquipmentIndex:function(){var e=this;this.equipmentIndexCostTable.listLoading=!0,this.equipmentIndexCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.equipmentIndexCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.equipmentIndexCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.equipmentIndexCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.equipmentIndexCostTable.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a+1;e.equipmentIndexCostTable.list=t.data.list}else e.equipmentIndexCostTable.list=[];setTimeout((function(){e.equipmentIndexCostTable.listLoading=!1,e.get_table_dataRepair()}),100)}))},get_table_dataRepair:function(){var e=this;this.repairCostTable.listLoading=!0,this.repairCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.repairCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.repairCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.repairCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.repairCostTable.getdataListParm).then((function(t){null!==t.data.list?e.repairCostTable.list=t.data.list:e.repairCostTable.list=[],setTimeout((function(){e.get_table_dataWater(),e.repairCostTable.listLoading=!1}),100)}))},get_table_dataWater:function(){var e=this;this.waterCostTable.listLoading=!0,this.waterCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterCostTable.getdataListParm).then((function(t){null!==t.data.list?e.waterCostTable.list=t.data.list:e.waterCostTable.list=[],setTimeout((function(){e.waterCostTable.listLoading=!1,e.get_table_dataElec()}),100)}))},get_table_dataElec:function(){var e=this;this.elecCostTable.listLoading=!0,this.elecCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecCostTable.getdataListParm).then((function(t){null!==t.data.list?e.elecCostTable.list=t.data.list:e.elecCostTable.list=[],setTimeout((function(){e.get_table_dataGas(),e.elecCostTable.listLoading=!1}),100)}))},get_table_dataGas:function(){var e=this;this.gasCostTable.listLoading=!0,this.gasCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasCostTable.getdataListParm).then((function(t){null!==t.data.list?e.gasCostTable.list=t.data.list:e.gasCostTable.list=[],setTimeout((function(){e.gasCostTable.listLoading=!1,e.get_table_dataWaterConsumption()}),100)}))},get_table_dataWaterConsumption:function(){var e=this;this.waterConsumptionTable.listLoading=!0,this.waterConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.waterConsumptionTable.list=t.data.list:e.waterConsumptionTable.list=[],setTimeout((function(){e.get_table_dataElecConsumption(),e.waterConsumptionTable.listLoading=!1}),100)}))},get_table_dataElecConsumption:function(){var e=this;this.elecConsumptionTable.listLoading=!0,this.elecConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.elecConsumptionTable.list=t.data.list:e.elecConsumptionTable.list=[],setTimeout((function(){e.get_table_dataGasConsumption(),e.elecConsumptionTable.listLoading=!1}),100)}))},get_table_dataGasConsumption:function(){var e=this;this.gasConsumptionTable.listLoading=!0,this.gasConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.gasConsumptionTable.list=t.data.list:e.gasConsumptionTable.list=[],setTimeout((function(){e.get_table_dataBioConsumptionTable(),e.gasConsumptionTable.listLoading=!1}),100)}))},get_table_dataBioConsumptionTable:function(){var e=this;this.bioConsumptionTable.listLoading=!0,this.bioConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.bioConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.bioConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.bioConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.bioConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.bioConsumptionTable.list=t.data.list:e.bioConsumptionTable.list=[],setTimeout((function(){e.bioConsumptionTable.listLoading=!1}),100)}))},get_table_dataDialog:function(){var e=this;this.dialog.listLoading=!0,Object(r["e"])(this.dialog.getdataListParm).then((function(t){null==t.data.list?(e.dialog.list=t.data.list,e.dialog.pageNum=0,e.dialog.pageSize=0,e.dialog.total=0):(e.dialog.list=t.data.list,e.dialog.pageNum=t.data.pageNum,e.dialog.pageSize=t.data.pageSize,e.dialog.total=t.data.total),setTimeout((function(){e.dialog.listLoading=!1}),100)}))},clickEquipmentIndex:function(e){"现代牧业"!==e.pastureName&&(console.log(this.yearDate,"0000233"),console.log(this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-")),"0000233"),this.textMap.equipmentIndex=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"设备指标",this.dialogStatus="equipmentIndex",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseEqMonthBudgetListSumAllDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickRepairCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.repair=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"维修费",this.dialogStatus="repair",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWXDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.water=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水费",this.dialogStatus="water",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseWaterPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elec=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电费",this.dialogStatus="elec",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseElectricityPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gas=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油费",this.dialogStatus="gas",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthiolPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.waterConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水量",this.dialogStatus="waterConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWaterDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elecConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电量",this.dialogStatus="elecConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthElectricityDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gasConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="gasConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickBioConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.bioConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="bioConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 1===a?"现代牧业"==t.pastureName?{textDecoration:"none"}:{textDecoration:"underline"}:{textDecoration:"none"}}}},g=h,f=(a("0c5a"),a("729b"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"a77992b0",null);t["default"]=b.exports},"2f36":function(e,t,a){"use strict";a("4ba3")},"2f3f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:e.list}},[a("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("orderNoFilter")(t.row.order_no))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n ¥"+e._s(e._f("toThousandFilter")(t.row.price))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(s.status)}},[e._v("\n "+e._s(s.status)+"\n ")])]}}])})],1)},i=[],r=a("b775");function n(e){return Object(r["a"])({url:"/transaction/list",method:"get",params:e})}var l={filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]},orderNoFilter:function(e){return e.substring(0,30)}},data:function(){return{list:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;n().then((function(t){e.list=t.data.items.slice(0,8)}))}}},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},"2f99":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-报表管理",use:"icon-报表管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-报表管理"><defs><style type="text/css"></style></defs><path d="M244.51083 812.295344c0 23.075555-16.553001 41.782615-36.97103 41.782615l0 0c-20.419052 0-36.97103-18.707061-36.97103-41.782615l0-645.675512c0-23.075555 16.553001-41.782615 36.97103-41.782615l0 0c20.419052 0 36.97103 18.707061 36.97103 41.782615L244.51083 812.295344z" p-id="2316" /><path d="M416.947134 702.493565c0 24.375154-19.760043 44.135196-44.135196 44.135196l0 0c-24.375154 0-44.135196-19.760043-44.135196-44.135196l0-119.951953c0-24.375154 19.760043-44.135196 44.135196-44.135196l0 0c24.375154 0 44.135196 19.760043 44.135196 44.135196L416.947134 702.493565z" p-id="2317" /><path d="M603.109044 702.493565c0 24.375154-19.760043 44.135196-44.135196 44.135196l0 0c-24.375154 0-44.135196-19.760043-44.135196-44.135196L514.838651 296.886711c0-24.375154 19.760043-44.135196 44.135196-44.135196l0 0c24.375154 0 44.135196 19.760043 44.135196 44.135196L603.109044 702.493565z" p-id="2318" /><path d="M796.990776 702.493565c0 24.375154-19.760043 44.135196-44.135196 44.135196l0 0c-24.375154 0-44.135196-19.760043-44.135196-44.135196L708.720384 523.884678c0-24.375154 19.760043-44.135196 44.135196-44.135196l0 0c24.375154 0 44.135196 19.760043 44.135196 44.135196L796.990776 702.493565z" p-id="2319" /><path d="M217.480196 854.076936c-23.075555 0-41.782615-15.854083-41.782615-35.411511l0 0c0-19.557428 18.707061-35.410488 41.782615-35.410488l625.209388 0c23.075555 0 41.782615 15.854083 41.782615 35.410488l0 0c0 19.557428-18.707061 35.411511-41.782615 35.411511L217.480196 854.076936z" p-id="2320" /></symbol>'});n.a.add(l);t["default"]=l},"2fd8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v("\n 备件出库及时率\n ")])},i=[],r=a("2934"),n=a("333d"),l=a("6724"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"TimelyDeliveryRate",components:{Pagination:n["a"]},directives:{waves:l["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},getdataListParm:{name:"getcheckpartReportList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),checkDate:""}},listLoading:!1,total:0,tableKey:0,list:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),null==this.getdataListParm.parammaps.checkDate&&(this.getdataListParm.parammaps.checkDate=""),this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件盘点报表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getcheckpartReportList",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["月份","牧场","盘盈数量","盘亏数量","盘亏金额","盈亏净额","盘点状态"],filterVal:["checkDate","pastureName","moreAount","lessAount","lessSum","sums","sumStatue"],tableDatas:e.downLoadList,sheetName:"备件盘点报表"}];Object(m["d"])(a,"备件盘点报表",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"301f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barPastureData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barPastureData:{deep:!0,handler:function(e){this.setOptions(e),console.log(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barPastureData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sourceDate;e.text;this.chart.setOption({title:{text:"最近12个月用电量同期对比",subtext:""},legend:{x:"right"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},dataset:{source:t},xAxis:{type:"category",name:"最近12个月",formatter:"",axisLabel:{interval:0,rotate:40}},yAxis:{name:"千瓦"},grid:[{left:"15%",right:"17%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]});var a=this;this.chart.on("click",(function(e){a.$emit("chartClick",e.name.substring(0,7))}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},3046:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol>'});n.a.add(l);t["default"]=l},3093:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")]),e._v(" "),a("el-button",{staticClass:"font-small",attrs:{type:"warning",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v("\n 复制\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部位","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleSparePart(s)}}},[e._v("备件")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部位名称:",prop:"positionName"}},[a("el-input",{ref:"positionName",attrs:{disabled:"sparePart"===e.dialogStatus,type:"text"},model:{value:e.createTemp.positionName,callback:function(t){e.$set(e.createTemp,"positionName",t)},expression:"createTemp.positionName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",staticClass:"note",staticStyle:{width:"100%"},attrs:{disabled:"sparePart"===e.dialogStatus,type:"textarea",placeholder:"备注",autosize:"",maxlength:"100","show-word-limit":""},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),e.isUpdate?a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.isUpdate?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"配备数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,555520545)}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,867011389)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partUpdateDelete(s)}}},[e._v("删除")])]}}],null,!1,3392651737)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),"create"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"create"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")]):e._e(),e._v(" "),"sparePart"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.sparePartData()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"sparePart"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")]):e._e()],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"content-see"},[a("el-form",{ref:" seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部位名称:",prop:"positionName"}},[a("el-input",{ref:"positionName",attrs:{placeholder:"请输入部位名称",disabled:""},model:{value:e.seeTemp.positionName,callback:function(t){e.$set(e.seeTemp,"positionName",t)},expression:"seeTemp.positionName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"请输入备注",disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配备数量","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCopy],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"content-copy"},[a("el-form",{staticStyle:{width:"90%px",margin:"0 auto"},attrs:{"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"NewName"}},[a("tree-select",{attrs:{disabled:e.disabled,width:300,size:"small",multiple:"",data:e.parentType,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=a("a78e"),c=a.n(m),d=(a("ed08"),{name:"Buwei",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0}},data:function(){return{textMap:{create:"新增",update:"编辑",copy:"复制",see:"查看详情",sparePart:"备件"},dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getPartList",parammaps:{id:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{part:"",note:""},listAdd:[],tableKey:0,isokDisable:!1,requestSparePart:{name:"getPartsListBW",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},postDataPramas:{},seeTemp:{},dialogStatusSee:"",dialogFormVisibleSee:!1,listLoadingSee:!0,totalSee:0,listSee:[],getdataListParmSee:{name:"getPositionPartBypid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},partTemp:{},postUpdatePramas:{},requestParam:{},rules:{positionName:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isUpdate:!1}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParm.parammaps.id=this.assetTypeid,this.get_table_data(),this.getTypeList())}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetCreateTemp:function(){this.listAdd=[],this.createTemp={}},form_add:function(){""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.isUpdate=!0,console.log(this.assetTypeid))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(l["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),null!=this.listAdd?this.listAdd.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e)):(this.listAdd=[],this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e)),console.log(this.listAdd,"this.listAdd")},partDelete:function(e){var t=this;console.log(this.listAdd),o["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(console.log(e.listAdd),0===e.listAdd.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listAdd.length;a++){if(""==e.listAdd[a].amount||null==e.listAdd[a].amount)return e.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1;var s=/^\d+(\.\d{1,3})?$/;return s.test(parseFloat(e.listAdd[a].amount))?(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertPart",type:"e",parammaps:{positionName:e.createTemp.positionName,note:e.createTemp.note,id:e.assetTypeid}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:"@insertPart.LastInsertId",note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0):(e.$message({type:"error",message:"配备数量请输入自然数,最多保留两位小数点",duration:2e3}),!1)}}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(console.log(e.listAdd),0===e.listAdd.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listAdd.length;a++)return""==e.listAdd[a].amount||null==e.listAdd[a].amount?(e.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1):(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertPart",type:"e",parammaps:{positionName:e.createTemp.positionName,note:e.createTemp.note,id:e.assetTypeid}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:"@insertPart.LastInsertId",note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0)}}))},handleCopy:function(){""!=this.assetTypeid&&(this.dialogFormVisibleCopy=!0,this.dialogStatusCopy="copy",this.defaultCheckedKeys=[])},createCopyData:function(){var e=this;if(console.log(this.dataform.selectType),0===this.dataform.selectType.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.dataform.selectType.length;a++){var s={};s["newEqclassId"]=this.dataform.selectType[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"CopyPosition",type:"e",parammaps:{newEqclassId:"@insertSpotList.newEqclassId",eqclassid:this.assetTypeid}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}},popoverHide:function(e,t){console.log("选中值",e,t),this.dataform.selectType=e,this.UpdateDataRelationParam.values=e},getTypeList:function(){var e=this;Object(l["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(l["E"])(t.data.list,"id","pid","children"))}))},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.getdataListParmSee.parammaps.positionId=e.id,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;Object(l["e"])(this.getdataListParmSee).then((function(t){console.log("部位table数据",t.data.list),e.listSee=t.data.list,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.isUpdate=!1,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.postUpdatePramas.name="updatePosition",this.postUpdatePramas.parammaps={},this.postUpdatePramas.parammaps.positionName=this.createTemp.positionName,this.postUpdatePramas.parammaps.note=this.createTemp.note,this.postUpdatePramas.parammaps.id=this.createTemp.id,Object(l["k"])(this.postUpdatePramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1,e.get_table_data())}))},handleSparePart:function(e){var t=this;this.dialogStatus="sparePart",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.isUpdate=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListParmSee.parammaps.positionId=e.id,this.get_table_dataPart()},get_table_dataPart:function(){var e=this;Object(l["e"])(this.getdataListParmSee).then((function(t){console.log("部位table数据",t.data.list),e.listAdd=t.data.list,setTimeout((function(){e.listLoading=!1}),100)}))},partUpdateDelete:function(e){var t=this;console.log(e),o["MessageBox"].confirm("名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].myid==e.myid)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},sparePartData:function(){var e=this;if(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(this.listAdd),0===this.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].amount||null==this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1;var a=/^\d+(\.\d{1,3})?$/;return a.test(parseFloat(this.listAdd[t].amount))?(this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deletePositionpartByPid",type:"e",parammaps:{positionId:this.createTemp.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:this.createTemp.id,note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("备件保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0):(this.$message({type:"error",message:"配备数量请输入自然数,最多保留两位小数点",duration:2e3}),!1)}},form_delete:function(e){var t=this;o["MessageBox"].confirm("名称:"+e.positionName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deletePart",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},jump:function(){this.$router.push("/console/menu")}}}),u=d,h=(a("2995"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"30c3":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol>'});n.a.add(l);t["default"]=l},"30d6":function(e,t,a){},"316d":function(e,t,a){},"317e":function(e,t,a){"use strict";a("5670")},"31c2":function(e,t,a){"use strict";a.r(t),a.d(t,"filterAsyncRoutes",(function(){return m}));var s=a("5530"),i=(a("6762"),a("2fdb"),a("ac6a"),a("a18c")),r=a("61f7"),n=a("2934"),l=a("c1f7");function o(e){var t=[];return e.forEach((function(e){if(!Object(r["e"])(e.component)){var s={meta:{title:"",icon:""},children:[]};"Iframe"!==e.component&&("Layout"===e.component?s.component=l["a"]:s.component=a("feca")("./"+e.component+".vue").default,s.name=e.path,s.id=e.id||null,""!==e.redirect?(s.redirect=e.redirect||null,s.path="/"+e.path):s.path=e.path,s.meta.icon=e.icon,s.meta.title=e.title,s.meta.noCache=!0,s.children=Object(r["e"])(e.children)?[]:o(e.children),t.push(s))}})),t}function p(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function m(e,t){var a=[];return e.forEach((function(e){var i=Object(s["a"])({},e);p(t,i)&&(i.children&&(i.children=m(i.children,t)),a.push(i))})),a}var c={routes:[],addRoutes:[],data1:{name:"getmenu",idname:"id",parammaps:{id:-1}}},d={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["a"].concat(t)}},u={generateRoutes:function(e,t){var a=e.commit;return new Promise((function(e,t){Object(n["y"])(c.data1).then((function(s){console.log("generateRoutes",s.data);var i=s.data;console.log("menus=====",i),0===i.length&&t("menus data is null");var r=o(i);r.push({path:"*",redirect:"/404",hidden:!0}),a("SET_ROUTES",r),e(r)}))}))}};t["default"]={namespaced:!0,state:c,mutations:d,actions:u}},"31d8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("4c19");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barCharDeptData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barCharDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barCharDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.xAxisData,a=e.seriesData,s=e.text;this.chart.setOption({title:{text:s+"水表柱状图",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"15%",bottom:"-4%",containLabel:!0},xAxis:[{name:"水表名称",type:"category",data:t,axisTick:{alignWithLabel:!0},axisLabel:{interval:0}}],yAxis:[{name:"吨",type:"value"}],series:[{type:"bar",barWidth:"60%",data:a}]});var i=this;this.chart.on("click",(function(e){console.log(e),i.$emit("barClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"31db":function(e,t,a){},3273:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.tabName,callback:function(t){e.tabName=t},expression:"tabName"}},[e.isBasic?a("el-tab-pane",{attrs:{label:"设备基础信息",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,clearable:"",disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"折旧预警"},model:{value:e.getdataListParm.parammaps.warning,callback:function(t){e.$set(e.getdataListParm.parammaps,"warning",t)},expression:"getdataListParm.parammaps.warning"}},e._l(e.depreciationAlertList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批日期","end-placeholder":"审批日期"},model:{value:e.getdataListParm.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime1",t)},expression:"getdataListParm.parammaps.inputDatetime1"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"购置日期","end-placeholder":"购置日期"},model:{value:e.getdataListParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime2",t)},expression:"getdataListParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报废日期","end-placeholder":"报废日期"},model:{value:e.getdataListParm.parammaps.inputDatetime3,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime3",t)},expression:"getdataListParm.parammaps.inputDatetime3"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleBatchChange}},[e._v("批量变更")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["正常"==s.status?a("div",[1==s.warning?a("div",{staticStyle:{background:"#EC808D",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):2==s.warning?a("div",{staticStyle:{background:"#FACD91",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):a("div",[e._v(e._s(s.status))])]):a("div",[a("div",{staticStyle:{background:"#D7D7D7",display:"block","line-height":"50px"}},[e._v(e._s(s.status))])])]}}],null,!1,870163095)}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批日期",sortable:"",align:"center",prop:"spDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"购置日期",sortable:"",align:"center",prop:"purchaseDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"入场日期",sortable:"",align:"center",prop:"entranceDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"报废日期",sortable:"",align:"center",prop:"bfDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"picpath",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath&&""!==t.row.srcpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath&&""!==t.row.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2373517811)}),e._v(" "),a("el-table-column",{attrs:{label:"折旧年限",sortable:"",align:"center",prop:"depreciation"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用时长(年)",sortable:"",align:"center",prop:"serviceDuration"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用率(%)",sortable:"",align:"center",prop:"utilizationRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicsDel2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1177932640)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)]):e._e(),e._v(" "),e.isBasicSH?a("el-tab-pane",{attrs:{label:"审核设备",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmSH.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"pastureName",t)},expression:"getdataListParmSH.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"assetCode",t)},expression:"getdataListParmSH.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqName",t)},expression:"getdataListParmSH.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqCode",t)},expression:"getdataListParmSH.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编码",clearable:""},model:{value:e.getdataListParmSH.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"financeCode",t)},expression:"getdataListParmSH.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParmSH.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"departmentId",t)},expression:"getdataListParmSH.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParmSH.parammaps.status,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"status",t)},expression:"getdataListParmSH.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParmSH.parammaps.SHStatus,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"SHStatus",t)},expression:"getdataListParmSH.parammaps.SHStatus"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSH.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"inputDatetime1",t)},expression:"getdataListParmSH.parammaps.inputDatetime1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSH}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownloadSH}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSH,expression:"listLoadingSH"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSH,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSH-1)*e.pageSizeSH+1))])]}}],null,!1,1072732269)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号",align:"center",prop:"assetCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",align:"center",prop:"lrTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicsUpdate&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicExamine&&0==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),e.isBasicsDel&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1494658625)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSH>=0,expression:"totalSH>=0"}],attrs:{total:e.totalSH,page:e.getdataListParmSH.offset,limit:e.getdataListParmSH.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSH,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSH,"pagecount",t)},pagination:e.get_table_dataSH}})],1)]):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.eqClassId,callback:function(t){e.$set(e.createTemp,"eqClassId",t)},expression:"createTemp.eqClassId"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入编号",disabled:""},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称"},model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号"},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.createTemp.financeCode,callback:function(t){e.$set(e.createTemp,"financeCode",t)},expression:"createTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格"},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{select:function(t){e.handleSelectBrand(t)}},model:{value:e.createTemp.brandName,callback:function(t){e.$set(e.createTemp,"brandName",t)},expression:"createTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商"},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途"},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.createTemp.status,callback:function(t){e.$set(e.createTemp,"status",t)},expression:"createTemp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.purchaseDate,callback:function(t){e.$set(e.createTemp,"purchaseDate",t)},expression:"createTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.entranceDate,callback:function(t){e.$set(e.createTemp,"entranceDate",t)},expression:"createTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限"},model:{value:e.createTemp.depreciation,callback:function(t){e.$set(e.createTemp,"depreciation",t)},expression:"createTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值"},model:{value:e.createTemp.yuanzhi,callback:function(t){e.$set(e.createTemp,"yuanzhi",t)},expression:"createTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值"},model:{value:e.createTemp.salvage,callback:function(t){e.$set(e.createTemp,"salvage",t)},expression:"createTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值"},model:{value:e.createTemp.subtractvalue,callback:function(t){e.$set(e.createTemp,"subtractvalue",t)},expression:"createTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-select",{ref:"upkeepgrade",staticClass:"filter-item",attrs:{placeholder:"保养级别"},on:{"visible-change":e.upkeepgradeChange,change:e.changeUpkeepgrade},model:{value:e.createTemp.upkeepgrade,callback:function(t){e.$set(e.createTemp,"upkeepgrade",t)},expression:"createTemp.upkeepgrade"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用"},model:{value:e.createTemp.yearUpkeepCost,callback:function(t){e.$set(e.createTemp,"yearUpkeepCost",t)},expression:"createTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用"},model:{value:e.createTemp.yearMaintainCost,callback:function(t){e.$set(e.createTemp,"yearMaintainCost",t)},expression:"createTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数"},model:{value:e.createTemp.baseHours,callback:function(t){e.$set(e.createTemp,"baseHours",t)},expression:"createTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empname","fetch-suggestions":e.employeSearch,placeholder:"请输入责任人"},on:{select:e.handleSelectEmploye},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.name))])]}}]),model:{value:e.createTemp.employeName,callback:function(t){e.$set(e.createTemp,"employeName",t)},expression:"createTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUser"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.createTemp.inputUser,callback:function(t){e.$set(e.createTemp,"inputUser",t)},expression:"createTemp.inputUser"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.seeTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.seeTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"card"},[a("el-tabs",{on:{"tab-click":e.form_seeTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassName"}},[a("el-input",{ref:"eqClassName",attrs:{placeholder:"请输入设备类别",disabled:""},model:{value:e.seeTemp.eqClassName,callback:function(t){e.$set(e.seeTemp,"eqClassName",t)},expression:"seeTemp.eqClassName"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入资产编号",disabled:""},model:{value:e.seeTemp.assetCode,callback:function(t){e.$set(e.seeTemp,"assetCode",t)},expression:"seeTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号",disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.seeTemp.financeCode,callback:function(t){e.$set(e.seeTemp,"financeCode",t)},expression:"seeTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格",disabled:""},model:{value:e.seeTemp.specification,callback:function(t){e.$set(e.seeTemp,"specification",t)},expression:"seeTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-input",{ref:"brandName",attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.seeTemp.brandName,callback:function(t){e.$set(e.seeTemp,"brandName",t)},expression:"seeTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"请输入供应商",disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途",disabled:""},model:{value:e.seeTemp.purpose,callback:function(t){e.$set(e.seeTemp,"purpose",t)},expression:"seeTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-input",{ref:"status",attrs:{placeholder:"请输入状态",disabled:""},model:{value:e.seeTemp.status,callback:function(t){e.$set(e.seeTemp,"status",t)},expression:"seeTemp.status"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-input",{ref:"purchaseDate",attrs:{placeholder:"请输入购置日期",disabled:""},model:{value:e.seeTemp.purchaseDate,callback:function(t){e.$set(e.seeTemp,"purchaseDate",t)},expression:"seeTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-input",{ref:"entranceDate",attrs:{placeholder:"请输入入场日期",disabled:""},model:{value:e.seeTemp.entranceDate,callback:function(t){e.$set(e.seeTemp,"entranceDate",t)},expression:"seeTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限",disabled:""},model:{value:e.seeTemp.depreciation,callback:function(t){e.$set(e.seeTemp,"depreciation",t)},expression:"seeTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值",disabled:""},model:{value:e.seeTemp.yuanzhi,callback:function(t){e.$set(e.seeTemp,"yuanzhi",t)},expression:"seeTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值",disabled:""},model:{value:e.seeTemp.salvage,callback:function(t){e.$set(e.seeTemp,"salvage",t)},expression:"seeTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值",disabled:""},model:{value:e.seeTemp.subtractvalue,callback:function(t){e.$set(e.seeTemp,"subtractvalue",t)},expression:"seeTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-input",{ref:"upkeepgrade",attrs:{placeholder:"请输入保养级别",disabled:""},model:{value:e.seeTemp.upkeepgrade,callback:function(t){e.$set(e.seeTemp,"upkeepgrade",t)},expression:"seeTemp.upkeepgrade"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用",disabled:""},model:{value:e.seeTemp.yearUpkeepCost,callback:function(t){e.$set(e.seeTemp,"yearUpkeepCost",t)},expression:"seeTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用",disabled:""},model:{value:e.seeTemp.yearMaintainCost,callback:function(t){e.$set(e.seeTemp,"yearMaintainCost",t)},expression:"seeTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数",disabled:""},model:{value:e.seeTemp.baseHours,callback:function(t){e.$set(e.seeTemp,"baseHours",t)},expression:"seeTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"请输入牧场",disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{placeholder:"请输入部门",disabled:""},model:{value:e.seeTemp.deptName,callback:function(t){e.$set(e.seeTemp,"deptName",t)},expression:"seeTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{placeholder:"请输入责任人",disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUserName"}},[a("el-input",{ref:"inputUserName",attrs:{placeholder:"请输入录入人",disabled:""},model:{value:e.seeTemp.inputUserName,callback:function(t){e.$set(e.seeTemp,"inputUserName",t)},expression:"seeTemp.inputUserName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",attrs:{placeholder:"请输入录入时间",disabled:""},model:{value:e.seeTemp.inputDatetime,callback:function(t){e.$set(e.seeTemp,"inputDatetime",t)},expression:"seeTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isBasicExamine&&0==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"点检记录",name:"second"}},[a("el-date-picker",{ref:"inputDatetimeCheck1",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1,callback:function(t){e.$set(e.getAssetBigSpotCheckListParm.parammaps,"inputDatetimeSpotCheck1",t)},expression:"getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSportCheck}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSpotCheck1-1)*e.pageSizeSpotCheck1+1))])]}}],null,!1,1006182765)}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",sortable:"",prop:"inspectionResults","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",sortable:"",prop:"empname","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSpotCheck1,page:e.getAssetBigSpotCheckListParm.offset,limit:e.getAssetBigSpotCheckListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"pagecount",t)},pagination:e.getAssetBigSpotCheckList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"保养单号"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepCode",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"保养类型"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepType,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepType",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepType"}},e._l(e.maintainTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeUpkeepbyeq",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"inputDatetimeUpkeepbyeq",t)},expression:"getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchUpkeepbyeq}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpkeepbyeq,expression:"listLoadingUpkeepbyeq"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpkeepbyeq,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumUpkeepbyeq-1)*e.pageSizeUpkeepbyeq+1))])]}}],null,!1,1082609005)}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号",prop:"upkeepCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养名称",prop:"upkeepName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型",prop:"upkeepType","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别",prop:"upkeepLevel","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养人",prop:"upkeepPerson","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养费用",prop:"upkeepCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalUpkeepbyeq,page:e.getBigupkeepbyeqParm.offset,limit:e.getBigupkeepbyeqParm.pagecount},on:{"update:page":function(t){return e.$set(e.getBigupkeepbyeqParm,"offset",t)},"update:limit":function(t){return e.$set(e.getBigupkeepbyeqParm,"pagecount",t)},pagination:e.getBigupkeepbyeqList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"维修记录",name:"fouth"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"维修单号"},model:{value:e.getAssetMaintainParm.parammaps.repairCode,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"repairCode",t)},expression:"getAssetMaintainParm.parammaps.repairCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetMaintain",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"inputDatetimeAssetMaintain",t)},expression:"getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetMaintain}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetMaintain,expression:"listLoadingAssetMaintain"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetMaintain-1)*e.pageSizeAssetMaintain+1))])]}}],null,!1,353234157)}),e._v(" "),a("el-table-column",{attrs:{label:"维修单号",prop:"repairCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修人",prop:"requestName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人",prop:"empname","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"诊断故障",prop:"details","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用",sortable:"",prop:"maintenanceCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetMaintain,page:e.getAssetMaintainParm.offset,limit:e.getAssetMaintainParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetMaintainParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetMaintainParm,"pagecount",t)},pagination:e.getAssetMaintainList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"启停记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.startTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"startTime",t)},expression:"getAssetSTTParm.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.stopTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"stopTime",t)},expression:"getAssetSTTParm.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetSTT,expression:"listLoadingAssetSTT"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetSTT-1)*e.pageSizeAssetSTT+1))])]}}],null,!1,1514873197)}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人",prop:"blockName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetSTT,page:e.getAssetSTTParm.offset,limit:e.getAssetSTTParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetSTTParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetSTTParm,"pagecount",t)},pagination:e.getAssetSTTList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"变更记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更状态"},model:{value:e.getAssetChangeParm.parammaps.changeStatue,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"changeStatue",t)},expression:"getAssetChangeParm.parammaps.changeStatue"}},e._l(e.changeStates,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetChange",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetChangeParm.parammaps.inputDatetimeAssetChange,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"inputDatetimeAssetChange",t)},expression:"getAssetChangeParm.parammaps.inputDatetimeAssetChange"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetChange}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetChange,expression:"listLoadingAssetChange"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetChange-1)*e.pageSizeAssetChange+1))])]}}],null,!1,1891472333)}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",formatter:e.changeStatue,prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",prop:"changeName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetChange,page:e.getAssetChangeParm.offset,limit:e.getAssetChangeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetChangeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetChangeParm,"pagecount",t)},pagination:e.getAssetChangeList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"备件领用记录",name:"seventh"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getAssetPartApplyParm.parammaps.useCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"useCode",t)},expression:"getAssetPartApplyParm.parammaps.useCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getAssetPartApplyParm.parammaps.partCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partCode",t)},expression:"getAssetPartApplyParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getAssetPartApplyParm.parammaps.partName,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partName",t)},expression:"getAssetPartApplyParm.parammaps.partName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetPartApply",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"inputDatetimeAssetPartApply",t)},expression:"getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetPartApply}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetPartApply,expression:"listLoadingAssetPartApply"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetPartApply,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetPartApply-1)*e.pageSizeAssetPartApply+1))])]}}],null,!1,3522052013)}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",sortable:"",prop:"partCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"useNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际出库数量",sortable:"",prop:"checkoutNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间",sortable:"",prop:"receiveTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"距离上次时间(天)",sortable:"",prop:"dif","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetPartApply,page:e.getAssetPartApplyParm.offset,limit:e.getAssetPartApplyParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetPartApplyParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetPartApplyParm,"pagecount",t)},pagination:e.getAssetPartApplyList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"费用统计",name:"eighth"}},[a("el-row",[a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}}):e._e()]),e._v(" "),a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}}):e._e()])],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],"append-to-body":"",visible:e.dialogFormVisible_ChartSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible_ChartSee=t}}},[a("div",{staticClass:"app-contentSee"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getChartSeeParm.parammaps.useTypeV,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"useTypeV",t)},expression:"getChartSeeParm.parammaps.useTypeV"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getChartSeeParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"inputDatetime2",t)},expression:"getChartSeeParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchChartSee}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadChartSee}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChartSee,expression:"listLoadingChartSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listChartSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChartSee-1)*e.pageSizeChartSee+1))])]}}],null,!1,747959405)}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"单号",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.RUcode))])]}}],null,!1,3074352844)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"领用日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatTime))])]}}],null,!1,462173042)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}],null,!1,1252061914)}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"退库数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}],null,!1,3036156380)}),e._v(" "),a("el-table-column",{key:12,attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{key:13,attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChartSee>=0,expression:"totalChartSee>=0"}],attrs:{total:e.totalChartSee,page:e.getChartSeeParm.offset,limit:e.getChartSeeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getChartSeeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getChartSeeParm,"pagecount",t)},pagination:e.getChartSeeList}})],1)])],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:22}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:3},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"batchChangeTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.batchChange.temp,"label-position":"right","label-width":"115px"},nativeOn:{click:function(e){e.preventDefault()},submit:function(e){e.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更部门"},on:{change:e.changeBatchDept},model:{value:e.batchChange.temp.departmentId,callback:function(t){e.$set(e.batchChange.temp,"departmentId",t)},expression:"batchChange.temp.departmentId"}},e._l(e.batchChange.deptList,(function(e){return a("el-option",{key:e.deptid,attrs:{label:e.departmentName,value:e.deptid}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更责任人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更责任人"},on:{change:e.changeBatchPerson},model:{value:e.batchChange.temp.employeeId,callback:function(t){e.$set(e.batchChange.temp,"employeeId",t)},expression:"batchChange.temp.employeeId"}},e._l(e.batchChange.personList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"Basics",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{assetCode:[{required:!0,message:"必填",trigger:"blur"}],eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},listSH:[],totalSH:0,listLoadingSH:!0,tabName:"",getdataListParmSH:{name:"getAssetListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",SHStatus:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_Examine:!1,dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this,t=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:h.a.get("name")}}).then((function(e){t.buttons=e.data.list,t.get_auto_buttons()})),this.get_table_dataSH(),this.getDownClassList(),void 0==this.$route.query.tabName?this.tabName="first":this.tabName=this.$route.query.tabName,!1===this.isBasic&&(this.tabName="second"),"first"==this.tabName?(this.isDisplayRecord=!0,this.isFlowChart=!1):(this.isDisplayRecord=!1,this.isFlowChart=!0),void 0!==this.$route.query.myPath&&"AssetStandardManagement"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.departmentId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,isNaN(e.$route.query.departmentId)?e.getdataListParm.parammaps.departmentId="":e.getdataListParm.parammaps.departmentId=parseInt(e.$route.query.departmentId),e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.departmentId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"equipmentOverview"==this.$route.query.myPath&&(this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId),void 0!==this.$route.query.myPath&&"equipmentOverview2"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.eqClassId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.eqClassId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"PurchaseScrap"==this.$route.query.myPath&&("新购设备数"==this.$route.query.project?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime2=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList()):(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime3=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList())),this.get_table_data(),this.keyupSubmit()},methods:{tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.list=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath="");e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},get_table_dataSH:function(){var e=this;this.listLoadingSH=!0,console.log(this.$refs),console.log(this.$refs["inputDatetime1"]),null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),Object(l["e"])(this.getdataListParmSH).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.listSH=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&t.data.list[a].picpath?(e.listSH[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSH[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSH[a].srcpath="",e.listSH[a].picpath="");e.pageNumSH=t.data.pageNum,e.pageSizeSH=t.data.pageSize}else e.listSH=[];e.totalSH=t.data.total,setTimeout((function(){e.listLoadingSH=!1}),100)}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},form_searchSH:function(){this.listLoadingSH=!0,null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),this.getdataListParmSH.offset=1,this.get_table_dataSH()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.assetCode="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation=""},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,void 0===t.children?(this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="",this.$message({type:"warning",message:"请选择具体设备类型"}))):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var a=[],s=[];void 0==e.picpath||""==e.picpath?a.push():a.push(e.picpath);for(var i=0;i<a.length;i++){var r={};this.$set(r,"url",a[i]),s.push(r)}this.$set(this.createTemp,"fileList",s),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},handleDownloadChartSee:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm2.name="getEqPartuseDetailList",this.downLoadParm2.returntype="Map",this.downLoadParm2.parammaps=this.getChartSeeParm.parammaps,Object(l["d"])(this.downLoadParm2).then((function(t){e.$nextTick((function(){e.downLoadList2=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList2);var a=[{tHeader:["类型","单号","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["useTypeV","RUcode","creatTime","departmentName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList2,sheetName:"费用统计"}];Object(p["d"])(a,"费用统计",!0,"xlsx")}))}))},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber}))},handleTabClick:function(e){console.log("点击了基础信息/审核设备tab",e),"first"==e.name?(this.isFlowChart=!1,this.isDisplayRecord=!0):(this.isFlowChart=!0,this.isDisplayRecord=!1),this.get_table_data(),this.get_table_dataSH()},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"SHstatue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1,this.keyupSubmit()},changeSHStatue:function(e){this.statueReason=2==e},keyupSubmit:function(){var e=this;document.onkeydown=function(t){var a=window.event.keyCode;13===a&&e.createExamineData()}},createExamineData:function(){var e=this;"update"!==this.dialogStatus&&"create"!==this.dialogStatus&&(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="eqCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.SHstatue?e.requestParam.parammaps.statue=1:e.requestParam.parammaps.statue=2,e.requestParam.parammaps.empId=h.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.get_table_dataSH(),e.get_table_data(),e.activeName):Object(l["w"])(t,e.$notify)})))})))},handleDownload:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","部门","责任人","录入人","录入时间","使用时长(年)","使用率(%)"],filterVal:["pastureName","eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","deptName","employeName","inputUserName","inputDatetime","serviceDuration","utilizationRate"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleDownloadSH:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetListSH",this.downLoadParm.parammaps=this.getdataListParmSH.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","牧场","部门","责任人","录入人","录入时间"],filterVal:["eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","pastureName","deptName","employeName","inputUserName","inputDatetime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleSelectionChange:function(e){this.selectionList=e},handleBatchChange:function(){if(this.selectionList.length>0){for(var e=0;e<this.selectionList.length;e++)if(this.selectionList[e].pastureId!==this.selectionList[0].pastureId)return this.$message({type:"error",message:"请检测变更牧场是否一致!",duration:2e3}),!1;console.log("批量变更"),this.batchChange.temp.departmentId="",this.batchChange.temp.employeeId="",this.batchChange.deptList=[],this.batchChange.personList=[],this.dialogFormVisible_change=!0,this.dialogStatus="change",this.batchChange.getdataListParmDept.parammaps.pastureId=this.selectionList[0].pastureId,this.getBatchChangeDeptDownList()}else this.$message({type:"error",message:"请选择变更牧场",duration:2e3})},getBatchChangeDeptDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmDept).then((function(t){null!==t.data.list?e.batchChange.deptList=t.data.list:e.batchChange.deptList=[]}))},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("52e3"),a("47c3"),a("fc59"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"d70bda94",null);t["default"]=y.exports},"32db":function(e,t,a){},"331e":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-牧场设备指标",use:"icon-牧场设备指标-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牧场设备指标"><defs><style type="text/css"></style></defs><path d="M910.222222 341.333333 910.222222 170.666667 682.666667 170.666667 682.666667 341.333333 625.777778 341.333333 625.777778 170.666667 398.222222 170.666667 398.222222 341.333333 341.333333 341.333333 341.333333 170.666667 113.777778 170.666667 113.777778 341.333333 0 341.333333 0 512 113.777778 512 113.777778 739.555556 227.555556 910.222222 341.333333 739.555556 341.333333 512 398.222222 512 398.222222 739.555556 512.227556 910.222222 625.777778 739.555556 625.777778 512 682.666667 512 682.666667 739.555556 796.444444 910.222222 910.222222 739.555556 910.222222 512 1024 512 1024 341.333333Z" p-id="7553" /></symbol>'});n.a.add(l);t["default"]=l},"333d":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[];a("c5f6");Math.easeInOutQuad=function(e,t,a,s){return e/=s/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var s=l(),i=e-s,o=20,p=0;t="undefined"===typeof t?500:t;var m=function e(){p+=o;var l=Math.easeInOutQuad(p,s,i,t);n(l),p<t?r(e):a&&"function"===typeof a&&a()};m()}var p={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50,100]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&o(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&o(0,800)}}},m=p,c=(a("9b6c"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,"1ab978c2",null);t["a"]=d.exports},3347:function(e,t,a){"use strict";a("7ea3")},"33ce":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-饲养数",use:"icon-饲养数-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲养数"><defs><style type="text/css"></style></defs><path d="M859.3 129H684.2c-0.9 0-1.7-0.8-1.7-1.7V83.7c0-0.9-0.8-1.7-1.7-1.7h-44.6c-0.9 0-1.7 0.8-1.7 1.7v43.6c0 0.9-0.8 1.7-1.7 1.7H391.2c-0.9 0-1.7-0.8-1.7-1.7V83.7c0-0.9-0.8-1.7-1.7-1.7h-44.6c-0.9 0-1.7 0.8-1.7 1.7v43.6c0 0.9-0.8 1.7-1.7 1.7H164.7c-0.9 0-1.7 0.8-1.7 1.7V940.3c0 0.9 0.8 1.7 1.7 1.7h694.6c0.9 0 1.7-0.8 1.7-1.7V130.7c0-0.9-0.8-1.7-1.7-1.7z m-48 765H212.7c-0.9 0-1.7-0.8-1.7-1.7V304.7c0-0.9 0.8-1.7 1.7-1.7h598.6c0.9 0 1.7 0.8 1.7 1.7v587.6c0 0.9-0.8 1.7-1.7 1.7z m0-639H212.7c-0.9 0-1.7-0.8-1.7-1.7v-74.6c0-0.9 0.8-1.7 1.7-1.7h127.1c0.9 0 1.7 0.8 1.7 1.7v37.6c0 0.9 0.8 1.7 1.7 1.7h44.6c0.9 0 1.7-0.8 1.7-1.7v-37.6c0-0.9 0.8-1.7 1.7-1.7h241.6c0.9 0 1.7 0.8 1.7 1.7v37.6c0 0.9 0.8 1.7 1.7 1.7h44.6c0.9 0 1.7-0.8 1.7-1.7v-37.6c0-0.9 0.8-1.7 1.7-1.7h127.1c0.9 0 1.7 0.8 1.7 1.7v74.6c0 0.9-0.8 1.7-1.7 1.7z" p-id="19071" fill="#ffffff" /><path d="M320 640c4.1 0 8.1-1.5 11.3-4.6l114.9-114c1.6-1.5 4.1-1.5 5.6 0l99.7 99.7c6.8 6.8 15.8 10.5 25.5 10.5h0.1c9.6 0 18.7-3.8 25.5-10.6l112.9-113.7c6.2-6.3 6.2-16.4-0.1-22.6-6.3-6.2-16.4-6.2-22.6 0.1l-113 113.7c-1 1-2.1 1.2-2.8 1.2-0.8 0-1.9-0.2-2.8-1.2l-99.7-99.7c-14-14-36.8-14-50.8-0.1l-114.9 114c-6.3 6.2-6.3 16.4-0.1 22.6 3.1 3.1 7.2 4.7 11.3 4.7z" p-id="19072" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"34c4":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-电量分析",use:"icon-电量分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-电量分析"><defs><style type="text/css"></style></defs><path d="M735.268 102.457L250.069 521.042l260.086 82.937-203.108 317.564 519.131-384.429-272.706-80.277" p-id="13335" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"34ef":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.tabName,callback:function(t){e.tabName=t},expression:"tabName"}},[e.isBasic?a("el-tab-pane",{attrs:{label:"设备基础信息",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,clearable:"",disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"折旧预警"},model:{value:e.getdataListParm.parammaps.warning,callback:function(t){e.$set(e.getdataListParm.parammaps,"warning",t)},expression:"getdataListParm.parammaps.warning"}},e._l(e.depreciationAlertList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批日期","end-placeholder":"审批日期"},model:{value:e.getdataListParm.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime1",t)},expression:"getdataListParm.parammaps.inputDatetime1"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"购置日期","end-placeholder":"购置日期"},model:{value:e.getdataListParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime2",t)},expression:"getdataListParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报废日期","end-placeholder":"报废日期"},model:{value:e.getdataListParm.parammaps.inputDatetime3,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime3",t)},expression:"getdataListParm.parammaps.inputDatetime3"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleBatchChange}},[e._v("批量变更")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["正常"==s.status?a("div",[1==s.warning?a("div",{staticStyle:{background:"#EC808D",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):2==s.warning?a("div",{staticStyle:{background:"#FACD91",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):a("div",[e._v(e._s(s.status))])]):a("div",[a("div",{staticStyle:{background:"#D7D7D7",display:"block","line-height":"50px"}},[e._v(e._s(s.status))])])]}}],null,!1,870163095)}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批日期",sortable:"",align:"center",prop:"spDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"购置日期",sortable:"",align:"center",prop:"purchaseDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"入场日期",sortable:"",align:"center",prop:"entranceDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"报废日期",sortable:"",align:"center",prop:"bfDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"picpath",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath&&""!==t.row.srcpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath&&""!==t.row.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2373517811)}),e._v(" "),a("el-table-column",{attrs:{label:"折旧年限",sortable:"",align:"center",prop:"depreciation"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用时长(年)",sortable:"",align:"center",prop:"serviceDuration"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用率(%)",sortable:"",align:"center",prop:"utilizationRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicsDel2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1177932640)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)]):e._e(),e._v(" "),e.isBasicSH?a("el-tab-pane",{attrs:{label:"审核设备",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmSH.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"pastureName",t)},expression:"getdataListParmSH.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"assetCode",t)},expression:"getdataListParmSH.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqName",t)},expression:"getdataListParmSH.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqCode",t)},expression:"getdataListParmSH.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编码",clearable:""},model:{value:e.getdataListParmSH.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"financeCode",t)},expression:"getdataListParmSH.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParmSH.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"departmentId",t)},expression:"getdataListParmSH.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParmSH.parammaps.status,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"status",t)},expression:"getdataListParmSH.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParmSH.parammaps.SHStatus,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"SHStatus",t)},expression:"getdataListParmSH.parammaps.SHStatus"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSH.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"inputDatetime1",t)},expression:"getdataListParmSH.parammaps.inputDatetime1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSH}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownloadSH}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSH,expression:"listLoadingSH"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSH,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSH-1)*e.pageSizeSH+1))])]}}],null,!1,1072732269)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号",align:"center",prop:"assetCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",align:"center",prop:"lrTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicsUpdate&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicExamine&&0==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),e.isBasicsDel&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1494658625)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSH>=0,expression:"totalSH>=0"}],attrs:{total:e.totalSH,page:e.getdataListParmSH.offset,limit:e.getdataListParmSH.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSH,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSH,"pagecount",t)},pagination:e.get_table_dataSH}})],1)]):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.eqClassId,callback:function(t){e.$set(e.createTemp,"eqClassId",t)},expression:"createTemp.eqClassId"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入编号",disabled:""},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号"},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号"},model:{value:e.createTemp.financeCode,callback:function(t){e.$set(e.createTemp,"financeCode",t)},expression:"createTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格"},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{select:function(t){e.handleSelectBrand(t)}},model:{value:e.createTemp.brandName,callback:function(t){e.$set(e.createTemp,"brandName",t)},expression:"createTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商"},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途"},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.createTemp.status,callback:function(t){e.$set(e.createTemp,"status",t)},expression:"createTemp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.purchaseDate,callback:function(t){e.$set(e.createTemp,"purchaseDate",t)},expression:"createTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.entranceDate,callback:function(t){e.$set(e.createTemp,"entranceDate",t)},expression:"createTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限"},model:{value:e.createTemp.depreciation,callback:function(t){e.$set(e.createTemp,"depreciation",t)},expression:"createTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值"},model:{value:e.createTemp.yuanzhi,callback:function(t){e.$set(e.createTemp,"yuanzhi",t)},expression:"createTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值"},model:{value:e.createTemp.salvage,callback:function(t){e.$set(e.createTemp,"salvage",t)},expression:"createTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值"},model:{value:e.createTemp.subtractvalue,callback:function(t){e.$set(e.createTemp,"subtractvalue",t)},expression:"createTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-select",{ref:"upkeepgrade",staticClass:"filter-item",attrs:{placeholder:"保养级别"},on:{"visible-change":e.upkeepgradeChange,change:e.changeUpkeepgrade},model:{value:e.createTemp.upkeepgrade,callback:function(t){e.$set(e.createTemp,"upkeepgrade",t)},expression:"createTemp.upkeepgrade"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用"},model:{value:e.createTemp.yearUpkeepCost,callback:function(t){e.$set(e.createTemp,"yearUpkeepCost",t)},expression:"createTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用"},model:{value:e.createTemp.yearMaintainCost,callback:function(t){e.$set(e.createTemp,"yearMaintainCost",t)},expression:"createTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数"},model:{value:e.createTemp.baseHours,callback:function(t){e.$set(e.createTemp,"baseHours",t)},expression:"createTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empname","fetch-suggestions":e.employeSearch,placeholder:"请输入责任人"},on:{select:e.handleSelectEmploye},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.name))])]}}]),model:{value:e.createTemp.employeName,callback:function(t){e.$set(e.createTemp,"employeName",t)},expression:"createTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUser"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.createTemp.inputUser,callback:function(t){e.$set(e.createTemp,"inputUser",t)},expression:"createTemp.inputUser"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.seeTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.seeTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"card"},[a("el-tabs",{on:{"tab-click":e.form_seeTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassName"}},[a("el-input",{ref:"eqClassName",attrs:{placeholder:"请输入设备类别",disabled:""},model:{value:e.seeTemp.eqClassName,callback:function(t){e.$set(e.seeTemp,"eqClassName",t)},expression:"seeTemp.eqClassName"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入资产编号",disabled:""},model:{value:e.seeTemp.assetCode,callback:function(t){e.$set(e.seeTemp,"assetCode",t)},expression:"seeTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号",disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.seeTemp.financeCode,callback:function(t){e.$set(e.seeTemp,"financeCode",t)},expression:"seeTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格",disabled:""},model:{value:e.seeTemp.specification,callback:function(t){e.$set(e.seeTemp,"specification",t)},expression:"seeTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-input",{ref:"brandName",attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.seeTemp.brandName,callback:function(t){e.$set(e.seeTemp,"brandName",t)},expression:"seeTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"请输入供应商",disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途",disabled:""},model:{value:e.seeTemp.purpose,callback:function(t){e.$set(e.seeTemp,"purpose",t)},expression:"seeTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-input",{ref:"status",attrs:{placeholder:"请输入状态",disabled:""},model:{value:e.seeTemp.status,callback:function(t){e.$set(e.seeTemp,"status",t)},expression:"seeTemp.status"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-input",{ref:"purchaseDate",attrs:{placeholder:"请输入购置日期",disabled:""},model:{value:e.seeTemp.purchaseDate,callback:function(t){e.$set(e.seeTemp,"purchaseDate",t)},expression:"seeTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-input",{ref:"entranceDate",attrs:{placeholder:"请输入入场日期",disabled:""},model:{value:e.seeTemp.entranceDate,callback:function(t){e.$set(e.seeTemp,"entranceDate",t)},expression:"seeTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限",disabled:""},model:{value:e.seeTemp.depreciation,callback:function(t){e.$set(e.seeTemp,"depreciation",t)},expression:"seeTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值",disabled:""},model:{value:e.seeTemp.yuanzhi,callback:function(t){e.$set(e.seeTemp,"yuanzhi",t)},expression:"seeTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值",disabled:""},model:{value:e.seeTemp.salvage,callback:function(t){e.$set(e.seeTemp,"salvage",t)},expression:"seeTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值",disabled:""},model:{value:e.seeTemp.subtractvalue,callback:function(t){e.$set(e.seeTemp,"subtractvalue",t)},expression:"seeTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-input",{ref:"upkeepgrade",attrs:{placeholder:"请输入保养级别",disabled:""},model:{value:e.seeTemp.upkeepgrade,callback:function(t){e.$set(e.seeTemp,"upkeepgrade",t)},expression:"seeTemp.upkeepgrade"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用",disabled:""},model:{value:e.seeTemp.yearUpkeepCost,callback:function(t){e.$set(e.seeTemp,"yearUpkeepCost",t)},expression:"seeTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用",disabled:""},model:{value:e.seeTemp.yearMaintainCost,callback:function(t){e.$set(e.seeTemp,"yearMaintainCost",t)},expression:"seeTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数",disabled:""},model:{value:e.seeTemp.baseHours,callback:function(t){e.$set(e.seeTemp,"baseHours",t)},expression:"seeTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"请输入牧场",disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{placeholder:"请输入部门",disabled:""},model:{value:e.seeTemp.deptName,callback:function(t){e.$set(e.seeTemp,"deptName",t)},expression:"seeTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{placeholder:"请输入责任人",disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUserName"}},[a("el-input",{ref:"inputUserName",attrs:{placeholder:"请输入录入人",disabled:""},model:{value:e.seeTemp.inputUserName,callback:function(t){e.$set(e.seeTemp,"inputUserName",t)},expression:"seeTemp.inputUserName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",attrs:{placeholder:"请输入录入时间",disabled:""},model:{value:e.seeTemp.inputDatetime,callback:function(t){e.$set(e.seeTemp,"inputDatetime",t)},expression:"seeTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isBasicExamine&&0==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"点检记录",name:"second"}},[a("el-date-picker",{ref:"inputDatetimeCheck1",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1,callback:function(t){e.$set(e.getAssetBigSpotCheckListParm.parammaps,"inputDatetimeSpotCheck1",t)},expression:"getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSportCheck}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSpotCheck1-1)*e.pageSizeSpotCheck1+1))])]}}],null,!1,1006182765)}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",sortable:"",prop:"inspectionResults","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",sortable:"",prop:"empname","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSpotCheck1,page:e.getAssetBigSpotCheckListParm.offset,limit:e.getAssetBigSpotCheckListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"pagecount",t)},pagination:e.getAssetBigSpotCheckList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"保养单号"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepCode",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"保养类型"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepType,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepType",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepType"}},e._l(e.maintainTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeUpkeepbyeq",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"inputDatetimeUpkeepbyeq",t)},expression:"getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchUpkeepbyeq}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpkeepbyeq,expression:"listLoadingUpkeepbyeq"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpkeepbyeq,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumUpkeepbyeq-1)*e.pageSizeUpkeepbyeq+1))])]}}],null,!1,1082609005)}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号",prop:"upkeepCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养名称",prop:"upkeepName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型",prop:"upkeepType","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别",prop:"upkeepLevel","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养人",prop:"upkeepPerson","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养费用",prop:"upkeepCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalUpkeepbyeq,page:e.getBigupkeepbyeqParm.offset,limit:e.getBigupkeepbyeqParm.pagecount},on:{"update:page":function(t){return e.$set(e.getBigupkeepbyeqParm,"offset",t)},"update:limit":function(t){return e.$set(e.getBigupkeepbyeqParm,"pagecount",t)},pagination:e.getBigupkeepbyeqList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"维修记录",name:"fouth"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"维修单号"},model:{value:e.getAssetMaintainParm.parammaps.repairCode,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"repairCode",t)},expression:"getAssetMaintainParm.parammaps.repairCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetMaintain",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"inputDatetimeAssetMaintain",t)},expression:"getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetMaintain}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetMaintain,expression:"listLoadingAssetMaintain"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetMaintain-1)*e.pageSizeAssetMaintain+1))])]}}],null,!1,353234157)}),e._v(" "),a("el-table-column",{attrs:{label:"维修单号",prop:"repairCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修人",prop:"requestName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人",prop:"empname","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"诊断故障",prop:"details","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用",sortable:"",prop:"maintenanceCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetMaintain,page:e.getAssetMaintainParm.offset,limit:e.getAssetMaintainParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetMaintainParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetMaintainParm,"pagecount",t)},pagination:e.getAssetMaintainList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"启停记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.startTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"startTime",t)},expression:"getAssetSTTParm.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.stopTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"stopTime",t)},expression:"getAssetSTTParm.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetSTT,expression:"listLoadingAssetSTT"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetSTT-1)*e.pageSizeAssetSTT+1))])]}}],null,!1,1514873197)}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人",prop:"blockName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetSTT,page:e.getAssetSTTParm.offset,limit:e.getAssetSTTParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetSTTParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetSTTParm,"pagecount",t)},pagination:e.getAssetSTTList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"变更记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更状态"},model:{value:e.getAssetChangeParm.parammaps.changeStatue,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"changeStatue",t)},expression:"getAssetChangeParm.parammaps.changeStatue"}},e._l(e.changeStates,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetChange",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetChangeParm.parammaps.inputDatetimeAssetChange,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"inputDatetimeAssetChange",t)},expression:"getAssetChangeParm.parammaps.inputDatetimeAssetChange"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetChange}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetChange,expression:"listLoadingAssetChange"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetChange-1)*e.pageSizeAssetChange+1))])]}}],null,!1,1891472333)}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",formatter:e.changeStatue,prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",prop:"changeName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetChange,page:e.getAssetChangeParm.offset,limit:e.getAssetChangeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetChangeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetChangeParm,"pagecount",t)},pagination:e.getAssetChangeList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"备件领用记录",name:"seventh"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getAssetPartApplyParm.parammaps.useCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"useCode",t)},expression:"getAssetPartApplyParm.parammaps.useCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getAssetPartApplyParm.parammaps.partCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partCode",t)},expression:"getAssetPartApplyParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getAssetPartApplyParm.parammaps.partName,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partName",t)},expression:"getAssetPartApplyParm.parammaps.partName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetPartApply",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"inputDatetimeAssetPartApply",t)},expression:"getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetPartApply}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetPartApply,expression:"listLoadingAssetPartApply"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetPartApply,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetPartApply-1)*e.pageSizeAssetPartApply+1))])]}}],null,!1,3522052013)}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",sortable:"",prop:"partCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"useNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际出库数量",sortable:"",prop:"checkoutNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间",sortable:"",prop:"receiveTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"距离上次时间(天)",sortable:"",prop:"dif","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetPartApply,page:e.getAssetPartApplyParm.offset,limit:e.getAssetPartApplyParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetPartApplyParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetPartApplyParm,"pagecount",t)},pagination:e.getAssetPartApplyList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"费用统计",name:"eighth"}},[a("el-row",[a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}}):e._e()]),e._v(" "),a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}}):e._e()])],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],"append-to-body":"",visible:e.dialogFormVisible_ChartSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible_ChartSee=t}}},[a("div",{staticClass:"app-contentSee"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getChartSeeParm.parammaps.useTypeV,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"useTypeV",t)},expression:"getChartSeeParm.parammaps.useTypeV"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getChartSeeParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"inputDatetime2",t)},expression:"getChartSeeParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchChartSee}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadChartSee}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChartSee,expression:"listLoadingChartSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listChartSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChartSee-1)*e.pageSizeChartSee+1))])]}}],null,!1,747959405)}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"单号",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.RUcode))])]}}],null,!1,3074352844)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"领用日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatTime))])]}}],null,!1,462173042)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}],null,!1,1252061914)}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"退库数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}],null,!1,3036156380)}),e._v(" "),a("el-table-column",{key:12,attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{key:13,attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChartSee>=0,expression:"totalChartSee>=0"}],attrs:{total:e.totalChartSee,page:e.getChartSeeParm.offset,limit:e.getChartSeeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getChartSeeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getChartSeeParm,"pagecount",t)},pagination:e.getChartSeeList}})],1)])],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:22}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:3},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"batchChangeTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.batchChange.temp,"label-position":"right","label-width":"115px"},nativeOn:{click:function(e){e.preventDefault()},submit:function(e){e.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更部门"},on:{change:e.changeBatchDept},model:{value:e.batchChange.temp.departmentId,callback:function(t){e.$set(e.batchChange.temp,"departmentId",t)},expression:"batchChange.temp.departmentId"}},e._l(e.batchChange.deptList,(function(e){return a("el-option",{key:e.deptid,attrs:{label:e.departmentName,value:e.deptid}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更责任人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更责任人"},on:{change:e.changeBatchPerson},model:{value:e.batchChange.temp.employeeId,callback:function(t){e.$set(e.batchChange.temp,"employeeId",t)},expression:"batchChange.temp.employeeId"}},e._l(e.batchChange.personList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"Basics",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{assetCode:[{required:!0,message:"必填",trigger:"blur"}],eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},listSH:[],totalSH:0,listLoadingSH:!0,tabName:"",getdataListParmSH:{name:"getAssetListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",SHStatus:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_Examine:!1,dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this,t=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:h.a.get("name")}}).then((function(e){t.buttons=e.data.list,t.get_auto_buttons()})),this.get_table_dataSH(),this.getDownClassList(),void 0==this.$route.query.tabName?this.tabName="first":this.tabName=this.$route.query.tabName,!1===this.isBasic&&(this.tabName="second"),"first"==this.tabName?(this.isDisplayRecord=!0,this.isFlowChart=!1):(this.isDisplayRecord=!1,this.isFlowChart=!0),void 0!==this.$route.query.myPath&&"AssetStandardManagement"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.departmentId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,isNaN(e.$route.query.departmentId)?e.getdataListParm.parammaps.departmentId="":e.getdataListParm.parammaps.departmentId=parseInt(e.$route.query.departmentId),e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.departmentId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"equipmentOverview"==this.$route.query.myPath&&(this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId),void 0!==this.$route.query.myPath&&"equipmentOverview2"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.eqClassId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.eqClassId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"PurchaseScrap"==this.$route.query.myPath&&("新购设备数"==this.$route.query.project?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime2=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList()):(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime3=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList())),this.get_table_data(),this.keyupSubmit()},methods:{tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.list=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath="");e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},get_table_dataSH:function(){var e=this;this.listLoadingSH=!0,console.log(this.$refs),console.log(this.$refs["inputDatetime1"]),null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),Object(l["e"])(this.getdataListParmSH).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.listSH=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&t.data.list[a].picpath?(e.listSH[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSH[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSH[a].srcpath="",e.listSH[a].picpath="");e.pageNumSH=t.data.pageNum,e.pageSizeSH=t.data.pageSize}else e.listSH=[];e.totalSH=t.data.total,setTimeout((function(){e.listLoadingSH=!1}),100)}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},form_searchSH:function(){this.listLoadingSH=!0,null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),this.getdataListParmSH.offset=1,this.get_table_dataSH()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.assetCode="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation=""},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,void 0===t.children?(this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="",this.$message({type:"warning",message:"请选择具体设备类型"}))):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var a=[],s=[];void 0==e.picpath||""==e.picpath?a.push():a.push(e.picpath);for(var i=0;i<a.length;i++){var r={};this.$set(r,"url",a[i]),s.push(r)}this.$set(this.createTemp,"fileList",s),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},handleDownloadChartSee:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm2.name="getEqPartuseDetailList",this.downLoadParm2.returntype="Map",this.downLoadParm2.parammaps=this.getChartSeeParm.parammaps,Object(l["d"])(this.downLoadParm2).then((function(t){e.$nextTick((function(){e.downLoadList2=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList2);var a=[{tHeader:["类型","单号","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["useTypeV","RUcode","creatTime","departmentName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList2,sheetName:"费用统计"}];Object(p["d"])(a,"费用统计",!0,"xlsx")}))}))},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber}))},handleTabClick:function(e){console.log("点击了基础信息/审核设备tab",e),"first"==e.name?(this.isFlowChart=!1,this.isDisplayRecord=!0):(this.isFlowChart=!0,this.isDisplayRecord=!1),this.get_table_data(),this.get_table_dataSH()},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"SHstatue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1,this.keyupSubmit()},changeSHStatue:function(e){this.statueReason=2==e},keyupSubmit:function(){var e=this;document.onkeydown=function(t){var a=window.event.keyCode;13===a&&e.createExamineData()}},createExamineData:function(){var e=this;"update"!==this.dialogStatus&&"create"!==this.dialogStatus&&(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="eqCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.SHstatue?e.requestParam.parammaps.statue=1:e.requestParam.parammaps.statue=2,e.requestParam.parammaps.empId=h.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.get_table_dataSH(),e.get_table_data(),e.activeName):Object(l["w"])(t,e.$notify)})))})))},handleDownload:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","部门","责任人","录入人","录入时间","使用时长(年)","使用率(%)"],filterVal:["pastureName","eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","deptName","employeName","inputUserName","inputDatetime","serviceDuration","utilizationRate"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleDownloadSH:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetListSH",this.downLoadParm.parammaps=this.getdataListParmSH.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","牧场","部门","责任人","录入人","录入时间"],filterVal:["eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","pastureName","deptName","employeName","inputUserName","inputDatetime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleSelectionChange:function(e){this.selectionList=e},handleBatchChange:function(){if(this.selectionList.length>0){for(var e=0;e<this.selectionList.length;e++)if(this.selectionList[e].pastureId!==this.selectionList[0].pastureId)return this.$message({type:"error",message:"请检测变更牧场是否一致!",duration:2e3}),!1;console.log("批量变更"),this.batchChange.temp.departmentId="",this.batchChange.temp.employeeId="",this.batchChange.deptList=[],this.batchChange.personList=[],this.dialogFormVisible_change=!0,this.dialogStatus="change",this.batchChange.getdataListParmDept.parammaps.pastureId=this.selectionList[0].pastureId,this.getBatchChangeDeptDownList()}else this.$message({type:"error",message:"请选择变更牧场",duration:2e3})},getBatchChangeDeptDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmDept).then((function(t){null!==t.data.list?e.batchChange.deptList=t.data.list:e.batchChange.deptList=[]}))},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("d454"),a("8f0c"),a("b4ef"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"3aba3e86",null);t["default"]=y.exports},"350f":function(e,t,a){"use strict";a("8699")},3511:function(e,t,a){"use strict";a("3e09")},"353b":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备变更",use:"icon-设备变更-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备变更"><defs><style type="text/css"></style></defs><path d="M272 667.5h409.3L575.2 773.6l35.4 35.3L752 667.5v-50H272zM756.3 174.8h50v50h-50zM448.8 358.1l-35.4-35.4L272 464.1v50h480v-50H342.7zM654.3 174.8h50v50h-50z" fill="#ffffff" p-id="3144" /><path d="M957 269V77H67v870h890V269z m-50 628H117V127h790v770z" fill="#ffffff" p-id="3145" /></symbol>'});n.a.add(l);t["default"]=l},3548:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备模板",use:"icon-设备模板-usage",viewBox:"0 0 1093 1024",content:'<symbol class="icon" viewBox="0 0 1093 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备模板"><defs><style type="text/css"></style></defs><path d="M172.872 363.733h740.079l-49.439 49.438V169.19l49.439 49.439H172.872l49.439-49.439v243.982l-49.439-49.438z m0 49.438V169.19h740.079v243.982H172.872zM894.774 517.507h24.72v-49.439H474.547v49.439h24.72zM894.774 625.371h24.72v-49.438H474.547v49.438h24.72zM894.774 733.236h24.72v-49.439H474.547v49.439h24.72zM894.774 841.1h24.72v-49.438H474.547v49.439h24.72zM172.872 802.9h246.693l-49.438 49.44V461.967l49.438 49.438H172.872l49.439-49.438v390.371l-49.439-49.438z m0 49.439V461.967h246.693v390.372H172.872z" p-id="10512" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"355d8":function(e,t,a){"use strict";a("5901")},3600:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件台账",use:"icon-备件台账-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件台账"><defs><style type="text/css"></style></defs><path d="M835.96858 63.659046H185.154303c-35.422337 0-64.2529 28.817252-64.2529 64.2529v767.966212c0 35.436671 28.830563 64.2529 64.2529 64.252899h650.814277c35.422337 0 64.2529-28.817252 64.252899-64.252899v-767.965188c0-35.436671-28.830563-64.253924-64.252899-64.253924z m-650.814277 56.720176h650.814277c4.153903 0 7.532724 3.378822 7.532724 7.532724v64.793511H177.620554v-64.793511c0-4.153903 3.378822-7.532724 7.533749-7.532724z m650.814277 783.032684H185.154303c-4.153903 0-7.532724-3.378822-7.532725-7.532724V249.426656h665.88075v646.452526c-0.001024 4.153903-3.379845 7.532724-7.533748 7.532724z" fill="#ffffff" p-id="2182" /><path d="M482.187531 318.775433H283.278353c-31.268434 0-56.720175 25.438431-56.720176 56.720175v84.748013c0 31.281744 25.451741 56.720175 56.720176 56.720175h198.908154c31.268434 0 56.720175-25.438431 56.720175-56.720175v-84.748013c0.001024-31.281744-25.451741-56.720175-56.719151-56.720175zM283.278353 460.243621v-84.748013h198.908154l0.027645 84.748013H283.278353zM759.196634 318.775433H621.467676c-15.675684 0-28.3606 12.698226-28.3606 28.3606 0 15.66135 12.684915 28.3606 28.3606 28.360599h137.728958c15.675684 0 28.3606-12.698226 28.3606-28.360599 0-15.662374-12.684915-28.3606-28.3606-28.3606zM759.196634 460.243621h-71.565489c-15.675684 0-28.359576 12.698226-28.359575 28.360599 0 15.66135 12.684915 28.359576 28.359575 28.359576h71.565489c15.675684 0 28.3606-12.698226 28.3606-28.359576 0-15.662374-12.684915-28.3606-28.3606-28.360599zM482.187531 626.94239H283.278353c-31.268434 0-56.720175 25.438431-56.720176 56.720176v84.748012c0 31.281744 25.451741 56.720175 56.720176 56.720175h198.908154c31.268434 0 56.720175-25.438431 56.720175-56.720175v-84.748012c0.001024-31.281744-25.451741-56.720175-56.719151-56.720176zM283.278353 768.410578v-84.748012h198.908154l0.027645 84.748012H283.278353zM759.196634 626.94239H621.467676c-15.675684 0-28.3606 12.698226-28.3606 28.359576 0 15.66135 12.684915 28.359576 28.3606 28.359576h137.728958c15.675684 0 28.3606-12.698226 28.3606-28.359576 0-15.66135-12.684915-28.359576-28.3606-28.359576zM759.196634 768.410578h-71.565489c-15.675684 0-28.359576 12.698226-28.359575 28.359576 0 15.66135 12.684915 28.3606 28.359575 28.360599h71.565489c15.675684 0 28.3606-12.698226 28.3606-28.360599 0-15.66135-12.684915-28.359576-28.3606-28.359576z" fill="#ffffff" p-id="2183" /></symbol>'});n.a.add(l);t["default"]=l},"36a5":function(e,t,a){"use strict";a("37d7")},"36ef":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("a7dc");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.chartData),console.log("methods拿到的this.chartData",this.chartData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expectedData,a=e.actualData;console.log("setOptions拿到的expectedData",t),this.chart.setOption({xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["expected","actual"]},series:[{name:"expected",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:t,animationDuration:2800,animationEasing:"cubicInOut"},{name:"actual",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"370a":function(e,t,a){"use strict";a("4cea")},"371c":function(e,t,a){"use strict";a("ce29")},"371d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"更换"}},[a("el-upload",{ref:"upload",attrs:{"list-type":"picture-card","file-list":e.fileList,headers:e.headers,action:e.uploadImageUrl,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,"auto-upload":!1}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")]),e._v(" "),a("el-button",{on:{click:e.onCancel}},[e._v("取消")])],1)],1)],1)},i=[],r=(a("7f7f"),a("5f87")),n=a("2934"),l={name:"Form",data:function(){return{dialogImageUrl:"",dialogVisible:!1,fileList:[],disabled:!1,uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",headers:{optname:"insertcustompic",id:1,token:Object(r["a"])()},width:"",requestParams:[{name:"getcustompicbycustomid",offset:0,pagecount:0,params:[1]}],requestParam:{name:"deletecustompic",picname:"",params:[]},form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""}}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(n["f"])(this.requestParams).then((function(t){e.fileList=t.data.getcustompicbycustomid.list;for(var a=0;a<e.fileList.length;a++)e.fileList[a].url="http://127.0.0.1:8082/data/getthumbnailimage/"+e.fileList[a].savename}))},handleRemove:function(e,t){this.reqDeletePic(e,t)},beforeRemove:function(e,t){return console.log(e.response),this.$confirm("删除当前图片"+e.name+", 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},reqDeletePic:function(e,t){var a=this;e.response?this.requestParam.picname=e.response.filename:this.requestParam.picname=e.savename,this.requestParam.params=[],this.requestParam.params[0]=this.requestParam.picname,Object(n["B"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0,console.log(e)},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},onSubmit:function(){this.$refs.upload.submit()},onCancel:function(){this.$message({message:"cancel!",type:"warning"})}}},o=l,p=(a("317e"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"06c636fe",null);t["default"]=m.exports},3734:function(e,t,a){},3738:function(e,t,a){"use strict";a.r(t);a("7f7f"),a("c5f6");var s,i,r={props:{label:String,item:{type:Object,default:function(){}},value:{default:null},index:{type:[String,Number],default:void 0}},data:function(){return{disabled:!0,local:[]}},computed:{btnType:function(){return this.disabled?"primary":"danger"},btnIcon:function(){return"el-icon-".concat(this.disabled?"edit":"minus")}},watch:{value:function(){this.resetLocal()}},created:function(){this.disabled=!this.item.must,this.resetLocal()},methods:{resetLocal:function(){null===this.value||"undefined"===typeof this.value?(this.local=[],this.actRemove()):this.local=this.item.asArray?this.value:[this.value]},add:function(){"pair"===this.item.holder||"item-group"===this.item.holder?this.local.push({}):this.local.push(null)},change:function(e){this.disabled?this.disabled=!1:this.handleRemove(e)},handleRemove:function(e){this.disabled||(this.local.splice(e,1),0===this.local.length&&this.actRemove())},actRemove:function(){this.add(),this.disabled=!0,this.$emit("remove",this.item.name,this.index)}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},3784:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备内部编号"},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentType,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.equipmentStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"month",staticStyle:{height:"50px"}},[e.isMaintenancePlanCopy?a("el-button",{attrs:{type:"primary",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e._v(" "),e.isMaintenancePlanClear?a("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.handleDelate}},[e._v("清空")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isMaintenancePlanUpload?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-date-picker",{staticStyle:{float:"right"},attrs:{type:"month",placeholder:"选择日期",format:"yyyy-MM","value-format":"yyyy-MM",clearable:!1},on:{blur:e.blurMonth},model:{value:e.getdataListParm.month,callback:function(t){e.$set(e.getdataListParm,"month",t)},expression:"getdataListParm.month"}})],1),e._v(" "),a("el-table",{attrs:{slot:"reference",height:"590px",border:"",data:e.list,"header-align":"center","row-style":e.rowStyle,"cell-style":e.tableCellClassName},on:{"cell-click":e.handleCellClick},slot:"reference"},[e._l(e.tablelist,(function(e,t){return[a("el-table-column",{key:t,attrs:{"show-overflow-tooltip":"",prop:e.column_name,label:e.label,width:e.width}})]}))],2),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{"page-sizes":[50],total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养名称:",prop:"upkeepTemplateId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},on:{change:e.changeUpkeep},model:{value:e.createTemp.upkeepTemplateId,callback:function(t){e.$set(e.createTemp,"upkeepTemplateId",t)},expression:"createTemp.upkeepTemplateId"}},e._l(e.upkeepTemps,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepEmpId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.createTemp.upkeepEmpId,callback:function(t){e.$set(e.createTemp,"upkeepEmpId",t)},expression:"createTemp.upkeepEmpId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"机修:",prop:"useEmpId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.createTemp.useEmpId,callback:function(t){e.$set(e.createTemp,"useEmpId",t)},expression:"createTemp.useEmpId"}},e._l(e.findAllEmploye2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"45%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatusBtn],visible:e.dialogFormVisibleBtn,"close-on-click-modal":!1,width:"450px;"},on:{"update:visible":function(t){e.dialogFormVisibleBtn=t}}},[a("div",{staticClass:"content-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleRevisionPlan}},[e._v("修改计划")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger"},on:{click:e.handleDeletionPlan}},[e._v("删除计划")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"warning"},on:{click:e.handleAdvanceMaintenance}},[e._v("提前保养")])],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"90%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"app-copy"},[a("el-form",{ref:"copyTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.copyTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:12,label:"月份:"}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"月份",multiple:""},model:{value:e.month,callback:function(t){e.month=t},expression:"month"}},e._l(e.months,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("3b2b"),a("28a5"),a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("5c96"),m=a("3de8"),c=a("a78e"),d=a.n(c),u=a("5f87"),h={name:"MaintenancePlan",components:{Pagination:l["a"],TreeSelect:m["a"]},directives:{waves:n["a"]},data:function(){return{equipmentStatusList:[{id:1,name:"正常设备"},{id:2,name:"非正常设备"},{id:"",name:"全部"}],visible:!1,findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},disabled:!1,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:"30px",height:"25px"},total:0,tableKey:0,listLoading:!0,list:[],listTest:{},updateValue:{},tablelist:[],getdataListParm:{name:"geteqList",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),eqCode:"",eqName:"",typeCode:"",partName:"",statue:1},month:Object(o["e"])(new Date,"{y}-{m}")},getdataListParmSH:{name:"geteqList",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),eqCode:"",eqName:"",typeCode:"",partName:"",statue:1},month:Object(o["e"])(new Date,"{y}-{m}")},dialogStatus:"",dialogFormVisible:!1,dialogStatusBtn:"",dialogFormVisibleBtn:!1,isokDisable:!1,rules:{upkeepTemplateId:[{required:!0,message:"必填",trigger:"blur"}],upkeepEmpId:[{required:!0,message:"必填",trigger:"blur"}],useEmpId:[{required:!0,message:"必填",trigger:"blur"}]},textMap:{create:"添加保养计划",update:"修改保养计划",copy:"复制"},listAdd:[],createTemp:{upkeepTemplateId:"",upkeepEmpId:"",useEmpId:""},postDataPramas:{},requestParam:{},getParmUpemplateByeq:{name:"getUpemplateByeq",parammaps:{}},getParmUpdatePlan:{name:"getseviceplanbyid",parammaps:{}},upkeepTemps:[],findAllEmploye:[],findAllEmploye2:[],dialogFormVisibleCopy:!1,months:[],copyTemp:{},month:[],downLoadParm:{},downLoadList:[],buttons:[],isMaintenancePlanCopy:[],isMaintenancePlanUpload:[],isMaintenancePlanClear:[],isMaintenancePlanAdd:[],isMaintenancePlanUpdate:[]}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){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:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){void 0!==this.$route.query.myPath&&"CompletionRateMaintenance"==this.$route.query.myPath?(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.eqCode?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.$forceUpdate()):(this.getdataListParm.parammaps.pastureName=d.a.get("pasturename"),this.getdataListParm.parammaps.eqCode=""),this.get_table_data()):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.eqCode?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode):(this.getdataListParm.parammaps.pastureName=d.a.get("pasturename"),this.getdataListParm.parammaps.eqCode=""),this.get_table_data()),this.getTypeList(),this.get_select_list(),this.getMonths();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{get_auto_buttons:function(){var e="maintenance:maintenancePlan:copy",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isMaintenancePlanCopy=t;var a="maintenance:maintenancePlan:upload",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isMaintenancePlanUpload=s;var i="maintenance:maintenancePlan:clear",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isMaintenancePlanClear=n;var l="maintenance:maintenancePlan:add",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isMaintenancePlanAdd=o;var p="maintenance:maintenancePlan:update",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isMaintenancePlanUpdate=m},popoverHide:function(e,t){console.log("选中值",e,t),null==t?(this.dataform.eqClassId=e,this.dataform.typeCode=""):(this.dataform.eqClassId=e,this.dataform.typeCode=t.typeCode)},getTypeList:function(){var e=this;Object(r["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(r["E"])(t.data.list,"id","pid","children"))}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllEmploye2=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this,t=this.$createElement;this.listLoading=!0,Object(r["i"])(this.getdataListParm).then((function(a){console.log("table数据",a.data.list),e.list=a.data.list,e.pageNum=a.data.pageNum,e.pageSize=a.data.pageSize,a.data.total&&(e.total=a.data.total);for(var s=e.getdataListParm.month.split("-"),i=s[0],r=s[1],n=new Date(i,r,0),l=[{label:"序号",column_name:"i"},{label:"牧场",column_name:"pastureName"},{label:"部门",column_name:"deptName"},{label:"设备名称",column_name:"eqName"},{label:"设备内部编号",column_name:"eqCode"},{label:"品牌",column_name:"brand"}],o=1;o<=n.getDate();o++){o=JSON.stringify(o);var p={label:o,column_name:"m"+o,width:"40"};l.push(p)}var m={label:"操作",column_name:"operation",width:"100"};l.push(m),e.tablelist=l,e.listTest={};for(var c=0;c<e.list.length;c++)for(var d in e.list[c].i=c+1,!1!==e.isMaintenancePlanClear&&(e.list[c].operation=t("el-button",{attrs:{type:"danger",size:"mini",id:"clear","class-name":"small-padding fixed-width",fixed:"right"},style:"width:60px;",ref:"clear"},["清空"])),e.list[c]){var u=/^(?![^a-zA-Z]+$)(?!\D+$)/;if(u.test(d)){var h=JSON.stringify(c);void 0!==e.list[c][d]&&(void 0==e.list[c][d].split("#")[0]?(e.listTest[d+h]=e.list[c][d],e.list[c][d]=""):(e.listTest[d+h]=e.list[c][d],e.list[c][d]=e.list[c][d].split("#")[0]))}}console.log("table数据",e.list),console.log("表头数据",e.tablelist),console.log("listTest",e.listTest),e.$forceUpdate(),setTimeout((function(){e.listLoading=!1}),100)}))},blurMonth:function(){this.listLoading=!0,null==this.dataform.eqClassId?this.getdataListParm.parammaps.typeCode="":this.getdataListParm.parammaps.typeCode=this.dataform.typeCode,this.get_table_data()},form_search:function(){this.listLoading=!0,null==this.dataform.eqClassId?this.getdataListParm.parammaps.typeCode="":this.getdataListParm.parammaps.typeCode=this.dataform.typeCode,this.getdataListParm.offset=1,this.get_table_data()},tableCellClassName:function(e){var t=e.row,a=e.column,s=e.rowIndex,i=e.columnIndex;t.index=s,a.index=i;var r=JSON.stringify(s);console.log(r);var n=this.listTest[this.tablelist[a.index].column_name+r];if(void 0!==n)if(void 0!==n.split("#")[2]){var l,o=n.split("#")[2],p=n.split("#")[4];if(1==s&&"m31"==this.tablelist[a.index].column_name&&(console.log("test",n),console.log("rowIndex",s,"colorTest",o),console.log("rowIndex",s,"colorTest2",p)),0!==parseFloat(p))l="background: #E6A23C;color:#fff;width:48px";else switch(o){case"0":l="background: #4169E1;color:#fff;width:48px";break;case"1":l="background: #00FF00;color:#fff";break;case"2":l="background: red;color:#fff";break;default:l="background: #4169E1;color:#fff"}if(i>=6&&t[this.tablelist[a.index].column_name]==n.split("#")[0])return l}else{var m="background: #4169E1;color:#fff";if(i>=6&&t[this.tablelist[a.index].column_name]==n.split("#")[0])return m}},resetCreateTemp:function(){this.createTemp.upkeepTemplateId="",this.listAdd=[]},handleCellClick:function(e,t,a,s){var i,n=this;if(i=this.tablelist[t.index].label<10?"0"+this.tablelist[t.index].label:this.tablelist[t.index].label,this.getdataListParm.month+"-"+i>Object(o["e"])(new Date,"{y}-{m}-{d}")){if(this.getParmUpemplateByeq.parammaps.assetCode=e.assetCode,this.getUpemplateByeq(),t.index>5)if(console.log("--表头",this.tablelist[t.index]),console.log("row[this.tablelist[column.index].column_name]",e[this.tablelist[t.index].column_name]),t.index>=6&&void 0!==e[this.tablelist[t.index].column_name])if(console.log(e[this.tablelist[t.index].column_name].elm),void 0==e[this.tablelist[t.index].column_name].elm){var l=JSON.stringify(e.index);this.updateValue=this.listTest[this.tablelist[t.index].column_name+l],console.log("要分割值",this.updateValue),console.log("--年月",this.getdataListParm.month),console.log(this.updateValue.split("#")[4]),0==this.updateValue.split("#")[4]&&(console.log(this.isMaintenancePlanAdd,this.isMaintenancePlanUpdate),1==this.isMaintenancePlanUpdate&&(this.dialogFormVisibleBtn=!0)),this.createTemp.pastureId=e.pastureId,this.createTemp.deptId=e.deptId,this.createTemp.eqName=e.eqName,this.createTemp.eqCode=e.eqCode,this.createTemp.eqId=e.id,this.createTemp.eqClassId=e.eqClassId,this.createTemp.bigupkeeptemplateId=e.upkeepTemplateId,this.createTemp.month=this.getdataListParm.month,this.createTemp.upkeepType=e.upkeepType,this.createTemp.upkeepCycel=e.upkeepCycel,this.createTemp.upkeepName=e.upkeepName,this.createTemp.id=this.updateValue.split("#")[1],this.createTemp.upkeepEmpId=e.upkeepEmpId,this.createTemp.useEmpId=e.useEmpId,this.createTemp.day=this.tablelist[t.index].label,console.log("---------------------",e)}else p["MessageBox"].confirm("是否清空本设备本月保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){n.requestParam.name="ClearoneSevicplan",n.requestParam.parammaps={},n.requestParam.parammaps.id=e.id,n.requestParam.parammaps.monthIN=n.getdataListParm.month,Object(r["k"])(n.requestParam).then((function(){n.get_table_data(),n.dialogFormVisible=!1,n.$notify({title:"成功",message:"清空成功",type:"success",duration:2e3})}))})).catch((function(){n.$message({type:"info",message:"已取消清空"})}));else console.log("--年月",this.getdataListParm.month),console.log("--日",this.tablelist[t.index].label),this.resetCreateTemp(),this.createTemp.pastureId=e.pastureId,this.createTemp.deptId=e.deptId,this.createTemp.eqName=e.eqName,this.createTemp.eqCode=e.eqCode,this.createTemp.eqId=e.id,this.createTemp.eqClassId=e.eqClassId,this.createTemp.month=this.getdataListParm.month,this.createTemp.day=this.tablelist[t.index].label,this.dialogStatus="create",console.log(this.isMaintenancePlanAdd,this.isMaintenancePlanUpdate),1==this.isMaintenancePlanAdd&&(this.dialogFormVisible=!0)}else{console.log("点击后期跳转",e,t,a,s);var m="m"+t.label;if(console.log(m,"str"),console.log(e.str,"row.str"),console.log(e["m"+t.label],"===="),void 0!==e["m"+t.label]&&""!==e["m"+t.label]){var c=this.getdataListParm.month+"-"+i;"现代牧业"==d.a.get("pasturename")||e.pastureName==d.a.get("pasturename")?this.$router.push({path:"/maintenance/maintain",query:{myPath:"MaintenancePlan",eqCode:e.eqCode,time:c}}):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})}}},getUpemplateByeq:function(){var e=this;Object(r["e"])(this.getParmUpemplateByeq).then((function(t){if(null!==t.data.list){e.upkeepTemps=t.data.list;for(var a=0;a<e.upkeepTemps.length;a++)e.upkeepTemps[a].name=e.upkeepTemps[a].upkeepName+"|"+e.upkeepTemps[a].upkeepType+"|"+e.upkeepTemps[a].upkeepLevel}}))},changeUpkeep:function(e){console.log("保养名称",e),console.log(this.upkeepTemps.find((function(t){return t.id===e}))),this.createTemp.upkeepTemplateId=e,this.createTemp.upkeepType=this.upkeepTemps.find((function(t){return t.id===e})).upkeepType,this.createTemp.upkeepCycel=this.upkeepTemps.find((function(t){return t.id===e})).upkeepCycel,this.createTemp.upkeepName=this.upkeepTemps.find((function(t){return t.id===e})).upkeepName},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);for(var t=parseInt(this.createTemp.day);t<this.tablelist.length-5;t+=this.createTemp.upkeepCycel){var a={};a.pastureId=this.createTemp.pastureId,a.deptId=this.createTemp.deptId,a.eqName=this.createTemp.eqName,a.eqCode=this.createTemp.eqCode,a.eqId=this.createTemp.eqId,a.eqClassId=this.createTemp.eqClassId,a.upkeepPerson=this.createTemp.upkeepEmpId,a.useEmpId=this.createTemp.useEmpId,a.bigupkeeptemplateId=this.createTemp.upkeepTemplateId;var s=t;a.plantime=s<10?this.createTemp.month+"-0"+s:this.createTemp.month+"-"+s,this.listAdd.push(a)}console.log("this.listAdd",this.listAdd),this.$refs["createTemp"].validate((function(t){e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertseviceplan",type:"e",parammaps:{pastureId:e.createTemp.pastureId,deptId:e.createTemp.deptId,eqName:e.createTemp.eqName,eqCode:e.createTemp.eqCode,eqId:e.createTemp.eqId,eqClassId:e.createTemp.eqClassId,upkeepTemplateId:e.createTemp.upkeepTemplateId,upkeepType:e.createTemp.upkeepType,upkeepCycel:e.createTemp.upkeepCycel,upkeepName:e.createTemp.upkeepName,month:e.createTemp.month,day:e.createTemp.day,upkeepEmpId:e.createTemp.upkeepEmpId,useEmpId:e.createTemp.useEmpId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertBigupKeep",type:"e",parammaps:{seviceplanId:"@insertseviceplan.LastInsertId",pastureId:"@insertSpotList.pastureId",deptId:"@insertSpotList.deptId",useEmpId:"@insertSpotList.useEmpId",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",eqId:"@insertSpotList.eqId",eqClassId:"@insertSpotList.eqClassId",bigupkeeptemplateId:"@insertSpotList.bigupkeeptemplateId",plantime:"@insertSpotList.plantime",upkeepPerson:"@insertSpotList.upkeepPerson"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},handleRevisionPlan:function(){console.log("点击了修改计划",this.updateValue),console.log("年月",this.getdataListParm.month),this.dialogFormVisibleBtn=!1,this.dialogStatus="update",this.dialogFormVisible=!0,this.getUpdatePlan()},getUpdatePlan:function(){var e=this;this.getParmUpdatePlan.parammaps.id=this.updateValue.split("#")[1],Object(r["e"])(this.getParmUpdatePlan).then((function(t){null!==t.data.list&&(console.log(t.data.list[0]),e.createTemp.id=t.data.list[0].id,e.createTemp.upkeepCycel=t.data.list[0].upkeepCycel,e.createTemp.upkeepEmpId=t.data.list[0].useEmpId,e.createTemp.useEmpId=t.data.list[0].upkeepEmpId,e.createTemp.upkeepName=t.data.list[0].upkeepName,e.createTemp.upkeepTemplateId=t.data.list[0].upkeepTemplateId,e.createTemp.upkeepType=t.data.list[0].upkeepType)}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("this.listAdd",this.listAdd),this.$refs["createTemp"].validate((function(t){e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateseviceplanId",type:"e",parammaps:{id:e.updateValue.split("#")[3]}},e.postDataPramas.data[1]={name:"insertseviceplan",type:"e",parammaps:{pastureId:e.createTemp.pastureId,deptId:e.createTemp.deptId,eqName:e.createTemp.eqName,eqCode:e.createTemp.eqCode,eqId:e.createTemp.eqId,eqClassId:e.createTemp.eqClassId,upkeepTemplateId:e.createTemp.upkeepTemplateId,upkeepType:e.createTemp.upkeepType,upkeepCycel:e.createTemp.upkeepCycel,upkeepName:e.createTemp.upkeepName,month:e.createTemp.month,day:e.createTemp.day,upkeepEmpId:e.createTemp.upkeepEmpId,useEmpId:e.createTemp.useEmpId}},e.postDataPramas.data[2]={name:"updateBigUpkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3],bigupkeeptemplateId:e.createTemp.upkeepTemplateId,seviceplanId:"@insertseviceplan.LastInsertId",upkeepPerson:e.createTemp.upkeepEmpId,useEmpId:e.createTemp.useEmpId}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},handleDeletionPlan:function(){var e=this;console.log("点击了删除计划"),this.dialogFormVisibleBtn=!1,p["MessageBox"].confirm("是否删除本天保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteBigUpkeep",e.requestParam.parammaps={},console.log("要分割值",e.updateValue),e.requestParam.parammaps.id=e.updateValue.split("#")[3],Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleAdvanceMaintenance:function(){var e=this;console.log("点击了提前保养",this.updateValue),p["MessageBox"].confirm("是否确认提前一天保养本设备?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"advanceBigupkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3]}},e.postDataPramas.data[1]={name:"updateadvanceupkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3],advanceId:"@advanceBigupkeep.LastInsertId"}},e.postDataPramas.data[2]={name:"advanceBupUt",type:"e",parammaps:{bigupkeeptemplateId:e.updateValue.split("#")[1],id:"@advanceBigupkeep.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){if(console.log("提前保养发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("key 'pastureId'");a.test(t.data)?e.$notify({title:"",message:"前一天已有保养计划,不可重复添加",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:"参数错误",type:"warning",duration:2e3})}else e.dialogFormVisibleBtn=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}))},getMonths:function(){var e=new Date;e.setMonth(e.getMonth(),1);for(var t=0;t<12;t++){e.setMonth(e.getMonth()+1);var a=e.getMonth()+1;a=a<10?"0"+a:a;var s={};s.id=t,s.name=e.getFullYear()+"-"+a,this.months.push(s)}console.log(this.months,"---------------")},handleCopy:function(){this.dialogStatus="copy",this.dialogFormVisibleCopy=!0},createCopyData:function(){var e=this;if(console.log(this.month),0===this.month.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.month.length;a++){var s={};s["NewmonthIN"]=this.month[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},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"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))}},handleDelate:function(){var e=this;p["MessageBox"].confirm("是否清空本月保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="ClearSevicplan",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.eqName=e.getdataListParm.parammaps.eqName,e.requestParam.parammaps.eqCode=e.getdataListParm.parammaps.eqCode,e.requestParam.parammaps.typeCode=e.getdataListParm.parammaps.typeCode,e.requestParam.parammaps.departmentId=e.getdataListParm.parammaps.departmentId,e.requestParam.parammaps.monthIN=e.getdataListParm.month,Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"清空成功",type:"success",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消清空"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["月份","部门名称","编码","资产名称","牧场","保养人","机修","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"],r=["月份","部门名称","编码","资产名称","牧场","保养人","机修","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"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"保养计划",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},handleDownloadTemp:function(){var e=this;this.downLoadParm={},this.downLoadParm.name="getUpkeepeqlist",this.downLoadParm.month=this.getdataListParm.month,this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["e"])(this.downLoadParm).then((function(t){null!==t.data.list?e.downloadList=t.data.list:e.downloadList=[];for(var a=e.downLoadParm.month.split("-"),s=a[0],i=a[1],r=new Date(s,i,0),n=["月份","部门名称","编码","资产名称","牧场","保养人","机修"],l=1;l<=r.getDate();l++){l=JSON.stringify(l);n.push(l)}console.log(n,"====");var p=[{tHeader:n,filterVal:["i","name","deptName","eqName","eqCode","brandname"],tableDatas:[],sheetName:"SheetJS"}];Object(o["d"])(p,"保养计划模板",!0,"xlsx")}))},handleDownload:function(){var e=this;this.$alert("保养计划正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.getdataListParmSH.month=this.getdataListParm.month,this.getdataListParmSH.parammaps=this.getdataListParm.parammaps,Object(r["i"])(this.getdataListParmSH).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log("ssssss",e.downLoadList);var a=e.getdataListParmSH.month.split("-"),s=a[0],i=a[1],r=(new Date(s,i,0),["月份","部门名称","编码","资产名称","牧场","保养人","机修","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"]);e.downLoadList.forEach((function(e){e.m1="undefined"===typeof e.m1?"":e.m1.substr(0,1),e.m2="undefined"===typeof e.m2?"":e.m2.substr(0,1),e.m3="undefined"===typeof e.m3?"":e.m3.substr(0,1),e.m4="undefined"===typeof e.m4?"":e.m4.substr(0,1),e.m5="undefined"===typeof e.m5?"":e.m5.substr(0,1),e.m6="undefined"===typeof e.m6?"":e.m6.substr(0,1),e.m7="undefined"===typeof e.m7?"":e.m7.substr(0,1),e.m8="undefined"===typeof e.m8?"":e.m8.substr(0,1),e.m9="undefined"===typeof e.m9?"":e.m9.substr(0,1),e.m10="undefined"===typeof e.m10?"":e.m10.substr(0,1),e.m11="undefined"===typeof e.m11?"":e.m11.substr(0,1),e.m12="undefined"===typeof e.m12?"":e.m12.substr(0,1),e.m13="undefined"===typeof e.m13?"":e.m13.substr(0,1),e.m14="undefined"===typeof e.m14?"":e.m14.substr(0,1),e.m15="undefined"===typeof e.m15?"":e.m15.substr(0,1),e.m16="undefined"===typeof e.m16?"":e.m16.substr(0,1),e.m17="undefined"===typeof e.m17?"":e.m17.substr(0,1),e.m18="undefined"===typeof e.m18?"":e.m18.substr(0,1),e.m19="undefined"===typeof e.m19?"":e.m19.substr(0,1),e.m20="undefined"===typeof e.m20?"":e.m20.substr(0,1),e.m21="undefined"===typeof e.m21?"":e.m21.substr(0,1),e.m22="undefined"===typeof e.m22?"":e.m22.substr(0,1),e.m23="undefined"===typeof e.m23?"":e.m23.substr(0,1),e.m24="undefined"===typeof e.m24?"":e.m24.substr(0,1),e.m25="undefined"===typeof e.m25?"":e.m25.substr(0,1),e.m26="undefined"===typeof e.m26?"":e.m26.substr(0,1),e.m27="undefined"===typeof e.m27?"":e.m27.substr(0,1),e.m28="undefined"===typeof e.m28?"":e.m28.substr(0,1),e.m29="undefined"===typeof e.m29?"":e.m29.substr(0,1),e.m30="undefined"===typeof e.m30?"":e.m30.substr(0,1),e.m31="undefined"===typeof e.m31?"":e.m31.substr(0,1)}));var n=[{tHeader:r,filterVal:["month","deptName","eqCode","eqName","pastureName","employeName","useEmpName","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:e.downLoadList,sheetName:"SheetJS"}];Object(o["d"])(n,"保养计划",!0,"xlsx")}))}}},g=h,f=(a("192b"),a("5c3a"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"19a96d65",null);t["default"]=b.exports},"37cd":function(e,t,a){"use strict";a("429e")},"37d7":function(e,t,a){},"385f":function(e,t,a){},"38d2":function(e,t,a){"use strict";a("3734")},"39a2":function(e,t,a){},"39b9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[e.isPraseTime?a("el-date-picker",{staticStyle:{top:"-3px"},attrs:{clearable:!1,type:"date","picker-options":e.pickerOptions1,placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.praseTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"praseTime",t)},expression:"getdataListParm.parammaps.praseTime"}}):e._e(),e._v(" "),e.isPraseTime?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]):e._e(),e._v(" "),e.isType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getDeptListParm.parammaps.type,callback:function(t){e.$set(e.getDeptListParm.parammaps,"type",t)},expression:"getDeptListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),e.isPraseTime?a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1),e._v(" "),e.isTitle?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goBackPasture}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(e.seeTemp.pastureName))])]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),e.isTable1?a("el-table-column",{key:1,attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,3845269539)}):e._e(),e._v(" "),e.isTable2?a("el-table-column",{key:2,attrs:{label:"部门","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}):e._e(),e._v(" "),e.isTable3?a("el-table-column",{key:3,attrs:{label:"设备类别","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeName))])]}}],null,!1,249855033)}):e._e(),e._v(" "),a("el-table-column",{key:4,attrs:{label:"在用数量","min-width":"100px",align:"center",sortable:"",prop:"eqUse"}}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"使用数量","min-width":"100px",align:"center",sortable:"",prop:"eqQY"}}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"停用数量","min-width":"100px",align:"center",sortable:"",prop:"eqTY"}}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"设备运行时间(分钟)","min-width":"90px",align:"center",sortable:"",prop:"runTime"}}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"维修数量","min-width":"90px",align:"center",sortable:"",prop:"maintain"}}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"设备利用率","min-width":"100px",align:"center",sortable:"",prop:"eqQY2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqQY2)+"%")])]}}])}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"设备运转率","min-width":"90px",align:"center",sortable:"",prop:"totalTime2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.runTime2)+"%")])]}}])}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"设备故障率","min-width":"100px",align:"center",sortable:"",prop:"maintain2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maintain2)+"% ")])]}}])}),e._v(" "),e.isDetailed?a("el-table-column",{attrs:{label:"操作",align:"center",width:"150","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDetailed(s)}}},[e._v("明细")])]}}],null,!1,4042836480)}):e._e()],1),e._v(" "),e.isTable1?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}):e._e(),e._v(" "),e.isTable2?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total2,page:e.getDeptListParm.offset,limit:e.getDeptListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDeptListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDeptListParm,"pagecount",t)},pagination:e.getDeptList}}):e._e(),e._v(" "),e.isTable3?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total3,page:e.getTypeListParm.offset,limit:e.getTypeListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getTypeListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getTypeListParm,"pagecount",t)},pagination:e.getTypeList}}):e._e()],1)},i=[],r=(a("c5f6"),a("6724")),n=a("333d"),l=a("2934"),o=a("ed08"),p={name:"EquipmentOperation",components:{Pagination:n["a"]},directives:{waves:r["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getEqRunstatueListPasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(o["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")}},pickerOptions1:{disabledDate:function(e){return e.getTime()>(new Date).getTime()-864e5}},seeTemp:{},isTitle:!1,isPraseTime:!0,isTable1:!0,types:[{id:0,name:"按部门"},{id:1,name:"按设备类别"}],isType:!1,total2:0,isTable2:!1,getDeptListParm:{name:"getEqRunstatueListDept",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{type:0}},total3:0,isTable3:!1,getTypeListParm:{name:"getEqRunstatueListEqclass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},isDetailed:!1,downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_table_data()},methods:{tableSort1:function(e){Object(o["f"])(e,this.list)},get_table_data:function(){var e=this;Object(l["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)0!==t.data.list[a].eqQY&&0!==t.data.list[a].eqUse?e.$set(t.data.list[a],"eqQY2",(parseFloat(t.data.list[a].eqQY)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)):e.$set(t.data.list[a],"eqQY2",0),0!==t.data.list[a].runTime&&0!==t.data.list[a].totalTime?e.$set(t.data.list[a],"runTime2",(parseFloat(t.data.list[a].runTime)/parseFloat(t.data.list[a].totalTime)*100).toFixed(2)):e.$set(t.data.list[a],"ontimeClassCount2",0),0!==t.data.list[a].maintain&&0!==t.data.list[a].eqUse?e.$set(t.data.list[a],"maintain2",(parseFloat(t.data.list[a].maintain)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)):e.$set(t.data.list[a],"maintain2",0)}e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.pastureName&&null==t.departmentName&&null==t.typeName&&1===a?{textDecoration:"underline"}:{textDecoration:"none"}},tableCellClick:function(e){"现代牧业"!==e.pastureName?(this.seeTemp=Object.assign({},e),this.isPraseTime=!1,this.isTable1=!1,this.isTable2=!0,this.isTitle=!0,this.isType=!0,this.isDetailed=!0,this.listLoading=!0,this.getDeptList()):this.isTitle=!1},changeType:function(e){console.log("选中值"),this.Type=e,0==this.Type?(this.listLoading=!0,this.getDeptList(),this.isTable2=!0,this.isTable3=!1):(this.listLoading=!0,this.isTable2=!1,this.isTable3=!0,this.getTypeList())},getDeptList:function(){var e=this;this.getDeptListParm.parammaps.pastureId=this.seeTemp.pastureId,this.getDeptListParm.parammaps.praseTime=this.getdataListParm.parammaps.praseTime,Object(l["e"])(this.getDeptListParm).then((function(t){console.log("table数据",t.data.list),e.$nextTick((function(){e.list=t.data.list})),e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total2=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getTypeList:function(){var e=this;this.getTypeListParm.parammaps.pastureId=this.seeTemp.pastureId,this.getTypeListParm.parammaps.praseTime=this.getdataListParm.parammaps.praseTime,Object(l["e"])(this.getTypeListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total3=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},goBackPasture:function(){this.isType=!1,this.isPraseTime=!0,this.isTable1=!0,this.isTable2=!1,this.isTable3=!1,this.isTitle=!1,this.isDetailed=!1,this.listLoading=!0,this.get_table_data()},handleDetailed:function(e){console.log(e),this.$router.push({path:"/maintenance/SST",query:{deptId:e.deptId}}),this.getdataListParm.parammaps.deptId=e.deptId},handleDownload:function(){var e=this;this.$alert("设备运行统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getEqRunstatueListPasture",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadList=t.data.list,t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)e.downLoadList[a].LYL=(parseFloat(t.data.list[a].eqQY)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)+"%",0===parseFloat(t.data.list[a].runTime)||0===parseFloat(t.data.list[a].totalTime)?e.downLoadList[a].YZL=0:e.downLoadList[a].YZL=(parseFloat(t.data.list[a].runTime)/parseFloat(t.data.list[a].totalTime)*100).toFixed(2)+"%",e.downLoadList[a].GZL=(parseFloat(t.data.list[a].maintain)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)+"%";console.log(e.downLoadList);var s=[{tHeader:["牧场","在用数量","使用数量","停用数量","设备运行时间(分钟)","维修数量","设备利用率","设备运转率","设备故障率"],filterVal:["pastureName","eqUse","eqQY","eqTY","runTime","maintain","LYL","YZL","GZL"],tableDatas:e.downLoadList,sheetName:"设备运行统计"}];Object(o["d"])(s,"设备运行统计",!0,"xlsx")}))}))}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"3a2a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v("\n\n 开发中\n")])},i=[],r=(a("7f7f"),a("7514"),a("c5f6"),a("ac6a"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"StopRecord",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){return{findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],selectData:"",pickerMinDate:"",pickerRange:5184e6,pickerOptions:{},total:0,listLoading:!0,getdataListParm:{name:"getRecordsOfRepairman",page:1,offset:1,pagecount:10,returntype:"Map",inputDatetime:"",parammaps:{pastureId:c.a.get("pastureid"),pastureName:c.a.get("pasturename"),departmentName:"",eqClassId:"",startTime:"",stopTime:"",departmentId:"",inputDatetime:[Object(l["e"])((new Date).getTime()-2592e6,"{y}-{m}-{d}"),Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")]}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},statueReason:!1,downLoadParm:{},downLoadList:[],pageNum:0,pageSize:0,isPercentage:!1,percentage:1,isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getSummaries1:function(e){var t=e.columns,a=e.data,s=[];return t.forEach((function(e,t){if(0!==t){var i=a.map((function(t){return Number(t[e.property])}));console.log(e.property),console.log(i),i.every((function(e){return isNaN(e)}))?s[t]="-":s[t]=i.reduce((function(e,t){var a=Number(t);return isNaN(a)?e:e+t}),0)}else s[t]="合计"})),s},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this;this.listLoading=!0,"现代牧业"==this.getdataListParm.parammaps.pastureName&&(this.getdataListParm.parammaps.pastureId=""),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){var e=this;this.listLoading=!0,this.getdataListParm.offset=1,this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e.getdataListParm.parammaps.pastureName})).id,this.get_table_data()},tableCellStyle:function(e){e.row,e.column,e.rowIndex,e.columnIndex},handleDownload:function(){var e=this;this.$alert("报修人记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getRecordsOfRepairman",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","月份","部门","姓名","报修次数"],filterVal:["pasturename","date","departmentName","empname","count"],tableDatas:e.downLoadList,sheetName:"报修人记录"}];Object(l["d"])(a,"报修人记录",!0,"xlsx")}))}}},u=d,h=(a("ab02"),a("355d8"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"787cbf1b",null);t["default"]=g.exports},"3ac0":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"库位编号",clearable:""},model:{value:e.getDeptListParm.parammaps.warehoseCode,callback:function(t){e.$set(e.getDeptListParm.parammaps,"warehoseCode",t)},expression:"getDeptListParm.parammaps.warehoseCode"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isWarehouseImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{disabled:e.isokDisable,type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位名称","header-align":"left","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode)+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库数",sortable:"",prop:"pls","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pls))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数",sortable:"",prop:"pts","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pts))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件数",sortable:"",prop:"prs","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.prs))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点","header-align":"center",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]),e._v(" "),0===s.childrens&&0===s.cps&&0===s.prs&&0===s.pts&&0===s.pls?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getDeptListParm.offset,limit:e.getDeptListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDeptListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDeptListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"库位编码",prop:"warehoseCode"}},[a("el-input",{ref:"warehoseCode",model:{value:e.deptform.warehoseCode,callback:function(t){e.$set(e.deptform,"warehoseCode",t)},expression:"deptform.warehoseCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{autosize:{minRows:2,maxRows:10},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v(" 保存并新增 ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v(" 保存并关闭 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v(" 取消并关闭 ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("3de8")),n=a("6724"),l=a("2934"),o=a("5c96"),p=a("333d"),m=a("5f87"),c=a("a78e"),d=a.n(c),u=a("ed08"),h={name:"Dept",components:{TreeSelect:r["a"],Pagination:p["a"]},directives:{waves:n["a"]},data:function(){return{isWarehouseImport:[],isokDisable:!1,disabled:!1,tableKey:0,total:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parentDept:[],listLoading:!0,requestParam:{name:"createdept"},deptform:{id:"",tempPtypeCode:"",temptypeCode:"",warehosetName:"",warehoseCode:"",remark:"",pid:"",pastureId:"",section:"",isWhPostion:"",sort:0,enable:""},getDeptListParm:{name:"getWarehouselist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:this.$store.state.user.pastureid,warehoseCode:""}},pageNum:0,pageSize:0,getDeptParm:{name:"getdeptrecu",idname:"value",params:[-1]},rules:{temptypeCode:[{type:"string",required:!0,message:"库位编码必填",trigger:"blur"}],warehosetName:[{type:"string",required:!0,message:"库位名称必填",trigger:"blur"}]},dialogFormVisible:!1,parentWHVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"typeNameCode"},nodeKey:"id",defaultCheckedKeys:[],buttons:[],isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"insertwarehouseprovider",importParams:"牧场,库位,供应商",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_table_data();var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{tableSort:function(e){Object(u["f"])(e,this.list)},get_auto_buttons:function(){var e="basic:warehouse:upload",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isWarehouseImport=t},popoverHide:function(e,t){this.deptform.pid=e,null!==e||(this.deptform.pid=-1),this.getMaxCode()},deptenter:function(){},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getDeptListParm).then((function(t){e.list=t.data,console.log(e.list),null!==t.data.list&&(e.list=Object(l["E"])(t.data.list,"id","pid","children"),e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,console.log(e.list)),t.data.total&&(e.total=t.data.total,console.log(e.total)),e.parentDept=e.list,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.listLoading=!0,this.getDeptListParm.offset=1,this.get_table_data()},querySearchWarehoseCode:function(e,t){console.log("库位编号模糊查询输入值",e),this.getDeptListParm.parammaps["warehoseCode"]=e,Object(l["e"])(this.getDeptListParm).then((function(e){console.log("库位模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectWarehoseCode:function(e){console.log("库位编号模糊查询选中值",e.id)},resetRequestParam:function(){this.requestParam={name:"createwh",params:[]},this.deptform.id="",this.deptform.temptypeCode="",this.deptform.tempPtypeCode="",this.deptform.warehosetName="",this.deptform.warehoseCode="",this.deptform.remark="",this.deptform.pid=-1,this.deptform.pastureId=this.$store.state.user.pastureid,this.deptform.section="",this.deptform.isWhPostion="0",this.deptform.sort="0",this.deptform.enable="1"},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.defaultCheckedKeys=[],this.dialogFormVisible=!0,this.deptform.pid=-1,this.deptform.enable=1,this.getMaxCode(),this.parentWHVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},getMaxCode:function(){var e=this;this.requestParam.name="getWHMaxcodeByPid",this.requestParam.parammaps={},this.requestParam.parammaps.pid=this.deptform.pid,this.requestParam.parammaps.pastureId=this.deptform.pastureId,Object(l["e"])(this.requestParam).then((function(t){t.data.list.length>0&&(""!==t.data.list[0].parentcode&&(e.deptform.tempPtypeCode=t.data.list[0].parentcode),-1===e.requestParam.parammaps.pid&&(e.deptform.tempPtypeCode=""),console.log(e.deptform))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createwh",e.deptform.isWhPostion=1,e.requestParam.parammaps=e.deptform,null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps.pid=-1:e.requestParam.parammaps.pid=e.deptform.pid,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){e.requestParam.name="createwh",e.deptform.isWhPostion=1,e.requestParam.parammaps=e.deptform,null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps.pid=-1:e.requestParam.parammaps.pid=e.deptform.pid,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.deptform.remark="",e.deptform.warehoseCode="",e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}))},form_edit:function(e){var t=this;this.defaultCheckedKeys=[e.pid],this.deptform.id=e.id,this.deptform.warehosetName=e.warehosetName,this.deptform.warehoseCode=e.warehoseCode,this.deptform.remark=e.remark,this.deptform.pid=e.pid,this.deptform.pastureId=this.$store.state.user.pastureid,this.deptform.section=e.section,this.deptform.isWhPostion=e.isWhPostion,this.deptform.sort=e.sort,this.deptform.enable=e.enable,this.deptform.tempPtypeCode=this.deptform.warehoseCode.substr(0,this.deptform.warehoseCode.lastIndexOf(".")+1),this.deptform.temptypeCode=this.deptform.warehoseCode.substr(this.deptform.warehoseCode.lastIndexOf(".")+1),this.parentWHVisible=e.pid>0,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updatewh",e.deptform.warehoseCode=e.deptform.warehoseCode,e.requestParam.parammaps=e.deptform,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updatewh",null===t.sort&&(t.sort=0),this.requestParam.parammaps=t,Object(l["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(l["w"])(e,a.$notify)}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","库位","供应商","错误信息"],r=["牧场","库位","供应商","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"库位管理",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(u["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;this.$alert("库位管理正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),Object(l["d"])(this.getDeptListParm).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["库位编号","库位名称","层级","子类数","入库数","出库数","备件数","盘点","是否库位","启用"],r=["warehoseCode","warehosetName","section","childrens","pls","pts","prs","cps","isWhPostion","enable"],n=Object(l["x"])(r,s);a.export_json_to_excel({header:i,data:n,filename:"库位管理",autoWidth:!0,bookType:"xlsx"})}))}))}))},form_delete:function(e){var t=this;o["MessageBox"].confirm("是否删除当前库位信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deletewh",t.requestParam.parammaps={id:e.id},Object(l["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(l["w"])(e,t.$notify)}))}))}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},"3ad9":function(e,t,a){"use strict";a("32db")},"3bb8":function(e,t,a){"use strict";a("f429")},"3be2":function(e,t,a){"use strict";a("0b47")},"3c49":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:5}},[a("el-col",{attrs:{span:5}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("菜单 ")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.jump}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"},on:{click:function(t){return e.get_table_data()}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"component-item"},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.parent,props:e.defaultProps},on:{"node-click":e.handleNodeClick}})],1)])],1),e._v(" "),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")]),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"接口名称",clearable:""},model:{value:e.interfaceName,callback:function(t){e.interfaceName=t},expression:"interfaceName"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return e.handleFind()}}},[e._v("\n 查找\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"菜单名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.menuname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调用方法","header-align":"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.method))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"接口名称","header-align":"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sqlname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("\n 删除\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleCopy(s)}}},[e._v("\n 复制\n ")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单名称22",prop:"selectmenutree"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",data:e.parent,"expand-all":"","default-props":e.defaultProps,"collapse-tags":"",onlyleaf:"","node-key":"id","checked-keys":e.defaultMenuCheckedKeys},on:{popoverHide:e.menu_popoverHide}})],1),e._v(" "),a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.deptform.name,callback:function(t){e.$set(e.deptform,"name",t)},expression:"deptform.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"接口名称",prop:"sqlname"}},[a("el-input",{ref:"sqlname",model:{value:e.deptform.sqlname,callback:function(t){e.$set(e.deptform,"sqlname",t)},expression:"deptform.sqlname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"调用方法",prop:"method"}},[a("el-input",{ref:"method",model:{value:e.deptform.method,callback:function(t){e.$set(e.deptform,"method",t)},expression:"deptform.method"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"SQL",prop:"sqlstr"}},[a("el-input",{ref:"sqlstr",attrs:{autosize:{minRows:2,maxRows:100},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.sqlstr,callback:function(t){e.$set(e.deptform,"sqlstr",t)},expression:"deptform.sqlstr"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"参数",prop:"params"}},[a("el-input",{ref:"params",model:{value:e.deptform.params,callback:function(t){e.$set(e.deptform,"params",t)},expression:"deptform.params"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"调用示例",prop:"request_body"}},[a("el-input",{ref:"request_body",attrs:{autosize:{minRows:2,maxRows:100},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.request_body,callback:function(t){e.$set(e.deptform,"request_body",t)},expression:"deptform.request_body"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("\n 确认新增\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("\n 确认\n ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("\n 关闭\n ")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.requesttest()}}},[e._v("\n 调用测试\n ")])],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("55dd"),a("3de8")),n=a("6724"),l=a("2934"),o=a("333d"),p=a("5c96"),m={name:"Apisql",components:{Pagination:o["a"],TreeSelect:r["a"]},directives:{waves:n["a"]},data:function(){return{disabled:!1,defaultProps:{children:"children",label:"title"},menuid:0,interfaceName:"",list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",params:[]},deptform:{menuid:"",apisqlid:"",method:"",sqlname:"",sqlstr:"",request_body:"",remark:"",params:"",sort:"",enable:"",return_body:"",name:""},getdataListParm:{name:"getapisqlall",offset:1,pagecount:10,params:["","","",""]},getRecuListParm:{name:"getMenuRecu"},rules:{sqlname:[{type:"string",required:!0,message:"sql名称必填",trigger:"change"}],sqlstr:[{type:"string",required:!0,message:"sql内容必填",trigger:"change"}],name:[{type:"string",required:!0,message:"名称必填",trigger:"change"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],defaultMenuCheckedKeys:[],selectedMenu:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_table_data()},methods:{menu_popoverHide:function(e,t){console.log(e),this.deptform.menuid=e},jump:function(){this.$router.push("/console/menu")},menuCheckChange:function(e,t,a){console.log(e,"数据"),console.log(t,"选中状态"),console.log(a,"子树中选中状态");var s=this.selectMenu.menuid.indexOf(e.id);s<0&&1===this.selectMenu.menuid.length&&t?(console.log("only one"),this.$message({message:"只能选择一个菜单!",type:"error",showClose:!0}),this.$refs.selectmenutree.setChecked(e,!1)):0===this.selectMenu.menuid.length&&t?(this.selectMenu.menuid=[],this.deptform.menuid=e.id,this.selectMenu.menuid.push(e.id)):s>=0&&1===this.selectMenu.menuid.length&&!t&&(this.selectMenu.menuid=[])},handleFind:function(){var e=this;this.listLoading=!0,this.getdataListParm.params=[this.menuid,this.menuid,this.interfaceName,this.interfaceName],Object(l["e"])(this.getdataListParm).then((function(t){console.log(t),e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},handleNodeClick:function(e){var t=this;console.log(e),(void 0===e.children||void 0!==e.children&&0===e.children.length)&&(this.listLoading=!0,this.menuid=e.id,this.getdataListParm.params=[e.id,e.id,"",""],Object(l["e"])(this.getdataListParm).then((function(e){e.data.total>0?(t.list=e.data.list,t.total=e.data.total):(t.list=[],t.total=0),setTimeout((function(){t.listLoading=!1}),100)})))},get_select_list:function(){var e=this;Object(l["e"])(this.getRecuListParm).then((function(t){console.log(t),e.parent=t.data,null!==t.data.list&&(e.parent=Object(l["E"])(t.data.list,"id","parentid","children"))}))},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},get_table_data:function(){var e=this;this.menuid=0,this.listLoading=!0,this.get_select_list(),Object(l["e"])(this.getdataListParm).then((function(t){console.log(t),e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},requesttest:function(){var e=this;this.listLoading=!0,console.log(JSON.parse(this.deptform.request_body)),Object(l["C"])(JSON.parse(this.deptform.request_body),this.deptform.method).then((function(t){console.log(t.data),e.deptform.return_body=JSON.stringify(t.data),setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.deptform.sqlid="",this.deptform.menuid="",this.deptform.method="",this.deptform.sqlname="",this.deptform.sqlstr="",this.deptform.params="",this.deptform.remark="",this.deptform.request_body="",this.deptform.sort="0",this.deptform.enable="1",this.deptform.return_body="",this.deptform.name=""},form_add:function(){var e=this;this.resetRequestParam(),this.deptform.menuid=this.menuid,this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.sqlname.focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.deptform.menuid,e.requestParam.params[4]="eqdev",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.menuid,e.requestParam.params[4]="eqdev",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,Object(l["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["sqlname"].focus()})),e.get_table_data(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.deptform.sqlid=e.id,null===e.menuid?this.deptform.menuid=0:this.deptform.menuid=e.menuid,this.deptform.method=e.method,this.deptform.sqlname=e.sqlname,this.deptform.sqlstr=e.sqlstr,this.deptform.params=e.params,this.deptform.request_body=e.request_body,this.deptform.return_body=e.return_body,this.deptform.name=e.name,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.enable=e.enable,0!==this.deptform.menuid?this.defaultMenuCheckedKeys=[this.deptform.menuid]:this.defaultMenuCheckedKeys=[],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["sqlname"].focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.deptform.menuid,e.requestParam.params[4]="eqdev",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,e.requestParam.params[11]=e.deptform.sqlid,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateapisql",this.requestParam.params=[],this.requestParam.params[0]=t.sqlstr,this.requestParam.params[1]=t.sqlname,this.requestParam.params[2]=t.params,this.requestParam.params[3]=t.menuid,this.requestParam.params[4]=t.remark,this.requestParam.params[5]=t.sort,this.requestParam.params[6]=t.enable,this.requestParam.params[7]=t.method,this.requestParam.params[8]=t.name,this.requestParam.params[9]=t.request_body,this.requestParam.params[10]=t.return_body,this.requestParam.params[11]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleCopy:function(e){var t=this;this.requestParam={},this.requestParam.name="copySQL",this.requestParam.params=[],this.requestParam.params[0]=e.id,Object(l["k"])(this.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("sql名称:"+e.sqlname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteapisql",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},"3c98":function(e,t,a){},"3d30":function(e,t,a){"use strict";a("bb81")},"3d77":function(e,t,a){},"3d79":function(e,t,a){"use strict";a("df5f")},"3d94":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-水量分析",use:"icon-水量分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-水量分析"><defs><style type="text/css"></style></defs><path d="M535.32 23.85C525.06 8 498.94 8 488.68 23.85 476 43.34 178.4 503.29 178.4 678.4 178.4 862.36 328 1012 512 1012s333.6-149.64 333.6-333.6c0-175.11-297.6-635.06-310.28-654.55zM512 956.4c-153.28 0-278-124.72-278-278 0-120.86 183-436.79 278-587.74 95 150.95 278 466.87 278 587.74 0 153.28-124.72 278-278 278z" p-id="10990" fill="#ffffff" /><path d="M706.6 650.6a27.78 27.78 0 0 0-27.8 27.8c0 92-74.82 166.8-166.8 166.8a27.8 27.8 0 0 0 0 55.6c122.63 0 222.4-99.77 222.4-222.4a27.78 27.78 0 0 0-27.8-27.8z" p-id="10991" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"3de8":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSelect,expression:"isShowSelect"}],staticClass:"mask",on:{click:function(t){e.isShowSelect=!e.isShowSelect}}}),e._v(" "),a("el-popover",{attrs:{disabled:e.disabled,placement:"bottom-start",width:e.width,trigger:"manual"},on:{hide:e.popoverHide},model:{value:e.isShowSelect,callback:function(t){e.isShowSelect=t},expression:"isShowSelect"}},[a("el-tree",{ref:"tree",staticClass:"common-tree",style:e.style,attrs:{data:e.data,props:e.defaultProps,"show-checkbox":e.multiple,"node-key":e.nodeKey,disabled:e.disabled,"check-strictly":e.checkStrictly,"default-expand-all":e.expandAll,"expand-on-click-node":!1,"check-on-click-node":e.multiple,"highlight-current":!0},on:{"node-click":e.handleNodeClick,"check-change":e.handleCheckChange}}),e._v(" "),a("el-select",{ref:"select",staticClass:"tree-select",style:e.selectStyle,attrs:{slot:"reference",size:e.size,disabled:e.disabled,placeholder:e.placeholder,multiple:e.multiple,clearable:e.clearable,"collapse-tags":e.collapseTags},on:{"remove-tag":e.removeSelectedNodes,clear:e.removeSelectedNode,change:e.changeSelectedNodes},nativeOn:{click:function(t){e.isShowSelect=!e.isShowSelect}},slot:"reference",model:{value:e.selectedData,callback:function(t){e.selectedData=t},expression:"selectedData"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)},i=[],r=(a("c5f6"),{name:"TreeSelect",props:{data:{type:Array,default:function(){return[]}},defaultProps:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:function(){return!1}},onlyleaf:{type:Boolean,default:function(){return!1}},clearable:{type:Boolean,default:function(){return!1}},disabled:{type:Boolean,default:function(){return!0}},placeholder:{type:String,default:function(){return"请选择"}},collapseTags:{type:Boolean,default:function(){return!1}},expandAll:{type:Boolean,default:function(){return!1}},nodeKey:{type:String,default:function(){return"id"}},checkStrictly:{type:Boolean,default:function(){return!1}},checkedKeys:{type:Array,default:function(){return[]}},size:{type:String,default:function(){return"small"}},width:{type:Number,default:function(){return 250}},display:{type:String,default:function(){return"block"}},height:{type:Number,default:function(){return 300}}},data:function(){return{isShowSelect:!1,options:[],selectedData:[],style:"width:"+this.width+"px;height:"+this.height+"px;",selectStyle:"width:"+(this.width+24)+"px;display:"+this.display,checkedIds:[],checkedData:[]}},watch:{isShowSelect:function(e){this.$refs.select.blur()},checkedKeys:function(e){e&&(this.checkedKeys=e,this.initCheckedData())}},mounted:function(){this.initCheckedData()},methods:{setSelectOption:function(e){var t={};t.value=e.key,t.label=e.label,this.options=[],this.options.push(t),this.selectedData=e.key},checkSelectedNode:function(e){var t=e[0];this.$refs.tree.setCurrentKey(t);var a=this.$refs.tree.getNode(t);this.setSelectOption(a)},checkSelectedNodes:function(e){this.$refs.tree.setCheckedKeys(e)},clearSelectedNode:function(){this.selectedData="",this.$refs.tree.setCurrentKey(null)},clearSelectedNodes:function(){for(var e=this.$refs.tree.getCheckedKeys(),t=0;t<e.length;t++)this.$refs.tree.setChecked(e[t],!1)},initCheckedData:function(){this.multiple?this.checkedKeys.length>0?this.checkSelectedNodes(this.checkedKeys):this.clearSelectedNodes():this.checkedKeys.length>0?this.checkSelectedNode(this.checkedKeys):this.clearSelectedNode()},popoverHide:function(){this.multiple?(this.checkedIds=this.$refs.tree.getCheckedKeys(),this.checkedData=this.$refs.tree.getCheckedNodes()):(this.checkedIds=this.$refs.tree.getCurrentKey(),this.checkedData=this.$refs.tree.getCurrentNode()),this.$emit("popoverHide",this.checkedIds,this.checkedData)},handleNodeClick:function(e,t){this.onlyleaf&&(!this.onlyleaf||0!==e.haschildren&&void 0!=e.children)||this.multiple||(this.setSelectOption(t),this.isShowSelect=!this.isShowSelect,this.$emit("change",this.selectedData))},handleCheckChange:function(){var e=this,t=this.$refs.tree.getCheckedKeys();this.options=t.map((function(t){var a=e.$refs.tree.getNode(t),s={};return s.value=a.key,s.label=a.label,s})),this.selectedData=this.options.map((function(e){return e.value})),this.$emit("change",this.selectedData)},removeSelectedNodes:function(e){var t=this;this.$refs.tree.setChecked(e,!1);var a=this.$refs.tree.getNode(e);!this.checkStrictly&&a.childNodes.length>0&&(this.treeToList(a).map((function(e){e.childNodes.length<=0&&t.$refs.tree.setChecked(e,!1)})),this.handleCheckChange()),this.$emit("change",this.selectedData)},treeToList:function(e){var t=[],a=[];t=t.concat(e);while(t.length){var s=t.shift();s.childNodes&&(t=t.concat(s.childNodes)),a.push(s)}return a},removeSelectedNode:function(){this.clearSelectedNode(),this.$emit("change",this.selectedData),this.popoverHide()},changeSelectedNodes:function(e){this.multiple&&e.length<=0&&this.clearSelectedNodes(),this.$emit("change",this.selectedData)}}}),n=r,l=(a("7296"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"a2e05514",null);t["a"]=o.exports},"3dfb":function(e,t,a){},"3e09":function(e,t,a){},"3e31":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-知识库文档",use:"icon-知识库文档-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-知识库文档"><defs><style type="text/css"></style></defs><path d="M511.3 917.7c-11.2 0-22.4-2.2-32.8-6.6-109.8-46.3-233.7-65.9-358.3-56.6-6.9 0.5-13.8-1.9-18.9-6.6-5.1-4.7-8-11.4-8-18.3V132.2c0-13.1 10.1-24 23.1-24.9 99.3-7.4 201.2 2.9 294.8 29.8 13.3 3.8 20.9 17.7 17.1 30.9s-17.7 20.9-30.9 17.1c-80.7-23.2-168.1-33.3-254.1-29.4V803c123.4-5.3 245.4 15.9 354.6 61.9 8.4 3.5 18.4 3.5 26.8 0 109.1-46 231.2-67.3 354.6-61.9V155.4c-108.8-5.6-216.8 20-290.3 43.4-31.5 10-52.7 34.9-52.7 61.8v522.1c0 13.8-11.2 25-25 25s-25-11.2-25-25V260.6c0-24.5 8.6-48 24.8-67.8 15.7-19.2 37.3-33.5 62.7-41.6 83-26.4 208.1-55.5 332.8-43.9 12.9 1.2 22.7 12 22.7 24.9v697.4c0 7-2.9 13.6-8 18.3-5.1 4.7-11.9 7.1-18.9 6.6-124.6-9.3-248.5 10.3-358.3 56.6-10.4 4.4-21.6 6.6-32.8 6.6z" p-id="14808" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"3e56":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.visible,expression:"!visible"}],attrs:{type:"primary"},on:{click:e.handleExtend}},[e._v("新增")]),e._v(" "),a("el-dialog",{attrs:{visible:e.visible,modal:!1,width:"60%"},on:{"update:visible":function(t){e.visible=t},open:e.reset}},[a("div",{attrs:{slot:"title"},slot:"title"}),e._v(" "),a("el-item-group",{attrs:{label:e.schema.title,value:e.value,item:e.schema.item},on:{input:e.input}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.extend}},[e._v("确 定")])],1)],1)],1)},i=[],r=a("b11e"),n={name:"ElItemInsert",components:{ElItemGroup:r["default"]},props:["schema"],data:function(){return{visible:!1,value:{}}},methods:{handleExtend:function(){this.visible=!0},extend:function(){var e=JSON.parse(JSON.stringify(this.value));this.$emit("extend",e),this.visible=!1},reset:function(){this.value={}},input:function(e,t,a){this.value=a}}},l=n,o=(a("9dd7"),a("2877")),p=Object(o["a"])(l,s,i,!1,null,"0e30f7a6",null);t["default"]=p.exports},"3ecc":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"编号"},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表结构"},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.createDate,callback:function(t){e.$set(e.getdataListParm.parammaps,"createDate",t)},expression:"getdataListParm.parammaps.createDate"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编号",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.elecNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.elecName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表结构",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天用电量",sortable:"",prop:"elecConsumption",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.elecConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"倍率",sortable:"",prop:"Multiple",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Multiple))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用",sortable:"",prop:"sumPrice",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.putName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",sortable:"",prop:"dateFormat"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDosageRecord(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电表编号:",prop:"formNumber"}},[a("el-autocomplete",{ref:"formNumber",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formNumber","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurSelect},model:{value:e.temp.formNumber,callback:function(t){e.$set(e.temp,"formNumber",t)},expression:"temp.formNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电表名称:",prop:"formName"}},[a("el-autocomplete",{ref:"formName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.blurSelect},model:{value:e.temp.formName,callback:function(t){e.$set(e.temp,"formName",t)},expression:"temp.formName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"类型:"}},[a("span",[e._v(e._s(e.temp.useType))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("span",[e._v(e._s(e.temp.pastureName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:"}},[a("span",[e._v(e._s(e.temp.departName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:"}},[a("span",[e._v(e._s(e.temp.employeName1))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用量:",prop:"consumption"}},[a("el-input",{ref:"consumption",on:{blur:e.handleBlurConsumption},model:{value:e.temp.consumption,callback:function(t){e.$set(e.temp,"consumption",t)},expression:"temp.consumption"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price1"}},[a("el-input",{ref:"price",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.price1,callback:function(t){e.$set(e.temp,"price1",t)},expression:"temp.price1"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.DATE,callback:function(t){e.$set(e.temp,"DATE",t)},expression:"temp.DATE"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:"}},[a("el-input",{ref:"rate",attrs:{disabled:""},model:{value:e.temp.rate,callback:function(t){e.$set(e.temp,"rate",t)},expression:"temp.rate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("表名称:"+e._s(e.dosageRecordTemp.formName))]),e._v(" "),a("span",[e._v("表编号:"+e._s(e.dosageRecordTemp.formNumber))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",sortable:"",prop:"waterConsumption","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.getDosageRecordList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.deleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=(a("5c96"),a("5f87")),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"Elec",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isElecAdd:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,formNumberSearchList:[],formNameSearchList:[],requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:""}},useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",consumption:"",measureId:"",useType:"",departName:"",aAmount:"",employeName1:"",endAmount:"",employeName:"",price1:"",note:"",formName:"",formNumber:"",rate:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getAllMeasureTypeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dosageRecordTemp:{},rules:{endAmount:[{type:"number",required:!0,validator:function(t,a,s){a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],price1:[{required:!0,message:"必填",trigger:"blur"}],consumption:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"insertElecsMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:elec:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="cost:elec:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isElecExport=s;var i="cost:elec:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isElecImport=n;var l="cost:elec:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isElecModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},handleDownload:function(){var e=this;this.$alert("电表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfit",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.formName=this.getdataListParm.parammaps.formName,this.requestParam.parammaps.formNumber=this.getdataListParm.parammaps.formNumber,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.formType,this.requestParam.parammaps.formType="电表",Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注"],r=["编号","牧场","表名称","表编号","抄表日期2","用量","单价2","录入人","备注2"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"电表",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","错误信息"],r=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"电表导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="电表",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]=e,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.formNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="电表",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.formName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNumberSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureElec",this.requestFilterParams.parammaps["formNumber"]=this.temp.formNumber,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formName=t.data.list[0].formName,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.rate=t.data.list[0].rate,e.temp.price1=t.data.list[0].price,e.$forceUpdate())}))}))},handleformNameSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureElec",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=this.temp.formName,Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formNumber=t.data.list[0].formNumber,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.price1=t.data.list[0].price,e.$forceUpdate())}))}))},blurSelect:function(e){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId="",this.temp.rate=""},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,null==this.getdataListParm.parammaps.createDate&&(this.getdataListParm.parammaps.createDate=""),this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.consumption="",this.temp.rate="",this.temp.endAmount="",this.temp.price1="",this.temp.note="",this.temp.employeId="",this.temp.employeName="",this.temp.DATE=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.employeId=this.$store.state.user.employeid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},handleBlurConsumption:function(){"create"==this.dialogStatus?""!==this.temp.aAmount&&void 0!==this.temp.consumption&&""!==this.temp.consumption&&null!==this.temp.consumption&&(this.temp.endAmount=parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)):(this.$set(this.temp,"endAmount",parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)),this.$forceUpdate())},handleBlurEndAmount:function(){"create"==this.dialogStatus?"undefined"!==this.temp.endAmount&&""!==this.temp.endAmount&&null!==this.temp.endAmount&&""!==this.temp.aAmount&&(this.temp.consumption=parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)):(this.$set(this.temp,"consumption",parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertElecExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertElecExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertElecExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertElecExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasureUpdate",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.date,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"updateElectricity",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,rate:e.temp.rate,id:e.temp.id,note:e.temp.note,employeId:e.temp.employeId,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureEle",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.date,lastRecodeId:e.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},deleteData:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){t&&(e.requestParam.name="deletedatastem",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.codeType=2,e.requestParam.parammaps.startTime=e.deleteTemp.startTime,e.requestParam.parammaps.stopTime=e.deleteTemp.startTime,Object(r["k"])(e.requestParam).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())})))}))},handleDosageRecord:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),this.getDosageRecordList()},getDosageRecordList:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.id=this.dosageRecordTemp.measureId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"3f29":function(e,t,a){},"3f2c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"dashboard-editor-container"},[s("div",{staticClass:" clearfix"},[s("img",{attrs:{src:a("9169"),alt:""}})])])}],r={name:"DashboardAdmin",data:function(){return{}}},n=r,l=(a("3be2"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"4c1a9a34",null);t["default"]=o.exports},"401e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.deptName,callback:function(t){e.$set(e.getdataListParm.parammaps,"deptName",t)},expression:"getdataListParm.parammaps.deptName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.createTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"createTime",t)},expression:"getdataListParm.parammaps.createTime"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"内部编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"内部编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lrTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-popover",{attrs:{placement:"right",width:"170",trigger:"click"}},[a("div",[e.isBasicsUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑\n ")]):e._e(),e._v(" "),e.isBasicsDel?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除\n ")]):e._e()],1),e._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[e._v("操作")])],1),e._v(" "),e.isBasicsCard?a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(t){return e.handleCard(s)}}},[e._v("卡片")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-content"},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"设备类别",prop:"assTypeId"}},[a("tree-select",{staticStyle:{width:"330px"},attrs:{height:400,width:330,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:"update"===e.dialogStatus,"checked-keys":e.defaultCheckedKeys,clearable:""},on:{popoverHide:e.popoverHide}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"350px"},attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容"},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",attrs:{disabled:""},on:{popoverHide:e.popoverHide},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"内部编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{ref:"employeId",staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人",prop:"employeId"}},[a("el-select",{ref:"employeId",staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCard],visible:e.dialogFormVisibleCard,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.temp.equipmentName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.temp.assetNumber))])]),e._v(" "),a("div",{staticClass:"card",staticStyle:{width:"100%",margin:"0 auto"}},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"six"}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"equipmentNumber"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态",disabled:""},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{disabled:""},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容",disabled:""},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{disabled:""},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场",disabled:""},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门",disabled:""},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人",disabled:""},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"内部编号",prop:"assetNumber"}},[a("el-input",{attrs:{disabled:""},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{disabled:""},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",attrs:{disabled:""},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{disabled:""},model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",attrs:{disabled:""},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",attrs:{disabled:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"点检记录",name:"first"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inspectionResults))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalSpotCheck1,page:e.getdataListParmGetAssetSpotCheck1.offset,limit:e.getdataListParmGetAssetSpotCheck1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetSpotCheck1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetSpotCheck1,"pagecount",t)},pagination:e.getSportCheck}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"保养记录",name:"second"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintain1,expression:"listLoadingMaintain1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养设定",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件领用状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalMaintain1,page:e.getdataListParmGetAssetMaintain1.offset,limit:e.getdataListParmGetAssetMaintain1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"pagecount",t)},pagination:e.getMaintain1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"维修记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintain1,expression:"listLoadingMaintain1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"维修单编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请人",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障现象","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appearanceName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dealTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理结果","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkResult))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalMaintain1,page:e.getdataListParmGetAssetMaintain1.offset,limit:e.getdataListParmGetAssetMaintain1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetMaintain1,"pagecount",t)},pagination:e.getMaintain1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"设备启停记录",name:"fouth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"启用时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmGetAssetSTT1.parammaps.enabledTime,callback:function(t){e.$set(e.getdataListParmGetAssetSTT1.parammaps,"enabledTime",t)},expression:"getdataListParmGetAssetSTT1.parammaps.enabledTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"停用时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmGetAssetSTT1.parammaps.blockTime,callback:function(t){e.$set(e.getdataListParmGetAssetSTT1.parammaps,"blockTime",t)},expression:"getdataListParmGetAssetSTT1.parammaps.blockTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSTT1,expression:"listLoadingSTT1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"停用时间",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"停用人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalSTT1,page:e.getdataListParmGetAssetSTT1.offset,limit:e.getdataListParmGetAssetSTT1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetSTT1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetSTT1,"pagecount",t)},pagination:e.getSTT1}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"变更记录",name:"fifith"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChange1,expression:"listLoadingChange1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalChange1,page:e.getdataListParmGetAssetChange1.offset,limit:e.getdataListParmGetAssetChange1.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmGetAssetChange1,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmGetAssetChange1,"pagecount",t)},pagination:e.getChange1}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)])])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("3de8"),c=a("a78e"),d=a.n(c),u={name:"SpBasic",components:{Pagination:o["a"],TreeSelect:m["a"]},directives:{waves:n["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],tableKey:0,list:null,total:0,totalSTT1:0,totalSpotCheck1:0,totalChange1:0,totalMaintain1:0,totalBasics:0,listLoading:!0,listLoadingbasics:!0,listLoadingSTT1:!0,listLoadingSpotCheck1:!0,listLoadingChange1:!0,listLoadingMaintain1:!0,listAssetSTT1:[],listAssetSpotCheck1:[],listAssetChange1:[],listAssetMaintain1:[],activeName:"six",getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:d.a.get("pasturename"),status:"",createTime:""}},getdataListParmGetBasics:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetSTT1:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetSpotCheck1:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetChange1:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmGetAssetMaintain1:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getAssetSTT1",offset:0,pagecount:0,parammaps:{}}],temp:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",equipmentNumber:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,equipmentName:"",specification:"",providerName:"",financeNumber:"",status:"",purpose:"",purchaseDate:"",entranceDate:"",assetNumber:"",yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:""},dialogFormVisible:!1,dialogStatus:"",dialogFormVisibleCard:!1,dialogStatusCard:"",textMap:{update:"编辑",create:"新增",card:"查看设备信息"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],assTypeId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},parentClass:[],defaultProps:{children:"children",label:"name"},nodeKey:"id",defaultCheckedKeys:[],Classid:"",buttons:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.getDownClassList(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="asset:basics:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=n;var l="asset:basics:del",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isBasicsDel=o},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return console.log(e),function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){this.temp.providerId=e.id,this.temp.providerName=e.name},get_table_data:function(){var e=this;this.listLoading=!0,null===this.getdataListParm.parammaps.createTime&&(this.getdataListParm.parammaps.createTime=""),Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},getBasics:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetBasics).then((function(e){a.listBasics=e.data.list,e.data.total&&(a.totalBasics=e.data.total),setTimeout((function(){a.listLoadingBasics=!1}),100)}))},getSTT1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetSTT1).then((function(e){a.listAssetSTT1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalSTT1=e.data.total),setTimeout((function(){a.listLoadingSTT1=!1}),100)}))},getSportCheck:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetSpotCheck1).then((function(e){a.listAssetSpotCheck1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalSpotCheck1=e.data.total),setTimeout((function(){a.listLoadingSpotCheck1=!1}),100)}))},getChange1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetChange1).then((function(e){a.listAssetChange1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalChange1=e.data.total),setTimeout((function(){a.listLoadingChange1=!1}),100)}))},getMaintain1:function(e,t){var a=this;Object(r["e"])(this.getdataListParmGetAssetMaintain1).then((function(e){a.listAssetMaintain1=e.data.list,a.pageNum=e.data.pageNum,a.pageSize=e.data.pageSize,e.data.total&&(a.totalMaintain1=e.data.total),setTimeout((function(){a.listLoadingMaintain1=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},popoverHide:function(e,t){console.log(t.checkNumber),this.getdataEQNumber.parammaps.checkNumber=t.checkNumber,0===t.children.length?(this.temp.assTypeId=e,this.getEQNumber()):(this.defaultCheckedKeys=[],this.$message({type:"warning",message:"请选择具体设备类型"}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=d.a.get("pastureid"),Object(r["e"])(this.getdataEQNumber).then((function(t){e.temp.equipmentNumber=t.data.list[0].createNumber}))},getDownClassList:function(){var e=this;Object(r["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},form_searchSTT:function(){this.listLoading=!0,this.getdataListParmGetAssetSTT1.offset=1,this.getSTT1()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.defaultCheckedKeys=[],this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid,this.temp.equipmentNumber="",this.temp.equipmentName="",this.temp.specification="",this.temp.providerName="",this.temp.financeNumber="",this.temp.status="",this.temp.providerName="",this.temp.purpose="",this.temp.purchaseDate="",this.temp.purchaseDate="",this.temp.entranceDate="",this.temp.assetNumber="",this.temp.yearUpkeepCost="",this.temp.yearMaintainDost="",this.temp.yuanzhi="",this.temp.financeNumber="",this.temp.inputDatetime=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.form_reset(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.defaultCheckedKeys=[this.temp.assTypeId],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.equipmentName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleCard:function(e){this.temp=Object.assign({},e),this.dialogStatusCard="card",this.dialogFormVisibleCard=!0,this.getdataListParmGetAssetSTT1.parammaps.assetId=e.id,this.getdataListParmGetAssetSTT1.parammaps.pastureId=e.pastureId,this.getSTT1(this.getdataListParmGetAssetSTT1.parammaps.assetId,this.getdataListParmGetAssetSTT1.parammaps.pastureId),this.getdataListParmGetAssetSpotCheck1.parammaps.assetId=e.id,this.getdataListParmGetAssetSpotCheck1.parammaps.pastureId=e.pastureId,this.getSportCheck(this.getdataListParmGetAssetSpotCheck1.parammaps.assetId,this.getdataListParmGetAssetSpotCheck1.parammaps.pastureId),this.getdataListParmGetAssetChange1.parammaps.assetId=e.id,this.getdataListParmGetAssetChange1.parammaps.pastureId=e.pastureId,this.getChange1(this.getdataListParmGetAssetChange1.parammaps.assetId,this.getdataListParmGetAssetChange1.parammaps.pastureId),this.getdataListParmGetAssetMaintain1.parammaps.assetId=e.id,this.getdataListParmGetAssetMaintain1.parammaps.pastureId=e.pastureId,this.getMaintain1(this.getdataListParmGetAssetMaintain1.parammaps.assetId,this.getdataListParmGetAssetMaintain1.parammaps.pastureId)}}},h=u,g=(a("06ea2"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"a8eb32ca",null);t["default"]=f.exports},"404d":function(e,t,a){},"40b7":function(e,t,a){},4119:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("4c19");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"475px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({legend:{},tooltip:{},dataset:{source:[["product","2015","2016","2017"],["10月",43.3,85.8,93.7],["9月",83.1,73.4,55.1],["8月",86.4,65.2,82.5],["7月",72.4,53.9,39.1]]},xAxis:[{type:"category",gridIndex:0,name:"最近12个月"}],yAxis:[{gridIndex:0,name:"总费用"}],grid:[{bottom:"58%"},{top:"58%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},4126:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安全阀类型",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安全阀型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"公称通径","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"公称压力MPa","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"工作压力MPa","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.factoryNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"整定压力MPa","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"起跳压力MPa","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"回座压力MPa","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cycle))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"使用位置","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnUnit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"使用部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"110px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"110px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"管理责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"安全阀类型:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入安全阀类型",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"安全阀型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入安全阀型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"公称通径:",prop:"level"}},[a("el-input",{ref:"level",attrs:{placeholder:"请输入公称通径",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.level,callback:function(t){e.$set(e.createTemp,"level",t)},expression:"createTemp.level"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"公称压力MPa:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入公称压力MPa",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"工作压力MPa:",prop:"factoryNumber"}},[a("el-input",{ref:"factoryNumber",attrs:{placeholder:"请输入工作压力MPa",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"整定压力MPa:",prop:"amount"}},[a("el-input",{ref:"amount",attrs:{placeholder:"请输入整定压力MPa",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.amount,callback:function(t){e.$set(e.createTemp,"amount",t)},expression:"createTemp.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"起跳压力MPa:",prop:"unit"}},[a("el-input",{ref:"unit",attrs:{placeholder:"请输入起跳压力MPa",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.unit,callback:function(t){e.$set(e.createTemp,"unit",t)},expression:"createTemp.unit"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"回座压力MPa:",prop:"cycle"}},[a("el-input",{ref:"cycle",attrs:{placeholder:"请输入回座压力MPa",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cycle,callback:function(t){e.$set(e.createTemp,"cycle",t)},expression:"createTemp.cycle"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用位置:",prop:"warnUnit"}},[a("el-input",{ref:"warnUnit",attrs:{placeholder:"请输入使用位置",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnUnit,callback:function(t){e.$set(e.createTemp,"warnUnit",t)},expression:"createTemp.warnUnit"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用部门:",prop:"departmentName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入使用部门",disabled:"see"===e.dialogStatus},on:{change:e.changeDepartment},model:{value:e.createTemp.departmentName,callback:function(t){e.$set(e.createTemp,"departmentName",t)},expression:"createTemp.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","picker-options":e.pickerOptions1,placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","picker-options":e.pickerOptions2,placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"管理责任人:",prop:"empName"}},[a("el-select",{ref:"empName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入管理责任人",disabled:"see"===e.dialogStatus},on:{change:e.changeEmp},model:{value:e.createTemp.empName,callback:function(t){e.$set(e.createTemp,"empName",t)},expression:"createTemp.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"SafetyValve",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"安全阀"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,departmentName:this.$store.state.user.departmentname,departmentId:this.$store.state.user.departmentid,warnName:"",specification:"",level:"",measureRange:"",factoryNumber:"",amount:"",unit:"",cycle:"",warnUnit:"",lastCheckDate:"",validityDate:"",empName:"",empId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnAQF",importParams:"牧场,安全阀类型,安全阀型号,公称通径,公称压力MPa,工作压力MPa,整定压力MPa,起跳压力MPa,回座压力MPa,使用位置,使用部门,本次检验日期,下次检验日期,管理责任人",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list||null!==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.departmentName=this.$store.state.user.departmentname,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.level="",this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.amount="",this.createTemp.unit="",this.createTemp.cycle="",this.createTemp.warnUnit="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.empName="",this.createTemp.empId=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},changeDepartment:function(e){this.createTemp.departmentId=this.findAllDepart.find((function(t){return t.name===e})).id},changeEmp:function(e){this.createTemp.empId=this.findAllEmploye.find((function(t){return t.name===e})).id},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="安全阀",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="安全阀",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="安全阀",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","安全阀类型","安全阀型号","公称通径","公称压力MPa","工作压力MPa","整定压力MPa","起跳压力MPa","回座压力MPa","使用位置","使用部门","本次检验日期","下次检验日期","管理责任人"],i=["牧场","安全阀类型","安全阀型号","公称通径","公称压力MPa","工作压力MPa","整定压力MPa","起跳压力MPa","回座压力MPa","使用位置","使用部门","本次检验日期","下次检验日期","管理责任人"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"安全阀模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","安全阀类型","安全阀型号","公称通径","公称压力MPa","工作压力MPa","整定压力MPa","起跳压力MPa","回座压力MPa","使用位置","使用部门","本次检验日期","下次检验日期","管理责任人","报错信息"],r=["牧场","安全阀类型","安全阀型号","公称通径","公称压力MPa","工作压力MPa","整定压力MPa","起跳压力MPa","回座压力MPa","使用位置","使用部门","本次检验日期","下次检验日期","管理责任人","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"安全阀报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("安全阀正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","安全阀类型","安全阀型号","公称通径","公称压力MPa","工作压力MPa","整定压力MPa","起跳压力MPa","回座压力MPa","使用位置","使用部门","本次检验日期","下次检验日期","管理责任人"],filterVal:["pastureName","warnName","specification","level","measureRange","factoryNumber","amount","unit","cycle","warnUnit","departmentName","lastCheckDate","validityDate","empName"],tableDatas:e.downLoadList,sheetName:"安全阀"}];Object(p["d"])(a,"安全阀",!0,"xlsx")}))}))}}},h=u,g=(a("38d2"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"430bab75",null);t["default"]=f.exports},4141:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"报修单号",clearable:""},model:{value:e.getdataListParm.parammaps.repairCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"repairCode",t)},expression:"getdataListParm.parammaps.repairCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.orderStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderStatue",t)},expression:"getdataListParm.parammaps.orderStatue"}},e._l(e.orderStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isRepair?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("报修")]):e._e(),e._v(" "),e.isRepairExport?a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障情况","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.requesterName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairDeptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.orderStatue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"100px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"400","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isMaintenanceSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),2==s.SHStatue&&e.isMaintenanceAudit&&s.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("维修审核")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("维修审核")]),e._v(" "),3==s.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("维修审核2")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("主管审核")]),e._v(" "),0==s.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDistributeLeaflets(s)}}},[e._v("派单")]):1==s.orderStatue||2==s.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDistributeLeaflets(s)}}},[e._v("派单")]):e._e(),e._v(" "),0==s.orderStatue&&e.isReceipt&&s.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceipt(s)}}},[e._v("接单")]):1==s.orderStatue||2==s.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceipt(s)}}},[e._v("接单")]):e._e(),e._v(" "),(1==s.orderStatue&&1==s.SHStatue||4==s.SHStatue||6==s.SHStatue)&&e.isMaintenanceRequisition&&s.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticClass:"successRequisition",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleMaintenanceRequisition(s)}}},[e._v("维修及领用")]):a("el-button",{staticClass:"successRequisition",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleMaintenanceRequisition(s)}}},[e._v("维修及领用")]),e._v(" "),1!=s.orderStatue||1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue||!e.isRepairComplete||s.pickId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRepairComplete(s)}}},[e._v("完成维修")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRepairComplete(s)}}},[e._v("完成维修")]),e._v(" "),0==s.orderStatue&&1==s.SHStatue&&e.isDelete?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]),e._v(" "),0==s.orderStatue&&e.isRejectRepair?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRejectRepair(s)}}},[e._v("报修驳回")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Create,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_Create=t}}},[a("div",{staticClass:"app-create"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.createTemp.repairCode,callback:function(t){e.$set(e.createTemp,"repairCode",t)},expression:"createTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:e.handleSelectEqName},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("名称:")]),a("span",[e._v(e._s(s.eqName))]),e._v(" \n | "),a("b",[e._v("规格:")]),a("span",[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:e.handleSelectEqCode},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"维修人",filterable:""},on:{change:e.changePickId},model:{value:e.createTemp.pickId,callback:function(t){e.$set(e.createTemp,"pickId",t)},expression:"createTemp.pickId"}},e._l(e.maintainers,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empNameAndmt,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-input",{ref:"details",model:{value:e.createTemp.details,callback:function(t){e.$set(e.createTemp,"details",t)},expression:"createTemp.details"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{disabled:""},model:{value:e.createTemp.deptName,callback:function(t){e.$set(e.createTemp,"deptName",t)},expression:"createTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterId"}},[a("el-select",{ref:"requesterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"报修人"},model:{value:e.createTemp.requesterId,callback:function(t){e.$set(e.createTemp,"requesterId",t)},expression:"createTemp.requesterId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"datetime",placeholder:"报修日期",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",disabled:""},model:{value:e.createTemp.requestTime,callback:function(t){e.$set(e.createTemp,"requestTime",t)},expression:"createTemp.requestTime"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Create=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.orderStatue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.seeTemp.repairCode,callback:function(t){e.$set(e.seeTemp,"repairCode",t)},expression:"seeTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickName"}},[a("el-input",{ref:"pickName",attrs:{disabled:""},model:{value:e.seeTemp.pickName,callback:function(t){e.$set(e.seeTemp,"pickName",t)},expression:"seeTemp.pickName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-input",{ref:"details",attrs:{disabled:""},model:{value:e.seeTemp.details,callback:function(t){e.$set(e.seeTemp,"details",t)},expression:"seeTemp.details"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterName"}},[a("el-input",{ref:"requesterName",attrs:{disabled:""},model:{value:e.seeTemp.requesterName,callback:function(t){e.$set(e.seeTemp,"requesterName",t)},expression:"seeTemp.requesterName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-input",{ref:"requestTime",attrs:{disabled:""},model:{value:e.seeTemp.requestTime,callback:function(t){e.$set(e.seeTemp,"requestTime",t)},expression:"seeTemp.requestTime"}})],1)],1)],1),e._v(" "),a("el-row",[3==e.seeTemp.orderStatue?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"驳回日期:",prop:"shutdownDate"}},[a("el-input",{ref:"shutdownDate",attrs:{disabled:""},model:{value:e.seeTemp.shutdownDate,callback:function(t){e.$set(e.seeTemp,"shutdownDate",t)},expression:"seeTemp.shutdownDate"}})],1)],1):e._e(),e._v(" "),3==e.seeTemp.orderStatue?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"驳回原因:",prop:"shutdownReason"}},[a("el-input",{ref:"shutdownReason",attrs:{disabled:""},model:{value:e.seeTemp.shutdownReason,callback:function(t){e.$set(e.seeTemp,"shutdownReason",t)},expression:"seeTemp.shutdownReason"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[2==e.seeTemp.SHStatue&&e.isMaintenanceAudit&&e.seeTemp.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("维修审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("主管审核")]),e._v(" "),0==e.seeTemp.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):e._e(),e._v(" "),0==e.seeTemp.orderStatue&&e.isReceipt&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):e._e(),e._v(" "),(1==e.seeTemp.orderStatue&&1==e.seeTemp.SHStatue||4==e.seeTemp.SHStatue||6==e.seeTemp.SHStatue)&&e.isMaintenanceRequisition&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]):a("el-button",{staticStyle:{display:"none"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]),e._v(" "),1!=e.seeTemp.orderStatue||1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue||!e.isRepairComplete||e.seeTemp.pickId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.orderStatue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("报修信息")])])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.seeTemp.repairCode,callback:function(t){e.$set(e.seeTemp,"repairCode",t)},expression:"seeTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickName"}},[a("el-input",{ref:"pickName",attrs:{disabled:""},model:{value:e.seeTemp.pickName,callback:function(t){e.$set(e.seeTemp,"pickName",t)},expression:"seeTemp.pickName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-input",{ref:"details",attrs:{disabled:""},model:{value:e.seeTemp.details,callback:function(t){e.$set(e.seeTemp,"details",t)},expression:"seeTemp.details"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterName"}},[a("el-input",{ref:"requesterName",attrs:{disabled:""},model:{value:e.seeTemp.requesterName,callback:function(t){e.$set(e.seeTemp,"requesterName",t)},expression:"seeTemp.requesterName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-input",{ref:"requestTime",attrs:{disabled:""},model:{value:e.seeTemp.requestTime,callback:function(t){e.$set(e.seeTemp,"requestTime",t)},expression:"seeTemp.requestTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("维修信息")])])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修日期:",prop:"stopTime"}},[a("el-input",{ref:"stopTime",attrs:{disabled:""},model:{value:e.seeTemp.stopTime,callback:function(t){e.$set(e.seeTemp,"stopTime",t)},expression:"seeTemp.stopTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("故障诊断")])])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingFault,expression:"listLoadingFault"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listFault,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情",prop:"appearanceName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appearanceName))])]}}],null,!1,2925555007)}),e._v(" "),a("el-table-column",{attrs:{label:"故障原因","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.failureCause))])]}}],null,!1,3309387047)}),e._v(" "),a("el-table-column",{attrs:{label:"处理方式",prop:"treatmentMethod",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.treatmentMethod))])]}}],null,!1,1693461789)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{staticStyle:{"font-size":"18px"},slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name))]),e._v(" "),a("div",[e._v(e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("h3",{staticStyle:{display:"inline"}},[e._v("操作")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isMaintenanceAudit&&e.seeTemp.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("维修审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("主管审核")]),e._v(" "),0==e.seeTemp.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):e._e(),e._v(" "),0==e.seeTemp.orderStatue&&e.isReceipt&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):e._e(),e._v(" "),(1==e.seeTemp.orderStatue&&1==e.seeTemp.SHStatue||4==e.seeTemp.SHStatue||6==e.seeTemp.SHStatue)&&e.isMaintenanceRequisition&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]),e._v(" "),1!=e.seeTemp.orderStatue||1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue||!e.isRepairComplete||e.seeTemp.pickId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")])],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}],null,!1,3010583487)}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",sortable:"",prop:"createDate",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate))])]}}],null,!1,1294251094)}),e._v(" "),a("el-table-column",{attrs:{label:"领用明细",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}],null,!1,1991972868)}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"110px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,0)}}},[e._v("查看")])]}}],null,!1,1307857253)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",sortable:"",prop:"acturalAmount","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_DistributeLeaflets,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_DistributeLeaflets=t}}},[a("div",{staticClass:"distributeLeaflets"},[a("el-form",{ref:"distributeLeafletsTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.distributeLeafletsTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"维修人"},on:{change:e.changePickId},model:{value:e.distributeLeafletsTemp.pickId,callback:function(t){e.$set(e.distributeLeafletsTemp,"pickId",t)},expression:"distributeLeafletsTemp.pickId"}},e._l(e.maintainers,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empNameAndmt,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"派单人:",prop:"chargeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"派单人"},model:{value:e.distributeLeafletsTemp.chargeId,callback:function(t){e.$set(e.distributeLeafletsTemp,"chargeId",t)},expression:"distributeLeafletsTemp.chargeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"派单日期:",prop:"chargeDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"派单日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.distributeLeafletsTemp.chargeDate,callback:function(t){e.$set(e.distributeLeafletsTemp,"chargeDate",t)},expression:"distributeLeafletsTemp.chargeDate"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createDistributeLeafletsData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_DistributeLeaflets=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_MaintenanceAudit,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_MaintenanceAudit=t}}},[a("div",{staticClass:"maintenanceAudit"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认维修审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:3,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.statue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"maintenanceAudit"===e.dialogStatus?e.createExamineData():e.createExamineData2()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_MaintenanceAudit=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_RepairComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_RepairComplete=t}}},[a("div",{staticClass:"repairComplete"},[a("el-form",{ref:"repairCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.repairCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.repairCompleteTemp.isOldProducts,callback:function(t){e.$set(e.repairCompleteTemp,"isOldProducts",t)},expression:"repairCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,2923556019),model:{value:e.repairCompleteTemp.partCode,callback:function(t){e.$set(e.repairCompleteTemp,"partCode",t)},expression:"repairCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createRepairCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_RepairComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_MaintenanceRequisition,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_MaintenanceRequisition=t}}},[a("div",{staticStyle:{position:"absolute",top:"12px",left:"120px",font:"18px/40px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.maintenanceRequisitionTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.maintenanceRequisitionTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"maintenanceRequisition",staticStyle:{width:"90%",margin:"0 auto"}},[a("el-tabs",{on:{"tab-click":e.tabMaintenance},model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"维修",name:"first"}},[a("el-form",{ref:"maintenanceRequisitionTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintenanceRequisitionTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修日期",prop:"repirsTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"维修日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},model:{value:e.maintenanceRequisitionTemp.repirsTime,callback:function(t){e.$set(e.maintenanceRequisitionTemp,"repirsTime",t)},expression:"maintenanceRequisitionTemp.repirsTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"newFault"},[a("el-form",{ref:"newFaultTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.newFaultTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障诊断:",prop:"positionId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"故障部位"},on:{change:e.changePosition},model:{value:e.newFaultTemp.positionId,callback:function(t){e.$set(e.newFaultTemp,"positionId",t)},expression:"newFaultTemp.positionId"}},e._l(e.positions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.positionName,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"故障详情"},on:{change:e.changeAppearance},model:{value:e.newFaultTemp.appearanceName,callback:function(t){e.$set(e.newFaultTemp,"appearanceName",t)},expression:"newFaultTemp.appearanceName"}},e._l(e.appearances,(function(e){return a("el-option",{key:e.id,attrs:{label:e.appearanceName,value:e.appearanceName}})})),1)],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listNewFault,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"90px",prop:"positionName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情","min-width":"60px",align:"center",prop:"appearanceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"appearanceName",model:{value:t.row.appearanceName,callback:function(a){e.$set(t.row,"appearanceName",a)},expression:"scope.row.appearanceName"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障原因","min-width":"60px",align:"center",prop:"failureCause"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"failureCause",model:{value:t.row.failureCause,callback:function(a){e.$set(t.row,"failureCause",a)},expression:"scope.row.failureCause"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理方式","min-width":"60px",align:"center",prop:"treatmentMethod"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"treatmentMethod",model:{value:t.row.treatmentMethod,callback:function(a){e.$set(t.row,"treatmentMethod",a)},expression:"scope.row.treatmentMethod"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.newFaultDelete(s)}}},[e._v("删除")])]}}])})],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleCollectionSparePartsCreate}},[e._v("添加领用单")]),e._v(" "),a("h4",[e._v("有库存领用")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",sortable:"",prop:"createDate","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用备件",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,0)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("h4",[e._v("无库存领用")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollectionSpareParts2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最新领用日期",sortable:"",prop:"createDate","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用备件",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,1)}}},[e._v("查看")])]}}])})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[e.rapairBtn?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintenanceRequisitionteData()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_MaintenanceRequisition=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_CollectionSparePartsSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_CollectionSparePartsSee=t}}},[a("div",{staticClass:"collectionSparePartsSee"},[a("el-form",{ref:"collectionSparePartsSeeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collectionSparePartsSeeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[1!==e.collectionSparePartsSeeTemp.isStock?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.applyCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"applyCode",t)},expression:"collectionSparePartsSeeTemp.applyCode"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.departmentName,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"departmentName",t)},expression:"collectionSparePartsSeeTemp.departmentName"}})],1)],1),e._v(" "),1!==e.collectionSparePartsSeeTemp.isStock?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-input",{ref:"createDate",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.createDate,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"createDate",t)},expression:"collectionSparePartsSeeTemp.createDate"}})],1)],1):e._e()],1),e._v(" "),e.isPartCode?a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"98%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),e._v("\n |  "),a("b",[e._v("库存:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.reportery))]),e._v("\n |  "),a("b",[e._v("是否零库存:")]),1==s.isZeroStock?a("span",{staticClass:"addr"},[e._v("是")]):a("span",{staticClass:"addr"},[e._v("否")])]}}],null,!1,3593575805),model:{value:e.collectionSparePartsSeeTemp.partCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"partCode",t)},expression:"collectionSparePartsSeeTemp.partCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"primary"},on:{click:e.handleAddSparePartsToBeCollected}},[e._v("添加待领用备件")])],1)],1):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listCreateCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",prop:"amount",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),1==e.collectionSparePartsSeeTemp.isStock?a("el-table-column",{attrs:{label:"领用时间",prop:"date",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}],null,!1,1531225394)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),1==e.collectionSparePartsSeeTemp.isStock?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"primary",on:{click:function(t){return e.handleViewProgress(s)}}},[e._v("查看进度")])]}}],null,!1,2379334314)}):e._e(),e._v(" "),e.isCreatePartDelete?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.createPartDelete(s)}}},[e._v("删除")])]}}],null,!1,39760972)}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[e.isPartCode?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createCollectionSparePartsData()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_CollectionSparePartsSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ViewProgress,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ViewProgress=t}}},[a("div",{staticClass:"viewProgress"},[a("el-form",{ref:"viewProgressTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.viewProgressTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"本次领用数量:",prop:"amountY"}},[a("span",[e._v(" "+e._s(e.numbersList.amountY)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"其他领用数量:",prop:"amountQT"}},[a("span",[e._v(" "+e._s(e.numbersList.amountQT)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"未出库数量:",prop:"amountLY"}},[a("span",[e._v(" "+e._s(e.numbersList.amountLY)+" ")])])],1)],1)],1),e._v(" "),a("h4",[e._v("申购情况:")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.purchaseapplicationList,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"90px",prop:"orderNumber",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"申购数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购时间",sortable:"",prop:"createTime",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门",prop:"deptName",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人",prop:"amount",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否配单",prop:"buyStatu",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyStatu))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号",prop:"matchCode",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])})],1),e._v(" "),a("h4",[e._v("采购情况:")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.procurementList,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"90px",prop:"buyeCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间",prop:"buyerDate",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyerDate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数量",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_ViewProgress=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.rejectRepair.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.rejectRepair,"dialogFormVisible",t)}}},[a("div",{staticClass:"maintenanceAudit"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请输入报修驳回原因:")]),e._v(" "),a("el-form",{ref:"rejectRepair",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.rejectRepair.temp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{prop:"shutdownReason"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入报修驳回原因"},model:{value:e.rejectRepair.temp.shutdownReason,callback:function(t){e.$set(e.rejectRepair.temp,"shutdownReason",t)},expression:"rejectRepair.temp.shutdownReason"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.rejectRepairData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.rejectRepair.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=(a("2f62"),a("6724")),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("a78e"),c=a.n(m),d={name:"Repair",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.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:!0,message:"必填",trigger:"blur"}],pickId:[{required:!0,message:"必填",trigger:"blur"}],chargeDate:[{required:!0,message:"必填",trigger:"blur"}],chargeId:[{required:!0,message:"必填",trigger:"blur"}],repirsTime:[{required:!0,message:"必填",trigger:"blur"}],positionId:[{required:!0,message:"必填",trigger:"blur"}],repairCode:[{required:!0,message:"必填",trigger:"blur"}],eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],deptName:[{required:!0,message:"必填",trigger:"blur"}],details:[{required:!0,message:"必填",trigger:"blur"}],shutdownReason:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getRepirsList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),repairCode:"",eqName:"",eqCode:"",orderStatue:"",SHStatue:"",inputDatetime:"",loginId:c.a.get("employeid"),menu:"Repair",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},isCanSubmit:!1,total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_Create:!1,createTemp:{pastureId:"",departmentId:"",eqId:"",eqCode:"",eqName:"",repairDept:"",details:"",requesterId:"",requestTime:Object(l["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),pickId:"",repairCode:"",deptName:""},requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},EqNameList:[],EqCodeList:[],getRepairNumberParm:{name:"autoCreatCode",parammaps:{pastureId:c.a.get("pastureid"),codeType:"BX"}},radioAll:"全部",dialogFormVisible_See:!1,dialogStatus:"",textMap:{create:"报修",see:"查看详情",distributeLeaflets:"派单",maintenanceAudit:"维修审核",maintenanceAudit2:"维修审核",repairComplete:"完成维修",maintenanceRequisition:"维修及领用",collectionSparePartsSee:"查看领用",collectionSparePartsCreate:"添加领用",ViewProgress:"查看进度",rejectRepair:"报修驳回",update:"修改报修"},activeList:[],active:3,seeTemp:{},activeName:"first",orderStatue1:!1,orderStatue2:!1,listLoadingFault:!1,listFault:[],getFaultListParm:{name:"getmaintainappearance",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,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:!1,listOldProducts:[],getOldProductsListParm:{name:"getMaintainRefuse",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialogFormVisible_DistributeLeaflets:!1,distributeLeafletsTemp:{repairDept:"",pickId:"",chargeId:this.$store.state.user.employeid,chargeDate:Object(l["e"])(new Date,"{y}-{m}-{d}")},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},receiptTemp:{},requestParam:{},maintainers:[],getRepirsEmpParm:{name:"getRepirsEmp",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},examineTemp:{statue:3},statueReason:!1,dialogFormVisible_MaintenanceAudit:!1,dialogFormVisible_RepairComplete:!1,repairCompleteTemp:{isOldProducts:0},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],postDataPramas:{},maintenanceRequisitionTemp:{repirsTime:""},dialogFormVisible_MaintenanceRequisition:!1,activeName2:"first",rowId:0,listNewFault:[],newFaultTemp:{},appearances:[],positions:[],getPositionsParm:{name:"geteqPosition",parammaps:{}},getAppearanceParm:{name:"getAppearancebyPid",parammaps:{}},rapairBtn:!0,listCollectionSpareParts:[],tableKey2:1,listCollectionSpareParts2:[],collectionSparePartsSeeTemp:{isStock:0},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY_m",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},addSparePartsToBeCollectedParam:{name:"getPartapply_mr",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},dialogFormVisible_CollectionSparePartsSee:!1,listCreateCollectionSpareParts:[],isCreatePartDelete:!1,isPartCode:!0,getCollarUseSeeParm:{name:"getpartapplyListBybig",parammaps:{}},getCollarUseSeeParm2:{name:"getpartapplyListBybig_m",parammaps:{}},dialogFormVisible_ViewProgress:!1,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:!1,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:!1,percentage:1,downLoadParm:{},downLoadList:[],resubmit:{}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{tableSort1:function(e){Object(l["f"])(e,this.listOldProducts)},tableSort2:function(e){Object(l["f"])(e,this.purchaseapplicationList)},tableSort3:function(e){Object(l["f"])(e,this.procurementList)},get_auto_buttons:function(){var e="maintenance:repair:baoxiu",t=Object(r["v"])(this.buttons,e);this.isRepair=t;var a="maintenance:repair:paidan",s=Object(r["v"])(this.buttons,a);this.isDistributeLeaflets=s;var i="maintenance:repair:jiedan",n=Object(r["v"])(this.buttons,i);this.isReceipt=n;var l="maintenance:repair:lingyong",o=Object(r["v"])(this.buttons,l);this.isMaintenanceRequisition=o;var p="maintenance:repair:weixiuwancheng",m=Object(r["v"])(this.buttons,p);this.isRepairComplete=m;var c="maintenance:repair:delete",d=Object(r["v"])(this.buttons,c);this.isDelete=d;var u="maintenance:repair:seeMaintenanceAudit",h=Object(r["v"])(this.buttons,u);this.isMaintenanceAudit=h;var g="maintenance:repair:see",f=Object(r["v"])(this.buttons,g);this.isMaintenanceSee=f;var b="maintenance:repair:shenhe2",v=Object(r["v"])(this.buttons,b);this.isMaintenanceAudit2=v;var y="maintenance:repair:rejectRepair",_=Object(r["v"])(this.buttons,y);this.isRejectRepair=_;var w="maintenance:repair:rejectExport",S=Object(r["v"])(this.buttons,w);this.isRepairExport=S,this.get_select_list(),this.get_table_data(),this.getPendingList()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart1.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getPendingList:function(){var e=this;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=c.a.get("employeid"),this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getRepirsList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),inputDatetime:"",loginId:c.a.get("employeid"),menu:"Repair",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===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:c.a.get("employeid"),menu:"Repair",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===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:c.a.get("employeid"),menu:"Repair",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},orderStatue:function(e){return 0==e.orderStatue?"待接单":1==e.orderStatue?"维修中":2==e.orderStatue?"维修完成":3==e.orderStatue?"已驳回":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||6==e.SHStatue?"未通过":5==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){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=Object(l["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),this.createTemp.pickId="",this.createTemp.repairCode="",this.createTemp.deptName="",this.createTemp.departmentId=""},changePickId:function(e){"create"==this.dialogStatus?this.createTemp.repairDept=this.maintainers.find((function(t){return t.id==e})).deptid:this.distributeLeafletsTemp.repairDept=this.maintainers.find((function(t){return t.id==e})).deptid},form_add:function(){this.dialogStatus="create",this.dialogFormVisible_Create=!0,this.resetCreateTemp(),this.getRepairNumber(),this.getRepirsEmp()},isToDayrResubmit:function(){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:Object(l["e"])(new Date,"{y}-{m}-{d}")}},getRepairNumber:function(){var e=this;Object(r["e"])(this.getRepairNumberParm).then((function(t){e.$nextTick((function(){console.log("新增报修单号",t.data.list[0].orderCode),e.createTemp.repairCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;this.isToDayrResubmit(),Object(r["e"])(this.resubmit).then((function(t){if(console.log("今天已提交,请勿重复提交",e.requestParam,e.resubmit,t),"fail"!==t.msg){if(t.data.total>0)return e.$notify({title:"提交失败",message:"今天已提交,请勿重复提交",type:"warning",duration:2e3}),e.isCanSubmit=!1,!1;e.isCanSubmit=!0,e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.$refs["createTemp"].validate((function(t){t&&(""==e.createTemp.repairCode||null==e.createTemp.repairCode||void 0==e.createTemp.repairCode?Object(r["e"])(e.getRepairNumberParm).then((function(t){e.$nextTick((function(){console.log("新增报修单号",t.data.list[0].orderCode),e.createTemp.repairCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))}else e.$notify({title:"请检查接口",message:"name: checkMaintain",type:"warning",duration:2e3})}))},add_dialog_saveSave:function(){var e=this;this.requestParam.name="insertmaintain",this.requestParam.parammaps=this.createTemp,Object(r["k"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Create=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){null!==e.data.list?(console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list):a.EqNameList=[],t(a.EqNameList)}))},handleSelectEqName:function(e){console.log("备件名称/设备内部编号模糊查询选中值",e),this.$set(this.createTemp,"eqCode",e.eqCode),this.$set(this.createTemp,"eqId",e.eqId),void 0!==e.deptName&&void 0!==e.departmentId?(this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"departmentId",e.departmentId)):(this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"departmentId","")),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){null!==e.data.list?(console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list):a.EqNameList=[],t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(this.createTemp,"eqName",e.eqName),this.$set(this.createTemp,"eqId",e.eqId),void 0!==e.deptName&&void 0!==e.departmentId?(this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"departmentId",e.departmentId)):(this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"departmentId","")),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";0===this.seeTemp.orderStatue?(this.activeList=[{title:"报修",date:this.seeTemp.requestTime,name:this.seeTemp.requesterName},{title:"维修接单"},{title:"完成维修"},{title:"使用人审核"},{title:"设备主管审核"}],this.active=1):3==this.seeTemp.orderStatue?(this.activeList=[{title:"报修",date:this.seeTemp.requestTime,name:this.seeTemp.requesterName},{title:"报修驳回",date:this.seeTemp.shutdownDate,name:this.seeTemp.shutdownPerson}],this.active=1):1===this.seeTemp.orderStatue&&1===this.seeTemp.SHStatue?(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):2===this.seeTemp.SHStatue?(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):3===this.seeTemp.SHStatue?(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:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(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,status:"error",reason:t},{title:"设备主管审核"}]):5===this.seeTemp.SHStatue?(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:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=5):6===this.seeTemp.SHStatue&&(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:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=5),this.seeTemp.requestTime=Object(l["e"])(this.seeTemp.requestTime,"{y}-{m}-{d}"),this.seeTemp.shutdownDate=Object(l["e"])(this.seeTemp.shutdownDate,"{y}-{m}-{d}"),this.seeTemp.orderTime=Object(l["e"])(this.seeTemp.orderTime,"{y}-{m}-{d}"),this.dialogStatus="see",this.dialogFormVisible_See=!0,0==e.orderStatue||3==e.orderStatue?(this.orderStatue1=!0,this.orderStatue2=!1):(this.orderStatue1=!1,this.orderStatue2=!0,this.getFaultList(),this.getOldProductsList(),this.getCollarUseList())},resetDistributeLeafletsTemp:function(){this.distributeLeafletsTemp.repairDept="",this.distributeLeafletsTemp.pickId="",this.distributeLeafletsTemp.chargeDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.distributeLeafletsTemp.chargeId=this.$store.state.user.employeid},handleDistributeLeaflets:function(e){this.distributeLeafletsTemp=void 0==e?this.seeTemp:Object.assign({},e),console.log("点击了派单"),this.dialogStatus="distributeLeaflets",this.dialogFormVisible_DistributeLeaflets=!0,this.resetDistributeLeafletsTemp(),this.getRepirsEmp()},changeMaintenanceTeam:function(e){console.log(e),this.getRepirsEmpParm.parammaps.deptid=e,this.createTemp.pickId="",this.distributeLeafletsTemp.pickId="",this.getRepirsEmp()},getRepirsEmp:function(){var e=this;Object(r["e"])(this.getRepirsEmpParm).then((function(t){console.log("维修人数据",t.data.list),e.maintainers=t.data.list}))},createDistributeLeafletsData:function(){var e=this;console.log("点击了派单确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["distributeLeafletsTemp"].validate((function(t){t&&(e.requestParam.name="setRepirsEmp",e.requestParam.parammaps=e.distributeLeafletsTemp,e.requestParam.parammaps.id=e.distributeLeafletsTemp.id,Object(r["k"])(e.requestParam).then((function(t){console.log("派单确认发送参数",e.requestParam),"fail"!==t.msg?(e.listLoading=!0,e.get_table_data(),e.dialogFormVisible_DistributeLeaflets=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"派单成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},getFaultList:function(){var e=this;this.listLoadingFault=!0,"repairComplete"==this.dialogStatus?this.getFaultListParm.parammaps.maintainId=this.repairCompleteTemp.id:this.getFaultListParm.parammaps.maintainId=this.seeTemp.id,Object(r["e"])(this.getFaultListParm).then((function(t){null!==t.data.list?(console.log("故障table数据",t.data.list),e.listFault=t.data.list):e.listFault=[],setTimeout((function(){e.listLoadingFault=!1}),100)}))},getCollarUseList:function(){var e=this;this.listLoadingCollarUse=!0,this.getCollarUseListParm.parammaps.RUCode=this.seeTemp.repairCode,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用记录table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},statue:function(e){return 0==e.statue?"未领用":1==e.statue?"已领用":void 0},getOldProductsList:function(){var e=this;this.listLoadingOldProducts=!0,this.getOldProductsListParm.parammaps.repairCode=this.seeTemp.repairCode,Object(r["e"])(this.getOldProductsListParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.seeTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),console.log("点击了维修审核"),this.dialogStatus="maintenanceAudit",this.dialogFormVisible_MaintenanceAudit=!0},changeStatue:function(e){this.statueReason=4==e},createExamineData:function(){var e=this;console.log("点击了维修审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.statue,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",3),this.$set(this.examineTemp,"workflowNote","")),console.log("点击了维修审核"),this.dialogStatus="maintenanceAudit2",this.dialogFormVisible_MaintenanceAudit=!0},createExamineData2:function(){var e=this;3==this.examineTemp.statue?(console.log("点击了维修审核确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了维修审核确认-未通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleReceipt:function(e){var t=this;this.receiptTemp=void 0==e?this.seeTemp:Object.assign({},e),p["MessageBox"].confirm("是否确认接单",{title:"接单",confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="takeRepirsEmp",t.requestParam.parammaps={},t.requestParam.parammaps.id=t.receiptTemp.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.getPendingList(),t.dialogFormVisible_See=!1,t.$notify({title:"成功",message:"接单成功",type:"success",duration:2e3})):Object(r["w"])(e,t.$notify)}))}))},handleRepairComplete:function(e){console.log("点击了完成维修",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.repairCompleteTemp=this.seeTemp):(this.repairCompleteTemp=Object.assign({},e),this.$set(this.repairCompleteTemp,"isOldProducts",0)),this.No2=!1,this.dialogStatus="repairComplete",this.dialogFormVisible_RepairComplete=!0,this.getFaultList()},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},createRepairCompleteData:function(){var e=this;console.log("点击了完成维修确认"),this.listFault.length>0?0==this.repairCompleteTemp.laidcou?0==this.repairCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeRepirs",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.repairCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_RepairComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["repairCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:e.repairCompleteTemp.pastureId,deptId:e.repairCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.repairCompleteTemp.eqId,eqCode:e.repairCompleteTemp.eqCode,eqName:e.repairCompleteTemp.eqName,repairCode:e.repairCompleteTemp.repairCode,listType:0}},e.postDataPramas.data[1]={name:"completeRepirs",type:"e",parammaps:{id:e.repairCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.listAdd=[],e.dialogFormVisible_RepairComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成维修",type:"warning",duration:2e3}):this.$message({type:"warning",message:"请完善故障信息!"})},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps["partCode"]=e,this.requestOldProducts.parammaps["RUCode"]=this.repairCompleteTemp.repairCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.repairCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},handleMaintenanceRequisition:function(e){console.log("点击了维修及领用"),void 0==e?(this.maintenanceRequisitionTemp=this.seeTemp,this.$set(this.maintenanceRequisitionTemp,"repirsTime",Object(l["e"])(new Date,"{y}-{m}-{d}"))):(this.maintenanceRequisitionTemp=Object.assign({},e),this.$set(this.maintenanceRequisitionTemp,"repirsTime",Object(l["e"])(new Date,"{y}-{m}-{d}"))),this.dialogStatus="maintenanceRequisition",this.dialogFormVisible_MaintenanceRequisition=!0,this.getNewFaultList(),this.getPosition(),this.getCollectionSpareParts(),this.getCollectionSpareParts2()},getNewFaultList:function(){var e=this;this.listLoadingFault=!0,this.getFaultListParm.parammaps.maintainId=this.maintenanceRequisitionTemp.id,Object(r["e"])(this.getFaultListParm).then((function(t){console.log("故障table数据",t.data.list),null!==t.data.list?e.listNewFault=t.data.list:e.listNewFault=[],setTimeout((function(){e.listLoadingFault=!1}),100)}))},getNewCollarUseList:function(){var e=this;this.listLoadingCollarUse=!0,this.getCollarUseListParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用记录table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},tabMaintenance:function(e,t){console.log(e.name),"first"==e.name?this.rapairBtn=!0:this.rapairBtn=!1},getPosition:function(){var e=this;this.getPositionsParm.parammaps.eqId=this.maintenanceRequisitionTemp.eqId,Object(r["e"])(this.getPositionsParm).then((function(t){console.log("故障部位数据",t.data.list),e.positions=t.data.list}))},changePosition:function(e){console.log("故障部位输入值",e),console.log(this.positions.find((function(t){return t.id==e})).positionName),this.newFaultTemp.positionName=this.positions.find((function(t){return t.id==e})).positionName,this.getAppearanceParm.parammaps.id=e,this.getAppearance()},getAppearance:function(){var e=this;Object(r["e"])(this.getAppearanceParm).then((function(t){console.log("故障详情数据",t.data.list),e.appearances=t.data.list}))},changeAppearance:function(e){console.log("故障详情输入值",e),""==this.newFaultTemp.positionId&&this.$message({type:"warning",message:"请选择故障部位"}),null==this.listNewFault?(this.listNewFault=[],this.listNewFault.push({rowId:this.rowId++,positionId:this.newFaultTemp.positionId,positionName:this.newFaultTemp.positionName,appearanceName:e,failureCause:this.newFaultTemp.failureCause,treatmentMethod:this.newFaultTemp.treatmentMethod}),this.newFaultTemp={},this.appearances=[]):(this.listNewFault.push({rowId:this.rowId++,positionId:this.newFaultTemp.positionId,positionName:this.newFaultTemp.positionName,appearanceName:e,failureCause:this.newFaultTemp.failureCause,treatmentMethod:this.newFaultTemp.treatmentMethod}),this.newFaultTemp={},this.appearances=[])},newFaultDelete:function(e){var t=this;console.log(e),p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listNewFault.length;a++){if(console.log(t.listNewFault[a]),t.listNewFault[a].rowId===e.rowId)var s=t.listNewFault.indexOf(t.listNewFault[a]);if(s>-1)return void t.listNewFault.splice(s,1)}}))},createMaintenanceRequisitionteData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintenanceRequisitionTemp"].validate((function(t){if(t){if(console.log(e.newFaultTemp.positionId),0==e.listNewFault.length)return e.$notify({title:"",message:"请输入故障诊断",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listNewFault.length;a++)if(""==e.listNewFault[a].failureCause||void 0==e.listNewFault[a].failureCause)return e.$notify({title:"",message:"请输入故障原因",type:"warning",duration:2e3}),!1;if(0===e.listNewFault.length)return e.$notify({title:"",message:"请选择故障",type:"warning",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"deleteMaintainAppearance",type:"e",parammaps:{maintainId:e.maintenanceRequisitionTemp.id}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listNewFault}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertMaintainAppearance",type:"e",parammaps:{appearanceName:"@insertSpotList.appearanceName",positionId:"@insertSpotList.positionId",positionName:"@insertSpotList.positionName",repirsTime:e.maintenanceRequisitionTemp.repirsTime,maintainId:e.maintenanceRequisitionTemp.id,failureCause:"@insertSpotList.failureCause",treatmentMethod:"@insertSpotList.treatmentMethod"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("维修及领用-维修确认保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceRequisition=!1,e.dialogFormVisible_See=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},getCollectionSpareParts:function(){var e=this;this.getCollarUseListParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("备件领用table数据",t.data.list),e.listCollectionSpareParts=t.data.list}))},getCollectionSpareParts2:function(){var e=this;this.getCollarUseListParm2.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.getCollarUseListParm2).then((function(t){console.log("备件领用无库存table数据",t.data.list),e.listCollectionSpareParts2=t.data.list}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:e.applyCode}})},handleCollarUseSee:function(e,t){this.collectionSparePartsSeeTemp=Object.assign({},e),this.dialogStatus="collectionSparePartsSee",this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!1,this.isPartCode=!1,0==t?(this.collectionSparePartsSeeTemp.isStock=0,this.getCollarUseSeeList()):1==t&&(this.collectionSparePartsSeeTemp.isStock=1,this.getCollarUseSeeList2())},getCollarUseSeeList:function(){var e=this;this.getCollarUseSeeParm.parammaps.id=this.collectionSparePartsSeeTemp.id,Object(r["e"])(this.getCollarUseSeeParm).then((function(t){e.listCreateCollectionSpareParts=t.data.list}))},getCollarUseSeeList2:function(){var e=this;this.getCollarUseSeeParm2.parammaps.bigId=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.getCollarUseSeeParm2).then((function(t){e.listCreateCollectionSpareParts=t.data.list}))},handleCollectionSparePartsCreate:function(){this.collectionSparePartsSeeTemp=this.maintenanceRequisitionTemp,this.collectionSparePartsSeeTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.dialogStatus="collectionSparePartsCreate",this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!0,this.listCreateCollectionSpareParts=[],this.isPartCode=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.collectionSparePartsSeeTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCreateCollectionSpareParts.length>0&&this.listCreateCollectionSpareParts.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCreateCollectionSpareParts.unshift(e)},handleAddSparePartsToBeCollected:function(){var e=this;console.log("添加待领用备件"),this.addSparePartsToBeCollectedParam.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.addSparePartsToBeCollectedParam).then((function(t){null==t.data.list?e.$message({type:"warning",message:"无可添加待领用备件"}):e.listCreateCollectionSpareParts.length>0?(console.log(e.filtersArr(e.listCreateCollectionSpareParts,t.data.list)),e.listCreateCollectionSpareParts=e.filtersArr(e.listCreateCollectionSpareParts,t.data.list)):e.listCreateCollectionSpareParts=t.data.list}))},filtersArr:function(e,t){for(var a=0;a<e.length;a++)for(var s=0;s<t.length;s++)e[a].partId==t[s].partId&&(e[a]=t[s],t.splice(s,1));return e.concat(t)},createPartDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCreateCollectionSpareParts.length;a++){if(console.log(t.listCreateCollectionSpareParts[a]),t.listCreateCollectionSpareParts[a].id===e.id)var s=t.listCreateCollectionSpareParts.indexOf(t.listCreateCollectionSpareParts[a]);if(s>-1)return void t.listCreateCollectionSpareParts.splice(s,1)}}))},handleViewProgress:function(e){console.log("查看进度",e),console.log(this.maintenanceRequisitionTemp),this.viewProgressTemp=Object.assign({},e),this.dialogStatus="ViewProgress",this.dialogFormVisible_ViewProgress=!0,this.getNumbers(),this.getPurchaseapplicationList(),this.getProcurementList()},getNumbers:function(){var e=this;this.getNumbersParm.parammaps.contractId=this.viewProgressTemp.contractId,this.getNumbersParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(r["e"])(this.getNumbersParm).then((function(t){e.numbersList=t.data.list[0]}))},getPurchaseapplicationList:function(){var e=this;this.getPurchaseapplicationParm.parammaps.createDate=this.viewProgressTemp.date,this.getPurchaseapplicationParm.parammaps.partCode=this.viewProgressTemp.partCode,this.getPurchaseapplicationParm.parammaps.pastureId=this.viewProgressTemp.pastureId,Object(r["e"])(this.getPurchaseapplicationParm).then((function(t){null!==t.data.list?e.purchaseapplicationList=t.data.list:e.purchaseapplicationList=[]}))},getProcurementList:function(){var e=this;this.getProcurementParm.parammaps.createDate=this.viewProgressTemp.date,this.getProcurementParm.parammaps.partCode=this.viewProgressTemp.partCode,this.getProcurementParm.parammaps.pastureId=this.viewProgressTemp.pastureId,Object(r["e"])(this.getProcurementParm).then((function(t){null!==t.data.list?e.procurementList=t.data.list:e.procurementList=[]}))},createCollectionSparePartsData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["collectionSparePartsSeeTemp"].validate((function(t){if(t){if(0===e.listCreateCollectionSpareParts.length)return e.$notify({title:"",type:"warning",message:"请选择备件",duration:2e3}),!1;for(var a=0;a<e.listCreateCollectionSpareParts.length;a++){if(console.log(e.listCreateCollectionSpareParts[a].amount),void 0!==e.listCreateCollectionSpareParts[a].amount&&""!==e.listCreateCollectionSpareParts[a].amount){var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(s.test(e.listCreateCollectionSpareParts[a].amount)){for(var i=[],n=[],l=[],o=[],p=0;p<e.listCreateCollectionSpareParts.length;p++){var m={},c={};m.amount=e.listCreateCollectionSpareParts[p].amount,m.bigId=e.listCreateCollectionSpareParts[p].bigId,m.brand=e.listCreateCollectionSpareParts[p].brand,m.brandId=e.listCreateCollectionSpareParts[p].brandId,m.contractId=e.listCreateCollectionSpareParts[p].contractId,m.enable=e.listCreateCollectionSpareParts[p].enable,m.id=e.listCreateCollectionSpareParts[p].id,m.inventoryType=e.listCreateCollectionSpareParts[p].inventoryType,m.isZeroStock=e.listCreateCollectionSpareParts[p].isZeroStock,m.partCode=e.listCreateCollectionSpareParts[p].partCode,m.partId=e.listCreateCollectionSpareParts[p].partId,m.partName=e.listCreateCollectionSpareParts[p].partName,m.partRepId=e.listCreateCollectionSpareParts[p].partRepId,m.pastureId=e.listCreateCollectionSpareParts[p].pastureId,m.pastureName=e.listCreateCollectionSpareParts[p].pastureName,m.planAmount=e.listCreateCollectionSpareParts[p].planAmount,m.price=e.listCreateCollectionSpareParts[p].price,m.providerId=e.listCreateCollectionSpareParts[p].providerId,m.providerName=e.listCreateCollectionSpareParts[p].providerName,m.remark=e.listCreateCollectionSpareParts[p].remark,m.reportery=e.listCreateCollectionSpareParts[p].reportery,m.specification=e.listCreateCollectionSpareParts[p].specification,m.unit=e.listCreateCollectionSpareParts[p].unit,m.prid=e.listCreateCollectionSpareParts[p].prid,m.mr=e.listCreateCollectionSpareParts[p].mr,m.locationId=e.listCreateCollectionSpareParts[p].locationId,l.push(m),c.amount=e.listCreateCollectionSpareParts[p].amount,c.bigId=e.listCreateCollectionSpareParts[p].bigId,c.brand=e.listCreateCollectionSpareParts[p].brand,c.brandId=e.listCreateCollectionSpareParts[p].brandId,c.contractId=e.listCreateCollectionSpareParts[p].contractId,c.enable=e.listCreateCollectionSpareParts[p].enable,c.id=e.listCreateCollectionSpareParts[p].id,c.inventoryType=e.listCreateCollectionSpareParts[p].inventoryType,c.isZeroStock=e.listCreateCollectionSpareParts[p].isZeroStock,c.partCode=e.listCreateCollectionSpareParts[p].partCode,c.partId=e.listCreateCollectionSpareParts[p].partId,c.partName=e.listCreateCollectionSpareParts[p].partName,c.partRepId=e.listCreateCollectionSpareParts[p].partRepId,c.pastureId=e.listCreateCollectionSpareParts[p].pastureId,c.pastureName=e.listCreateCollectionSpareParts[p].pastureName,c.planAmount=e.listCreateCollectionSpareParts[p].planAmount,c.price=e.listCreateCollectionSpareParts[p].price,c.providerId=e.listCreateCollectionSpareParts[p].providerId,c.providerName=e.listCreateCollectionSpareParts[p].providerName,c.remark=e.listCreateCollectionSpareParts[p].remark,c.reportery=e.listCreateCollectionSpareParts[p].reportery,c.specification=e.listCreateCollectionSpareParts[p].specification,c.unit=e.listCreateCollectionSpareParts[p].unit,c.prid=e.listCreateCollectionSpareParts[p].prid,m.mr=e.listCreateCollectionSpareParts[p].mr,c.locationId=e.listCreateCollectionSpareParts[p].locationId,o.push(c)}for(var d=0;d<l.length;d++)if(parseFloat(l[d].amount)>parseFloat(l[d].reportery)){var u=String(parseFloat(l[d].amount)-parseFloat(l[d].reportery));l[d].amount=u,i.push(l[d]),parseFloat(l[d].reportery)>0&&(o[d].amount=String(o[d].reportery),n.push(o[d]))}else n.push(l[d]);console.log(e.listCreateCollectionSpareParts,"this.listCreateCollectionSpareParts"),console.log(i,">库存listCreateCollectionSpareParts1"),console.log(n,"<=库存listCreateCollectionSpareParts2");for(var h=0,g=0;g<n.length;g++)h+=parseFloat(n[g].price)*parseFloat(n[g].amount);return e.collectionSparePartsSeeTemp.SHStatus=h>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList3",resultmaps:{list:e.listCreateCollectionSpareParts}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePartapplyuseAmount_m",type:"e",parammaps:{amount:"@insertSpotList3.amount",paid:"@insertSpotList3.contractId",RUCode:e.collectionSparePartsSeeTemp.repairCode}},e.postDataPramas.data[1]={name:"insertBigpartapply_m",type:"e",parammaps:{pastureId:e.collectionSparePartsSeeTemp.pastureId,applyCode:e.collectionSparePartsSeeTemp.applyCode,applyType:1,departmentId:e.collectionSparePartsSeeTemp.departmentId,empId:e.collectionSparePartsSeeTemp.pickId,applyDate:e.collectionSparePartsSeeTemp.createDate,RUCode:e.collectionSparePartsSeeTemp.repairCode}},e.postDataPramas.data[2]={name:"insertSpotList2",resultmaps:{list:i}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertpartapply_m",type:"e",parammaps:{bigId:e.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:e.collectionSparePartsSeeTemp.eqName,eqCode:e.collectionSparePartsSeeTemp.eqCode,providerId:"@insertSpotList2.providerId",note:"@insertSpotList2.note",reportery:"@insertSpotList2.reportery",contractId:"@insertSpotList2.contractId"}},n.length>0&&(e.postDataPramas.data[3]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.collectionSparePartsSeeTemp.pastureId,applyCode:e.collectionSparePartsSeeTemp.applyCode,applyType:1,departmentId:e.collectionSparePartsSeeTemp.departmentId,empId:e.collectionSparePartsSeeTemp.pickId,applyDate:e.collectionSparePartsSeeTemp.createDate,RUCode:e.collectionSparePartsSeeTemp.repairCode,SHStatus:e.collectionSparePartsSeeTemp.SHStatus}},e.postDataPramas.data[4]={name:"insertSpotList",resultmaps:{list:n}},e.postDataPramas.data[4].children=[],e.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:e.collectionSparePartsSeeTemp.eqName,eqCode:e.collectionSparePartsSeeTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}}),Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_CollectionSparePartsSee=!1,e.getCollectionSpareParts(),e.getCollectionSpareParts(),e.getCollectionSpareParts2(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1}return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1}}}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMaintain",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(r["w"])(e,t.$notify)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleRejectRepair:function(e){console.log("报修驳回"),this.rejectRepair.temp=Object.assign({},e),this.dialogStatus="rejectRepair",this.rejectRepair.dialogFormVisible=!0},rejectRepairData:function(){var e=this;console.log("报修驳回确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["rejectRepair"].validate((function(t){t&&(e.requestParam.name="updateMaintain",e.requestParam.parammaps={},e.requestParam.parammaps.shutdownPerson=c.a.get("employeid"),e.requestParam.parammaps.id=e.rejectRepair.temp.id,e.requestParam.parammaps.shutdownReason=e.rejectRepair.temp.shutdownReason,Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.rejectRepair.dialogFormVisible=!1,e.$notify({title:"成功",message:"驳回成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleDownload:function(){var e=this;this.$alert("设备维修正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm={},this.downLoadParm.name="loadRepirsList",this.downLoadParm.offset=0,this.downLoadParm.page=1,this.downLoadParm.returntype="Map",void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){if(null!==t.data.list&&""!==t.data.list)for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","待接单"):1==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","维修中"):2==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","维修完成"):3==t.data.list[a].orderStatue&&e.$set(t.data.list[a],"orderStatue","已驳回"),1==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue",""):2==t.data.list[a].SHStatue||3==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue","审核中"):4==t.data.list[a].SHStatue||6==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue","未通过"):5==t.data.list[a].SHStatue&&e.$set(t.data.list[a],"SHStatue","已通过");else t.data.list=[];e.downLoadList=t.data.list,console.log(e.downLoadList),""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var s=[{tHeader:["报修单号","牧场","设备内部编号","设备名称","规格型号","部门","故障情况","报修人","报修时间","维修日期","维修部门","处理状态","领用单状态","旧品录入状态","审核状态","故障部位","故障详情","故障原因","处理方式"],filterVal:["repairCode","pastureName","eqCode","eqName","specification","departmentName","details","requesterName","requestTime","stopTime","repairDeptName","orderStatue","LYStatue","LRStatue","SHStatue","positionName","appearanceName","failureCause","treatmentMethod"],tableDatas:e.downLoadList,sheetName:"设备维修"}];Object(l["d"])(s,"设备维修",!0,"xlsx")}))}}},u=d,h=(a("ab21"),a("43ae"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"0af0f286",null);t["default"]=g.exports},"41e7":function(e,t,a){},"41fe":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{staticClass:"filter-item",attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"费用分类"},on:{change:e.changeCost},model:{value:e.cost,callback:function(t){e.cost=t},expression:"cost"}},e._l(e.costList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团"+e._s(e.costTypeName)+":"+e._s(e.totaltitle)+"万元\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1),e._v(" "),a("el-dialog",{attrs:{title:"详情",visible:e.dialogFormVisibleCard,width:"90%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"rowSeeData",staticStyle:{width:"100%",margin:"0 auto"},attrs:{model:e.rowSeeData,"label-position":"right","label-width":"120px"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSee.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"eqName",t)},expression:"getdataListParmSee.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSee.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"assetCode",t)},expression:"getdataListParmSee.parammaps.assetCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"领用开始日期","end-placeholder":"领用结束日期"},model:{value:e.getdataListParmSee.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"inputDatetime",t)},expression:"getdataListParmSee.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadDelivery}},[e._v("导出")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqSpecification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>=0,expression:"totalSee>=0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7f7f"),a("ac6a"),a("313e")),n=a.n(r),l=a("6724"),o=a("333d"),p=a("2934"),m=a("ed08"),c=a("a78e"),d=a.n(c);a("817d");var u={name:"QueryRepair",directives:{waves:l["a"]},components:{Pagination:o["a"]},data:function(){return{yearDate:new Date,cost:"",totaltitle:0,costTypeName:"所有维修费",costList:[{id:"",name:"全部费用"},{id:"挤奶处",name:"直接费用"},{id:"牧场办公室",name:"管理费用"},{id:1,name:"制造费用"}],pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"getpSumNow",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonth",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDay",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonth",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonth",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null,total:0,listLoading:!0,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogFormVisibleCard:!1,listLoadingSee:!0,rowSeeData:{},listSee:[],totalSee:0,getdataListParmSee:{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid"),pastureName:d.a.get("pasturename")}},buttons:[],isBarChart1:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1Parm.parammaps.departmentName=this.cost,this.getLineChart1Parm.parammaps.departmentName=this.cost,this.getLineChart2Parm.parammaps.departmentName=this.cost,this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1(),this.getBarChart2()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(p["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryRepair:pastures",t=Object(p["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(p["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.totaltitle=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(p["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.year)}))},getPieChart1:function(){var e=this;Object(p["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(p["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度维修费用对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],right:40,x:"right"},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年维修费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getdataListParmSee.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=n.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月维修费用对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年维修费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name,i.getdataListParmSee.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=n.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"年每月单头牛维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年维修费用","去年同期维修费用"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"日期",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}"}}],series:[{name:"今年维修费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期维修费用",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=n.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40,x:"right"},color:["#42b983","#769cfc","#FFB800","#fb9999","#ba99fb","#99fbf2","#b5ffc5","#edffb5","#ff9d6e","#897cf3"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{label:{show:!0,position:"inside"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getdataListParmSee.parammaps.deptName=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var a={title:{text:t+"维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["维修费用"],x:"right"},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"12%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"设备类别",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元",axisLabel:{formatter:"{value}"}}],series:[{name:"维修费用",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()};var s=this;s.barChart2.on("click",(function(e,t){console.log(e),s.getdataListParmSee.parammaps.typeName=e.name,s.getdataListParmSee.offset=1,s.get_table_dataSee(),s.dialogFormVisibleCard=!0}))},form_searchDelivery:function(){null==this.getdataListParmSee.parammaps.inputDatetime&&(this.getdataListParmSee.parammaps.startTime="",this.getdataListParmSee.parammaps.stopTime=""),this.getdataListParmSee.offset=1,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;void 0!==this.getdataListParmSee.parammaps.inputDatetime&&null!==this.getdataListParmSee.parammaps.inputDatetime?(this.getdataListParmSee.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParmSee.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParmSee.parammaps.startTime="",this.getdataListParmSee.parammaps.stopTime=""),Object(p["e"])(this.getdataListParmSee).then((function(t){e.listSee=t.data.list,console.log("记录列表数据",t.data.list),e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))},handleDownloadDelivery:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="geteqclassSumDay",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParmSee.parammaps,Object(p["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["资产编号","设备名称","设备内部编号","设备规格","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["assetCode","eqName","eqCode","eqSpecification","receiveTime","deptName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList,sheetName:"设备维修费用"}];Object(m["d"])(a,"设备维修费用",!0,"xlsx")}))}))},changeCost:function(e){console.log(e),"挤奶处"==e?this.costTypeName="直接维修费":"牧场办公室"==e?this.costTypeName="管理维修费":1==e?this.costTypeName="制造维修费":""==e?(this.costTypeName="所有维修费",this.cost=""):this.costTypeName="所有维修费",this.getBarChart1Parm.parammaps.departmentName=this.cost,this.getLineChart1Parm.parammaps.departmentName=this.cost,this.getLineChart2Parm.parammaps.departmentName=this.cost,this.getBarChart1(),this.getLineChart1(),this.getLineChart2()}}},h=u,g=(a("26b9"),a("bd38"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"59db7a10",null);t["default"]=f.exports},4233:function(e,t,a){"use strict";a("ae0f")},"429e":function(e,t,a){},"42ad":function(e,t,a){"use strict";a("10c9")},"42ed":function(e,t,a){"use strict";a("3d77")},"432a":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-维修周期效率统计",use:"icon-维修周期效率统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-维修周期效率统计"><defs><style type="text/css"></style></defs><path d="M583.5 604.4H440.1c-8.2 0-14.8-6.6-14.8-14.8v-40.9l-57.8-57.8c-2.8-2.8-4.4-6.5-4.4-10.5v-96.5c0-4 1.6-7.8 4.5-10.6l49.9-48.9c2.8-2.8 6.5-4.3 10.4-4.3h24.9c8.2 0 14.8 6.6 14.8 14.8v53.5l43.3 33 44.2-35.9v-50.7c0-8.2 6.6-14.8 14.8-14.8h25.8c4.4 0 8.4 1.9 11.3 5.1l48.6 56.3c2.4 2.7 3.6 6.1 3.6 9.7v91.7c0 4-1.6 7.7-4.4 10.5l-56.6 56.6v39.7c0.1 8.2-6.5 14.8-14.7 14.8zM455 574.7h113.6v-31c0-4 1.6-7.7 4.4-10.5l56.6-56.6v-80l-40.6-47h-4.3v43c0 4.5-2 8.7-5.4 11.5l-58.8 47.7c-5.3 4.4-12.9 4.5-18.4 0.3l-58.5-44.6c-3.7-2.8-5.8-7.1-5.8-11.8v-46.1h-4.1l-41 40.3v84.3l57.8 57.8c2.8 2.8 4.4 6.5 4.4 10.5l0.1 32.2z" fill="" p-id="5134" /><path d="M859.9 522.9V196.7c0-14-9.8-26.1-23.4-29l-302.1-64.5c-19.7-5.9-35.5-3-43.1-0.7L186 167.7c-13.6 3-23.4 15-23.4 29v326.2c-0.1 6.9 0.5 67.4 40.9 144.7 24.1 46.4 57.9 89.8 100.1 129.2 52 48.6 117.3 91 194 126.1 4.1 1.9 8.2 2.7 12.4 2.7 0.5 0 1 0 1.5-0.1 0.5 0 1 0.1 1.5 0.1 4.2 0 8.3-0.9 12.4-2.7 76.7-35.2 141.9-77.6 194-126.1 42.2-39.4 75.9-82.9 100.1-129.2 39.9-77.3 40.5-137.7 40.4-144.7z m-95.3 120.8C717.7 731.4 630.2 807.4 511.2 864c-119-56.7-206.4-132.6-253.4-220.3-35.5-66.4-35.9-117.4-35.9-119.9v-303L509 159.5c0.8-0.2 1.5-0.4 2.2-0.6 0.7 0.2 1.5 0.4 2.2 0.6l287.1 61.2V523.8c0 2.4-0.4 53.4-35.9 119.9z" fill="" p-id="5135" /></symbol>'});n.a.add(l);t["default"]=l},4360:function(e,t,a){"use strict";a("a481"),a("ac6a");var s=a("2b0e"),i=a("2f62"),r=(a("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},buttons:function(e){return e.user.buttons},pastureid:function(e){return e.user.pastureid},pasturename:function(e){return e.user.pasturename},pasturenumber:function(e){return e.user.pasturenumber},employename:function(e){return e.user.employename},employeid:function(e){return e.user.employeid},depids:function(e){return e.user.depids},departmentid:function(e){return e.user.departmentid},departmentname:function(e){return e.user.departmentname},sumamount:function(e){return e.user.sumamount},meslist:function(e){return e.user.meslist},permission_routes:function(e){return e.permission.routes},isHomePage:function(e){return e.user.isHomePage}}),n=r;s["default"].use(i["a"]);var l=a("c653"),o=l.keys().reduce((function(e,t){var a=t.replace(/^\.\/(.*)\.\w+$/,"$1"),s=l(t);return e[a]=s.default,e}),{}),p=new i["a"].Store({modules:o,getters:n});t["a"]=p},4361:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备维保",use:"icon-设备维保-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备维保"><defs><style type="text/css"></style></defs><path d="M462.336 810.296889v54.101333a9.102222 9.102222 0 0 1-1.991111 5.575111 7.623111 7.623111 0 0 1-4.835556 3.157334l-45.112889 6.826666c-3.100444 8.760889-6.257778 16.156444-9.500444 22.186667 5.688889 8.163556 14.421333 19.342222 26.112 33.649778 1.649778 1.991111 2.474667 3.982222 2.474667 6.144a7.68 7.68 0 0 1-2.247111 5.546666c-4.380444 6.058667-12.401778 14.791111-24.092445 26.368-11.690667 11.491556-19.342222 17.351111-22.869333 17.351112a11.576889 11.576889 0 0 1-6.371556-2.275556l-33.649778-26.311111a138.808889 138.808889 0 0 1-22.186666 9.244444c-2.616889 22.101333-4.949333 37.205333-7.054222 45.312-1.137778 4.551111-4.039111 6.826667-8.760889 6.826667H248.120889a9.159111 9.159111 0 0 1-5.944889-2.048 7.196444 7.196444 0 0 1-2.816-5.205333l-6.855111-44.942223a154.282667 154.282667 0 0 1-21.959111-8.96l-34.332445 26.112a8.903111 8.903111 0 0 1-12.288-0.426666c-20.423111-18.488889-33.848889-32.199111-40.220444-40.96a9.642667 9.642667 0 0 1-1.706667-5.546667c0-1.991111 0.682667-3.783111 1.991111-5.575111 2.474667-3.413333 6.542222-8.817778 12.401778-16.213333 5.831111-7.367111 10.24-13.084444 13.141333-17.152a120.32 120.32 0 0 1-10.012444-24.092445l-44.600889-6.542222a7.338667 7.338667 0 0 1-5.12-3.043556 9.500444 9.500444 0 0 1-1.934222-5.774222v-54.272c0-1.962667 0.654222-3.783111 1.962667-5.575111a7.566222 7.566222 0 0 1 4.579555-3.157333l45.283556-6.826667c2.304-7.509333 5.432889-14.990222 9.500444-22.442667a542.208 542.208 0 0 0-26.112-33.621333 9.159111 9.159111 0 0 1-2.474667-5.859555c0-1.649778 0.711111-3.498667 2.275556-5.575112 4.181333-5.831111 12.145778-14.535111 23.921778-26.168888 11.804444-11.662222 19.484444-17.493333 23.04-17.493334a10.24 10.24 0 0 1 6.371555 2.503111l33.621334 26.112c7.111111-3.754667 14.563556-6.826667 22.186666-9.272889 2.616889-22.101333 4.949333-37.205333 7.054223-45.312 1.137778-4.551111 4.039111-6.826667 8.760888-6.826666h54.101334c2.275556 0 4.266667 0.711111 5.944889 2.076444 1.678222 1.336889 2.616889 3.128889 2.787555 5.176889l6.826667 44.828445c7.964444 2.616889 15.274667 5.575111 21.959111 8.988444l34.588444-26.112a7.964444 7.964444 0 0 1 5.831112-2.247111c2.104889 0 4.181333 0.796444 6.144 2.474667 20.963556 19.342222 34.332444 33.194667 40.248888 41.415111 1.137778 1.28 1.678222 3.100444 1.678223 5.404444a9.102222 9.102222 0 0 1-1.991111 5.546667c-2.446222 3.413333-6.542222 8.817778-12.373334 16.213333-5.859556 7.395556-10.24 13.084444-13.141333 17.152 4.209778 8.135111 7.509333 16.099556 10.012444 23.864889l44.572445 6.826667c2.104889 0.284444 3.811556 1.308444 5.12 3.043555a8.817778 8.817778 0 0 1 2.190222 5.802667z m-134.286222 79.672889a72.248889 72.248889 0 0 0 21.930666-52.935111c0-20.679111-7.338667-38.286222-21.930666-52.935111a72.419556 72.419556 0 0 0-52.963556-21.902223c-20.650667 0-38.286222 7.338667-52.935111 21.930667a72.248889 72.248889 0 0 0-21.959111 52.963556c0 20.650667 7.367111 38.286222 21.959111 52.935111a72.021333 72.021333 0 0 0 52.935111 21.959111 72.817778 72.817778 0 0 0 52.963556-22.016zM722.545778 94.151111h-47.132445a47.217778 47.217778 0 0 1-47.075555-47.075555C628.337778 21.191111 607.118222 0 581.205333 0h-94.065777a47.217778 47.217778 0 0 0-47.075556 47.075556 47.217778 47.217778 0 0 1-47.075556 47.075555H345.856a47.217778 47.217778 0 0 0-47.075556 47.075556v47.047111c0 25.884444 21.191111 47.075556 47.075556 47.075555h376.689778a47.217778 47.217778 0 0 0 47.075555-47.075555V141.226667a47.217778 47.217778 0 0 0-47.075555-47.075556z m-188.416 47.075556a47.075556 47.075556 0 1 1 0-94.151111 47.075556 47.075556 0 0 1 0 94.151111zM938.666667 188.273778v753.379555c0 26.083556-21.162667 47.388444-47.331556 47.388445H440.064a222.236444 222.236444 0 0 0 58.083556-149.873778 223.374222 223.374222 0 0 0-223.345778-223.374222 222.236444 222.236444 0 0 0-145.066667 53.76V188.359111c0-26.168889 21.248-47.331556 47.331556-47.331555h74.524444v47.246222a94.321778 94.321778 0 0 0 94.208 94.208H722.488889a94.321778 94.321778 0 0 0 94.208-94.208V140.970667h74.581333c26.168889 0 47.331556 21.219556 47.388445 47.303111zM307.768889 366.535111v48.867556h488.732444v-48.867556H307.768889z m0 146.631111v48.867556h488.732444v-48.867556H307.768889z m195.498667 146.602667v48.867555h293.262222v-48.867555h-293.262222z m48.867555 146.631111v48.867556h244.366222V806.4h-244.337777z" p-id="6193" /></symbol>'});n.a.add(l);t["default"]=l},4396:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"month",placeholder:"月份",format:"yyyy-MM","value-format":"yyyy-MM"},model:{value:e.getdataListParm.parammaps.createTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"createTime",t)},expression:"getdataListParm.parammaps.createTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场名称",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"1","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"2","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m2))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"3","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m3))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"4","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m4))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"5","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m5))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"6","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m6))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"7","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m7))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"8","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m8))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"9","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m9))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"10","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m10))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"11","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m11))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"12","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m12))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"13","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m13))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"14","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m14))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"15","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m15))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"16","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m16))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"17","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m17))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"18","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m18))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"19","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m19))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"20","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m20))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"21","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m21))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"22","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m22))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"23","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m23))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"24","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m24))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"25","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m25))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"26","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m26))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"27","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m27))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"28","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m28))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"29","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m29))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"30","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m30))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"31","min-width":"70%",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.m31))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容"},on:{select:e.handleSelect},model:{value:e.state1,callback:function(t){e.state1=t},expression:"state1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"设备类别"},model:{value:e.temp.assTypeId,callback:function(t){e.$set(e.temp,"assTypeId",t)},expression:"temp.assTypeId"}},e._l(e.findAllAssetType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m={name:"Upkeep",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,state1:"",requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getSeviceplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:"",month:""}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:Cookies.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,params:[]},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],temp:{},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}")}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.equipmentName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},"43ae":function(e,t,a){"use strict";a("47c1")},"43c1":function(e,t,a){},"43e4":function(e,t,a){"use strict";a("c4cf")},"43fa":function(e,t,a){},4489:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-申购入库效率统计",use:"icon-申购入库效率统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-申购入库效率统计"><defs><style type="text/css"></style></defs><path d="M258.701056 193.045226l512.00016 0 0 63.99952L258.701056 257.044746 258.701056 193.045226zM256.993602 321.671065l511.99916 0 0 63.99952L256.993602 385.670585 256.993602 321.671065zM256.993602 449.663108l131.31098 0 0 64.00052L256.993602 513.663628 256.993602 449.663108zM256.993602 577.665147l57.948456 0 0 64.00052-57.948456 0L256.993602 577.665147zM898.701256 0 130.701016 0C95.356326 0 66.702495 28.653831 66.702495 64.00052l0 895.998281c0 35.34469 28.653831 63.99952 63.99952 63.99952l299.403191-0.327895 0-63.99952-299.403191 0.327895L130.702015 64.00052l768.00024 0 0 611.622281 63.99952 0L962.701775 64.00052C962.700776 28.653831 934.041947 0 898.701256 0L898.701256 0z" p-id="4276" /><path d="M962.700776 998.077615c-4.265635-63.979527-29.857446-375.345889-362.549984-392.40643l0-98.101607c0-4.265635 0-17.06154-8.53027-29.857446s-25.591811-12.795905-46.917986-4.265635l-4.265635 0-187.672945 204.734485c-4.265635 4.265635-21.326176 25.591811-21.326176 46.917986 0 25.591811 21.326176 46.917986 25.591811 46.917986l187.672945 213.264755c4.265635 4.265635 17.06154 17.06154 29.857446 17.06154 12.795905 0 21.326176-8.53027 25.591811-17.06154 4.265635-8.53027 4.265635-17.06154 4.265635-29.857446L604.417426 831.731846c55.449256 0 208.99912 8.53027 302.836092 174.877039 6.536908 14.430382 17.06154 17.06154 25.591811 17.06154l8.53027 0 6.380958-1.880398C960.551464 1017.524392 962.700776 1002.34325 962.700776 998.077615L962.700776 998.077615zM617.212332 789.078495c-21.326176 0-34.122081 0-34.122081 0l-21.326176 4.265635 0 145.019594L391.151671 742.160509c-4.265635-4.265635-12.795905-12.795905-12.795905-17.06154 0-4.265635 4.265635-12.795905 8.53027-17.06154l166.346769-179.142674 0 123.693418 21.326176 0c238.856566 0 311.366363 162.081134 332.692538 272.978647C809.149912 801.8744 676.926224 789.078495 617.212332 789.078495L617.212332 789.078495z" p-id="4277" /></symbol>'});n.a.add(l);t["default"]=l},4497:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"申请委外维修",name:"first"}},[a("Tab1",{ref:"Tab1"})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"验收委外维修",name:"second"}},[a("Tab2",{ref:"Tab2"})],1)],1)],1)},i=[],r=(a("7f7f"),a("a3bd")),n=a("c4de"),l=(a("a78e"),a("2934"),{name:"SubcontractingMainten",components:{Tab1:r["default"],Tab2:n["default"]},data:function(){return{activeName:"first"}},created:function(){},methods:{handleClick:function(e){"first"==e.name?(this.$refs.Tab1.get_select_list(),this.$refs.Tab1.get_table_data1(),this.$refs.Tab1.get_auto_buttons()):"second"==e.name&&(this.$refs.Tab2.get_select_list(),this.$refs.Tab2.get_table_data1(),this.$refs.Tab2.get_auto_buttons())}}}),o=l,p=(a("07c5"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"c56d95aa",null);t["default"]=m.exports},"450d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.isDistributionSheet?a("el-tab-pane",{attrs:{label:"采购配单",name:"first"}},[a("div",{staticClass:"purchaseDistributionSheet"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list1,border:"",fit:"","row-style":e.tableRowStyle,"cell-style":e.tableCellStyle,"highlight-current-row":""},on:{"cell-click":e.cellClick,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!1,3419157293)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)})],1),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-top":"10px"},attrs:{disabled:e.confirmationSheetDisabled,type:"primary"},on:{click:function(t){return e.confirmationSheet()}}},[e._v("确认配单")]),e._v(" "),a("el-dialog",{staticStyle:{width:"100%",margin:"0 auto",overflow:"auto"},attrs:{title:e.textMap[e.dialogStatusConfirmation],visible:e.dialogFormVisibleConfirmation,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleConfirmation=t}}},[a("div",{staticClass:"app-contentConfirmationSheet"},[a("el-form",{ref:"temp1",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{rules:e.rules,model:e.temp1,"label-position":"right","label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("el-input",{ref:"matchCode",attrs:{disabled:""},model:{value:e.temp1.matchCode,callback:function(t){e.$set(e.temp1,"matchCode",t)},expression:"temp1.matchCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"提交日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp1.buyerDate,callback:function(t){e.$set(e.temp1,"buyerDate",t)},expression:"temp1.buyerDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"buyerPerson"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"采购员"},model:{value:e.temp1.buyerPerson,callback:function(t){e.$set(e.temp1,"buyerPerson",t)},expression:"temp1.buyerPerson"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),e._l(e.listConfirmationSheet,(function(t,s){return a("div",{key:s,staticClass:"app-content"},[a("div",{staticClass:"title"},[a("div",[a("b",[e._v("采购单号:")]),e._v(" "),a("span",[e._v(e._s(t.orderNumber))])]),e._v(" "),a("div",[a("b",[e._v("供应商:")]),e._v(" "),a("span",[e._v(e._s(t.providerName))])])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"97%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"合计采购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.sumPrice=t.row.price*parseFloat(t.row.amount))))])]}}],null,!0)})],1),e._v(" "),a("div",{ref:"total",refInFor:!0,staticClass:"total"},[e._v("\n 合计:\n "),a("span",[e._v(e._s(t.Sum))])])],1)})),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.confirmationSheetData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleConfirmation=!1,e.get_table_data1()}}},[e._v("取消")])],1)],2)])],1)]):e._e(),e._v(" "),e.isDistributionManagement?a("el-tab-pane",{attrs:{label:"配单管理",name:"fouth"}},[a("div",{staticClass:"DistributionManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm4.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm4.parammaps,"pastureName",t)},expression:"getdataListParm4.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"配单号",clearable:""},model:{value:e.getdataListParm4.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm4.parammaps,"matchCode",t)},expression:"getdataListParm4.parammaps.matchCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm4.parammaps.statue,callback:function(t){e.$set(e.getdataListParm4.parammaps,"statue",t)},expression:"getdataListParm4.parammaps.statue"}},e._l(e.status2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime4",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm4.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm4.parammaps,"inputDatetime",t)},expression:"getdataListParm4.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search4}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading4,expression:"listLoading4"}],key:e.tableKey4,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}],null,!1,1138521997)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}],null,!1,3666326552)}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}],null,!1,3226262841)}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"dealTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"cou",label:"采购单数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cou))])]}}],null,!1,3322093407)}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see4(s)}}},[e._v("查看")]):e._e(),e._v(" "),0===parseFloat(s.statue)&&e.isExamineDM?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),2===parseFloat(s.statue)?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")])]}}],null,!1,3682640877)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total4>0,expression:"total4>0"}],attrs:{total:e.total4,page:e.getdataListParm4.offset,limit:e.getdataListParm4.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm4,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm4,"pagecount",t)},pagination:e.get_table_data4}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee4],visible:e.dialogFormVisibleSee4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee4=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp4",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.temp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.temp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee4,expression:"listLoadingSee4"}],key:e.tableKeySee4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"60px",align:"center"}})],1),e._v(" "),a("el-form",{ref:"temp4",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isExamineDM&&0==e.temp4.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusUpdate4],width:"90%",visible:e.dialogFormVisibleUpdate4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleUpdate4=t}}},[a("div",{staticClass:"app-contentUpdate"},[a("el-form",{ref:"updateTemp4",staticStyle:{width:"80%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.updateTemp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.updateTemp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.updateTemp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.updateTemp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpdate4,expression:"listLoadingUpdate4"}],key:e.tableKeyUpdate4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpdate4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum2")(parseFloat(t.row.price)*parseFloat(t.row.amount))))])]}}],null,!1,2498820582)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleUpdate4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus_Examine],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus_Examine,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)]):e._e(),e._v(" "),a("el-tab-pane",{attrs:{label:"采购单管理",name:"second"}},[a("div",{staticClass:"purchaseOrderManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"采购单号",clearable:""},model:{value:e.getdataListParm2.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"buyeCode",t)},expression:"getdataListParm2.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"单据状态"},model:{value:e.getdataListParm2.parammaps.statu,callback:function(t){e.$set(e.getdataListParm2.parammaps,"statu",t)},expression:"getdataListParm2.parammaps.statu"}},e._l(e.status,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm2.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerName",t)},expression:"getdataListParm2.parammaps.providerName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),e.isPurchaseSap?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e(),e._v(" "),e.isPurchaseSrm?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.srmUpload}},[e._v("SRM上传")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"selection-change":e.change_table_selection}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近到货日期",sortable:"",prop:"DoneDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"80px",align:"center",formatter:e.statu}}),e._v(" "),a("el-table-column",{attrs:{prop:"sapNumber",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sapNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sapstatus",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.sapstatus,expression:"scope.row.sapstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.sapstatus,expression:"scope.row.sapstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.sapstatus,expression:"scope.row.sapstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"srmstatus",label:"srm上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.srmstatus,expression:"scope.row.srmstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.srmstatus,expression:"scope.row.srmstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.srmstatus,expression:"scope.row.srmstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see2(s)}}},[e._v("查看")]):e._e(),e._v(" "),2!==s.statu&&4!==s.statu||!e.isPurchaseClose?e.isPurchaseClose?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")]):e._e():a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee2],visible:e.dialogFormVisibleSee2,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee2=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp2",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(e._s(e.temp2.providerName))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp2.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("span",[e._v(e._s(e.temp2.buyerDate))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee2,expression:"listLoadingSee2"}],key:e.tableKeySee2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.SGremark))])]}}])})],1),e._v(" "),a("div",{staticClass:"sum",staticStyle:{right:"30px",position:"absolute",bottom:"90px"}},[a("b",[e._v("总计:"+e._s(e.temp2.sumPrices)+"元")])]),e._v(" "),a("div",{staticClass:"stuts",staticStyle:{left:"30px",position:"absolute",bottom:"70px"}},[a("b",[e._v("单据状态:"+e._s(e.temp2.statu))]),e._v(" "),e.isStatu?a("b",[e._v("关闭原因:"+e._s(e.temp2.note))]):e._e(),e._v(" "),e.isExtensionDays?a("div",[e._v("延期天数:"+e._s(e.temp2.extensionDays))]):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee2=!1,e.get_table_data2()}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"70%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatusClose],visible:e.dialogFormVisibleClose,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleClose=t}}},[a("div",{staticClass:"app-contentClose"},[a("el-form",{ref:"temp2",staticStyle:{width:"300px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"orderNo"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"note"}},[a("el-input",{ref:"note",attrs:{type:"textarea",placeholder:"请输入关闭该采购单原因"},model:{value:e.temp2.note,callback:function(t){e.$set(e.temp2,"note",t)},expression:"temp2.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleClose=!1,e.get_table_data2()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.closeData()}}},[e._v("确认关闭")])],1)],1)])],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"采购明细",name:"third"}},[a("div",{staticClass:"procurementDetails"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm3.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"pastureName",t)},expression:"getdataListParm3.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm3.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partCode",t)},expression:"getdataListParm3.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm3.parammaps.partName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partName",t)},expression:"getdataListParm3.parammaps.partName"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm3.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"providerName",t)},expression:"getdataListParm3.parammaps.providerName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"配单号"},model:{value:e.getdataListParm3.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"matchCode",t)},expression:"getdataListParm3.parammaps.matchCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"采购单号"},model:{value:e.getdataListParm3.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"buyeCode",t)},expression:"getdataListParm3.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"到货情况"},model:{value:e.getdataListParm3.parammaps.isStorage,callback:function(t){e.$set(e.getdataListParm3.parammaps,"isStorage",t)},expression:"getdataListParm3.parammaps.isStorage"}},e._l(e.isStorages,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm3.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm3.parammaps,"inputDatetime",t)},expression:"getdataListParm3.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search3}},[e._v("搜索")]),e._v(" "),e.isPurchaseExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload3}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading3,expression:"listLoading3"}],key:e.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum3-1)*e.pageSize3+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total3>=0,expression:"total3>=0"}],attrs:{total:e.total3,page:e.getdataListParm3.offset,limit:e.getdataListParm3.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm3,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm3,"pagecount",t)},pagination:e.get_table_data3}})],1)])],1)],1)},i=[],r=(a("3b2b"),a("456d"),a("4f7f"),a("5df3"),a("1c4c"),a("ac6a"),a("7f7f"),a("c5f6"),a("2934")),n=a("6724"),l=a("333d"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"Purchase",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(3)},keepTwoNum2:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isPurchaseSap:[],isPurchaseSrm:[],isPurchaseSee:[],isPurchaseClose:[],isPurchaseExport:[],isDistributionSheet:[],isDistributionManagement:[],isExamineDM:[],stripe:!0,activeName:"first",listLoading1:!1,tableKey1:0,list1:[],confirmationSheetDisabled:!1,isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},temp:{},total:0,total1:0,listParmConfirmation:[],listConfirmationSheet:null,getParmPurchaseOrderNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid"),codeType:"CG"}},postDataPramas:{},requestProvider:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoading2:!1,tableKey2:0,list2:[],status2:[{id:"0",name:"审核中"},{id:"1",name:"审核通过"},{id:"2",name:"审核驳回"}],status:[{id:"0",name:"未到货"},{id:"1",name:"部分到货"},{id:"2",name:"按时到货"},{id:"3",name:"已延期"},{id:"4",name:"已关闭"},{id:"5",name:"部分到货-延期"},{id:"6",name:"全部到货-延期"}],isStorages:[{id:"0",name:"未入库"},{id:"1",name:"已入库"}],isStatu:!1,listLoadingSee2:!1,tableKeySee2:0,total2:0,total3:0,listLoading3:!1,tableKey3:0,list3:[],findAllEmploye:[],findAllPasture:[],requestParams:[{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:p.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],getdataListParm1:{name:"getbuydetailParts",page:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid")}},getdataListPart:{name:"getpartpurchasebg",page:1,returntype:"Map",parammaps:{id:p.a.get("pastureid")}},partData:[],getParmCreateNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid"),codeType:"PD"}},pageNum1:0,pageSize1:0,temp1:{pastureId:p.a.get("pastureid"),buyerPerson:this.$store.state.user.employeid,buyerDate:Object(m["e"])(new Date,"{y}-{m}-{d}")},getdataListParm2:{name:"getBigbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{providerName:"",buyeCode:"",inputDatetime:"",pastureName:p.a.get("pasturename")}},dialogFormVisibleConfirmation:!1,dialogStatusConfirmation:"",pageNum2:0,pageSize2:0,temp2:{note:""},getdataListParm3:{name:"getbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),providerName:"",partCode:"",partName:"",matchCode:"",buyeCode:"",isStorage:"",startTime:"",stopTime:"",inputDatetime:""}},isExtensionDays:!1,listSee2:[],getdataListSee2:{name:"getbuydetailListbyBig",returntype:"Map",parammaps:{}},requestParamStute:{name:"updateBigbuydetailStatu",returntype:"Map",parammaps:{}},pageNum3:0,pageSize3:0,temp3:{},dialogFormVisibleSee2:!1,dialogStatusSee2:"",listLoading4:!1,tableKey4:0,list4:[],pageNum4:0,pageSize4:0,total4:0,getdataListParm4:{name:"getbigpartdeallist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),matchCode:"",statue:"",inputDatetime:"",startTime:"",stopTime:""}},dialogFormVisibleSee4:!1,dialogStatusSee4:"",temp4:{},listSee4:[],tableKeySee4:0,listLoadingSee4:!1,getdataListSee4:{name:"getbigpartdealdetiallist",returntype:"Map",parammaps:{}},activeList:[],active:3,currentRow:{},dialogStatusUpdate4:"",dialogFormVisibleUpdate4:!1,updateTemp4:{},listUpdate4:[],tableKeyUpdate4:0,listLoadingUpdate4:!1,dialogFormVisible_Examine:!1,dialogStatus_Examine:"",examineTemp:{SHstatue:1,workflowNote:""},statueReason:!1,dialogFormVisibleClose:!1,dialogStatusClose:"",textMap:{confirmation:"确认配单",see:"查看详情",close:"关闭提示",examine:"审核",update:"编辑"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}],note:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],downloadListParm3:{},downloadList3:[],isPercentage:!1,percentage:1}},created:function(){},methods:{tableSort:function(e){"first"==this.activeName?Object(m["f"])(e,this.list1):"second"==this.activeName?Object(m["f"])(e,this.list2):"third"==this.activeName?Object(m["f"])(e,this.list3):"fouth"==this.activeName&&Object(m["f"])(e,this.list4)},tableSort2:function(e){Object(m["f"])(e,this.listSee2)},get_auto_buttons:function(){var e="customs:purchase:distributionSheet",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isDistributionSheet=t;var a="customs:purchase:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isPurchaseSee=s;var i="customs:purchase:close",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isPurchaseClose=n;var l="customs:purchase:sap",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isPurchaseSap=o;var p="customs:purchase:srm",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isPurchaseSrm=m;var c="customs:purchase:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isPurchaseExport=d;var u="customs:purchase:shenhe",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isExamineDM=h;var g="customs:purchase:peidanjiemian",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isDistributionManagement=f},cellClick:function(e,t,a,s){return console.log(a),console.log("column",t),console.log("行索引",e.id),console.log("列索引",t.id),{background:"#eceb3c"}},tableRowStyle:function(e){var t=e.row;e.rowIndex;return console.log(t,t),console.log(" row.isParity",t.isParity),console.log(parseInt(t.isParity)%2==0),parseInt(t.isParity)%2==0?{background:"#eee"}:{background:""}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"No"==t.isNo&&10===a?{background:"red"}:{background:""}},handleClick:function(e,t){console.log(e,t),"first"===e.name?this.get_table_data1():"fouth"===e.name?this.get_table_data4():"second"===e.name?this.get_table_data2():"third"===e.name&&this.get_table_data3()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllEmploye=t.data.findAllEmploye.list,e.findAllPasture=t.data.findAllPasture.list}))},providerSearch:function(e,t){console.log("供应商模糊查询输入值",e),this.requestProvider.parammaps["providerName"]=e,Object(r["e"])(this.requestProvider).then((function(e){console.log("供应商模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectProvider:function(e){console.log("供应商模糊查询选中值",e)},get_table_data1:function(){var e=this;this.listLoading1=!0,Object(r["e"])(this.getdataListPart).then((function(t){console.log(t),e.partData=t.data.list})),Object(r["e"])(this.getdataListParm1).then((function(t){if(console.log("this.list1",t.data.list),null===t.data.list)e.list1=[],e.confirmationSheetDisabled=!0;else{var a;a=t.data.list;var s=[];if(a.forEach((function(e,t){Array.from(new Set(a.map((function(e){return e.partCode})))).forEach((function(t,a){e.partCode===t&&s.push({amount:e.amount,amountPre:e.amountPre,bigId:e.bigId,brand:e.brand,brandId:e.brandId,contractCode:e.contractCode,count:e.count,enable:e.enable,id:e.id,inventoryType:e.inventoryType,isZeroStock:e.isZeroStock,orderNumber:e.orderNumber,partCode:e.partCode,partId:e.partId,partName:e.partName,pastureId:e.pastureId,pastureName:e.pastureName,planAmount:e.planAmount,price:e.price,providerId:e.providerId,providerName:e.providerName,purpose:e.purpose,remark:e.remark,specification:e.specification,sumAmount:e.sumAmount,unit:e.unit,isNo:e.isNo,srcpath:e.srcpath,picpath:e.picpath,departmentName:e.departmentName,isParity:a})}))})),console.log(s),null!==s)for(var i=0;i<s.length;i++)console.log(s[i].srcpath),null!==s[i].srcpath&&null!==s[i].picpath&&void 0!==s[i].srcpath&&void 0!==s[i].picpath?(s[i].srcpath="http://127.0.0.1:8082/"+s[i].srcpath,s[i].picpath="http://127.0.0.1:8082/"+s[i].picpath):(s[i].srcpath="",s[i].picpath="");e.list1=s,console.log("处理后table数",e.list1),e.confirmationSheetDisabled=!1}for(var r="",n=0;n<e.list1.length;n++)r!==e.list1[n].partCode?(e.list1[n].amount=e.list1[n].sumAmount,r=e.list1[n].partCode):e.list1[n].amount=0;t.data.total&&(e.total1=t.data.total),setTimeout((function(){e.listLoading1=!1}),300)}))},confirmationSheet:function(){function e(e,t){var a={};return e.forEach((function(e){var s=JSON.stringify(t(e));console.log("group2",s),a[s]=a[s]||[],a[s].push(e)})),Object.keys(a).map((function(e){return a[e]}))}console.log("点击立确认配单"),this.temp1.matchCode="",console.log(this.list1);var t=e(this.list1,(function(e){return[e.partCode]}));console.log("表格数据根据供应商分划",t);for(var a=0;a<t.length;a++){for(var s=0,i=0,r=0;r<t[a].length;r++)if(t[a][r].partCode===t[a][r].partCode){var n=t[a][r];s+=parseInt(n.amount),i=parseInt(n.sumAmount)}if(s>i||s<i){console.log("No"),console.log(n.id);for(var l=0;l<this.list1.length;l++)if(n.id===this.list1[l].id){console.log(this.list1[l].partCode);for(s=0;s<this.list1.length;s++)this.list1[s].partCode===this.list1[l].partCode?(console.log(this.list1[s]),this.$set(this.list1[s],"isNo","No")):this.$set(this.list1[s],"isNo","Yes")}else this.$set(this.list1[l],"isNo","Yes");return console.log(s),void this.$message({type:"warning",message:"同一备件多个供应商合计采购数量总和等于申购数量"})}for(l=0;l<this.list1.length;l++){this.$set(this.list1[l],"isNo","Yes");var o=/^[0-9]\d*$/;if(!o.test(this.list1[l].amount))return this.$message({type:"error",message:"采购数量请输入正整数",duration:2e3}),!1}}this.getCreateNumber(),this.dialogStatusConfirmation="confirmation",this.dialogFormVisibleConfirmation=!0,console.log("确认配单data------",JSON.stringify(this.list1)),console.log(this.list1),console.log("根据供应商分类",t),console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet)},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.show=!1,console.log("配单号",t.data.list[0].orderCode),e.temp1.matchCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},confirmationSheetData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击了确认配单提交"),this.$refs["temp1"].validate((function(t){if(t){""!=e.temp1.matchCode&&null!=e.temp1.matchCode&&void 0!=e.temp1.matchCode||e.getCreateNumber(),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],console.log(e.listConfirmationSheet);for(var a=0;a<e.listConfirmationSheet.length;a++)if(null==e.listConfirmationSheet[a].orderNumber||void 0==e.listConfirmationSheet[a].orderNumber)return e.$notify({title:"保存失败",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}),!1;var s=e.listConfirmationSheet.length;e.listConfirmationSheet.forEach((function(t,a){console.log(t),e.postDataPramas.data[a]={name:"insertBigbuydetail",resultname:"insertBigbuydetail"+a,type:"e",parammaps:{pastureId:p.a.get("pastureid"),buyeCode:t.orderNumber,providerId:t.providerId,buyerPerson:e.temp1.buyerPerson,buyerDate:e.temp1.buyerDate,matchCode:e.temp1.matchCode}},e.postDataPramas.data[s]={name:"insertSpotList",resultmaps:{list:t.list}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"insertbuydetail",type:"e",parammaps:{bigId:"@insertBigbuydetail"+a+".LastInsertId",pastureId:"@insertSpotList.pastureId",contractCode:"@insertSpotList.contractCode",amount:"@insertSpotList.amount",sumAmount:"@insertSpotList.sumAmount",contractId:"@insertSpotList.id",departmentName:"@insertSpotList.departmentName",remark:"@insertSpotList.purpose"}},s+=1})),e.postDataPramas.data[s]={name:"insertSpotListbpp",resultmaps:{list:e.partData}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"updateBigpartpurchaseStatu",type:"e",parammaps:{id:"@insertSpotListbpp.id",matchCode:e.temp1.matchCode}},e.postDataPramas.data.push({name:"insertbigpartdeal",type:"e",parammaps:{empId:e.temp1.buyerPerson,pastureId:p.a.get("pastureid"),matchCode:e.temp1.matchCode}}),Object(r["c"])(e.postDataPramas).then((function(t){if("fail"===t.msg){var a=new RegExp("buyeCode");a.test(t.data)?e.$notify({title:"",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.dialogFormVisibleConfirmation=!1,e.activeName="fouth",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}}))},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},form_search2:function(){this.listLoading=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},statu:function(e){return 0===e.statu?"未到货":1===e.statu?"部分到货":2===e.statu?"按时到货":3===e.statu?"已延期":4===e.statu?"已关闭":5===e.statu?"部分到货-延期":6===e.statu?"全部到货-延期":void 0},statue:function(e){return 0===e.statue?"审核中":1===e.statue?"审核通过":2===e.statue?"未通过":void 0},form_see2:function(e){this.temp2=Object.assign({},e),0===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="未到货",this.isExtensionDays=!1):1===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货",this.isExtensionDays=!1):2===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="按时到货",this.isExtensionDays=!1):3===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="已延期",this.isExtensionDays=!0):4===this.temp2.statu?(this.temp2.statu="已关闭",this.isStatu=!0,this.isExtensionDays=!1):5===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货-延期",this.isExtensionDays=!0):6===this.temp2.statu&&(this.isStatu=!1,this.temp2.statu="全部到货-延期",this.isExtensionDays=!0),this.dialogStatusSee2="see",this.dialogFormVisibleSee2=!0,this.getdataListSee2.parammaps.id=e.id,this.getSeeList2()},getSeeList2:function(){var e=this;Object(r["e"])(this.getdataListSee2).then((function(t){if(e.listSee2=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee2[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee2[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee2[a].srcpath="",e.listSee2[a].picpath="");console.log("查看下方table数据",t.data.list);for(var s=[],i=0;i<e.listSee2.length;i++)console.log(),s.push(e.listSee2[i].sumPrice);console.log("总价",s);var r=0;for(i=0;i<s.length;i++)console.log("table内总价每一个值",s[i]),r+=parseFloat(s[i]);e.temp2.sumPrices=r.toFixed(3),setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCloseTemp:function(){this.temp2.note=""},handleClose2:function(e){this.resetCloseTemp(),this.temp2=Object.assign({},e),this.dialogStatusClose="close",this.dialogFormVisibleClose=!0},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},sapUpload:function(){var e=this;console.log("currentRow",this.currentRow.sapstatus);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["n"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},checkboxInit:function(e,t){var a=new Date(e.creatTime),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},srmUpload:function(){var e=this;console.log("currentRow",this.currentRow.srmstatus),console.log("勾选数据selectList",this.selectList);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSrm),1==e.isSrm?(e.isSrm=0,Object(r["s"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSrm=1}),3e3)},closeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击确认关闭",this.temp2),this.$refs["temp2"].validate((function(t){t&&(e.requestParamStute.parammaps.id=e.temp2.id,e.requestParamStute.parammaps.note=e.temp2.note,Object(r["k"])(e.requestParamStute).then((function(t){console.log("新增保存发送参数",e.requestParamStute),"fail"!==t.msg?(e.get_table_data2(),e.dialogFormVisibleClose=!1,e.$notify({title:"成功",message:"关闭成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},get_table_data3:function(){var e=this;this.listLoading3=!0,void 0!==this.$refs["inputDatetime3"]&&null!==this.$refs["inputDatetime3"].value?(this.getdataListParm3.parammaps.startTime=this.$refs["inputDatetime3"].value[0],this.getdataListParm3.parammaps.stopTime=this.$refs["inputDatetime3"].value[1]):(this.getdataListParm3.parammaps.startTime="",this.getdataListParm3.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm3).then((function(t){e.list3=t.data.list,e.pageNum3=t.data.pageNum,e.pageSize3=t.data.pageSize,t.data.total&&(e.total3=t.data.total),setTimeout((function(){e.listLoading3=!1}),300)}))},form_search3:function(){this.listLoading=!0,null===this.getdataListParm3.parammaps.inputDatetime&&(this.getdataListParm3.parammaps.inputDatetime=""),this.getdataListParm3.offset=1,this.get_table_data3()},handleDownload3:function(){var e=this;console.log("点击了采购明细导出"),this.$alert("采购明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadListParm3.name=this.getdataListParm3.name,this.downloadListParm3.parammaps=this.getdataListParm3.parammaps,Object(r["d"])(this.downloadListParm3).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.downloadList3=t.data.list;var a=[{tHeader:["配单号","采购单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","单价","申购数量","采购数量","入库数","申购部门","采购人","配单日期"],filterVal:["matchCode","buyeCode","partCode","partName","specification","brand","unit","providerName","price","sumAmount","amount","receiveAmount","departmentName","empname","buyerDate"],tableDatas:e.downloadList3,sheetName:"采购明细"}];Object(m["d"])(a,"采购明细",!0,"xlsx")}))},get_table_data4:function(){var e=this;this.listLoading4=!0,void 0!==this.$refs["inputDatetime4"]&&null!==this.$refs["inputDatetime4"].value?(this.getdataListParm4.parammaps.startTime=this.$refs["inputDatetime4"].value[0],this.getdataListParm4.parammaps.stopTime=this.$refs["inputDatetime4"].value[1]):(this.getdataListParm4.parammaps.startTime="",this.getdataListParm4.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm4).then((function(t){e.list4=t.data.list,e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize,t.data.total&&(e.total4=t.data.total),setTimeout((function(){e.listLoading4=!1}),300)}))},form_search4:function(){this.listLoading=!0,null===this.getdataListParm4.parammaps.inputDatetime&&(this.getdataListParm4.parammaps.inputDatetime=""),this.getdataListParm4.offset=1,this.get_table_data4()},form_see4:function(e){this.dialogStatusSee4="see",this.dialogFormVisibleSee4=!0,this.temp4=Object.assign({},e),this.getdataListSee4.parammaps.matchCode=e.matchCode,this.getSeeList4();var t="未通过原因:"+this.temp4.workflowNote;0===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核"}],this.active=1):1===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核",date:this.temp4.chargeDate,name:this.temp4.chargeName}],this.active=2):2===this.temp4.statue&&(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核",date:this.temp4.chargeDate,name:this.temp4.chargeName,status:"error",reason:t}],this.active=2)},getSeeList4:function(){var e=this;Object(r["e"])(this.getdataListSee4).then((function(t){if(e.listSee4=t.data.list,e.listUpdate4=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)console.log(t.data.list[a].srcpath),console.log(t.data.list[a].picpath),console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?"see"==e.dialogStatusSee4?(e.listSee4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listUpdate4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listUpdate4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee4[a].srcpath="",e.listSee4[a].picpath="",e.listUpdate4[a].srcpath="",e.listUpdate4[a].picpath="");console.log("查看下方table数据",t.data.list),e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize}))},handleExamine:function(e){void 0==e?(this.examineTemp=this.temp4,this.$set(this.temp4,"SHstatue",1),this.$set(this.temp4,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus_Examine="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeSHStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log(this.examineTemp),this.$refs["examineTemp"].validate((function(t){t&&(1==e.examineTemp.SHstatue?(console.log("通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:p.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.postDataPramas.data[1]={name:"updatebigbuydetailenable",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},e.postDataPramas.data[2]={name:"updatebigbuydetailZero",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))):2==e.examineTemp.SHstatue&&(console.log("不通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:p.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))))}))},form_edit:function(e){this.dialogStatusUpdate4="update",this.dialogFormVisibleUpdate4=!0,this.getdataListSee4.parammaps.matchCode=e.matchCode,this.updateTemp4=Object.assign(e,{}),this.getSeeList4()},edit_dialog_save:function(){var e=this;this.$refs["updateTemp4"].validate((function(t){if(t){for(var a=0;a<e.listUpdate4.length;a++){console.log(e.listUpdate4[a].amount);var s=/^\d+$/;if((""==e.listUpdate4[a].amount||void 0==e.listUpdate4[a].amount)&&0!==parseFloat(e.listUpdate4[a].amount))return e.$message({type:"error",message:"采购数量不可为空",duration:2e3}),!1;if(!s.test(parseFloat(e.listUpdate4[a].amount)))return e.$message({type:"error",message:"采购数量请输入大于等于0的整数",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listUpdate4}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePDbuydetail",type:"e",parammaps:{amount:"@insertSpotList.amount",id:"@insertSpotList.id"}},e.postDataPramas.data[1]={name:"partdealCharge",type:"e",parammaps:{id:e.updateTemp4.id,statue:"0",empId:p.a.get("employeid")}}}return Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisibleUpdate4=!1,e.getdataListParm4.parammaps.inputDatetime="",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}}))}}},d=c,u=(a("6cb0"),a("c48f"),a("cf5f"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"2044f307",null);t["default"]=h.exports},4528:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmImportInfo.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"pastureName",t)},expression:"getdataListParmImportInfo.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"入库单号"},model:{value:e.getdataListParmImportInfo.parammaps.storageNumber,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"storageNumber",t)},expression:"getdataListParmImportInfo.parammaps.storageNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"备件编码"},model:{value:e.getdataListParmImportInfo.parammaps.stockNumber,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"stockNumber",t)},expression:"getdataListParmImportInfo.parammaps.stockNumber"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"110px",top:"-3px"},attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"入库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmImportInfo.parammaps.storageTime,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"storageTime",t)},expression:"getdataListParmImportInfo.parammaps.storageTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isRetreatMuban?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isReceiveImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticStyle:{position:"absolute"},attrs:{type:"danger"},on:{click:function(t){return e.form_delete(e.selection)}}},[e._v("批量删除\n ")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingImportInfo,expression:"listLoadingImportInfo"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listImportInfo,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库单编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.storageTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"物料编码","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品名","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.trade))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"导入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inputName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalImportInfo,page:e.getdataListParmImportInfo.offset,limit:e.getdataListParmImportInfo.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmImportInfo,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmImportInfo,"pagecount",t)},pagination:e.get_table_dataImportInfo}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusErro],visible:e.dialogFormVisibleErro,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleErro=t}}},[a("div",{staticClass:"app-erro"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingErro,expression:"listLoadingErro"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listErro,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index","min-width":"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"错误信息","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("b",[e._v("错误行:")]),e._v(e._s(t.row.input))]),a("br"),a("span",[a("b",[e._v("错误信息:")]),e._v(e._s(t.row.error_msg))])]}}])})],1)],1)])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u={name:"Storage",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{totalImportInfo:0,listLoadingImportInfo:!0,listImportInfo:[],isReceiveImport:[],isRetreatMuban:[],isStorageAdd:[],isStorageExport:[],isStorageSee:[],isStorageUpdate:[],isStorageDelate:[],tableKey:0,listLoadingErro:!0,listErro:[],list:[],list2:[],total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParmImportInfo:{name:"getImportStockLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),deptName:"",useForm:"",stockNumber:"",stockName:"",receiveTime:"",providerName:"",storageName:"",storageTime:""}},getdataListParmUpdate:{name:"getStockLaidList",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{bigId:""}},getParmCreateLaidNumber:{name:"createLaidNumber",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureNumber:c.a.get("pasturenumber")}},orderAAA:{orderNumber:"",pastureId:"",pastureName:"",providerId:"",provoderName:"",orderA:"",stockId:"",stockNumber:"",stockName:"",specification:"",amount:"",unit:"",puropse:"",TAG:""},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],requestParamDelete:{},requestFilterParams:{},temp:{},storage:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,laidNumber:""},dialogFormVisibleErro:!1,dialogStatusErro:"",textMap:{erro:"导入错误信息"},dialogPvVisible:!1,rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},selection:[]}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importStockLaid",importParams:"牧场,入库单编号,入库日期,物料编码,品名,规格型号,品牌,计量单位,数量,单价,总价,库位,供应商,jwt_username",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_dataImportInfo()},methods:{providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return console.log(e),function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){this.temp.providerId=e.id,this.temp.providerName=e.name},purchaseSearch:function(e,t){this.requestFilterParams.name="findPurchaseSolr",this.requestFilterParams.parammaps={},this.requestFilterParams.parammaps["orderA"]=e,this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockLaidDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商"],r=["牧场","入库单编号","入库日期","物料编码","品名","规格型号","品牌","计量单位","数量","单价","总价","库位","供应商"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"入库模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var a=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.dialogFormVisibleErro=!0,this.dialogStatusErro="erro",this.listErro=e.data.result,setTimeout((function(){a.listLoadingErro=!1}),100),this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_dataImportInfo:function(){var e=this;this.listLoadingImportInfo=!0,null===this.getdataListParmImportInfo.parammaps.storageTime&&(this.getdataListParmImportInfo.parammaps.storageTime=""),Object(r["e"])(this.getdataListParmImportInfo).then((function(t){e.listImportInfo=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalImportInfo=t.data.total),setTimeout((function(){e.listLoadingImportInfo=!1}),100)}))},form_searchImportInfo:function(){this.listLoadingImportInfo=!0,this.get_table_dataImportInfo()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,this.getdataListParmImportInfo.offset=1,this.get_table_dataImportInfo()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.list2=[],this.storage.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.storage.typeName="",this.storage.assTypeId="",this.storage.employeId=this.$store.state.user.employeid,this.storage.departmentId=this.$store.state.user.departmentid,this.storage.pastureId=this.$store.state.user.pastureid},handleSelectionChange:function(e){this.selection=e},form_delete:function(e){var t=this;this.parammapsId=[];for(var a=0;a<e.length;a++)console.log(e[a]),this.parammapsId.push(e[a]);console.log(this.parammapsId),0===e.length?this.$message({type:"info",message:"请选中要删除的数据"}):p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParamDelete.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteIStockLaidList",resultmaps:{list:t.parammapsId}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"deleteIStockLaid",type:"e",parammaps:{}},t.postDataPramas.data[0].children[0].parammaps.id="@deleteIStockLaidList.id",t.postDataPramas.data[0].children[0].parammaps.pastureId="@deleteIStockLaidList.pastureId",t.postDataPramas.data[0].children[0].parammaps.stockNumber="@deleteIStockLaidList.stockNumber",t.postDataPramas.data[0].children[0].parammaps.providerName="@deleteIStockLaidList.providerName",t.postDataPramas.data[0].children[0].parammaps.location="@deleteIStockLaidList.location",t.postDataPramas.data[0].children[0].parammaps.amount="@deleteIStockLaidList.amount",Object(r["c"])(t.postDataPramas).then((function(e){"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.get_table_dataImportInfo(),t.dialogFormVisible=!1,t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},4581:function(e,t,a){"use strict";a("6b0b")},"45b5":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"调入牧场"},model:{value:e.getdataListParm.parammaps.pastureNameIN,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureNameIN",t)},expression:"getdataListParm.parammaps.pastureNameIN"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"调拨单号"},model:{value:e.getdataListParm.parammaps.applyCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyCode",t)},expression:"getdataListParm.parammaps.applyCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"调拨状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search1}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调出牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调入牧场","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureNameIN))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨日期",sortable:"",prop:"creatTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"调拨状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),2==s.statue&&s.pastureId==e.loginPastureid?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReturn(s)}}},[e._v("确认退回")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReturn(s)}}},[e._v("确认退回")]),e._v(" "),4==s.statue&&s.inPastureId==e.loginPastureid?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReject(s)}}},[e._v("驳回")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReject(s)}}},[e._v("驳回")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调出牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入牧场:",prop:"inPastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调入牧场"},model:{value:e.createTemp.inPastureId,callback:function(t){e.$set(e.createTemp,"inPastureId",t)},expression:"createTemp.inPastureId"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"调拨人"},on:{change:e.changeEmp},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨日期:",prop:"applyDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"调拨日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.applyDate,callback:function(t){e.$set(e.createTemp,"applyDate",t)},expression:"createTemp.applyDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购组:",prop:"groupName"}},[a("el-input",{ref:"groupName",model:{value:e.createTemp.groupName,callback:function(t){e.$set(e.createTemp,"groupName",t)},expression:"createTemp.groupName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.amount*t.row.price)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.seeTemp.applyCode,callback:function(t){e.$set(e.seeTemp,"applyCode",t)},expression:"seeTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调出牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调入牧场:",prop:"inPastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"调入牧场"},model:{value:e.seeTemp.inPastureId,callback:function(t){e.$set(e.seeTemp,"inPastureId",t)},expression:"seeTemp.inPastureId"}},e._l(e.findAllPasture2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.pastureName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨人:",prop:"emp"}},[a("el-input",{ref:"emp",attrs:{disabled:""},model:{value:e.seeTemp.emp,callback:function(t){e.$set(e.seeTemp,"emp",t)},expression:"seeTemp.emp"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调拨日期:",prop:"applyDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",disabled:"",placeholder:"调拨日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.seeTemp.applyDate,callback:function(t){e.$set(e.seeTemp,"applyDate",t)},expression:"seeTemp.applyDate"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"调拨数量",sortable:"",prop:"amount","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Allot",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{loginPastureid:c.a.get("pastureid"),isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllPasture2:[],findAllDepart:[],findAllEmploye:[],statues:[{id:"0",name:"调拨中"},{id:"1",name:"调拨完成"},{id:"2",name:"驳回中"},{id:"3",name:"退回完成"}],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,returntype:"Map",parammaps:{}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{create:"新增",see:"查看"},rules:{inPastureId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},getdataListParm:{name:"getBigPartTransferList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),applyCode:"",statue:"",pastureNameIN:"",inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,empId:this.$store.state.user.employeid,employeId:this.$store.state.user.employeid,applyDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),groupName:""},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"DB"}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},statue:function(e){return 0==e.statue?"调拨中":1==e.statue?"调拨完成":2==e.statue?"驳回中":3==e.statue?"退回完成":4==e.statue?"调拨中":void 0},form_search1:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.employeId=this.$store.state.user.employeid,this.createTemp.empId=this.$store.state.user.employeid,this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.applyCode="",this.createTemp.groupName="",this.listAdd=[]},form_add:function(){this.resetCreateTemp(),this.createTemp.applyCode="",this.dialogStatus="create",this.dialogFormVisible=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeEmp:function(e){this.createTemp.emp=this.findAllEmploye.find((function(t){return t.id==e})).name},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.id),console.log(this.listAdd),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e)),this.$forceUpdate()},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.applyCode||null==e.createTemp.applyCode||void 0==e.createTemp.applyCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查调拨数量是否未填写",duration:2e3}),!1;if(parseFloat(this.listAdd[t].amount)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"调拨数量不可大于现有库存数量",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].amount)))return this.$message({type:"error",message:"调拨数量请输入正数,且最多保留两位小数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartTransfer",type:"e",parammaps:{pastureId:this.createTemp.pastureId,inPastureId:this.createTemp.inPastureId,applyCode:this.createTemp.applyCode,empId:this.createTemp.empId,emp:this.createTemp.emp,applyDate:this.createTemp.applyDate,groupName:this.createTemp.groupName}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertParttTransfer",type:"e",parammaps:{bigId:"@insertBigPartTransfer.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",brandName:"@insertSpotList.brand",amount:"@insertSpotList.amount",providerName:"@insertSpotList.providerName",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",partRepId:"@insertSpotList.partRepId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,e.pastureId=String(e.pastureId),console.log(e.pastureId),this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList()},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.seeTemp.providerName=t.data.list.providerName,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPasture2=t.data.getPastureList.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDownload:function(){alert("点击了导出")},handleReturn:function(e){var t=this;console.log("点击了确认退回"),this.seeTemp=Object.assign({},e),this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList(),p["MessageBox"].confirm("是否确认将调拨单备件退回至库存",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"updateBigPartTransfer",type:"e",parammaps:{id:e.id,statue:3}},t.postDataPramas.data[1]={name:" getPartTransferbybigid",type:"e",parammaps:{id:e.id,statue:3}},t.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[2].children=[],t.postDataPramas.data[2].children[0]={name:"updatePartRepertoryDB",type:"e",parammaps:{amount:"@insertSpotList.amount",partRepId:"@insertSpotList.partRepId"}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"退回成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消确认退回"})}))},handleReject:function(e){var t=this;console.log("点击了驳回"),p["MessageBox"].confirm("是否确认将调拨单驳回",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="updateBigPartTransfer",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,t.requestParam.parammaps.statue=2,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"驳回成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消驳回"})}))}}}),u=d,h=(a("bab4"),a("c954"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"474da842",null);t["default"]=g.exports},"45e4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.action,callback:function(t){e.action=t},expression:"action"}},[a("el-tab-pane",{attrs:{label:"特种设备",name:"first"}},[a("SpecialEquipment")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"安全阀",name:"second"}},[a("SafetyValve")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"压力表",name:"third"}},[a("PressureGauge")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"温度计",name:"fourth"}},[a("Thermometer")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"绝缘用具",name:"fifth"}},[a("InsulatAingAppliances")],1),e._v(" "),a("el-tab-pane",{attrs:{label:"灭火器",name:"sixth"}},[a("FireExtinguisher")],1)],1)],1)},i=[],r=(a("7f7f"),a("9223")),n=a("4126"),l=a("de6b"),o=a("04b5"),p=a("11c2"),m=a("fb26"),c={name:"EarlyWarning",components:{SpecialEquipment:r["default"],SafetyValve:n["default"],PressureGauge:l["default"],Thermometer:o["default"],InsulatAingAppliances:p["default"],FireExtinguisher:m["default"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},action:"first"}},created:function(){},methods:{handleTabClick:function(e,t){this.action=e.name}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},4672:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barCharDeptData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barCharDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barCharDeptData),console.log(this.barCharDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.xAxisData,a=e.seriesData,s=e.text;this.chart.setOption({title:{text:s+"电表柱状图",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"15%",bottom:"-4%",containLabel:!0},xAxis:[{name:"电表名称",type:"category",data:t,axisTick:{alignWithLabel:!0},axisLabel:{interval:0}}],yAxis:[{name:"千瓦",type:"value"}],series:[{name:"",type:"bar",barWidth:"60%",data:a}]});var i=this;this.chart.on("click",(function(e){console.log(e.name),i.$emit("barClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"46ce":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1)},i=[],r=a("6724"),n=a("ed08"),l={name:"MilkMaintenance",directives:{waves:r["a"]},components:{},filters:{timestampToTime:function(e,t){return Object(n["e"])(e,t)}},data:function(){return{listLoading:!0,rolesList:[{userId:123,userNum:"admin",userName:"admin",userDescription:"这个账户是超级管理员账户"},{userId:124,userNum:"wxf123",userName:"张三",userDescription:"这个账户是一级管理员账户"},{userId:125,userNum:"cz123",userName:"李氏",userDescription:"这个账户是二级管理员账户"}],rolesList2:[{userId:123,userNum:"admin",userName:"admin2",userDescription:"这个账户是超级管理员账户"},{userId:124,userNum:"wxf123",userName:"张三2",userDescription:"这个账户是一级管理员账户"},{userId:125,userNum:"cz123",userName:"李氏2",userDescription:"这个账户是二级管理员账户"}],rolesList3:[{userId:123,userNum:"admin",userName:"admin3",userDescription:"这个账户是超级管理员账户"},{userId:124,userNum:"wxf123",userName:"张三3",userDescription:"这个账户是一级管理员账户"},{userId:125,userNum:"cz123",userName:"李氏3",userDescription:"这个账户是二级管理员账户"}]}},created:function(){},mounted:function(){this.listLoading=!1},methods:{handleDownload:function(){var e=[{tHeader:["序号","名字","描述"],filterVal:["userId","userName","userDescription"],tableDatas:this.rolesList3,sheetName:"sheet3"},{tHeader:["序号","名字","描述"],filterVal:["userId","userName","userDescription"],tableDatas:this.rolesList2,sheetName:"sheet2"},{tHeader:["序号","名字","描述"],filterVal:["userId","userName","userDescription"],tableDatas:this.rolesList,sheetName:"sheet1"}];Object(n["d"])(e,"数据报表",!0,"xlsx")}}},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},4712:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-成本录入",use:"icon-成本录入-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-成本录入"><defs><style type="text/css"></style></defs><path d="M661.597091 977.454545c-148.712727 0-269.265455-117.201455-269.265455-261.818181s120.552727-261.818182 269.265455-261.818182C810.356364 453.818182 930.909091 571.019636 930.909091 715.636364S810.356364 977.454545 661.597091 977.454545z m0-407.272727c-82.618182 0-149.597091 65.163636-149.597091 145.454546 0 80.337455 66.978909 145.454545 149.597091 145.454545 82.664727 0 149.643636-65.117091 149.643636-145.454545s-67.025455-145.454545-149.643636-145.454546z m29.928727 232.727273h-59.857454V744.727273h-59.810909v-58.181818h59.810909V628.363636h59.857454v58.181819h59.857455V744.727273h-59.857455v58.181818z m119.714909-447.301818v76.520727c-8.983273-4.514909-17.687273-9.309091-27.136-13.032727 17.268364-18.804364 27.136-40.029091 27.136-63.441455z m-101.282909 44.776727c-15.872-2.327273-31.790545-4.747636-48.360727-4.747636a333.637818 333.637818 0 0 0-187.066182 57.064727c-7.540364 0.232727-14.708364 1.117091-22.341818 1.117091C253.765818 453.818182 93.090909 375.668364 93.090909 279.272727V221.090909C93.090909 124.741818 253.812364 46.545455 452.142545 46.545455c198.283636 0 359.098182 78.149818 359.098182 174.545454V279.272727c0 47.104-38.818909 89.693091-101.282909 121.111273zM410.996364 510.417455a314.926545 314.926545 0 0 0-61.952 109.754181C201.355636 598.528 93.090909 532.666182 93.090909 453.818182V355.607273c0 89.553455 139.217455 146.990545 317.905455 154.810182z m-74.705455 168.122181c-1.489455 12.334545-3.816727 24.389818-3.816727 37.096728 0 27.136 4.514909 53.061818 11.077818 78.242909C198.702545 771.397818 93.090909 706.234182 93.090909 628.363636v-98.210909c0 76.613818 102.074182 129.582545 243.2 148.386909z m31.371636 178.315637a322.606545 322.606545 0 0 0 104.308364 119.621818c-6.702545 0.186182-13.032727 0.977455-19.828364 0.977454C253.858909 977.454545 93.090909 899.258182 93.090909 802.909091v-98.210909c0 82.199273 117.201455 137.495273 274.571636 152.203636z" fill="#97999E" p-id="8862" /></symbol>'});n.a.add(l);t["default"]=l},"472a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),e._v(" "),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),e._v(" "),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),e._v(" "),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])},i=[],r={name:"Todo",directives:{focus:function(e,t,a){var s=t.value,i=a.context;s&&i.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},4767:function(e,t,a){},"47c1":function(e,t,a){},"47c3":function(e,t,a){"use strict";a("7ce9")},"47e1":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{"picker-options":e.pickerOptions,clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"inputDatetime",t)},expression:"table1.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table1.listLoading,expression:"table1.listLoading"}],key:e.table1.tableKey,staticClass:"elTable myTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件保管","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{label:"手动入库单据数量","min-width":"110px",align:"center",sortable:"",prop:"sdlaid"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购入库单据数量","min-width":"110px",align:"center",sortable:"",prop:"cglaid"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件入库","min-width":"110px",align:"center",sortable:"",prop:"partlaid"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[""!==s.partlaid&&parseFloat(s.partlaid)>95?a("span",{staticStyle:{background:"#5CAD33",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partlaid)+"%")]):""!==s.partlaid&&parseFloat(s.partlaid)>=50&&parseFloat(s.partlaid)<=95?a("span",{staticStyle:{background:"#99E680",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partlaid)+"%")]):""!==s.partlaid&&parseFloat(s.partlaid)<50?a("span",{staticStyle:{background:"#FF8080",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partlaid)+"%")]):a("span",[e._v(e._s(s.partlaid))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"手动出库单据数量","min-width":"110px",align:"center",sortable:"",prop:"sduse"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用出库单据数量","min-width":"110px",align:"center",sortable:"",prop:"lyuse"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件出库","min-width":"110px",align:"center",sortable:"",prop:"partuse"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[""!==s.partuse&&parseFloat(s.partuse)>95?a("span",{staticStyle:{background:"#5CAD33",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partuse)+"%")]):""!==s.partuse&&parseFloat(s.partuse)>=50&&parseFloat(s.partuse)<=95?a("span",{staticStyle:{background:"#99E680",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partuse)+"%")]):""!==s.partuse&&parseFloat(s.partuse)<50?a("span",{staticStyle:{background:"#FF8080",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.partuse)+"%")]):a("span",[e._v(e._s(s.partuse))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"设备处长","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{label:"领用单据数量(状态:已通过)","min-width":"110px",align:"center",sortable:"",prop:"allapply"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单据数量(状态:已通过)领用单内维保/保养单号单据","min-width":"110px",align:"center",sortable:"",prop:"wbapply"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备维修","min-width":"110px",align:"center",sortable:"",prop:"eqwx"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[""!==s.eqwx&&parseFloat(s.eqwx)>95?a("span",{staticStyle:{background:"#5CAD33",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.eqwx)+"%")]):""!==s.eqwx&&parseFloat(s.eqwx)>=50&&parseFloat(s.eqwx)<=95?a("span",{staticStyle:{background:"#99E680",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.eqwx)+"%")]):""!==s.eqwx&&parseFloat(s.eqwx)<50?a("span",{staticStyle:{background:"#FF8080",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.eqwx)+"%")]):a("span",[e._v(e._s(s.eqwx))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养计划保养任务条数","min-width":"110px",align:"center",sortable:"",prop:"allup"}}),e._v(" "),a("el-table-column",{attrs:{label:"完成保养任务条数(处理状态:已完成)","min-width":"110px",align:"center",sortable:"",prop:"doneup"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养计划","min-width":"110px",align:"center",sortable:"",prop:"upplan"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[""!==s.upplan&&parseFloat(s.upplan)>95?a("span",{staticStyle:{background:"#5CAD33",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.upplan)+"%")]):""!==s.upplan&&parseFloat(s.upplan)>=50&&parseFloat(s.upplan)<=95?a("span",{staticStyle:{background:"#99E680",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.upplan)+"%")]):""!==s.upplan&&parseFloat(s.upplan)<50?a("span",{staticStyle:{background:"#FF8080",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.upplan)+"%")]):a("span",[e._v(e._s(s.upplan))])]}}])})],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=(a("a78e"),{name:"Rundatatrack",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{table1:{total:0,list:[],listLoading:!0,getdataListParm:{name:"getruntimedatetracklist",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetime:[Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")]}}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},downList:[],isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.table1.list)},get_table_data:function(){var e=this;this.table1.listLoading=!0,this.table1.getdataListParm.parammaps.startTime=Object(l["e"])(this.table1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table1.getdataListParm.parammaps.stopTime=Object(l["e"])(this.table1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),Object(r["e"])(this.table1.getdataListParm).then((function(t){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"index",a+1);console.log("table数据",t.data.list),e.downList=t.data.list,e.table1.list=t.data.list,e.table1.pageNum=t.data.pageNum,e.table1.pageSize=t.data.pageSize,t.data.total&&(e.table1.total=t.data.total),setTimeout((function(){e.table1.listLoading=!1}),300)}))},handleSearch:function(){this.get_table_data()},handleDownload:function(){for(var e=this,t=0;t<this.downList.length;t++)void 0!==this.downList[t].partlaid&&""!==this.downList[t].partlaid&&0!==this.downList[t].partlaid&&(this.downList[t].partlaid=this.downList[t].partlaid+"%"),void 0!==this.downList[t].partuse&&""!==this.downList[t].partuse&&0!==this.downList[t].partuse&&(this.downList[t].partuse=this.downList[t].partuse+"%"),void 0!==this.downList[t].eqwx&&""!==this.downList[t].eqwx&&0!==this.downList[t].eqwx&&(this.downList[t].eqwx=this.downList[t].eqwx+"%"),void 0!==this.downList[t].upplan&&""!==this.downList[t].upplan&&0!==this.downList[t].upplan&&(this.downList[t].upplan=this.downList[t].upplan+"%");Promise.all([a.e("chunk-39889fb2"),a.e("chunk-d17f893e")]).then(a.bind(null,"a1cf")).then((function(t){var a=[["序号","牧场","备件保管","","","","","","设备处长","","","","","",""]],s=[["","","手动入库单据数量","采购入库单据数量","备件入库","手动出库单据数量","领用出库单据数量","备件出库","领用单据数量(状态:已通过)","领用单据数量(状态:已通过)领用单内维保/保养单号单据","设备维修","保养计划保养任务条数","完成保养任务条数(处理状态:已完成)","保养计划"]],i=["index","pastureName","sdlaid","cglaid","partlaid","sduse","lyuse","partuse","allapply","wbapply","eqwx","allup","doneup","upplan"],r=e.downList.map((function(e){return i.map((function(t){return e[t]}))})),n=["A1:A2","B1:B2","C1:H1","I1:O1"];t.export_json_to_excel({multiHeader:a,multiHeader2:s,data:r,filename:"运行数据追踪",merges:n})}))}}}),m=p,c=(a("0fc4"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"47f1":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol>'});n.a.add(l);t["default"]=l},"47ff":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol>'});n.a.add(l);t["default"]=l},"48db":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件消耗统计",use:"icon-备件消耗统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件消耗统计"><defs><style type="text/css"></style></defs><path d="M512 447.70625c79.36875 0 153.50625-7.2 222.46875-21.6s123.4125-35.6625 163.2375-63.7875v85.3875c0 23.11875-17.26875 44.55-51.75 64.29375s-81.3375 35.4375-140.625 46.96875C646.1 570.5 581.6375 576.29375 512 576.29375s-134.1-5.79375-193.3875-17.325c-59.23125-11.5875-106.0875-27.225-140.625-46.96875-34.48125-19.74375-51.75-41.175-51.75-64.29375v-85.3875c39.825 28.125 94.275 49.3875 163.2375 63.7875 69.01875 14.4 143.15625 21.6 222.525 21.6z m0 385.70625c79.36875 0 153.50625-7.2 222.46875-21.6s123.4125-35.6625 163.2375-63.7875v85.3875c0 23.11875-17.26875 44.55-51.75 64.29375s-81.3375 35.4375-140.625 46.96875C646.1 956.20625 581.6375 962 512 962s-134.1-5.79375-193.3875-17.325c-59.2875-11.53125-106.14375-27.225-140.625-46.96875S126.2375 856.53125 126.2375 833.4125v-85.3875c39.825 28.125 94.275 49.3875 163.2375 63.7875 69.01875 14.4 143.15625 21.6 222.525 21.6z m0-192.825c79.36875 0 153.50625-7.2 222.46875-21.6s123.4125-35.6625 163.2375-63.7875v85.3875c0 23.11875-17.26875 44.55-51.75 64.29375s-81.3375 35.38125-140.625 46.96875c-59.23125 11.53125-123.69375 17.26875-193.33125 17.26875s-134.1-5.79375-193.3875-17.325c-59.2875-11.53125-106.14375-27.225-140.625-46.96875s-51.75-41.175-51.75-64.29375v-85.33125c39.825 28.125 94.275 49.3875 163.2375 63.7875 69.01875 14.4 143.15625 21.6 222.525 21.6zM512 62c69.6375 0 134.1 5.79375 193.3875 17.325 59.2875 11.53125 106.14375 27.225 140.625 46.96875s51.75 41.175 51.75 64.29375v64.29375c0 23.11875-17.26875 44.55-51.75 64.29375s-81.3375 35.38125-140.625 46.96875c-59.2875 11.53125-123.75 17.26875-193.3875 17.26875s-134.1-5.79375-193.3875-17.325c-59.2875-11.53125-106.14375-27.225-140.625-46.96875s-51.75-41.175-51.75-64.29375v-64.2375c0-23.11875 17.26875-44.55 51.75-64.29375s81.3375-35.4375 140.625-46.96875C377.9 67.79375 442.3625 62 512 62z m0 0" p-id="3023" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"48e8":function(e,t,a){},49173:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备指标",use:"icon-设备指标-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备指标"><defs><style type="text/css"></style></defs><path d="M390.4 614.4v76.8a19.2 19.2 0 0 1-38.4 0v-76.8a19.2 19.2 0 0 1 38.4 0zM492.8 576a19.2 19.2 0 0 1 38.4 0V691.2a19.2 19.2 0 0 1-38.4 0v-115.2zM633.6 537.6v153.6a19.2 19.2 0 0 0 38.4 0v-153.6a19.2 19.2 0 0 0-38.4 0zM448.3072 343.808a19.2 19.2 0 0 1 24.9856 0l76.1088 65.2544 57.0368-57.0624H550.4a19.2 19.2 0 0 1 0-38.4h102.4a19.2 19.2 0 0 1 19.2 19.2v115.2a19.2 19.2 0 0 1-38.4 0v-68.864l-69.632 69.632a19.2 19.2 0 0 1-26.0608 1.024L460.8 383.6672l-77.1072 66.0736a19.2 19.2 0 1 1-24.9856-29.1328l89.6-76.8z" p-id="3848" /><path d="M281.6 185.6A44.8 44.8 0 0 0 236.8 230.4v537.6c0 24.7296 20.0704 44.8 44.8 44.8h460.8A44.8 44.8 0 0 0 787.2 768V230.4A44.8 44.8 0 0 0 742.4 185.6H281.6zM275.2 230.4a6.4 6.4 0 0 1 6.4-6.4h460.8a6.4 6.4 0 0 1 6.4 6.4v537.6a6.4 6.4 0 0 1-6.4 6.4H281.6a6.4 6.4 0 0 1-6.4-6.4V230.4z" p-id="3849" /></symbol>'});n.a.add(l);t["default"]=l},4994:function(e,t,a){},"4a2c":function(e,t,a){"use strict";a("933a")},"4a4f":function(e,t,a){"use strict";a("5d38")},"4a98":function(e,t,a){},"4b03":function(e,t,a){},"4b1a":function(e,t,a){},"4b3b":function(e,t,a){},"4b62":function(e,t,a){},"4ba3":function(e,t,a){},"4c19":function(e,t,a){"use strict";var s=a("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_resizeHandler:function(){var e=this;return Object(s["a"])((function(){e.chart&&e.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"4cd2":function(e,t,a){},"4cea":function(e,t,a){},"4d63":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-角色管理",use:"icon-角色管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-角色管理"><defs><style type="text/css"></style></defs><path d="M837.027 73.873l-650.183 0-100.029 100.029 0 800.225 600.169 0 50.013-50.307 0-649.89-49.234-50.013-500.92 0 50.013-50.013 550.156-1.075 50.013 50.796 0 649.402 100.029 0 0-699.417-100.029-99.735zM235.981 732.898c33.114-35.265 77.071-72.727 109.991-83.471 12.503-4.053 26.471-35.019 20.22-54.605-0.39-1.025-0.878-1.953-1.366-2.979-0.979-2.052-1.856-4.054-3.417-5.763-12.112-13.089-19.246-26.229-23.739-37.316-0.195-0.391-0.292-0.733-0.485-1.124 0-0.048 0-0.097 0-0.146l0-0.05c-0.391-0.978-0.781-1.903-1.076-2.782-0.486-1.271-0.683-2.246-1.073-3.418-0.88-2.589-1.759-5.128-2.444-7.766 0-0.048 0-0.098 0-0.146-0.292-1.223-0.587-2.396-0.782-3.616-0.977-5.031-1.268-8.301-1.268-8.301l0.389 0c-0.099-2.395-0.686-4.689-0.686-7.131 0-47.035 38.097-85.132 85.18-85.132 0 0 0 0 0.099 0l0 0c47.083 0 85.18 38.096 85.18 85.132 0 2.444-0.489 4.738-0.686 7.131l0.391 0c0 0-0.196 3.272-1.172 8.301-0.292 1.22-0.486 2.394-0.782 3.616 0 0.048-0.096 0.098-0.096 0.146-0.586 2.637-1.466 5.177-2.344 7.766-0.39 1.172-0.687 2.15-1.076 3.418-0.292 0.879-0.683 1.807-1.072 2.782l0 0.05c0 0.049-0.1 0.098-0.1 0.146-0.096 0.391-0.196 0.733-0.485 1.124-4.398 11.087-11.626 24.227-23.64 37.316-1.562 1.709-2.539 3.711-3.517 5.763-0.489 1.025-0.88 1.954-1.367 2.979-6.155 19.588 7.621 50.209 20.22 54.605 34.384 11.869 76.976 48.207 109.991 83.471l0 38.389-358.986 0 0-38.389z" p-id="23112" /></symbol>'});n.a.add(l);t["default"]=l},"4df5":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol>'});n.a.add(l);t["default"]=l},"4e06":function(e,t,a){},"4e2d":function(e,t,a){"use strict";a("4b3b")},"4e4f":function(e,t,a){"use strict";a("c90b")},"4f2f":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件盘点",use:"icon-备件盘点-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件盘点"><defs><style type="text/css"></style></defs><path d="M518.826667 1024H170.666667c-54.613333 0-102.4-47.786667-102.4-102.4V102.4C68.266667 47.786667 116.053333 0 170.666667 0h682.666666c54.613333 0 102.4 47.786667 102.4 102.4v416.426667c0 20.48-13.653333 34.133333-34.133333 34.133333s-34.133333-13.653333-34.133333-34.133333V102.4c0-20.48-13.653333-34.133333-34.133334-34.133333H170.666667c-20.48 0-34.133333 13.653333-34.133334 34.133333v819.2c0 20.48 13.653333 34.133333 34.133334 34.133333h348.16c20.48 0 34.133333 13.653333 34.133333 34.133334s-13.653333 34.133333-34.133333 34.133333z" p-id="2179" /><path d="M614.4 887.466667c-54.613333 0-102.4-20.48-143.36-61.44C430.08 785.066667 409.6 737.28 409.6 682.666667s20.48-109.226667 61.44-143.36c81.92-81.92 211.626667-81.92 286.72 0C798.72 580.266667 819.2 628.053333 819.2 682.666667s-20.48 109.226667-61.44 143.36c-34.133333 40.96-88.746667 61.44-143.36 61.44z m0-341.333334c-34.133333 0-68.266667 13.653333-95.573333 40.96C491.52 614.4 477.866667 648.533333 477.866667 682.666667c0 34.133333 13.653333 68.266667 40.96 95.573333 54.613333 54.613333 136.533333 54.613333 191.146666 0C737.28 750.933333 750.933333 716.8 750.933333 682.666667c0-34.133333-13.653333-68.266667-40.96-95.573334C689.493333 559.786667 648.533333 546.133333 614.4 546.133333z" p-id="2180" /><path d="M860.16 962.56c-6.826667 0-20.48 0-27.306667-6.826667l-95.573333-102.4c-13.653333-13.653333-13.653333-34.133333 0-47.786666 13.653333-13.653333 34.133333-13.653333 47.786667 0l95.573333 95.573333c13.653333 13.653333 13.653333 34.133333 0 47.786667-6.826667 6.826667-13.653333 13.653333-20.48 13.653333zM785.066667 273.066667H238.933333c-20.48 0-34.133333-13.653333-34.133333-34.133334s13.653333-34.133333 34.133333-34.133333h546.133334c20.48 0 34.133333 13.653333 34.133333 34.133333s-13.653333 34.133333-34.133333 34.133334zM477.866667 477.866667H238.933333c-20.48 0-34.133333-13.653333-34.133333-34.133334s13.653333-34.133333 34.133333-34.133333h238.933334c20.48 0 34.133333 13.653333 34.133333 34.133333s-13.653333 34.133333-34.133333 34.133334zM307.2 682.666667h-68.266667c-20.48 0-34.133333-13.653333-34.133333-34.133334s13.653333-34.133333 34.133333-34.133333h68.266667c20.48 0 34.133333 13.653333 34.133333 34.133333s-13.653333 34.133333-34.133333 34.133334z" p-id="2181" /></symbol>'});n.a.add(l);t["default"]=l},"4f42":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-保养完成率",use:"icon-保养完成率-usage",viewBox:"0 0 1322 1024",content:'<symbol class="icon" viewBox="0 0 1322 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-保养完成率"><defs><style type="text/css"></style></defs><path d="M989.331661 259.04953h-87.954858V160.822571c0-51.360502-41.730408-92.769906-92.769906-92.769906h-239.468339c-51.360502 0-92.769906 41.730408-92.769906 92.769906v97.905956h-94.695925c-51.360502 0-92.769906 41.730408-92.769906 92.769906v500.76489c0 51.360502 41.730408 92.769906 92.769906 92.769906h607.979938c51.360502 0 92.769906-41.730408 92.769906-92.769906v-500.76489c0-51.039498-41.730408-92.448903-93.09091-92.448903zM526.124138 160.822571c0-23.433229 19.260188-42.693417 42.693417-42.693417h239.468338c23.433229 0 42.693417 19.260188 42.693417 42.693417v97.905956H526.124138V160.822571z m505.90094 691.761755c0 23.433229-19.260188 42.693417-42.693417 42.693417H381.351724c-23.433229 0-42.693417-19.260188-42.693417-42.693417v-500.76489c0-23.433229 19.260188-42.693417 42.693417-42.693417h607.979937c23.433229 0 42.693417 19.260188 42.693417 42.693417v500.76489z" fill="#ffffff" p-id="2121" /><path d="M876.338558 577.163636h-170.773668v-170.773667c0-13.803135-11.23511-25.038245-25.038244-25.038245s-25.038245 11.23511-25.038245 25.038245v170.773667H484.714734c-13.803135 0-25.038245 11.23511-25.038245 25.038245s11.23511 25.038245 25.038245 25.038244h170.773667v170.773668c0 13.803135 11.23511 25.038245 25.038245 25.038245s25.038245-11.23511 25.038244-25.038245v-170.773668H876.338558c13.803135 0 25.038245-11.23511 25.038245-25.038244s-11.23511-25.038245-25.038245-25.038245z" fill="#ffffff" p-id="2122" /></symbol>'});n.a.add(l);t["default"]=l},"4f63":function(e,t,a){"use strict";a("d6bc")},"4fff":function(e,t,a){},5022:function(e,t,a){},"503d":function(e,t,a){},5095:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pannel"},[a("div",{staticClass:"line top"},[e._t("top")],2),e._v(" "),a("div",{staticClass:"line"},[a("div",{staticClass:"cell left"},[e._t("left")],2),e._v(" "),a("div",{staticClass:"cell"},[e._t("content")],2),e._v(" "),a("div",{staticClass:"cell right"},[e._t("right")],2)]),e._v(" "),a("div",{staticClass:"line foot"},[e._t("foot")],2)])},i=[];a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return i}))},"50ca":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备类别"},model:{value:e.getdataListParm.parammaps.assetType,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetType",t)},expression:"getdataListParm.parammaps.assetType"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"warning",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.elecNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.elecName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"160px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"240px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(t){return e.handleCard(s)}}},[e._v("卡片")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"资产编号",prop:"elecNumber"}},[a("el-input",{ref:"elecNumber",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.elecNumber,callback:function(t){e.$set(e.temp,"elecNumber",t)},expression:"temp.elecNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称",prop:"elecName"}},[a("el-input",{ref:"elecName",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.elecName,callback:function(t){e.$set(e.temp,"elecName",t)},expression:"temp.elecName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态",disabled:"card"===e.dialogStatus},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌",prop:"providerId"}},[a("el-autocomplete",{staticClass:"inline-input",attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入内容",disabled:"card"===e.dialogStatus},on:{select:e.handleSelect},model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场",disabled:"card"===e.dialogStatus},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部门",disabled:"card"===e.dialogStatus},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人",disabled:"card"===e.dialogStatus},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"card"===e.dialogStatus},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"card"===e.dialogStatus},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"原值",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{disabled:"card"===e.dialogStatus},model:{value:e.temp.yuanzhi,callback:function(t){e.$set(e.temp,"yuanzhi",t)},expression:"temp.yuanzhi"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"设备类别",disabled:"card"===e.dialogStatus},model:{value:e.temp.assTypeId,callback:function(t){e.$set(e.temp,"assTypeId",t)},expression:"temp.assTypeId"}},e._l(e.findAllAssetType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",attrs:{disabled:"card"===e.dialogStatus},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),"card"!=e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d={name:"ElectroData",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getUseElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:c.a.get("pasturename"),status:"",assetType:""}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],temp:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,typeName:"",assTypeId:"",elecNumber:"",elecName:"",status:"",specification:"",providerName:"",purpose:"",purchaseDate:"",entranceDate:"",equipmentNumber:"",yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",financeNumber:""},dialogFormVisible:!1,dialogStatus:"",textMap:{card:"卡片",update:"编辑",create:"新增"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e),this.temp.providerId=e.id},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid,this.temp.elecNumber="",this.temp.elecName="",this.temp.status="",this.temp.specification="",this.temp.providerName="",this.temp.purpose="",this.temp.purchaseDate="",this.temp.entranceDate="",this.temp.equipmentNumber="",this.temp.yearUpkeepCost="",this.temp.yearMaintainDost="",this.temp.yuanzhi="",this.temp.financeNumber=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertUseElec",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},handleCard:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="card",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateUseElec",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("设备名称:"+e.elecName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUseElec",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},u=d,h=(a("05c9"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"8ce84254",null);t["default"]=g.exports},5103:function(e,t,a){"use strict";a("4a98")},5198:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"51ff":function(e,t,a){var s={"./SQL管理.svg":"e015","./dashboard.svg":"f782","./elec.svg":"7d4f","./example.svg":"30c3","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./file1.svg":"6006","./file2.svg":"df54","./file3.svg":"c9ed","./form.svg":"eb1b","./fullscreen.svg":"9921","./icon-news.svg":"c01c","./link.svg":"18f0","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./peoples.svg":"2f11","./search.svg":"8e8d","./shezhi.svg":"9aa1","./shopping.svg":"12a5","./star.svg":"708a","./steam.svg":"26c4","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5","./water.svg":"2edb","./专项管理.svg":"c432","./供应商.svg":"270a","./保养.svg":"ee40","./保养完成率.svg":"4f42","./保养计划.svg":"2286","./其他燃动成本.svg":"76f8","./出库及时率.svg":"0344","./单头牛指标.svg":"7217","./合同.svg":"6728","./合同管理.svg":"05b9","./员工.svg":"9c6a","./基础信息.svg":"2429","./备件入库.svg":"694c","./备件出库.svg":"f163","./备件到货及时率.svg":"c5151","./备件台账.svg":"3600","./备件安全库存.svg":"a68f","./备件库存.svg":"08ee","./备件收发明细.svg":"69ca","./备件标准管理.svg":"e20e","./备件消耗统计.svg":"48db","./备件申购记录.svg":"23f9","./备件盘点.svg":"4f2f","./备件盘点报表.svg":"5580","./备件管理.svg":"c4bd","./备件类别.svg":"5552","./备件调拨.svg":"00f5","./备件退库.svg":"f9d6","./备件退货.svg":"a7d0","./备件采购.svg":"54b7","./备件领用记录.svg":"dd0f","./天然气表录入.svg":"9da1","./字典管理.svg":"5c67","./安全库存.svg":"b735","./库存汇总.svg":"1b01","./成本分析.svg":"72a8","./成本录入.svg":"4712","./报表管理.svg":"2f99","./文档上传.svg":"9064","./旧品处理.svg":"60fd","./月预算.svg":"9448","./柴油表录入.svg":"90ae","./校验.svg":"102f","./水表分析.svg":"766c","./水量分析.svg":"3d94","./油卡.svg":"e1dc","./沼气表录入.svg":"7074","./点检.svg":"c02e","./燃动分析.svg":"9649","./牧场管理.svg":"9d68","./牧场设备指标.svg":"331e","./特种设备信息.svg":"c245","./特种设备管理.svg":"89ba","./用电管理.svg":"5e18","./用电设备资料.svg":"840c","./申购入库效率统计.svg":"4489","./电表分析.svg":"bbba","./电量分析.svg":"34c4","./知识库文档.svg":"3e31","./知识库管理.svg":"96d3","./系统管理.svg":"9ae9","./维修.svg":"cb0e","./维修周期效率统计.svg":"432a","./维修工类别.svg":"5453","./维修成本分析.svg":"25a4","./维修类别分析.svg":"f1cd","./角色管理.svg":"4d63","./计量检验预警.svg":"f729","./计量设备管理.svg":"f899","./设备使用记录.svg":"2c1d","./设备变更.svg":"353b","./设备基础信息.svg":"9950","./设备指标.svg":"49173","./设备概况.svg":"ef67","./设备模板.svg":"3548","./设备类别.svg":"cf27","./设备维保.svg":"4361","./设备调拨.svg":"a07a","./设备购置报废统计.svg":"e8e3","./设备运行统计.svg":"15a2","./评估验证.svg":"7192","./资产标准管理.svg":"1cf0","./资产标准配置.svg":"86b2","./资产管理.svg":"d89a","./运行数据追踪.svg":"7e25","./部门.svg":"7b95","./集团设备指标.svg":"57d1","./饲养数.svg":"33ce","./首页.svg":"cba3"};function i(e){var t=r(e);return a(t)}function r(e){var t=s[e];if(!(t+1)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t}i.keys=function(){return Object.keys(s)},i.resolve=r,e.exports=i,i.id="51ff"},5241:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"合同管理",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"contractCode",t)},expression:"getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm.parammaps,"providerName",t)},expression:"getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.getdataListParm.parammaps,"stuteSH",t)},expression:"getdataListParm.parammaps.stuteSH"}},e._l(e.shStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isContractAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isContractTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isContractImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")]):e._e()],1),e._v(" "),e.isContractExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-radio-button",{attrs:{label:"待处理"}}),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"",prop:"startTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",prop:"creatorMan","min-width":"100px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"",prop:"creatorTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isContractSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isContractChange&&"正常"==s.statue&&7==s.SHStatus?a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleChange(s)}}},[e._v("变更")]):e._e(),e._v(" "),e.isContractExamineZG&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isContractExamineZX&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核2")]),e._v(" "),!e.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?e._e():a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]),e._v(" "),e.isContractDelete2?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"合同明细",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.getdataListParm2.parammaps.contractCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"contractCode",t)},expression:"getdataListParm2.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.getdataListParm2.parammaps.statue,callback:function(t){e.$set(e.getdataListParm2.parammaps,"statue",t)},expression:"getdataListParm2.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerName",t)},expression:"getdataListParm2.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.startTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stopTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"100px",align:"center",formatter:e.isZeroStock}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatorMan))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatorTime))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{disabled:""},model:{value:e.createTemp.contractCode,callback:function(t){e.$set(e.createTemp,"contractCode",t)},expression:"createTemp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:e.isDisabled},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"change"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入供应商名称或供应商编号"},on:{focus:e.handleFocusProvider,blur:e.handleBlurProvider,select:e.handleSelectProvider},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date",placeholder:"开始日期","picker-options":e.pickerOptions1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.createTemp.startTime,callback:function(t){e.$set(e.createTemp,"startTime",t)},expression:"createTemp.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date",placeholder:"结束日期","picker-options":e.pickerOptions2,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.createTemp.stopTime,callback:function(t){e.$set(e.createTemp,"stopTime",t)},expression:"createTemp.stopTime"}})],1)],1),e._v(" "),"create"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态",disabled:""},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1):e._e(),e._v(" "),"change"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态"},on:{change:e.changeStatues},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.statues2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:e.isDisabled},on:{change:e.changeIsZero},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorId"}},[a("el-select",{ref:"creatorId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,placeholder:"录入人"},model:{value:e.createTemp.creatorId,callback:function(t){e.$set(e.createTemp,"creatorId",t)},expression:"createTemp.creatorId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date","picker-options":e.pickerOptions3,placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.creatorTime,callback:function(t){e.$set(e.createTemp,"creatorTime",t)},expression:"createTemp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{disabled:e.isDisabled},model:{value:e.createTemp.remark,callback:function(t){e.$set(e.createTemp,"remark",t)},expression:"createTemp.remark"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAdd,expression:"listLoadingAdd"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{focus:function(a){return e.handleFocusBrand(t.row)},blur:function(a){return e.handleBlurBrand(t.row)},select:function(a){e.handleSelectBrand(a,t.row)}},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"70px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"planAmount"}},[a("el-input",{ref:"planAmount",staticStyle:{"margin-top":"15px"},attrs:{disabled:e.isDisabled},model:{value:t.row.planAmount,callback:function(a){e.$set(t.row,"planAmount",a)},expression:"scope.row.planAmount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{disabled:e.isDisabled},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"textarea",placeholder:"备注",disabled:e.isDisabled,autosize:"",maxlength:"100","show-word-limit":""},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}])}),e._v(" "),e.isDisabled2?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data(),e.createTemp.providerName=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{disabled:""},model:{value:e.createTemp.contractCode,callback:function(t){e.$set(e.createTemp,"contractCode",t)},expression:"createTemp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:e.isDisabled},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"change"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入供应商名称或供应商编号"},on:{focus:e.handleFocusProvider,blur:e.handleBlurProvider,select:e.handleSelectProvider},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date",placeholder:"开始日期","picker-options":e.pickerOptions1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.createTemp.startTime,callback:function(t){e.$set(e.createTemp,"startTime",t)},expression:"createTemp.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date",placeholder:"结束日期","picker-options":e.pickerOptions2,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.createTemp.stopTime,callback:function(t){e.$set(e.createTemp,"stopTime",t)},expression:"createTemp.stopTime"}})],1)],1),e._v(" "),"create"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态",disabled:""},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1):e._e(),e._v(" "),"change"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态"},on:{change:e.changeStatues},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.statues2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:e.isDisabled},on:{change:e.changeIsZero},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.createTemp.isZeroStock,callback:function(t){e.$set(e.createTemp,"isZeroStock",t)},expression:"createTemp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorId"}},[a("el-select",{ref:"creatorId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,placeholder:"录入人"},model:{value:e.createTemp.creatorId,callback:function(t){e.$set(e.createTemp,"creatorId",t)},expression:"createTemp.creatorId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,type:"date","picker-options":e.pickerOptions3,placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.creatorTime,callback:function(t){e.$set(e.createTemp,"creatorTime",t)},expression:"createTemp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{disabled:e.isDisabled},model:{value:e.createTemp.remark,callback:function(t){e.$set(e.createTemp,"remark",t)},expression:"createTemp.remark"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{disabled:e.isDisabled,"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAdd,expression:"listLoadingAdd"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChange-1)*e.pageSizeChange+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:e.isDisabled,"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{focus:function(a){return e.handleFocusBrand(t.row)},blur:function(a){return e.handleBlurBrand(t.row)},select:function(a){e.handleSelectBrand(a,t.row)}},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"70px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"planAmount"}},[a("el-input",{ref:"planAmount",staticStyle:{"margin-top":"15px"},attrs:{disabled:e.isDisabled},model:{value:t.row.planAmount,callback:function(a){e.$set(t.row,"planAmount",a)},expression:"scope.row.planAmount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{disabled:e.isDisabled},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"textarea",placeholder:"备注",disabled:e.isDisabled,autosize:"",maxlength:"100","show-word-limit":""},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}])}),e._v(" "),e.isDisabled2?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"primary",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.partSmallSave(s)}}},[e._v("保存")]),e._v(" "),a("a",{staticClass:"del",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.partSmallDelete(s)}}},[e._v("删除")])]}}],null,!1,3376292046)}):e._e()],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChange>0,expression:"totalChange>0"}],attrs:{total:e.totalChange,page:e.getdataListParmChange.offset,limit:e.getdataListParmChange.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmChange,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmChange,"pagecount",t)},pagination:e.get_table_dataChange}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1,e.get_table_data(),e.createTemp.providerName=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("span",[e._v(" "+e._s(e.seeTemp.pastureName)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.seeTemp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(" "+e._s(e.seeTemp.providerName)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("span",[e._v(" "+e._s(e.seeTemp.startTime)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.seeTemp.stopTime)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("span",[e._v(" "+e._s(e.seeTemp.statue)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:""},on:{change:e.changeIsZero},model:{value:e.seeTemp.isZeroStock,callback:function(t){e.$set(e.seeTemp,"isZeroStock",t)},expression:"seeTemp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.isZeroStock,callback:function(t){e.$set(e.seeTemp,"isZeroStock",t)},expression:"seeTemp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.seeTemp.isZeroStock,callback:function(t){e.$set(e.seeTemp,"isZeroStock",t)},expression:"seeTemp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.seeTemp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.seeTemp.creatorTime)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("span",[e._v(" "+e._s(e.seeTemp.remark)+" ")])])],1)],1)],1),e._v(" "),a("el-table",{key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}}),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isContractExamineZG&&2==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]),e._v(" "),e.isContractExamineZX&&5==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核2")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statueSH,callback:function(t){e.$set(e.examineTemp,"statueSH",t)},expression:"examineTemp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("ade3")),n=a("2934"),l=a("6724"),o=a("ed08"),p=(a("61f7"),a("333d")),m=a("5c96"),c=a("a78e"),d=a.n(c),u=a("5f87"),h={name:"Contract",components:{Pagination:p["a"]},directives:{waves:l["a"]},data:function(){var e,t=this;return e={listLoadingAdd:!1,listLoadingSee:!0,total:0,listLoading:!0,requestParam:{},stockAAA:{stockA:"",stockNumber:"",stockName:"",specification:"",amount:"",note:""},postDataPramas:{},requestFilterParams:{returntype:"Map",parammaps:{}},temp:{},searchBtnVisible:!0,dialogPvVisible:!1,parentClass:[],defaultProps:{children:"children",label:"name"},nodeKey:"id",defaultCheckedKeys:[],selectionIndex:[],isContractAdd:[],isContractTemplate:[],isContractImport:[],isContractExport:[],isContractSee:[],isContractChange:[],isContractDelete:[],isContractDelete2:[],isContractExamineZG:[],isContractExamineZX:[],statues:[{id:"0",name:"正常"},{id:"1",name:"已过期"},{id:"2",name:"终止"}],statues2:[{id:"0",name:"正常"},{id:"2",name:"终止"}],shStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],findAllCategory:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],isokDisable:!1,disabled:!0,tableKey:0,rules:{providerName:[{required:!0,message:"必填",trigger:"blur"}],providerId:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}],stopTime:[{required:!0,message:"必填",trigger:"blur"}],statue:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogFormVisible:!1,dialogStatus:"",dialogFormVisible_change:!1,dialogFormVisible_See:!1,textMap:{card:"合同明细打印",create:"新增合同",update:"编辑",change:"变更",examine:"审核",examine2:"审核2",examine3:"审核3"},radioAll:"全部",getdataListParm:{name:"providerPactList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),contractCode:"",statue:"",stuteSH:"",providerName:"",inputDatetime:""}},list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"contractDetail",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",providerName:"",contractCode:"",stopTime:"",startTime:"",statue:"",partCode:"",partName:"",pastureName:d.a.get("pasturename")}},getdataListParmBeforeUploading:{name:"clearPastureStock",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},getdataListParmSee:{name:"getcontratListBybig",returntype:"Map",page:0,offset:0,pagecount:10,parammaps:{}},totalSee:0,getdataListParmChange:{name:"getcontratListBybigtemp",returntype:"Map",page:0,offset:0,pagecount:10,parammaps:{}},listLoadingChange:!0,totalChange:0,activeList:[],active:3,seeTemp:{},listSee:[]},Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"listAdd",[]),Object(r["a"])(e,"requestBrand",{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}}),Object(r["a"])(e,"BrandList",[]),Object(r["a"])(e,"createTemp",{pastureId:this.$store.state.user.pastureid,providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:this.$store.state.user.employeid,creatorTime:Object(o["e"])(new Date,"{y}-{m}-{d}")}),Object(r["a"])(e,"pickerOptions3",{disabledDate:function(e){return e.getTime()>Date.now()}}),Object(r["a"])(e,"pickerOptions1",{disabledDate:function(e){return""!==t.createTemp.stopTime?Object(o["e"])(e.getTime(),"{y}-{m}-{d}")>Object(o["e"])(Date.now(),"{y}-{m}-{d}")||Object(o["e"])(e.getTime(),"{y}-{m}-{d}")>=t.createTemp.stopTime:e.getTime()>Date.now()}}),Object(r["a"])(e,"pickerOptions2",{disabledDate:function(e){return Object(o["e"])(e.getTime(),"{y}-{m}-{d}")<=t.createTemp.startTime}}),Object(r["a"])(e,"getParmCreateNumber",{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:d.a.get("pastureid"),codeType:"HT"}}),Object(r["a"])(e,"requestSparePart",{name:"getPartsListHT",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:d.a.get("pastureid")}}),Object(r["a"])(e,"orderPart",{}),Object(r["a"])(e,"examineTemp",{}),Object(r["a"])(e,"dialogFormVisible_Examine",!1),Object(r["a"])(e,"isStatueReason",!1),Object(r["a"])(e,"isDisabled",!1),Object(r["a"])(e,"isDisabled2",!1),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isPercentage",!1),Object(r["a"])(e,"percentage",1),Object(r["a"])(e,"downloadParam",{}),Object(r["a"])(e,"getParmChargeContractSHStatus",{name:"chargeContractSHStatus",parammaps:{}}),Object(r["a"])(e,"getdataListParmCopybigcontract",{name:"Copybigcontract",parammaps:{}}),e},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"updatePastureStock",importParams:"合同编号,牧场,合同开始日期,合同截止日期,供应商,物料编码,品名,规格型号,计量单位,品牌,计划量,单价,备注,一级分类,二级分类,三级分类,填写人,填写时间,分管副场审核,分管副场审核时间,场长审核,场长审核时间,运营办审核,运营办审核时间,过期处理人,过期处理时间",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="customs:contract:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isContractAdd=t;var a="customs:contract:template",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isContractTemplate=s;var i="customs:contract:import",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isContractImport=r;var l="customs:contract:export",o=Object(n["v"])(this.$store.state.user.buttons,l);this.isContractExport=o;var p="customs:contract:see",m=Object(n["v"])(this.$store.state.user.buttons,p);this.isContractSee=m;var c="customs:contract:change",d=Object(n["v"])(this.$store.state.user.buttons,c);this.isContractChange=d;var u="customs:contract:delete",h=Object(n["v"])(this.$store.state.user.buttons,u);this.isContractDelete=h;var g="customs:contract:delete2",f=Object(n["v"])(this.$store.state.user.buttons,g);this.isContractDelete2=f;var b="customs:contract:examineZG",v=Object(n["v"])(this.$store.state.user.buttons,b);this.isContractExamineZG=v;var y="customs:contract:examineZX",_=Object(n["v"])(this.$store.state.user.buttons,y);this.isContractExamineZX=_},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},get_table_data:function(){var e=this;this.listLoading=!0,console.log(this.$refs["inputDatetime"]),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),console.log("table发送数据",this.getdataListParm.parammaps),Object(n["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),300)}))},form_search:function(){this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(n["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="providerPactList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:d.a.get("pasturename"),contractCode:"",statue:"",stuteSH:"",providerName:"",inputDatetime:""},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="providerPactWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,contractCode:this.getdataListParm.parammaps.contractCode,statue:this.getdataListParm.parammaps.statue,stuteSH:this.getdataListParm.parammaps.stuteSH,providerName:this.getdataListParm.parammaps.providerName,inputDatetime:this.getdataListParm.parammaps.inputDatetime,empId:d.a.get("employeid"),pastureId:d.a.get("pastureid"),deptId:d.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="providerPactWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,contractCode:this.getdataListParm.parammaps.contractCode,statue:this.getdataListParm.parammaps.statue,stuteSH:this.getdataListParm.parammaps.stuteSH,providerName:this.getdataListParm.parammaps.providerName,inputDatetime:this.getdataListParm.parammaps.inputDatetime,empId:d.a.get("employeid"),pastureId:d.a.get("pastureid"),deptId:d.a.get("departmentid")},this.get_table_data())},SHStatus:function(e){return 2==e.SHStatus||3==e.SHStatus?"审核中":4==e.SHStatus?"未通过":5==e.SHStatus?"审核中":6==e.SHStatus?"未通过":7==e.SHStatus?"通过":8==e.SHStatus?"未通过":void 0},isZeroStock:function(e){return 0==e.isZeroStock?"否":1==e.isZeroStock?"是":void 0},form_see:function(e){this.seeTemp=Object.assign({},e),this.dialogStatus="card",this.dialogFormVisible_See=!0,console.log("查看上方数据(从table读取)",this.seeTemp.isZeroStock),this.getdataListParmSee.parammaps.id=e.id,this.get_table_dataSee();var t="未通过原因:"+this.seeTemp.workflowNote;2==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核"},{title:"设备中心审核"}],this.active=1):3==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备中心审核"}],this.active=2):4==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"设备中心审核"}],this.active=2):5==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备中心审核"}],this.active=2):6==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备中心审核"}],this.active=3):7==this.seeTemp.SHStatus?(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备中心审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=4):8==this.seeTemp.SHStatus&&(this.activeList=[{title:"合同录入",date:this.seeTemp.creatorTime,name:this.seeTemp.creatorMan},{title:"办公室主任审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备中心审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=4)},get_table_dataSee:function(){var e=this;Object(n["e"])(this.getdataListParmSee).then((function(t){if(e.listSee=t.data.list,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),null!==t.data.list)for(var a=0;a<t.data.list.length;a++)if(null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;e.listSee[a].srcpath=s,e.listSee[a].picpath=i}else e.listSee[a].srcpath="",e.listSee[a].picpath="";console.log("查看下方table数据",e.listSee),setTimeout((function(){e.listLoadingSee=!1}),300)}))},resetCreateTemp:function(){Object(o["e"])(new Date,"{y}-{m}-{d}"),this.temp.defaultCheckedKeys=[],this.list2=null,this.listAdd=[],this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.providerName="",this.createTemp.startTime="",this.createTemp.stopTime="",this.createTemp.statue="",this.createTemp.isZeroStock=0,this.createTemp.creatorId=this.$store.state.user.employeid,this.createTemp.creatorTime=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.contractCode=""},form_add:function(){var e=this;this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.record="#409EFF",this.isDisabled2=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(n["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("合同编号",t.data.list[0].orderCode),e.createTemp.contractCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeTime:function(e){Object(o["e"])(new Date,"{y}-{m}-{d}")<=this.createTemp.stopTime?(this.createTemp.statue="正常",this.createTemp.statueId=0):(this.createTemp.statue="已过期",this.createTemp.statueId=1)},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(n["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listAdd.length>0?this.listAdd.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(n["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e,t){console.log("品牌模糊查询选中值",e),console.log("品牌模糊查询选中值所在行",t),this.$set(t,"brandName",e.brandName),this.$set(t,"brandId",e.brandId),this.$forceUpdate()},handleFocusBrand:function(e){this.$set(e,"brandName",""),this.$set(e,"brandId","")},handleBlurBrand:function(e){""==e.brandId&&(this.$set(e,"brand",""),this.$set(e,"brandName",""),this.$set(e,"brandId",""))},partDelete:function(e){var t=this;console.log(this.listAdd),m["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].myid===e.myid)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.createTemp.contractCode||null==e.createTemp.contractCode||void 0==e.createTemp.contractCode?Object(n["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("合同编号",t.data.list[0].orderCode),e.createTemp.contractCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].planAmount||null==this.listAdd[t].brand||null==this.listAdd[t].price||""==this.listAdd[t].planAmount||""===this.listAdd[t].brand||""===this.listAdd[t].brandId||""==this.listAdd[t].price||void 0==this.listAdd[t].brand||void 0==this.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,5})?$)|(^\d\.\d{1,5}$)/;if(!s.test(parseFloat(this.listAdd[t].price)))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContract",type:"e",parammaps:{pastureId:this.createTemp.pastureId,providerId:this.createTemp.providerId,providerName:this.createTemp.providerName,startTime:this.createTemp.startTime,stopTime:this.createTemp.stopTime,contractCode:this.createTemp.contractCode,creatorId:this.createTemp.creatorId,creatorMan:this.createTemp.creatorMan,creatorTime:this.createTemp.creatorTime,isZeroStock:this.createTemp.isZeroStock,statue:1}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertContract",type:"e",parammaps:{bigId:"@insertBigContract.LastInsertId",pastureId:this.createTemp.pastureId,pastureName:"@insertSpotList.pastureName",partId:"@insertSpotList.partId",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit"}},Object(n["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisible=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},beforeUploading:function(){var e=this;Object(n["k"])(this.getdataListParmBeforeUploading).then((function(t){setTimeout((function(){e.listLoading=!1}),300)}))},handleExamine:function(e){console.log("点击了设备主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeStatue:function(e){console.log(e),this.isStatueReason=2==e},createExamineData:function(){var e=this;console.log("点击了设备主管审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="contractCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=5:e.requestParam.parammaps.statue=4,e.requestParam.parammaps.empId=d.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(n["k"])(e.requestParam).then((function(t){console.log("设备主管审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了设备助理审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了设备助理审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="contractCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=5:e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=d.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(n["k"])(e.requestParam).then((function(t){console.log("设备助理审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了设备中心审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了设备中心审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(1===e.examineTemp.statueSH?(e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:7,empId:d.a.get("employeid"),workflowNote:e.examineTemp.workflowNote,id:e.examineTemp.id}},e.requestParam.data[1]={name:"updateBigcontractbyCode",type:"e",parammaps:{precontractCode:e.examineTemp.precontractCode}},Object(n["c"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))):(e.requestParam.name="contractCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=d.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(n["k"])(e.requestParam).then((function(t){console.log("设备中心审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)}))))}))},get_table_dataChange:function(){var e=this;Object(n["e"])(this.getdataListParmChange).then((function(t){if(e.$nextTick((function(){e.listAdd=t.data.list})),e.pageNumChange=t.data.pageNum,e.pageSizeChange=t.data.pageSize,t.data.total&&(e.totalChange=t.data.total),null!==t.data.list)for(var a=0;a<t.data.list.length;a++)if(null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;e.listAdd[a].srcpath=s,e.listAdd[a].picpath=i}else e.listAdd[a].srcpath="",e.listAdd[a].picpath="";console.log("变更下方table数据",e.listSee),setTimeout((function(){e.listLoadingChange=!1}),300)}))},handleChange:function(e){var t=this;this.getParmChargeContractSHStatus.parammaps.contractCode=e.contractCode,Object(n["e"])(this.getParmChargeContractSHStatus).then((function(a){t.$nextTick((function(){0==a.data.list[0].flag?(t.getdataListParmCopybigcontract.parammaps.id=e.id,t.getdataListParmCopybigcontract.parammaps.pastureId=e.pastureId,Object(n["e"])(t.getdataListParmCopybigcontract).then((function(a){t.dialogStatus="change",t.dialogFormVisible_change=!0,t.createTemp=Object.assign({},e),t.createTemp.precontractCode=e.contractCode,t.isDisabled=!1,t.isDisabled2=!0,t.getCreateNumber(),t.getdataListParmChange.parammaps.id=a.data.list[0].msg,t.get_table_dataChange()}))):t.$message({message:"此合同变更审核中,不可重复变更",type:"warning"})}))}))},changeStatues:function(e){"终止"==e?(this.isDisabled=!0,this.isDisabled2=!1):(this.isDisabled=!1,this.isDisabled2=!0)},partSmallSave:function(e){var t=this;if(console.log(e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),null==e.id||void 0==e.id){if(""==e.brand||""==e.brandId||""==e.planAmount||""==e.price)return this.$message({message:"请检查备件品牌或计划量或单价是否为空",type:"warning"}),!1;this.postDataPramas.name="updatecontrattempNoId",this.postDataPramas.parammaps={},this.postDataPramas.parammaps.bigId=this.getdataListParmChange.parammaps.id,this.postDataPramas.parammaps.pastureId=this.createTemp.pastureId,this.postDataPramas.parammaps.pastureName=this.createTemp.pastureName,this.postDataPramas.parammaps.partId=e.partId,this.postDataPramas.parammaps.partName=e.partName,this.postDataPramas.parammaps.partCode=e.partCode,this.postDataPramas.parammaps.specification=e.specification,this.postDataPramas.parammaps.price=e.price,this.postDataPramas.parammaps.brandId=e.brandId,this.postDataPramas.parammaps.brand=e.brand,this.postDataPramas.parammaps.planAmount=e.planAmount,this.postDataPramas.parammaps.remark=e.remark,this.postDataPramas.parammaps.unit=e.unit,Object(n["k"])(this.postDataPramas).then((function(e){console.log("保存发送参数",t.requestParam),"fail"!==e.msg?(t.get_table_dataChange(),t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}else{if(""==e.brand||""==e.brandId||""==e.planAmount||""==e.price)return this.$message({message:"请检查备件品牌或计划量或单价是否为空",type:"warning"}),!1;this.postDataPramas.name="updatecontrattemp",this.postDataPramas.parammaps={},this.postDataPramas.parammaps.brandId=e.brandId,this.postDataPramas.parammaps.brand=e.brand,this.postDataPramas.parammaps.planAmount=e.planAmount,this.postDataPramas.parammaps.price=e.price,this.postDataPramas.parammaps.remark=e.remark,this.postDataPramas.parammaps.id=e.id,Object(n["k"])(this.postDataPramas).then((function(e){console.log("保存发送参数",t.requestParam),"fail"!==e.msg?(t.get_table_dataChange(),t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}},partSmallDelete:function(e){var t=this;null==e.id||void 0==e.id?m["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].myid===e.myid)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}})):m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.name="deletecontrattemp",t.postDataPramas.parammaps={},t.postDataPramas.parammaps["id"]=e.id,Object(n["k"])(t.postDataPramas).then((function(){t.get_table_dataChange(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},changeData:function(){var e=this;"终止"==this.createTemp.statue?(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.name="updatecontractstatu",e.postDataPramas.parammaps={},e.postDataPramas.parammaps.id=e.createTemp.id,Object(n["k"])(e.postDataPramas).then((function(t){console.log("变更保存发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.get_table_data(),e.$notify({title:"成功",message:"变更成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="Copybigcontracttemp",e.postDataPramas.parammaps={},e.postDataPramas.parammaps.id=e.getdataListParmChange.parammaps.id,Object(n["k"])(e.postDataPramas).then((function(t){console.log("变更保存发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.get_table_data(),e.$notify({title:"成功",message:"变更成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))})))},handleDownload:function(){var e=this;this.$alert("合同管理正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="contractDownload",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["合同编号","牧场","合同开始日期","合同截止日期","供应商","物料编码","品名","规格型号","计量单位","品牌","计划量","单价","备注","一级分类","二级分类","三级分类","填写人","填写时间","合同状态","是否零库存(0否,1是)"],filterVal:["contractCode","pastureName","startTime","stopTime","providerName","partCode","partName","specification","unit","brand","planAmount","price","remark","","","","creatorMan","creatorTime","statue","isZeroStock"],tableDatas:t.data.list,sheetName:"合同管理"}];Object(o["d"])(e,"合同管理",!0,"xlsx")}))}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(n["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["合同编号","牧场","合同开始日期","合同截止日期","供应商","物料编码","品名","规格型号","计量单位","品牌","计划量","单价","备注","一级分类","二级分类","三级分类","填写人","填写时间"],r=["合同编号","牧场","合同开始日期","合同截止日期","供应商","物料编码","品名","规格型号","计量单位","品牌","计划量","单价","备注","一级分类","二级分类","三级分类","填写人","填写时间"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"合同信息模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["合同编号","牧场","合同开始日期","合同截止日期","供应商","物料编码","品名","规格型号","计量单位","品牌","计划量","单价","备注","一级分类","二级分类","三级分类","填写人","填写时间","分管副场审核","分管副场审核时间","场长审核","场长审核时间","运营办审核","运营办审核时间","过期处理人","过期处理时间","报错信息"],r=["合同编号","牧场","合同开始日期","合同截止日期","供应商","物料编码","品名","规格型号","计量单位","品牌","计划量","单价","备注","一级分类","二级分类","三级分类","填写人","填写时间","分管副场审核","分管副场审核时间","场长审核","场长审核时间","运营办审核","运营办审核时间","过期处理人","过期处理时间","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"合同报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelectProvider:function(e){console.log(e),this.$set(this.createTemp,"providerId",e.id),this.$set(this.createTemp,"providerName",e.name)},handleFocusProvider:function(){this.createTemp.providerId="",this.createTemp.providerName=""},handleBlurProvider:function(){""==this.createTemp.providerId&&(this.createTemp.providerId="",this.createTemp.providerName="")},tableCellClassName:function(e){var t=e.row,a=e.column,s=e.rowIndex,i=e.columnIndex;t.index=s,a.index=i},selected:function(e){this.selectionIndex=[],this.selectionIndex.push(3,4,5)},popoverHide:function(e,t){this.temp.categoryId=e,this.temp.stockNumber=t.checkNumber},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateStock",e.requestParam.parammaps=e.temp,Object(n["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){this.temp=Object.assign({},e),this.defaultCheckedKeys=[this.temp.categoryId],this.dialogStatus="update",this.dialogFormVisible=!0,this.getdataListParmSee.parammaps.pastureId=e.pastureId,this.getdataListParmSee.parammaps.contractNO=e.contractNO,this.get_table_dataCard()},get_table_dataCard:function(){var e=this;Object(n["e"])(this.getdataListParmSee).then((function(t){console.log(e.list2),setTimeout((function(){e.listLoadingAdd=!1}),300)}))},form_delete:function(e){var t=this;console.log("点击了删除"),m["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigContract",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deleteContract",type:"e",parammaps:{bigId:e.id}},Object(n["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},stockSearch:function(e,t){this.requestFilterParams.parammaps={},this.requestFilterParams.name="findByDimStock",this.requestFilterParams.parammaps["stockA"]=e,Object(n["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleStockSelect:function(e){var t=this,a=0;Object(n["e"])(this.requestFilterParams).then((function(s){t.$nextTick((function(){s.data.list.length>0&&(t.stockAAA={},e.repertory<=0?t.$notify({title:"添加失败",message:"此备件无库存了,请联系库管尽快补货哦...",type:"warning",duration:2e3}):(null===t.list2&&(t.list2=[]),t.list2.some((function(t,s){t.stockNumber===e.stockNumber&&(a=1)})),0===a&&t.list2.push(e)))}))}))},changeIsZero:function(e){console.log(e)}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},"526f":function(e,t,a){},"52e3":function(e,t,a){"use strict";a("cc20")},5315:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("98d6"),o=a("ed08");a("817d");var p={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},barPastureData:{type:Object,required:!0}},data:function(){return{chart:null,sourceDate:[]}},watch:{barPastureData:{deep:!0,handler:function(e){this.setOptions(e),console.log(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.barPastureData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sourceDate;e.text;this.chart.setOption({title:{text:"最近12个月维修同期对比",subtext:""},legend:{x:"right"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},dataset:{source:t},xAxis:{type:"category",name:"最近12个月",formatter:""},yAxis:{name:"元"},grid:[{left:"15%",right:"17%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]});var a=this;this.chart.on("click",(function(e){a.$emit("chartClick",Object(o["e"])(new Date,"{y}")+"-"+e.name.substring(0,2))}))}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},5346:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门名称","header-align":"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门编码","header-align":"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"仓库编码","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.KCcode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成本中心","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.costCenter_code))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否牧场","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.isPasture,callback:function(a){e.$set(t.row,"isPasture",a)},expression:"scope.row.isPasture"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[e.parentDeptVisible?a("el-form-item",{attrs:{label:"上级部门",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:500,size:"small",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"部门名称",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.deptform.deptname,callback:function(t){e.$set(e.deptform,"deptname",t)},expression:"deptform.deptname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门编码",prop:"deptCode"}},[a("el-input",{ref:"deptCode",attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.deptCode,callback:function(t){e.$set(e.deptform,"deptCode",t)},expression:"deptform.deptCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"仓库编码",prop:"KCcode"}},[a("el-input",{ref:"KCcode",attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.KCcode,callback:function(t){e.$set(e.deptform,"KCcode",t)},expression:"deptform.KCcode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"成本中心",prop:"costCenter_code"}},[a("el-input",{ref:"costCenter_code",model:{value:e.deptform.costCenter_code,callback:function(t){e.$set(e.deptform,"costCenter_code",t)},expression:"deptform.costCenter_code"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v(" 确认新增 ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("3de8")),n=a("6724"),l=a("61f7"),o=a("2934"),p=a("5c96"),m={name:"Dept",components:{TreeSelect:r["a"]},directives:{waves:n["a"]},data:function(){return{disabled:!1,tableKey:0,list:[],parentDept:[],listLoading:!0,requestParam:{name:"createdept"},requestParamDel:{},deptform:{id:"",deptname:"",remark:"",parentid:"",sort:0,enable:"",deptCode:"",costCenter_code:"",KCcode:""},getDeptListParm:{name:"getdeptlistrecu",idname:"id",params:[-1]},getDeptParm:{name:"getdeptrecu",idname:"value",params:[-1]},getDepartListParm:{name:"getalldeptname"},rules:{deptname:[{type:"string",required:!0,message:"部门名称必填",trigger:"blur"}],sort:[{validator:l["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"deptname"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.get_table_data()},methods:{popoverHide:function(e,t){console.log(e,t),this.deptform.parentid=e,this.deptform.pastureId=t.pastureId},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.getDepartListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable),t.data.list[a].isPasture=parseInt(t.data.list[a].isPasture);e.list=Object(o["E"])(t.data.list,"id","parentid","children")}e.parentDept=e.list,setTimeout((function(){e.listLoading=!1}),10)}))},resetRequestParam:function(){this.requestParam={name:"createdept",params:[]},this.deptform.id="",this.deptform.parentid="",this.deptform.deptname="",this.deptform.remark="",this.deptform.costCenter_code="",this.deptform.deptCode="",this.deptform.KCcode="",this.deptform.sort="0",this.deptform.enable="1",this.deptform.isPasture="0"},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parentDeptVisible=!0,this.dialogFormVisible=!0,this.list.length>0?(this.defaultCheckedKeys=[this.list[0].id],this.deptform.parentid=this.list[0].id,this.deptform.pastureId=this.list[0].pastureId):this.deptform.parentid=-1,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.deptname.focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createdept",e.requestParam.parammaps={},e.requestParam.parammaps.deptCode=e.deptform.deptCode,e.requestParam.parammaps.KCcode=e.deptform.KCcode,e.requestParam.parammaps.pastureId=e.deptform.pastureId,e.requestParam.parammaps.parentid=e.deptform.parentid,e.requestParam.parammaps.deptname=e.deptform.deptname,e.requestParam.parammaps.remark=e.deptform.remark,e.requestParam.parammaps.sort=e.deptform.sort,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.isPasture=e.deptform.isPasture,e.requestParam.parammaps.costCenter_code=e.deptform.costCenter_code,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createdept",e.requestParam.parammaps={},e.requestParam.parammaps.deptCode=e.deptform.deptCode,e.requestParam.parammaps.KCcode=e.deptform.KCcode,e.requestParam.parammaps.pastureId=e.deptform.pastureId,e.requestParam.parammaps.parentid=e.deptform.parentid,e.requestParam.parammaps.deptname=e.deptform.deptname,e.requestParam.parammaps.remark=e.deptform.remark,e.requestParam.parammaps.sort=e.deptform.sort,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.isPasture=e.deptform.isPasture,e.requestParam.parammaps.costCenter_code=e.deptform.costCenter_code,Object(o["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["deptname"].focus()})),e.get_table_data(),e.requestParam={name:"createdept",params:[]},e.deptform.id="",e.deptform.deptname="",e.deptform.remark="",e.deptform.costCenter_code="",e.deptform.sort="0",e.deptform.enable="1",e.deptform.isPasture="0",e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.defaultCheckedKeys=[e.parentid],this.parentDeptVisible=e.parentid>0,this.deptform.id=e.id,this.deptform.parentid=e.parentid,this.deptform.deptname=e.deptname,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.enable=e.enable,this.deptform.isPasture=e.isPasture,this.deptform.deptCode=e.deptCode,this.deptform.KCcode=e.KCcode,this.deptform.costCenter_code=e.costCenter_code,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["deptname"].focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updatedept",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.deptCode,e.requestParam.params[1]=e.deptform.KCcode,e.requestParam.params[2]=e.deptform.parentid,e.requestParam.params[3]=e.deptform.deptname,e.requestParam.params[4]=e.deptform.remark,e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.isPasture,e.requestParam.params[8]=e.deptform.costCenter_code,e.requestParam.params[9]=e.deptform.id,Object(o["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updatedept",this.requestParam.params=[],null===t.sort&&(t.sort="0"),this.requestParam.params[0]=t.deptCode,this.requestParam.params[1]=t.KCcode,this.requestParam.params[2]=t.parentid,this.requestParam.params[3]=t.deptname,this.requestParam.params[4]=t.remark,this.requestParam.params[5]=t.sort,this.requestParam.params[6]=t.enable,this.requestParam.params[7]=t.isPasture,this.requestParam.params[8]=t.costCenter_code,this.requestParam.params[9]=t.id,Object(o["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("部门名称:"+e.deptname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParamDel.name="deletedept",t.requestParamDel.params=[],t.requestParamDel.params[0]=e.id,Object(o["k"])(t.requestParamDel).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},"53e5":function(e,t,a){},"543e":function(e,t,a){},5453:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-维修工类别",use:"icon-维修工类别-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-维修工类别"><defs><style type="text/css"></style></defs><path d="M210.810565 0.01088c-33.279646 0-63.615324 6.015936-93.951002 21.119775-18.175807 9.087903-24.319742 33.279646-9.087903 48.383486l103.038905 102.65491-36.351614 36.287614-103.038905-102.718908a27.519708 27.519708 0 0 0-21.247774-9.087904c-12.159871 0-21.247774 6.079935-27.263711 18.175807a211.837749 211.837749 0 0 0 39.359582 244.6694c42.431549 42.239551 94.015001 60.351359 148.542422 60.351359 24.319742 0 48.511485-3.007968 69.759259-12.031872l336.444425 335.292437c-27.26371 75.519198-9.087903 160.062299 48.511485 220.477658 42.431549 42.239551 93.951002 60.415358 148.478422 60.415358 33.407645 0 63.679323-6.015936 94.079-21.119776 18.111808-9.087903 24.191743-33.279646 9.023904-48.383486l-103.038905-102.654909 36.351614-36.287614 103.038905 102.718908a27.519708 27.519708 0 0 0 21.247774 9.087904c12.159871 0 21.247774-6.079935 27.263711-18.175807a211.837749 211.837749 0 0 0-39.359582-244.6694c-42.431549-42.239551-94.015001-60.351359-148.542422-60.351359-24.319742 0-48.511485 3.007968-72.767227 12.031872L404.920502 280.967895c27.26371-75.519198 9.087903-160.062299-48.511484-220.477658A204.541827 204.541827 0 0 0 210.810565 0.01088z m-39.423581 271.869111a59.967363 59.967363 0 0 0 42.495548-18.111807l36.351614-36.287615a58.239381 58.239381 0 0 0 0-84.543101L180.474887 63.370207c9.151903 0 18.239806-3.007968 27.32771-3.007968 39.423581 0 78.783163 15.10384 106.110872 45.311518 42.431549 42.239551 54.527421 102.718909 36.351614 157.054332-9.087903 21.119776-3.007968 45.311519 15.167839 63.423326l336.444425 335.356436c12.159871 12.031872 27.32771 18.047808 42.431549 18.047809 6.079935 0 15.167839 0 21.247775-3.007968a142.07849 142.07849 0 0 1 51.519452-9.023904c39.423581 0 78.847162 15.10384 106.110873 45.311518 36.351614 36.223615 51.519453 84.543102 42.431549 132.862588l-69.759259-69.439262a59.967363 59.967363 0 0 0-42.36755-18.111807 59.967363 59.967363 0 0 0-42.495548 18.111807l-36.351614 36.223615a59.519368 59.519368 0 0 0-18.175807 42.239552 59.519368 59.519368 0 0 0 18.175807 42.367549l69.759259 69.439263c-9.151903 0-18.239806 3.007968-27.32771 3.007968-39.423581 0-78.783163-15.10384-106.110872-45.311519a151.806387 151.806387 0 0 1-36.351614-157.054331c9.087903-21.119776 3.007968-45.311519-15.167839-63.359327L323.001373 368.454965a59.967363 59.967363 0 0 0-42.431549-18.111807c-6.079935 0-12.159871 0-21.247775 3.007968a142.07849 142.07849 0 0 1-51.519452 9.087903c-39.423581 0-78.847162-15.10384-106.110873-45.311518-36.351614-36.287614-51.519453-84.607101-42.431549-132.926588l69.759259 69.503261c12.095871 12.031872 27.26371 18.111808 42.36755 18.111808z" p-id="4309" /><path d="M318.009426 563.972888a58.623377 58.623377 0 0 0-41.535559 17.791811l-213.757729 213.693729a57.40739 57.40739 0 0 0 0 83.135117l83.199116 83.071117a58.623377 58.623377 0 0 0 41.535559 17.791811 58.623377 58.623377 0 0 0 41.535559-17.791811l213.757729-213.693729a57.40739 57.40739 0 0 0 0-83.135117L359.480985 581.764699c-8.895905-11.903874-23.679748-17.791811-41.535558-17.791811z m-127.614644 356.156216L107.323664 836.993987 321.017394 623.364257l83.071117 83.135116-213.693729 213.69373z m721.272336-848.886981l41.535559 41.599558-103.870896 103.870896-20.799779-20.799779-20.799779-20.799779 103.934895-103.870896z m0-71.231243a26.943714 26.943714 0 0 0-20.799779 8.959905l-145.406455 145.406455a28.671695 28.671695 0 0 0 0 41.535558l20.73578 20.799779-145.406455 145.406455a28.671695 28.671695 0 0 0 0 41.599558c5.951937 5.887937 14.847842 8.831906 20.73578 8.831907a32.063659 32.063659 0 0 0 20.799779-8.895906l145.406455-145.406455 20.799779 20.73578c5.951937 5.951937 14.847842 8.959905 20.799779 8.959905a32.063659 32.063659 0 0 0 20.735779-8.959905l145.470455-145.406455a28.671695 28.671695 0 0 0 0-41.599558L932.402898 8.970785C929.458929 2.954849 920.563024 0.01088 911.667118 0.01088z" p-id="4310" /></symbol>'});n.a.add(l);t["default"]=l},"549e":function(e,t,a){"use strict";a("7b7f")},"54b7":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件采购",use:"icon-备件采购-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件采购"><defs><style type="text/css"></style></defs><path d="M320.22 879.87m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" p-id="2189" fill="#ffffff" /><path d="M737.23 879.87m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" p-id="2190" fill="#ffffff" /><path d="M917.93 195.85H198.37a32.22 32.22 0 0 0-4.48 0.32l-10.69-60.64q-0.08-0.44-0.17-0.88c-3.16-15.39-11.91-28.34-25.3-37.48-15.25-10.4-35.55-15.32-61.92-15a32 32 0 0 0 0.33 64h0.34c14.89-0.16 21.75 2.21 24.19 3.38L225.35 743.6A44.06 44.06 0 0 0 269.2 784H800a32 32 0 0 0 0-64H286.17l-7.9-44.83h543.32c21.19 0 38.75-15 41.54-34.39L959 243.13a32 32 0 0 0 0.89-7.5c-0.04-21.94-18.89-39.78-41.96-39.78z m-113.5 415.28H269.06c-0.69 0-1.37 0-2.05 0.07L205.1 259.85h684z" p-id="2191" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"54ec":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"用户名"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isUserAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isUserRole?a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleRole(s)}}},[e._v(" 角色 ")]):e._e(),e._v(" "),e.isUserEdit?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),e.isUserResetpassword?a("el-button",{staticStyle:{padding:"7px 5px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleResetPassword(s)}}},[e._v(" 重置密码 ")]):e._e(),e._v(" "),"已删"!==s.status&&e.isUserDelete?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"80%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.dataform.selectedRole,callback:function(t){e.$set(e.dataform,"selectedRole",t)},expression:"dataform.selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["role"],visible:e.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogRoleVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateRole()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("ac6a"),a("55dd"),a("3b2b"),a("6724")),n=a("61f7"),l=a("2934"),o=a("333d"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParam2:{},repairmanTypeList:[],requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getEmpall",offset:0,pagecount:0,params:[]},{name:"getMaintenanceTypeList",offset:0,pagecount:0,params:[]},{name:"getMcsAccounts",offset:0,pagecount:0,params:[]}],requestFilterParams:{returntype:"Map",parammaps:{}},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:[]},dataform:{empname:"",position:"",username:"",fullname:"",empid:"",id:"",sort:"",enable:1,maintenancePerson:1,keeper:1,maintenanceTypeId:"",selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],viedoAccountList:[],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),empCode:"",empname:""}},updateParam:{name:"getMaintenanceTypeByUser",offset:1,pagecount:0,returntype:"list",params:[]},rules:{empid:[{required:!0,message:"用户名必填",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名必填",trigger:"change"}],empname:[{type:"string",required:!0,message:"职工名必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},disabled:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{tableSort:function(e){Object(d["f"])(e,this.list)},get_auto_buttons:function(){var e="console:user:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isUserAdd=t;var a="console:user:role",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isUserRole=s;var i="console:user:edit",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isUserEdit=r;var n="console:user:resetpassword",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isUserResetpassword=o;var p=Object(l["v"])(this.$store.state.user.buttons,p);this.isUserDelete=p},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["f"])(this.requestParams).then((function(t){e.rolelist=t.data.getRoleall.list,e.emplist=t.data.getEmpall.list,e.repairmanTypeList=t.data.getMaintenanceTypeList.list,e.viedoAccountList=t.data.getMcsAccounts.list,Object(l["e"])(e.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),1e3)}))}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetRequestParam:function(){this.dataform={username:"",fullname:"",empid:"",id:"",empname:"",position:"",sort:"",enable:1,selectedRole:"",selectedRole2:"",maintenancePerson:1,keeper:1,maintenanceTypeId:""}},form_add:function(){this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisibleAdd=!0},changeMaintenanceWorker:function(e){1==e?this.disabled=!1:(this.disabled=!0,this.dataform.maintenanceTypeId=[])},add_dialog_save:function(){for(var e=this,t=[],a=0;a<this.dataform.selectedRole.length;a++){var s={};this.$set(s,"role_id",this.dataform.selectedRole[a]),t.push(s)}this.dataform.selectedRole2=t;for(var i=[],r=0;r<this.dataform.maintenanceTypeId.length;r++){var n={};this.$set(n,"maintenanceTypeId",this.dataform.maintenanceTypeId[r]),i.push(n)}this.dataform.maintenanceTypeId=i,this.$refs["dataForm"].validate((function(t){if(t){if(e.dataform.selectedRole2.length<=0)return e.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:e.dataform.username,empid:e.dataform.empid,sort:"0",enable:e.dataform.enable,maintenancePerson:e.dataform.maintenancePerson,keeper:e.dataform.keeper}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.dataform.selectedRole2}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},e.postDataPramas.data[2]={name:"insertSpotList1",resultmaps:{list:e.dataform.maintenanceTypeId}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertUserMaintenance",type:"e",parammaps:{user_id:"@createUser.LastInsertId",maintenance_id:"@insertSpotList1.maintenanceTypeId"}},console.log("新增保存发送参数",e.postDataPramas),Object(l["c"])(e.postDataPramas).then((function(t){if(console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}else{e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisibleAdd=!1;var s=c.a.get("pastureid");console.log(pastureid);var i=e.dataform.deviceId,r=e.dataform.uId,n=e.dataform.pwd;console.log("pastureId",s);var o={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:i}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:r,deviceId:i,pwd:n}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",o),Object(l["c"])(o).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.dialogFormVisibleAdd=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))}}))},handleRole:function(e){var t=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogRoleVisible=!0,Object(l["e"])(this.requestParam).then((function(e){t.selectedRole=e.data.lists.role_id}))},updateRole:function(){var e=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(l["u"])(this.UpdateDataRelationParam).then((function(){e.dialogRoleVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data()}))},form_edit:function(e){var t=this;1==e.maintenancePerson?(this.updateParam.params[0]=e.id,Object(l["e"])(this.updateParam).then((function(a){console.log(a.data),null!==a.data.lists?t.$set(e,"maintenanceTypeId",a.data.lists.maintenance_id):t.$set(e,"maintenanceTypeId",[]),t.dialogStatus="update",t.dialogFormVisible=!0,t.disabled=!1}))):(this.disabled=!0,this.dialogStatus="update",this.dialogFormVisible=!0,this.$set(e,"maintenanceTypeId",[])),this.dataform=Object.assign(e,{}),this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="updateUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,null==e.dataform.maintenancePerson||void 0==e.dataform.maintenancePerson?e.requestParam.params[4]=0:e.requestParam.params[4]=e.dataform.maintenancePerson,e.requestParam.params[5]=e.dataform.keeper,e.requestParam.params[6]=e.dataform.id,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.requestParam2={},e.requestParam2.name="user_mainthenance",e.requestParam2.dataname="user_id",e.requestParam2.datavalue=e.dataform.id,e.requestParam2.valuename="maintenance_id",e.requestParam2.values=e.dataform.maintenanceTypeId,Object(l["u"])(e.requestParam2).then((function(t){if("fail"!==t.msg){var a={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:e.dataform.deviceId}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:e.dataform.uId,deviceId:e.dataform.deviceId,pwd:e.dataform.pwd}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",a),Object(l["c"])(a).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.get_table_data(),e.dialogFormVisible=!1;else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=t.username,this.requestParam.params[1]=t.empid,this.requestParam.params[2]=t.sort,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(e,t){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=e,Object(l["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNameSelect:function(e){this.dataform.username=e.empCode,this.dataform.empid=e.id,this.$set(this.dataform,"empname",e.empname),this.$set(this.dataform,"position",e.position)},handleResetPassword:function(e){var t=this;p["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))},change_deviceId:function(e){console.log(e);var t=e,a="",s="",i=this.viedoAccountList;i.forEach((function(e){e.deviceId==t&&(s=e.uId,a=e.pwd)})),this.dataform.uId=s,this.dataform.pwd=a,this.dataform.deviceId=t}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},5552:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件类别",use:"icon-备件类别-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件类别"><defs><style type="text/css"></style></defs><path d="M332.560748 502.429907L184.224299 416.299065c-9.570093-9.570093-23.925234-4.785047-33.495327 9.570094-4.785047 9.570093 0 23.925234 9.570093 33.495327l148.336449 86.130841c9.570093 4.785047 28.71028 4.785047 33.495327-9.570093 4.785047-9.570093 0-23.925234-9.570093-33.495327z m0 0L184.224299 416.299065c-9.570093-9.570093-23.925234-4.785047-33.495327 9.570094-4.785047 9.570093 0 23.925234 9.570093 33.495327l148.336449 86.130841c9.570093 4.785047 28.71028 4.785047 33.495327-9.570093 4.785047-9.570093 0-23.925234-9.570093-33.495327z m0 0L184.224299 416.299065c-9.570093-9.570093-23.925234-4.785047-33.495327 9.570094-4.785047 9.570093 0 23.925234 9.570093 33.495327l148.336449 86.130841c9.570093 4.785047 28.71028 4.785047 33.495327-9.570093 4.785047-9.570093 0-23.925234-9.570093-33.495327z m0 0L184.224299 416.299065c-9.570093-9.570093-23.925234-4.785047-33.495327 9.570094-4.785047 9.570093 0 23.925234 9.570093 33.495327l148.336449 86.130841c9.570093 4.785047 28.71028 4.785047 33.495327-9.570093 4.785047-9.570093 0-23.925234-9.570093-33.495327z m0 0L184.224299 416.299065c-9.570093-9.570093-23.925234-4.785047-33.495327 9.570094-4.785047 9.570093 0 23.925234 9.570093 33.495327l148.336449 86.130841c9.570093 4.785047 28.71028 4.785047 33.495327-9.570093 4.785047-9.570093 0-23.925234-9.570093-33.495327z m0 0" p-id="19199" /><path d="M964.186916 382.803738c-14.35514 0-23.925234 9.570093-23.925234 23.925234V717.757009l-416.299065 239.252337v-440.224299-4.785047l425.869159-244.037383c19.140187-9.570093 14.35514-33.495327 0-43.065421L504.82243 4.785047c-4.785047-4.785047-14.35514-4.785047-19.140187 0L45.457944 224.897196c-14.35514 9.570093-14.35514 33.495327-14.35514 33.495327v468.93458c0 9.570093 4.785047 19.140187 14.35514 19.140187l440.224299 267.962617c14.35514 4.785047 23.925234 0 23.925234 0l468.934579-267.962617c9.570093-4.785047 14.35514-14.35514 14.35514-23.925234V406.728972c-4.785047-14.35514-14.35514-23.925234-28.71028-23.925234zM471.327103 516.785047v435.439252L78.953271 717.757009V287.102804l387.588785 220.112149v9.570094z m23.925233-47.850468L107.663551 248.82243l387.588785-196.186916 387.588785 196.186916-387.588785 220.112149z m0 0" p-id="19200" /></symbol>'});n.a.add(l);t["default"]=l},5580:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件盘点报表",use:"icon-备件盘点报表-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件盘点报表"><defs><style type="text/css"></style></defs><path d="M950.72 609.76l-88.48-88.48a30.88 30.88 0 0 0-44.16 0L752 587.36 558.08 781.12a34.4 34.4 0 0 0-8 13.28L515.52 912l-2.24 7.84A32 32 0 0 0 544 960a35.68 35.68 0 0 0 8.96-1.28l125.28-36.96a27.52 27.52 0 0 0 13.28-8l1.76-1.76 25.92-25.76L740.48 864l11.52-11.52 48-48 128-128 22.08-22.24a31.04 31.04 0 0 0 0.64-44.48zM668.64 891.84L600 912 544 928l4.96-16 32-108.8L608 775.68 696.32 864zM800 760.8l-81.44 81.44-88.64-88.64 166.08-166.08 4 4.48 84.48 84.64z m106.56-106.72l-88.48-88.64L840.16 544 928 631.84zM488 656h-320a24 24 0 0 0 0 48h320a24 24 0 0 0 0-48zM728 222.24h-256a24 24 0 0 0 0 48h256a24 24 0 0 0 0-48zM360.32 160a24.16 24.16 0 0 0-16.96 7.04l-107.52 107.52L184.96 224a24 24 0 1 0-33.92 33.6l67.84 67.84a24.16 24.16 0 0 0 16.96 7.04 23.84 23.84 0 0 0 16.96-7.04l124.48-124.48a23.84 23.84 0 0 0 0-33.92 24.16 24.16 0 0 0-16.96-7.04zM728 446.4h-256a24 24 0 0 0 0 48h256a24 24 0 0 0 0-48zM294.4 384a24.16 24.16 0 0 0-16.96 7.04l-45.28 45.28-45.28-45.28a23.84 23.84 0 0 0-16.96-7.04 24.16 24.16 0 0 0-16.96 7.04 23.84 23.84 0 0 0 0 33.92l45.28 45.28-45.28 45.28a23.84 23.84 0 0 0 0 33.92 24.16 24.16 0 0 0 16.96 7.04 23.84 23.84 0 0 0 16.96-7.04l45.28-45.28 45.28 45.28a24 24 0 0 0 33.92 0 23.84 23.84 0 0 0 0-33.92l-45.28-45.28 45.28-45.28a23.84 23.84 0 0 0 0-33.92A24.16 24.16 0 0 0 294.4 384z" fill="#ffffff" p-id="26995" /><path d="M480 936a24 24 0 0 1-24 24H128a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64h88a24 24 0 0 1 0 48H128a16 16 0 0 0-16 16v768a16 16 0 0 0 16 16h328a24 24 0 0 1 24 24zM832 128v328a24 24 0 0 1-48 0V128a16 16 0 0 0-16-16h-88a24 24 0 0 1 0-48H768a64 64 0 0 1 64 64z" fill="#ffffff" p-id="26996" /></symbol>'});n.a.add(l);t["default"]=l},"55ad":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"角色名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleMenu(s)}}},[e._v("菜单")]),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleDataRole(s)}}},[e._v("数据权限")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.dataform.name,callback:function(t){e.$set(e.dataform,"name",t)},expression:"dataform.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"EAS信息接收",prop:"easInformationReception"}},[a("el-switch",{ref:"easInformationReception",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.easInformationReception,callback:function(t){e.$set(e.dataform,"easInformationReception",t)},expression:"dataform.easInformationReception"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v(" 确认新增 ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["dataRole"],visible:e.dialogDataRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogDataRoleVisible=t}}},[a("el-form",{ref:"dataRoleTemp",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left",model:e.dataRoleTemp,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"数据权限",prop:"datarole"}},[a("el-radio-group",{model:{value:e.dataRoleTemp.datarole,callback:function(t){e.$set(e.dataRoleTemp,"datarole",t)},expression:"dataRoleTemp.datarole"}},[a("el-radio",{attrs:{label:3}},[e._v("全部数据")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("牧场数据")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("部门数据")]),e._v(" "),a("el-radio",{attrs:{label:0}},[e._v("个人数据")])],1)],1),e._v(" "),1==e.dataRoleTemp.datarole?a("el-form-item",{attrs:{label:"部门",prop:"deptNameList"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"部门"},model:{value:e.dataRoleTemp.deptNameList,callback:function(t){e.$set(e.dataRoleTemp,"deptNameList",t)},expression:"dataRoleTemp.deptNameList"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_saveRole()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogDataRoleVisible=!1,e.get_table_data()}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["menu"],visible:e.dialogMenuVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogMenuVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单",prop:"menuname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",multiple:"",data:e.parentMenu,"default-props":e.defaultProps,"collapse-tags":"","check-strictly":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{disabled:e.isokDisable,type:"primary"},on:{click:function(t){return e.updateMenu()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogMenuVisible=!1,e.get_table_data()}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("7f7f"),a("3de8")),n=a("6724"),l=a("61f7"),o=a("2934"),p=a("333d"),m=a("5c96"),c=a("a78e"),d=a.n(c),u=a("ed08"),h={name:"Role",components:{Pagination:p["a"],TreeSelect:r["a"]},directives:{waves:n["a"]},data:function(){return{disabled:!1,tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],parentMenu:[],total:0,listLoading:!0,requestParam:{name:"createRole",offset:0,pagecount:0,params:[]},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},dataform:{id:"",name:"",selectMenus:[],sort:"",enable:"",easInformationReception:""},getdataListParm:{name:"getRoleall",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:d.a.get("pastureid")}},getMenuParm:{name:"getMenuandButtonRecuRule",idname:"id",params:[-1]},rules:{name:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],sort:[{validator:l["b"],trigger:"blur"}],datarole:[{required:!0,message:"必填",trigger:"blur"}]},dialogFormVisible:!1,dialogMenuVisible:!1,dialogDataRoleVisible:!1,selectedMenu:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",menu:"授权菜单",dataRole:"数据权限"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"title"},nodeKey:"id",defaultCheckedKeys:[],getDataRoleListParm:{name:"getDataRole",offset:1,pagecount:"",returntype:"Map",parammaps:{}},getEchoDeptParm:{name:"getRoleDepartmentName",offset:1,pagecount:"",returntype:"Map",parammaps:{}},isokDisable:!1,dataRoleTemp:{},dataRolelist:[],deptList:[],findAllDepart:[],getDepartParam:{name:"getDepatmentOnlyName",offset:0,pagecount:0},requestParam2:{},requestParam3:{}}},created:function(){this.get_table_data(),this.getDepartDownList()},methods:{tableSort:function(e){Object(u["f"])(e,this.list)},popoverHide:function(e,t){this.dataform.selectMenus=e,this.selectedMenu=e,this.UpdateDataRelationParam.values=e},getMenuList:function(){var e=this;Object(o["y"])(this.getMenuParm).then((function(t){e.parentMenu=t.data}))},getDepartDownList:function(){var e=this;Object(o["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=t.data.list}t.data.total&&(e.total=t.data.total),e.getMenuList(),setTimeout((function(){e.listLoading=!1}),500)}))},resetRequestParam:function(){this.dataform.id="",this.dataform.name="",this.dataform.sort="0",this.dataform.enable=1,this.dataform.easInformationReception=0},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.name.focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,e.requestParam.params[3]=e.dataform.easInformationReception,Object(o["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,e.requestParam.params[3]=e.dataform.easInformationReception,Object(o["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["name"].focus()})),e.get_table_data(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleMenu:function(e){var t=this;this.requestParam.name="getMenuByRole",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogMenuVisible=!0,console.log("this.requestParam",this.requestParam),Object(o["e"])(this.requestParam).then((function(e){t.selectedMenu=e.data.lists.menu_id,t.defaultCheckedKeys=t.selectedMenu,t.UpdateDataRelationParam.values=t.defaultCheckedKeys}))},updateMenu:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.UpdateDataRelationParam.name="role_menu",this.UpdateDataRelationParam.dataname="role_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="menu_id",this.UpdateDataRelationParam.values=this.selectedMenu,Object(o["u"])(this.UpdateDataRelationParam).then((function(){e.dialogMenuVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_edit:function(e){var t=this;console.log(e,"====="),this.dataform.id=e.id,this.dataform.name=e.name,this.dataform.sort=e.sort,this.dataform.enable=e.enable,this.dataform.easInformationReception=e.easInformationReception,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.name.focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,e.requestParam.params[3]=e.dataform.easInformationReception,e.requestParam.params[4]=e.dataform.id,Object(o["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateRole",this.requestParam.params=[],this.requestParam.params[0]=t.name,this.requestParam.params[1]=t.sort,this.requestParam.params[2]=t.enable,this.requestParam.params[3]=t.id,Object(o["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;m["MessageBox"].confirm("名称:"+e.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteRole",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(o["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},handleDataRole:function(e){var t=this;void 0==e.deptNameList&&this.$set(e,"deptNameList",[]),this.dataRoleTemp=Object.assign({},e),this.$set(this.dataRoleTemp,"datarole",0),this.dialogDataRoleVisible=!0,this.getDataRoleListParm.parammaps.id=e.id,Object(o["e"])(this.getDataRoleListParm).then((function(a){t.dataRolelist=a.data.list,t.$set(t.dataRoleTemp,"datarole",a.data.list[0].datarole),1==t.dataRoleTemp.datarole&&(t.getEchoDeptParm.parammaps={},t.getEchoDeptParm.parammaps.role_id=e.id,Object(o["e"])(t.getEchoDeptParm).then((function(e){for(var a=[],s=0;s<e.data.list.length;s++)a.push(e.data.list[s].name);t.$set(t.dataRoleTemp,"deptNameList",a),t.$forceUpdate(),console.log(t.dataRoleTemp.deptNameList)})))}))},edit_dialog_saveRole:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataRoleTemp"].validate((function(t){if(t)if(1==e.dataRoleTemp.datarole){if(console.log("quanbu",e.dataRoleTemp.deptNameList),void 0==e.dataRoleTemp.deptNameList||0==e.dataRoleTemp.deptNameList.length)return e.$message({type:"warning",message:"请选择部门"}),!1;e.requestParam2={},e.requestParam2.common={returnmap:"0"},e.requestParam2.data=[];for(var a=0;a<e.dataRoleTemp.deptNameList.length;a++)e.requestParam2.data.push({name:"getDepartmentId",type:"sm",parammaps:{name:e.dataRoleTemp.deptNameList[a]}});Object(o["c"])(e.requestParam2).then((function(t){if(console.log("新增保存发送参数",e.requestParam2),"fail"==t.msg)e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3});else{for(var a=[],s=0;s<t.data.length;s++)for(var i=0;i<t.data[s].resultmaps.length;i++)a.push(t.data[s].resultmaps[i].id);e.requestParam3.name="role_department",e.requestParam3.dataname="role_id",e.requestParam3.datavalue=e.dataRoleTemp.id,e.requestParam3.valuename="department_id",e.requestParam3.values=a,Object(o["u"])(e.requestParam3).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.requestParam.name="setDataRole",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.dataRoleTemp.id,e.requestParam.parammaps.datarole=e.dataRoleTemp.datarole,Object(o["k"])(e.requestParam).then((function(t){console.log("设置数据权限保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogDataRoleVisible=!1,e.$notify({title:"成功",message:"设置成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))}}))}else e.requestParam.name="setDataRole",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.dataRoleTemp.id,e.requestParam.parammaps.datarole=e.dataRoleTemp.datarole,Object(o["k"])(e.requestParam).then((function(t){console.log("设置数据权限保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogDataRoleVisible=!1,e.$notify({title:"成功",message:"设置成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)}))}))}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},"55cd":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2",type:"success"}},[a("router-view")],1)],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!1,null,null,null);t["default"]=l.exports},"55e7":function(e,t,a){},5622:function(e,t,a){"use strict";a("ce8e")},5623:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v("\n 这个页面取消,暂停开发\n\n")])},i=[],r=(a("ac6a"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"AssetDesignee",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},placeholder:"请选择设备类别",findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{proId:"",brandId:"",assetCode:"",eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{uploadData:function(){return{name:"importStockUse",importParams:"牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/equipment"}},created:function(){},methods:{beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation=""},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var a=[],s=[];void 0==e.picpath||""==e.picpath?a.push():a.push(e.picpath);for(var i=0;i<a.length;i++){var r={};this.$set(r,"url",a[i]),s.push(r)}this.$set(this.createTemp,"fileList",s),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber,console.log(t.data.list[0].createNumber),console.log(e.createTemp.assetCode),e.$forceUpdate()}))},changeSHStatue:function(e){this.statueReason=2==e},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("f0c2"),a("b462"),a("af5e"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"780f8fc8",null);t["default"]=y.exports},5654:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isPraseTime,expression:"isPraseTime"}],staticClass:"block"},[a("el-date-picker",{staticStyle:{top:"-3px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},model:{value:e.praseTime,callback:function(t){e.praseTime=t},expression:"praseTime"}})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isPraseTime,expression:"isPraseTime"}],staticStyle:{position:"absolute",top:"10px",right:"15%","font-size":"30px"}},[a("i",{staticClass:"el-icon-s-data",on:{click:e.chartIcon}}),e._v(" "),a("i",{staticClass:"el-icon-date",on:{click:e.tableIcon}})]),e._v(" "),e.isDownLoad?a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",top:"10px",right:"2%"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadAll}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.chartBx,expression:"chartBx"}]},[a("el-col",{attrs:{span:16}},[a("p",{staticStyle:{color:"#769cfc","font-weight":"bold","font-size":"22px"}},[e._v("各牧场设备概况比例")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:8}},[a("p",{staticStyle:{color:"#769cfc","font-weight":"bold","font-size":"22px"}},[e._v(e._s(e.pasture)+"设备概况")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:e.tableBx,expression:"tableBx"}]},[a("el-select",{directives:[{name:"show",rawName:"v-show",value:e.isType,expression:"isType"}],staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getDeptListParm.parammaps.type,callback:function(t){e.$set(e.getDeptListParm.parammaps,"type",t)},expression:"getDeptListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("div",{staticStyle:{padding:"20px 0px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isTitle,expression:"isTitle"}]},[a("b",{on:{click:e.goBackPasture}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(e.seeTemp.pastureName))])])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),e.isTable1?a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick1(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,3818920946)}):e._e(),e._v(" "),e.isTable2?a("el-table-column",{attrs:{label:"部门","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}):e._e(),e._v(" "),e.isTable3?a("el-table-column",{attrs:{label:"设备类别","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeName))])]}}],null,!1,249855033)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"设备数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isTable1?a("span",[e._v(e._s(t.row.eqSum))]):e._e(),e._v(" "),e.isTable2?a("a",{on:{click:function(a){return e.tableCellClick2(t.row)}}},[e._v(e._s(t.row.eqSum))]):e._e(),e._v(" "),e.isTable3?a("a",{on:{click:function(a){return e.tableCellClick3(t.row)}}},[e._v(e._s(t.row.eqSum))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"在用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqUse))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"闲置数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqXZ))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报废数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqBF))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"封存数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqFC))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"在用比例","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.eqUse/t.row.eqSum*100))+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"闲置比例","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.eqXZ/t.row.eqSum*100))+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报废比例","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.eqBF/t.row.eqSum*100))+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"封存比例","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.eqFC/t.row.eqSum*100))+"%")])]}}])})],1),e._v(" "),e.isTable1?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}):e._e(),e._v(" "),e.isTable2?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total2,page:e.getDeptListParm.offset,limit:e.getDeptListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDeptListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDeptListParm,"pagecount",t)},pagination:e.getDeptList}}):e._e(),e._v(" "),e.isTable3?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total3,page:e.getTypeListParm.offset,limit:e.getTypeListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getTypeListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getTypeListParm,"pagecount",t)},pagination:e.getTypeList}}):e._e()],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("c5f6"),a("313e")),n=a.n(r),l=a("6724"),o=a("333d"),p=a("2934"),m=a("ed08"),c=a("a78e"),d=a.n(c);a("817d");var u={name:"EquipmentOverview",directives:{waves:l["a"]},components:{Pagination:o["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isDownLoad:!1,downLoadParm:{},pasture:d.a.get("pasturename"),praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),getLineChart1Parm:{name:"getEqRunSurveyListPasture",parammaps:{praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getEqRunSurveyListDay",parammaps:{praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),pastureName:d.a.get("pasturename")}},lineChart1:null,lineChart2:null,chart_data2:{},chart_data3:{},tableBx:!1,chartBx:!0,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getEqRunSurveyListPasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),type:0}},seeTemp:{},isTitle:!1,isPraseTime:!0,isTable1:!0,types:[{id:0,name:"按部门"},{id:1,name:"按设备类别"}],isType:!1,total2:0,isTable2:!1,getDeptListParm:{name:"getEqRunSurveyListDept",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),type:0,pastureName:""}},total3:0,isTable3:!1,isPercentage:!1,percentage:1,getTypeListParm:{name:"getEqRunSurveyListEqclass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(m["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}"),pastureName:"",type:0}}}},watch:{praseTime:{deep:!0,handler:function(e,t){this.getLineChart1Parm.parammaps.praseTime=e,this.getLineChart2Parm.parammaps.praseTime=e,this.getdataListParm.parammaps.praseTime=e,this.getDeptListParm.parammaps.praseTime=e,this.getTypeListParm.parammaps.praseTime=e,this.getLineChart1(),this.getLineChart2(),this.get_table_data()}},isTitle:{deep:!0,handler:function(e,t){console.log("newVal",e),console.log("oldVal",t)}}},created:function(){this.getLineChart1(),this.getLineChart2(),this.get_table_data()},mounted:function(){},methods:{chartIcon:function(){this.tableBx=!1,this.chartBx=!0,this.isDownLoad=!1},tableIcon:function(){this.tableBx=!0,this.chartBx=!1,this.isDownLoad=!0},getLineChart1:function(){var e=this;Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2)}))},getLineChart2:function(){var e=this;Object(p["h"])(this.getLineChart2Parm).then((function(t){if(console.log("图3",t),null===t.data||null===t.data.psm)e.chart_data3={name:[],psum:[]},e.chart_data3.total="0",e.roadlineChart2(e.chart_data3,e.pasture);else{e.chart_data3.psum=t.data.psm;var a=[];t.data.psm.forEach((function(e){a.push(e.name)})),e.chart_data3.name=a,e.chart_data3.total=t.data.total,e.roadlineChart2(e.chart_data3,e.pasture)}}))},roadlineChart1:function(e){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=n.a.init(document.getElementById("lineChart1"));var t={title:{},tooltip:{trigger:"axis"},legend:{data:["在用比例","闲置比例","报废比例","封存比例"]},color:["#42b983","#769cfc","#FFB800","#ff9d6e"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pastureName,name:"牧场",axisLabel:{interval:0,rotate:45}}],yAxis:[{type:"value",name:"比率(%)",mix:0,max:100,interval:10,axisLabel:{formatter:"{value}"}}],series:[{name:"在用比例",type:"line",data:e.eqUseRate,emphasis:{label:{show:!0,position:"inside"}}},{name:"闲置比例",type:"line",data:e.eqXZRate,emphasis:{label:{show:!0,position:"inside"}}},{name:"报废比例",type:"line",data:e.eqBFRate,emphasis:{label:{show:!0,position:"inside"}}},{name:"封存比例",type:"line",data:e.eqFCRate,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(t),window.onresize=function(){this.lineChart1.resize()};var a=this;this.lineChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getLineChart2()}))},roadlineChart2:function(e,t){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=n.a.init(document.getElementById("lineChart2"));var a={title:{zlevel:0,text:["{value|设备数量}","{name|"+e.total+"}"].join("\n"),rich:{value:{color:"#303133",fontSize:20,fontWeight:"bold",lineHeight:40},name:{color:"#909399",lineHeight:20}},top:"center",left:"50%",textAlign:"center",textStyle:{rich:{value:{color:"#303133",fontSize:20,fontWeight:"bold",lineHeight:40},name:{color:"#909399",fontSize:20,lineHeight:20}}}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",left:10,data:e.name,top:40},color:["#42b983","#769cfc","#FFB800","#cebbfd"],grid:{left:"1%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!0,label:{show:!1,position:"outside",normal:{show:!1,position:"outside",formatter:function(e){return e.value+"\n"+e.name}}},labelLine:{show:!1},data:e.psum,emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}}}]};this.lineChart2.setOption(a),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=n.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:e.name,top:40},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var a={title:{text:t+"维修成本",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["成本"]},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"设备类别",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"元"}],series:[{name:"成本",type:"bar",data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}},get_table_data:function(){var e=this;Object(p["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.pastureName&&null==t.departmentName&&null==t.typeName&&1===a||1==this.isTable2&&null!==t.eqSum&&2==a||1==this.isTable3&&null!==t.eqSum&&2==a?{textDecoration:"underline"}:{textDecoration:"none"}},tableCellClick1:function(e){"现代牧业"!==e.pastureName?(this.seeTemp=Object.assign({},e),this.isPraseTime=!1,this.isTable1=!1,this.isTable2=!0,this.isTitle=!0,this.isType=!0,this.listLoading=!0,this.getDeptList()):this.isTitle=!1},tableCellClick2:function(e){console.log("跳转了",e),"现代牧业"==d.a.get("pasturename")?this.$router.push({path:"/asset/basics",query:{myPath:"equipmentOverview",pastureName:this.getDeptListParm.parammaps.pastureName,pastureId:this.getDeptListParm.parammaps.pastureId,departmentId:e.deptId}}):this.getDeptListParm.parammaps.pastureName==d.a.get("pasturename")?(this.$router.push({path:"/asset/basics",query:{pastureName:this.getDeptListParm.parammaps.pastureName,pastureId:this.getDeptListParm.parammaps.pastureId,departmentId:e.deptId}}),this.getdataListParm.parammaps.pastureName=this.getDeptListParm.parammaps.pastureName,this.getdataListParm.parammaps.pastureId=this.getDeptListParm.parammaps.pastureId,this.getdataListParm.parammaps.departmentId=e.deptId):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},tableCellClick3:function(e){console.log("跳转了",e),"现代牧业"==d.a.get("pasturename")?this.$router.push({path:"/asset/basics",query:{myPath:"equipmentOverview2",pastureName:this.getDeptListParm.parammaps.pastureName,pastureId:this.getDeptListParm.parammaps.pastureId,eqClassId:e.eqClassId}}):this.getDeptListParm.parammaps.pastureName==d.a.get("pasturename")?(this.$router.push({path:"/asset/basics",query:{pastureName:this.getDeptListParm.parammaps.pastureName,pastureId:this.getDeptListParm.parammaps.pastureId,eqClassId:e.eqClassId}}),this.getdataListParm.parammaps.pastureName=this.getDeptListParm.parammaps.pastureName,this.getdataListParm.parammaps.pastureId=this.getDeptListParm.parammaps.pastureId,this.getdataListParm.parammaps.eqClassId=e.eqClassId):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},changeType:function(e){console.log("选中值"),this.Type=e,0==this.Type?(this.listLoading=!0,this.getDeptList(),this.isTable1=!1,this.isTable2=!0,this.isTable3=!1):(this.listLoading=!0,this.isTable1=!1,this.isTable2=!1,this.isTable3=!0,this.getTypeList())},getDeptList:function(){var e=this;this.getDeptListParm.parammaps.pastureName=this.seeTemp.pastureName,this.getDeptListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(p["e"])(this.getDeptListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total2=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getTypeList:function(){var e=this;this.getTypeListParm.parammaps.pastureName=this.seeTemp.pastureName,Object(p["e"])(this.getTypeListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total3=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},goBackPasture:function(){this.isTable1=!0,this.isTable2=!1,this.isTable3=!1,this.isTitle=!1,this.isType=!1,this.listLoading=!0,this.isPraseTime=!0,this.get_table_data()},handleDownloadAll:function(){var e=this;this.$alert("设备概况正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getEqRunSurveyListPasture",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(p["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadElecList=t.data.list,console.log(e.downLoadElecList),null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.downLoadElecList[a].ZYBL=(parseFloat(t.data.list[a].eqUse)/parseFloat(t.data.list[a].eqSum)*100).toFixed(2)+"%",e.downLoadElecList[a].XZBL=(parseFloat(t.data.list[a].eqXZ)/parseFloat(t.data.list[a].eqSum)*100).toFixed(2)+"%",e.downLoadElecList[a].BFBL=(parseFloat(t.data.list[a].eqBF)/parseFloat(t.data.list[a].eqSum)*100).toFixed(2)+"%",e.downLoadElecList[a].FCBL=(parseFloat(t.data.list[a].eqFC)/parseFloat(t.data.list[a].eqSum)*100).toFixed(2)+"%";var s=[{tHeader:["牧场","设备数量","在用数量","闲置数量","报废数量","封存数量","在用比例","闲置比例","报废比例","封存比例"],filterVal:["pastureName","eqSum","eqUse","eqXZ","eqBF","eqFC","ZYBL","XZBL","BFBL","FCBL"],tableDatas:e.downLoadElecList,sheetName:"设备概况"}];Object(m["d"])(s,"设备概况",!0,"xlsx")}))}))}}},h=u,g=(a("ad08"),a("f235"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"4b71185c",null);t["default"]=f.exports},5670:function(e,t,a){},"56d7":function(e,t,a){"use strict";a.r(t);var s={};a.r(s),a.d(s,"parseTime",(function(){return E["e"]})),a.d(s,"formatTime",(function(){return E["c"]})),a.d(s,"timeAgo",(function(){return B})),a.d(s,"numberFormatter",(function(){return V})),a.d(s,"toThousandFilter",(function(){return z})),a.d(s,"uppercaseFirst",(function(){return H}));a("456d"),a("ac6a"),a("cadf"),a("551c"),a("f751"),a("097d");var i=a("2b0e"),r=(a("f5df"),a("5c96")),n=a.n(r),l=a("6c29"),o=(a("0fae"),a("f0d9")),p=a.n(o),m=(a("b20f"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[e.isRouterAlive?a("router-view"):e._e()],1)}),c=[],d={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){var e=this;this.isRouterAlive=!1,this.$nextTick((function(){e.isRouterAlive=!0}))}}},u=d,h=(a("8f6e"),a("2877")),g=Object(h["a"])(u,m,c,!1,null,null,null),f=g.exports,b=a("4360"),v=a("a18c"),y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isExternal?a("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):a("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[a("use",{attrs:{"xlink:href":e.iconName}})])},_=[],w=a("61f7"),S={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(w["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},P=S,x=(a("64df"),Object(h["a"])(P,y,_,!1,null,"f9f7fefc",null)),T=x.exports;i["default"].component("svg-icon",T);var k=a("51ff"),C=function(e){return e.keys().map(e)};C(k);var L=a("c7eb"),N=a("5530"),D=(a("96cf"),a("1da1")),$=a("323e"),I=a.n($),q=(a("a5d8"),a("5f87")),A=a("83d6"),M=a.n(A),O=M.a.title||"Vue Admin Template";function j(e){return e?"".concat(e," - ").concat(O):"".concat(O)}I.a.configure({showSpinner:!1});var F=["/login"];v["b"].beforeEach(function(){var e=Object(D["a"])(Object(L["a"])().mark((function e(t,a,s){var i,n,l,o,p;return Object(L["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(I.a.start(),document.title=j(t.meta.title),i=Object(q["a"])(),!i){e.next=35;break}if("/login"!==t.path){e.next=9;break}s({path:"/"}),I.a.done(),e.next=33;break;case 9:if(n=b["a"].getters.roles&&b["a"].getters.roles.length>0,!n){e.next=14;break}s(),e.next=33;break;case 14:return e.prev=14,e.next=17,b["a"].dispatch("user/getInfo");case 17:return l=e.sent,o=l.roles,e.next=21,b["a"].dispatch("permission/generateRoutes",o);case 21:p=e.sent,v["b"].addRoutes(p),s(Object(N["a"])(Object(N["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,b["a"].dispatch("user/resetToken");case 30:r["Message"].error(e.t0||"Has Error"),s("/login"),I.a.done();case 33:e.next=36;break;case 35:-1!==F.indexOf(t.path)?s():(s({path:"/login"}),I.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,a,s){return e.apply(this,arguments)}}()),v["b"].afterEach((function(){I.a.done()}));a("6b54"),a("a481"),a("c5f6");var E=a("ed08");function R(e,t){return 1===e?e+t:e+t+"s"}function B(e){var t=Date.now()/1e3-Number(e);return t<3600?R(~~(t/60)," minute"):t<86400?R(~~(t/3600)," hour"):R(~~(t/86400)," day")}function V(e,t){for(var a=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],s=0;s<a.length;s++)if(e>=a[s].value)return(e/a[s].value+.1).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+a[s].symbol;return e.toString()}function z(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function H(e){return e.charAt(0).toUpperCase()+e.slice(1)}i["default"].use(n.a,{locale:p.a}),i["default"].use(l["a"],{locale:p.a}),Object.keys(s).forEach((function(e){i["default"].filter(e,s[e])})),i["default"].config.productionTip=!1,new i["default"]({el:"#app",router:v["b"],store:b["a"],render:function(e){return e(f)}})},5704:function(e,t,a){"use strict";a("6260")},"570d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.parammaps,"pastureName",t)},expression:"tableObj.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"240px",top:"-3px"},attrs:{type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},model:{value:e.tableObj.parammaps.date,callback:function(t){e.$set(e.tableObj.parammaps,"date",t)},expression:"tableObj.parammaps.date"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecAdd2?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.form_export}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"中心","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.center))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"能源消耗统计(牧场)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月份","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"全群饲养头日","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.firstday))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场外购电量(度)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcwgdl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"沼气发电量(度)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.zqfdl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场外购水量(吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcwgsl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场自备井取水量(吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mczbjqsl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场柴油用量(升)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mccyyl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场煤炭用量(吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcmtyl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"生物质颗粒用量(吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.swzklyl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场天然气用量(方)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mctrqyl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场总用电量(度)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mczydl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场总用水量(吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mczysl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场电费单价(元/度)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcdfdj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场水费单价(元/吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcsfdj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场柴油单价(元/升)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mccydj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场煤炭单价(元/吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mcmtdj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场天然气单价(元/吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.mctrqdj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"生物质颗粒单价(元/吨)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.swzkldj))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛用电量(度/头日)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dtnydl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛用水量(吨/头日)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dtnysl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛用油量(升/头日)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dtnyyl))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.isElecModify?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.tableObj.offset,limit:e.tableObj.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"能源消耗统计(牧场):",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"能源消耗统计(牧场):",prop:"pastureId"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"month",placeholder:"录入时间"},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"全群饲养头日:",prop:"firstday"}},[a("el-input",{ref:"firstday",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.firstday,callback:function(t){e.$set(e.temp,"firstday",t)},expression:"temp.firstday"}})],1)],1)],1),e._v(" "),a("el-row"),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场外购电量(度):",prop:"mcwgdl"}},[a("el-input",{ref:"mcwgdl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcwgdl,callback:function(t){e.$set(e.temp,"mcwgdl",t)},expression:"temp.mcwgdl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"沼气发电量(度):",prop:"zqfdl"}},[a("el-input",{ref:"zqfdl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.zqfdl,callback:function(t){e.$set(e.temp,"zqfdl",t)},expression:"temp.zqfdl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场外购水量(吨):",prop:"mcwgsl"}},[a("el-input",{ref:"mcwgsl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcwgsl,callback:function(t){e.$set(e.temp,"mcwgsl",t)},expression:"temp.mcwgsl"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场自备井取水量(度):",prop:"mczbjqsl"}},[a("el-input",{ref:"mczbjqsl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mczbjqsl,callback:function(t){e.$set(e.temp,"mczbjqsl",t)},expression:"temp.mczbjqsl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场柴油用量(升):",prop:"mccyyl"}},[a("el-input",{ref:"mccyyl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mccyyl,callback:function(t){e.$set(e.temp,"mccyyl",t)},expression:"temp.mccyyl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场煤炭用量(吨):",prop:"mcmtyl"}},[a("el-input",{ref:"mcmtyl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcmtyl,callback:function(t){e.$set(e.temp,"mcmtyl",t)},expression:"temp.mcmtyl"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生物质颗粒用量(吨):",prop:"swzklyl"}},[a("el-input",{ref:"swzklyl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.swzklyl,callback:function(t){e.$set(e.temp,"swzklyl",t)},expression:"temp.swzklyl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场天然气用量(方):",prop:"mctrqyl"}},[a("el-input",{ref:"mctrqyl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mctrqyl,callback:function(t){e.$set(e.temp,"mctrqyl",t)},expression:"temp.mctrqyl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场总电量(吨):",prop:"mczydl"}},[a("el-input",{ref:"mczydl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mczydl,callback:function(t){e.$set(e.temp,"mczydl",t)},expression:"temp.mczydl"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场总用水量(吨):",prop:"mczysl"}},[a("el-input",{ref:"mczysl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mczysl,callback:function(t){e.$set(e.temp,"mczysl",t)},expression:"temp.mczysl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场电费单价(元/度):",prop:"mcdfdj "}},[a("el-input",{ref:"mcdfdj ",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcdfdj,callback:function(t){e.$set(e.temp,"mcdfdj",t)},expression:"temp.mcdfdj "}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场水费单价(元/吨):",prop:"mcsfdj"}},[a("el-input",{ref:"mcsfdj",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcsfdj,callback:function(t){e.$set(e.temp,"mcsfdj",t)},expression:"temp.mcsfdj"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场柴油单价量(元/升):",prop:"mccydj"}},[a("el-input",{ref:"mccydj",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mccydj,callback:function(t){e.$set(e.temp,"mccydj",t)},expression:"temp.mccydj"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场煤炭单价(元/吨):",prop:"mcmtdj"}},[a("el-input",{ref:"mcmtdj",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mcmtdj,callback:function(t){e.$set(e.temp,"mcmtdj",t)},expression:"temp.mcmtdj"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场天然气单价(元/方):",prop:"mctrqdj"}},[a("el-input",{ref:"mctrqdj",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.mctrqdj,callback:function(t){e.$set(e.temp,"mctrqdj",t)},expression:"temp.mctrqdj"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生物质颗粒单价(元/吨):",prop:"swzkldj"}},[a("el-input",{ref:"swzkldj",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.swzkldj,callback:function(t){e.$set(e.temp,"swzkldj",t)},expression:"temp.swzkldj"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单头牛用电量价(元/吨):",prop:"dtnydl"}},[a("el-input",{ref:"dtnydl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.dtnydl,callback:function(t){e.$set(e.temp,"dtnydl",t)},expression:"temp.dtnydl"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单头牛用水量价(吨/方):",prop:"dtnysl"}},[a("el-input",{ref:"dtnysl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.dtnysl,callback:function(t){e.$set(e.temp,"dtnysl",t)},expression:"temp.dtnysl"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单头牛用油量(吨/方):",prop:"dtnyyl"}},[a("el-input",{ref:"dtnyyl",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.dtnyyl,callback:function(t){e.$set(e.temp,"dtnyyl",t)},expression:"temp.dtnyyl"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"EnergyConsum",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,isElecAdd:[],isElecAdd2:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},tableObj:{name:"getEnergyList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),date:"",startdate:"",enddate:""}},downLoadObj:{name:"getEnergyList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),date:"",startdate:"",enddate:""}},downLoadList:[],useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],pastureList:[],departList1:[],departList2:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",pastureId:"",date:Object(l["e"])(new Date,"{y}-{m}"),firstday:"",mcwgdl:"",zqfdl:"",mcwgsl:"",mczbjqsl:"",mccyyl:"",mcmtyl:"",swzklyl:"",mctrqyl:"",mczydl:"",mczysl:"",mcdfdj:"0",mcsfdj:"",mccydj:"",mcmtdj:"",mctrqdj:"",swzkldj:"",dtnydl:"",dtnysl:"0",dtnyyl:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],getDosageRecordListParm:{name:"getBiomassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{departmentId:""}},dosageRecordTemp:{},rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importEnergy",importParams:"能源消耗统计(牧场),月份,全群饲养头日,牧场外购电量(度),沼气发电量(度),牧场外购水量(吨),牧场自备井取水量(吨),牧场柴油用量(升),牧场煤炭用量(吨),生物质颗粒用量(吨),牧场天然气用量(方),牧场总用电量(度),牧场总用水量(吨),牧场电费单价(元/度),牧场水费单价(元/吨),牧场柴油单价(元/升),牧场煤炭单价(元/吨),牧场天然气单价(元/方),生物质颗粒单价(元/吨),单头牛用电量(度/头日),单头牛用水量(吨/头日),单头牛用油量(升/头日)",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="energyConsum:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="energyConsum:moban",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isElecAdd2=s;var i="energyConsum:daochu",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isElecExport=n;var l="energyConsum:daoru",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isElecImport=o;var p="energyConsum:edit",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isElecModify=m},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},form_export:function(){var e=this;this.downLoadObj.parammaps=this.tableObj.parammaps,Object(r["e"])(this.downLoadObj).then((function(t){null!==t.data.list?e.downLoadList=t.data.list:e.downLoadList=[];var a=[{tHeader:["能源消耗统计(牧场)","月份","全群饲养头日","牧场外购电量(度)","沼气发电量(度)","牧场外购水量(吨)","牧场自备井取水量(吨)","牧场柴油用量(升)","牧场煤炭用量(吨)","生物质颗粒用量(吨)","牧场天然气用量(方)","牧场总用电量(度)","牧场总用水量(吨)","牧场电费单价(元/度)","牧场水费单价(元/吨)","牧场柴油单价(元/升)","牧场煤炭单价(元/吨)","牧场天然气单价(元/方)","生物质颗粒单价(元/吨)","单头牛用电量(度/头日)","单头牛用水量(吨/头日)","单头牛用油量(升/头日)"],filterVal:["pastureName","date","firstday","mcwgdl","zqfdl","mcwgsl","mczbjqsl","mccyyl","mcmtyl","swzklyl","mctrqyl","mczydl","mczysl","mcdfdj","mcsfdj","mccydj","mcmtdj","mctrqdj","swzkldj","dtnydl","dtnysl","dtnyyl"],tableDatas:e.downLoadList,sheetName:"SheetJS"}];Object(l["d"])(a,"能源消耗统计",!0,"xlsx")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["能源消耗统计(牧场)","月份","全群饲养头日","牧场外购电量(度)","沼气发电量(度)","牧场外购水量(吨)","牧场自备井取水量(吨)","牧场柴油用量(升)","牧场煤炭用量(吨)","生物质颗粒用量(吨)","牧场天然气用量(方)","牧场总用电量(度)","牧场总用水量(吨)","牧场电费单价(元/度)","牧场水费单价(元/吨)","牧场柴油单价(元/升)","牧场煤炭单价(元/吨)","牧场天然气单价(元/方)","生物质颗粒单价(元/吨)","单头牛用电量(度/头日)","单头牛用水量(吨/头日)","单头牛用油量(升/头日)"],r=["能源消耗统计(牧场)","月份","全群饲养头日","牧场外购电量(度)","沼气发电量(度)","牧场外购水量(吨)","牧场自备井取水量(吨)","牧场柴油用量(升)","牧场煤炭用量(吨)","生物质颗粒用量(吨)","牧场天然气用量(方)","牧场总用电量(度)","牧场总用水量(吨)","牧场电费单价(元/度)","牧场水费单价(元/吨)","牧场柴油单价(元/升)","牧场煤炭单价(元/吨)","牧场天然气单价(元/方)","生物质颗粒单价(元/吨)","单头牛用电量(度/头日)","单头牛用水量(吨/头日)","单头牛用油量(升/头日)","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;"现代牧业"==this.tableObj.parammaps.pastureName&&(this.tableObj.parammaps.pastureName=""),this.listLoading=!0,Object(r["e"])(this.tableObj).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.pastureList=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.get_departList1(),e.get_departList2()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureList.find((function(t){return t.name==e})).id,this.tableObj.parammaps.departName="",this.get_departList1()},get_departList1:function(){var e=this;Object(r["e"])(this.getDepartParam1).then((function(t){e.departList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.temp.departmentId="",this.get_departList2()},get_departList2:function(){var e=this;Object(r["e"])(this.getDepartParam2).then((function(t){e.departList2=t.data.list}))},form_search:function(){this.listLoading=!0,this.tableObj.offset=1,null==this.tableObj.parammaps.date||""==this.tableObj.parammaps.date?(this.tableObj.parammaps.date="",this.tableObj.parammaps.startdate="",this.tableObj.parammaps.enddate=""):(this.tableObj.parammaps.startdate=Object(l["e"])(this.tableObj.parammaps.date[0],"{y}-{m}"),this.tableObj.parammaps.enddate=Object(l["e"])(this.tableObj.parammaps.date[1],"{y}-{m}")),console.log(this.tableObj.parammaps),this.get_table_data()},change_emp:function(e){console.log("记录人",e),this.$set(this.temp,"inputid",e),this.$forceUpdate()},form_reset:function(){this.temp={pastureName:"",pastureId:"",date:Object(l["e"])(new Date,"{y}-{m}"),firstday:"",mcwgdl:"",zqfdl:"",mcwgsl:"",mczbjqsl:"",mccyyl:"",mcmtyl:"",swzklyl:"",mctrqyl:"",mczydl:"",mczysl:"",mcdfdj:"",mcsfdj:"",mccydj:"",mcmtdj:"",mctrqdj:"",swzkldj:"",dtnydl:"",dtnysl:"",dtnyyl:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log("this.temp=====>",this.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.temp.date=Object(l["e"])(e.temp.date,"{y}-{m}");var a={common:{returnmap:"0"},data:[{name:"insertEnergy",type:"e",parammaps:e.temp}]};Object(r["c"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.temp.date=Object(l["e"])(e.temp.date,"{y}-{m}");var a={common:{returnmap:"0"},data:[{name:"insertEnergy",type:"e",parammaps:e.temp}]};Object(r["c"])(a).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){var t=this;console.log("row=======",e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){e.temp.date=Object(l["e"])(e.temp.date,"{y}-{m}");var a={common:{returnmap:"0"},data:[{name:"editEnergyList",type:"e",parammaps:e.temp}]};Object(r["c"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("是否确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"deleteEnergy",type:"e",parammaps:{id:e.id}}]};Object(r["c"])(a).then((function(){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["能源消耗统计(牧场)","月份","全群饲养头日","牧场外购电量(度)","沼气发电量(度)","牧场外购水量(吨)","牧场自备井取水量(吨)","牧场柴油用量(升)","牧场煤炭用量(吨)","生物质颗粒用量(吨)","牧场天然气用量(方)","牧场总用电量(度)","牧场总用水量(吨)","牧场电费单价(元/度)","牧场水费单价(元/吨)","牧场柴油单价(元/升)","牧场煤炭单价(元/吨)","牧场天然气单价(元/方)","生物质颗粒单价(元/吨)","单头牛用电量(度/头日)","单头牛用水量(吨/头日)","单头牛用油量(升/头日)"],r=["能源消耗统计(牧场)","月份","全群饲养头日","牧场外购电量(度)","沼气发电量(度)","牧场外购水量(吨)","牧场自备井取水量(吨)","牧场柴油用量(升)","牧场煤炭用量(吨)","生物质颗粒用量(吨)","牧场天然气用量(方)","牧场总用电量(度)","牧场总用水量(吨)","牧场电费单价(元/度)","牧场水费单价(元/吨)","牧场柴油单价(元/升)","牧场煤炭单价(元/吨)","牧场天然气单价(元/方)","生物质颗粒单价(元/吨)","单头牛用电量(度/头日)","单头牛用水量(吨/头日)","单头牛用油量(升/头日)"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"模板",autoWidth:!0,bookType:"xlsx"})}))}))}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},5729:function(e,t,a){},"577d":function(e,t,a){"use strict";a("0032")},"57b8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"用户名"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isUserAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isUserRole?a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleRole(s)}}},[e._v(" 角色 ")]):e._e(),e._v(" "),e.isUserEdit?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),e.isUserResetpassword?a("el-button",{staticStyle:{padding:"7px 5px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleResetPassword(s)}}},[e._v(" 重置密码 ")]):e._e(),e._v(" "),"已删"!==s.status&&e.isUserDelete?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"80%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.dataform.selectedRole,callback:function(t){e.$set(e.dataform,"selectedRole",t)},expression:"dataform.selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["role"],visible:e.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogRoleVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateRole()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("ac6a"),a("55dd"),a("3b2b"),a("6724")),n=a("61f7"),l=a("2934"),o=a("333d"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParam2:{},repairmanTypeList:[],requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getEmpall",offset:0,pagecount:0,params:[]},{name:"getMaintenanceTypeList",offset:0,pagecount:0,params:[]}],requestFilterParams:{returntype:"Map",parammaps:{}},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:[]},dataform:{empname:"",position:"",username:"",fullname:"",empid:"",id:"",sort:"",enable:1,maintenancePerson:1,keeper:1,maintenanceTypeId:"",selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],viedoAccountList:[{deviceId:"apptest2",uId:"PC",pwd:"mcs8@666"}],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),empCode:"",empname:""}},updateParam:{name:"getMaintenanceTypeByUser",offset:1,pagecount:0,returntype:"list",params:[]},rules:{empid:[{required:!0,message:"用户名必填",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名必填",trigger:"change"}],empname:[{type:"string",required:!0,message:"职工名必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},disabled:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{get_auto_buttons:function(){var e="console:user:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isUserAdd=t;var a="console:user:role",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isUserRole=s;var i="console:user:edit",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isUserEdit=r;var n="console:user:resetpassword",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isUserResetpassword=o;var p=Object(l["v"])(this.$store.state.user.buttons,p);this.isUserDelete=p},tableSort:function(e){Object(d["f"])(e,this.list)},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["f"])(this.requestParams).then((function(t){e.rolelist=t.data.getRoleall.list,e.emplist=t.data.getEmpall.list,e.repairmanTypeList=t.data.getMaintenanceTypeList.list,Object(l["e"])(e.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),1e3)}))}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetRequestParam:function(){this.dataform={username:"",fullname:"",empid:"",id:"",empname:"",position:"",sort:"",enable:1,selectedRole:"",selectedRole2:"",maintenancePerson:1,keeper:1,maintenanceTypeId:""}},form_add:function(){this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisibleAdd=!0},changeMaintenanceWorker:function(e){1==e?this.disabled=!1:(this.disabled=!0,this.dataform.maintenanceTypeId=[])},add_dialog_save:function(){for(var e=this,t=[],a=0;a<this.dataform.selectedRole.length;a++){var s={};this.$set(s,"role_id",this.dataform.selectedRole[a]),t.push(s)}this.dataform.selectedRole2=t;for(var i=[],r=0;r<this.dataform.maintenanceTypeId.length;r++){var n={};this.$set(n,"maintenanceTypeId",this.dataform.maintenanceTypeId[r]),i.push(n)}this.dataform.maintenanceTypeId=i,this.$refs["dataForm"].validate((function(t){if(t){if(e.dataform.selectedRole2.length<=0)return e.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:e.dataform.username,empid:e.dataform.empid,sort:"0",enable:e.dataform.enable,maintenancePerson:e.dataform.maintenancePerson,keeper:e.dataform.keeper}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.dataform.selectedRole2}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},e.postDataPramas.data[2]={name:"insertSpotList1",resultmaps:{list:e.dataform.maintenanceTypeId}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertUserMaintenance",type:"e",parammaps:{user_id:"@createUser.LastInsertId",maintenance_id:"@insertSpotList1.maintenanceTypeId"}},console.log("新增保存发送参数",e.postDataPramas),Object(l["c"])(e.postDataPramas).then((function(t){if(console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}else{e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisibleAdd=!1;var s=c.a.get("pastureid");console.log(pastureid);var i=e.dataform.deviceId,r=e.dataform.uId,n=e.dataform.pwd;console.log("pastureId",s);var o={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:i}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:r,deviceId:i,pwd:n}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",o),Object(l["c"])(o).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.dialogFormVisibleAdd=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))}}))},handleRole:function(e){var t=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogRoleVisible=!0,Object(l["e"])(this.requestParam).then((function(e){t.selectedRole=e.data.lists.role_id}))},updateRole:function(){var e=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(l["u"])(this.UpdateDataRelationParam).then((function(){e.dialogRoleVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data()}))},form_edit:function(e){var t=this;1==e.maintenancePerson?(this.updateParam.params[0]=e.id,Object(l["e"])(this.updateParam).then((function(a){console.log(a.data),null!==a.data.lists?t.$set(e,"maintenanceTypeId",a.data.lists.maintenance_id):t.$set(e,"maintenanceTypeId",[]),t.dialogStatus="update",t.dialogFormVisible=!0,t.disabled=!1}))):(this.disabled=!0,this.dialogStatus="update",this.dialogFormVisible=!0,this.$set(e,"maintenanceTypeId",[])),this.dataform=Object.assign(e,{}),this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="updateUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,e.requestParam.params[4]=e.dataform.maintenancePerson,e.requestParam.params[5]=e.dataform.keeper,e.requestParam.params[6]=e.dataform.id,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.requestParam2={},e.requestParam2.name="user_mainthenance",e.requestParam2.dataname="user_id",e.requestParam2.datavalue=e.dataform.id,e.requestParam2.valuename="maintenance_id",e.requestParam2.values=e.dataform.maintenanceTypeId,Object(l["u"])(e.requestParam2).then((function(t){if("fail"!==t.msg){var a={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:e.dataform.deviceId}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:e.dataform.uId,deviceId:e.dataform.deviceId,pwd:e.dataform.pwd}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",a),Object(l["c"])(a).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.get_table_data(),e.dialogFormVisible=!1;else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=t.username,this.requestParam.params[1]=t.empid,this.requestParam.params[2]=t.sort,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(e,t){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=e,Object(l["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNameSelect:function(e){this.dataform.username=e.empCode,this.dataform.empid=e.id,this.$set(this.dataform,"empname",e.empname),this.$set(this.dataform,"position",e.position)},handleResetPassword:function(e){var t=this;p["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))},change_deviceId:function(e){console.log(e);var t=e,a="",s="",i=this.viedoAccountList;i.forEach((function(e){e.deviceId==t&&(s=e.uId,a=e.pwd)})),this.dataform.uId=s,this.dataform.pwd=a,this.dataform.deviceId=t}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"57d1":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-集团设备指标",use:"icon-集团设备指标-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-集团设备指标"><defs><style type="text/css"></style></defs><path d="M133.12 869.376h757.248c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H133.12c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM170.496 128v714.752c0 14.848 11.776 26.624 26.624 26.624h405.504c14.848 0 26.624-11.776 26.624-26.624V128c0-14.848-11.776-26.624-26.624-26.624H197.12c-14.848 0-26.624 11.776-26.624 26.624z m405.504 741.376H250.88c-14.848 0-26.624-11.776-26.624-26.624V181.248c0-14.848 11.776-26.624 26.624-26.624h299.008c14.848 0 26.624 11.776 26.624 26.624v688.128h-0.512z" p-id="3185" fill="#ffffff" /><path d="M576 357.376v491.008c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V410.624c0-14.848 11.776-26.624 26.624-26.624H773.12c14.848 0 26.624 11.776 26.624 26.624v437.248c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V357.376c0-14.848-11.776-26.624-26.624-26.624h-223.744c-14.848 0-26.624 11.776-26.624 26.624zM293.376 266.752h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM293.376 453.12h64c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624zM293.376 640h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z" p-id="3186" fill="#ffffff" /><path d="M719.872 453.12c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624V479.744c0-14.848 11.776-26.624 26.624-26.624z m0 171.008c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624v-79.872c0-14.848 11.776-26.624 26.624-26.624z" p-id="3187" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},5805:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("98d6");a("ed08");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},contrastData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{contrastData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.contrastData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lastData,a=e.thisData,s=e.text,i=(e.thisMinData,e.days);this.chart.setOption({title:{text:s+"月维修同期对比",subtext:""},tooltip:{trigger:"axis"},legend:{data:["去年","今年"]},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},dataView:{readOnly:!1},magicType:{type:["line","bar"]},restore:{},saveAsImage:{}}},xAxis:{type:"category",name:"日期",boundaryGap:!1,data:i},yAxis:{type:"value",name:"元",axisLabel:{formatter:"{value}"}},grid:[{top:"25%",left:"15%"}],series:[{name:"去年",type:"line",data:t,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"}]}},{name:"今年",type:"line",data:a,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"},[{symbol:"none",x:"90%",yAxis:"max"},{symbol:"circle",label:{normal:{position:"start",formatter:"最大值"}},type:"max",name:"最高点"}]]}}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"580b":function(e,t,a){"use strict";a("eb38")},5839:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"partCode",t)},expression:"getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.getdataListParm.parammaps,"partName",t)},expression:"getdataListParm.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"规格"},model:{value:e.getdataListParm.parammaps.specification,callback:function(t){e.$set(e.getdataListParm.parammaps,"specification",t)},expression:"getdataListParm.parammaps.specification"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm.parammaps,"providerName",t)},expression:"getdataListParm.parammaps.providerName"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"品牌"},on:{select:e.handleSelectBrand},model:{value:e.getdataListParm.parammaps.brandName,callback:function(t){e.$set(e.getdataListParm.parammaps,"brandName",t)},expression:"getdataListParm.parammaps.brandName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"库位"},model:{value:e.getdataListParm.parammaps.location,callback:function(t){e.$set(e.getdataListParm.parammaps,"location",t)},expression:"getdataListParm.parammaps.location"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"contractCode",t)},expression:"getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"零库存"},model:{value:e.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.getdataListParm.parammaps,"isZeroStock",t)},expression:"getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroStocks,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"预警信息"},model:{value:e.getdataListParm.parammaps.warnings,callback:function(t){e.$set(e.getdataListParm.parammaps,"warnings",t)},expression:"getdataListParm.parammaps.warnings"}},e._l(e.warnings,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"全部库存"},model:{value:e.getdataListParm.parammaps.reportery,callback:function(t){e.$set(e.getdataListParm.parammaps,"reportery",t)},expression:"getdataListParm.parammaps.reportery"}},e._l(e.customList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentDept,disabled:!1,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isCustomTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isCustomImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"},on:{click:e.form_searchClear}},[e._v("导入")]):e._e()],1),e._v(" "),e.isCustomExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当前库存",sortable:"",prop:"reportery","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[""!==s.minRepertory&&parseFloat(s.reportery)<parseFloat(s.minRepertory)?a("span",{staticStyle:{background:"red",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.reportery))]):""!==s.maxRepertory&&parseFloat(s.reportery)>parseFloat(s.maxRepertory)?a("span",{staticStyle:{background:"green",display:"block","line-height":"45px",color:"#fff"}},[e._v(e._s(s.reportery))]):a("span",[e._v(e._s(s.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"在库天数",sortable:"",prop:"price","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.daysInStorage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最高库存",sortable:"",prop:"maxRepertory","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxRepertory))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最低库存",sortable:"",prop:"minRepertory","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.minRepertory))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center",formatter:e.isZeroStock}}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isCustomSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleChange(s)}}},[e._v("库位变更")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{staticStyle:{width:"100%"},attrs:{title:e.textMap[e.dialogStatusCard],visible:e.dialogFormVisibleCard,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard",staticStyle:{width:"90%",margin:"0 auto"}},[a("div",{staticClass:"card"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"备件编号:",prop:"partCode"}},[a("span",[e._v(e._s(e.seeTemp.partCode))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"备件名称:",prop:"partName"}},[a("span",[e._v(e._s(e.seeTemp.partName))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"备件规格:",prop:"specification"}},[a("span",[e._v(e._s(e.seeTemp.specification))])])],1),e._v(" "),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(e._s(e.seeTemp.providerName))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brand"}},[a("span",[e._v(e._s(e.seeTemp.brand))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"计量单位:",prop:"providerId"}},[a("span",[e._v(e._s(e.seeTemp.unit))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"单价:",prop:"providerId"}},[a("span",[e._v(e._s(e.seeTemp.price))])])],1),e._v(" "),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("span",[e._v(e._s(e.seeTemp.pastureName))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"当前库存:",prop:"reportery"}},[a("span",[e._v(e._s(e.seeTemp.reportery))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"最高库存:",prop:"maxRepertory"}},[a("span",[e._v(e._s(e.seeTemp.maxRepertory))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"最低库存:",prop:"minRepertory"}},[a("span",[e._v(e._s(e.seeTemp.minRepertory))])])],1),e._v(" "),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"库位:",prop:"location"}},[a("span",[e._v(e._s(e.seeTemp.location))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"partCode"}},[a("span",[e._v(e._s(e.seeTemp.contractCode))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("span",[e._v(e._s(e.seeTemp.statue))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("span",[e._v(e._s(e.seeTemp.isZeroStock))])])],1),e._v(" "),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("span",[e._v(e._s(e.seeTemp.note))])])],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"入库记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"入库单号"},model:{value:e.getdataListParmStorage.parammaps.laidCode,callback:function(t){e.$set(e.getdataListParmStorage.parammaps,"laidCode",t)},expression:"getdataListParmStorage.parammaps.laidCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmStorage.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmStorage.parammaps,"inputDatetime",t)},expression:"getdataListParmStorage.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchStorage}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingStorage,expression:"listLoadingStorage"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listStorage,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",width:"100px",align:"center",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号",prop:"laidCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",label:"入库日期",prop:"createTime","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库数量",sortable:"",prop:"storageAmount","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"60px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalStorage,page:e.getdataListParmStorage.offset,limit:e.getdataListParmStorage.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmStorage,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmStorage,"pagecount",t)},pagination:e.getCardStorage}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"出库记录",name:"third"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParmDelivery.parammaps.useForm,callback:function(t){e.$set(e.getdataListParmDelivery.parammaps,"useForm",t)},expression:"getdataListParmDelivery.parammaps.useForm"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用部门"},model:{value:e.getdataListParmDelivery.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmDelivery.parammaps,"departmentId",t)},expression:"getdataListParmDelivery.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"关联设备编号"},model:{value:e.getdataListParmDelivery.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParmDelivery.parammaps,"eqCode",t)},expression:"getdataListParmDelivery.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"关联设备名称"},model:{value:e.getdataListParmDelivery.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmDelivery.parammaps,"eqName",t)},expression:"getdataListParmDelivery.parammaps.eqName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmDelivery.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmDelivery.parammaps,"inputDatetime",t)},expression:"getdataListParmDelivery.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDelivery,expression:"listLoadingDelivery"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDelivery,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",width:"100px",align:"center",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",sortable:"",prop:"createTime","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关联设备编号",prop:"eqCode","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关联设备名称",prop:"eqName","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量",sortable:"",prop:"checkoutNumber","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"60px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalDelivery,page:e.getdataListParmDelivery.offset,limit:e.getdataListParmDelivery.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmDelivery,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmDelivery,"pagecount",t)},pagination:e.getCardDelivery}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"退库记录",name:"fouth"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"退库单号"},model:{value:e.getdataListParmCancelling.parammaps.useForm,callback:function(t){e.$set(e.getdataListParmCancelling.parammaps,"useForm",t)},expression:"getdataListParmCancelling.parammaps.useForm"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmCancelling.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmCancelling.parammaps,"inputDatetime",t)},expression:"getdataListParmCancelling.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchCancelling}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCancelling,expression:"listLoadingCancelling"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCancelling,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",width:"100px",align:"center",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退库单号",prop:"useForm","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库日期",sortable:"",prop:"createTime","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库人",prop:"empname","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量",sortable:"",prop:"quitNumber","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库原因",prop:"note","min-width":"60px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalCancelling,page:e.getdataListParmCancelling.offset,limit:e.getdataListParmCancelling.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmCancelling,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmCancelling,"pagecount",t)},pagination:e.getCardCancelling}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"退货记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"退货单号"},model:{value:e.getdataListParmRefund.parammaps.useForm,callback:function(t){e.$set(e.getdataListParmRefund.parammaps,"useForm",t)},expression:"getdataListParmRefund.parammaps.useForm"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime4",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmRefund.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmRefund.parammaps,"inputDatetime",t)},expression:"getdataListParmRefund.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchRefund}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingRefund,expression:"listLoadingRefund"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listRefund,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",width:"100px",align:"center",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号",prop:"useForm","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期",sortable:"",prop:"createTime","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货人",prop:"empname","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量",sortable:"",prop:"refundNumber","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货原因",sortable:"",prop:"note","min-width":"60px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalRefund,page:e.getdataListParmRefund.offset,limit:e.getdataListParmRefund.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmRefund,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmRefund,"pagecount",t)},pagination:e.getCardRefund}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"盘点记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"盘点单号"},model:{value:e.getdataListParmRecord.parammaps.oddCode,callback:function(t){e.$set(e.getdataListParmRecord.parammaps,"oddCode",t)},expression:"getdataListParmRecord.parammaps.oddCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime5",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmRecord.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmRecord.parammaps,"inputDatetime",t)},expression:"getdataListParmRecord.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchRecord}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingRecord,expression:"listLoadingRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"cell-class-name":e.tableCellClassName},on:{"cell-click":e.cellClick,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",width:"100px",align:"center",type:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点单号",prop:"oddCode","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘点日期",sortable:"",prop:"createTime","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘点人",prop:"empname","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘点数量",sortable:"",prop:"checkAmount","min-width":"60px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"差值",sortable:"",prop:"repertory","min-width":"60px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalRefund,page:e.getdataListParmRecord.offset,limit:e.getdataListParmRecord.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmRecord,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmRecord,"pagecount",t)},pagination:e.getCardRecord}})],1)],1)],1)]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"80%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatus_change],visible:e.dialogFormVisible_change,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"changeTemp",attrs:{rules:e.rules,model:e.changeTemp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:14}},[a("el-form-item",{attrs:{label:"当前库位:",prop:"location"}},[a("span",[e._v(e._s(e.changeTemp.location))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:14}},[a("el-form-item",{attrs:{label:"变更库位:",prop:"warehoseCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"warehoseCode","fetch-suggestions":e.getWarehoseCode,placeholder:"请输入库位"},on:{focus:e.handleFocusWarehoseCode,blur:e.handleBlurWarehoseCode,select:e.handleSelectWarehoseCode},model:{value:e.changeTemp.warehoseCode,callback:function(t){e.$set(e.changeTemp,"warehoseCode",t)},expression:"changeTemp.warehoseCode"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusErro],visible:e.dialogFormVisibleErro,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleErro=t}}},[a("div",{staticClass:"app-erro"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingErro,expression:"listLoadingErro"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listErro,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index","min-width":"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"错误信息","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("b",[e._v("错误行:")]),e._v(e._s(t.row.input))]),a("br"),a("span",[a("b",[e._v("错误信息:")]),e._v(e._s(t.row.error_msg))])]}}])})],1)],1)])],1)},i=[],r=(a("7f7f"),a("ac6a"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("3de8"),m=a("a78e"),c=a.n(m),d=a("5f87"),u={name:"Custom",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){return{disabled:!0,activeName:"first",color:"#409EFF",tableKey:0,total:0,listLoading:!0,listLoadingErro:!0,listErro:[],getRecuListParm:{name:"getStockTypeList",idname:"id",params:[-1]},temp:{categoryId:"",stockNumber:"",categoryName:"",assTypeId:"",stockName:"",specification:"",note:"",providerName:"",unit:"",price:"",repertory:"",minRepertory:"",maxRepertory:"",pastureId:"",purpose:"",record:""},dialogFormVisible:!1,dialogFormVisibleCard:!1,dialogStatusCard:"",dialogFormVisible_change:!1,dialogStatus_change:"",changeTemp:{},getWarehoseCodeParm:{name:"getWarehouseListByProvider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:"",providerId:""}},changeParam:{name:"changePRlocation",parammaps:{}},isokDisable:!1,searchBtnVisible:!0,dialogFormVisibleErro:!1,dialogStatusErro:"",rules:{warehoseCode:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},parentClass:[],Classid:"",selectionIndex:[],totalCancelling:0,listCancelling:[],listLoadingCancelling:!0,getdataListParmCancelling:{name:"getPartquitRecord",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{useForm:"",inputDatetime:""}},totalRefund:0,listRefund:[],listLoadingRefund:!0,getdataListParmRefund:{name:"getPartrefundRecord",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{useForm:"",inputDatetime:""}},totalRecord:0,listRecord:[],listLoadingRecord:!0,getdataListParmRecord:{name:"getCheckpartRecord",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{oddCode:"",inputDatetime:""}},customList:[{id:0,name:"全部库存"},{id:1,name:"库存不为零"}],isCustomTemplate:[],isCustomImport:[],isCustomExport:[],isCustomSee:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByNameYuJing:[],findAllCategory:[],requestParams:[{name:"findAllProviderByCt",offset:0,pagecount:0,parammaps:{id:c.a.get("pastureid")}},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],requestBrand:{name:"getBrandList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},requestProvider:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},warnings:[{id:"1",name:"高"},{id:"2",name:"低"},{id:"3",name:"正常"}],isZeroStocks:[{id:"0",name:"否"},{id:"1",name:"是"}],statues:[{id:"1",name:"正常"},{id:"2",name:"已过期"},{id:"3",name:"终止"}],getdataListParm:{name:"getStockPastureList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),partCode:"",partName:"",providerName:this.$route.query.providerName,brandName:"",contractCode:"",statue:"",isZeroStock:"",warnings:"",reportery:1,specification:"",location:""}},list:[],requestParam:{name:"getStockPastureList",offset:0,pagecount:0,parammaps:{pastureName:c.a.get("pasturename")}},downList:[],textMap:{card:"查看详情",create:"新增",update:"编辑",erro:"导入错误信息",change:"库位变更"},seeTemp:{},totalStorage:0,listStorage:[],listLoadingStorage:!0,getdataListParmStorage:{name:"getPartLaidRecord",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{partCode:"",laidCode:"",inputDatetime:"",startTime:"",stopTime:""}},totalDelivery:0,listDelivery:[],listLoadingDelivery:!0,getdataListParmDelivery:{name:"getPartUseRecord",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{useForm:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",eqCode:"",eqName:""}},buttons:[],isPercentage:!1,percentage:1,getDeptListParm:{name:"getpart_classList"},parentDept:[],defaultProps:{children:"children",label:"partClassNameCode"},nodeKey:"id",defaultCheckedKeys:[],placeholder:"请选择备件类别"}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"insertRepertory",importParams:"牧场,物料编码,品名,规格型号,品牌,计量单位,库存数量,单价,库位,供应商",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.getTypeList(),this.get_select_list(),this.getDownClassList(),this.get_table_data();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){"second"==this.activeName?Object(l["f"])(e,this.listStorage):"third"==this.activeName?Object(l["f"])(e,this.listDelivery):"fouth"==this.activeName?Object(l["f"])(e,this.listCancelling):"fifth"==this.activeName?Object(l["f"])(e,this.listRefund):"sixth"==this.activeName&&Object(l["f"])(e,this.listRecord)},get_auto_buttons:function(){var e="customs:custom:template",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isCustomTemplate=t;var a="customs:custom:import",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isCustomImport=s;var i="customs:custom:export",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isCustomExport=n;var l="customs:custom:see",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isCustomSee=o},getTypeList:function(){var e=this;this.getDeptListParm.parammaps=this.deptform,Object(r["e"])(this.getDeptListParm).then((function(t){e.listType=t.data,null!==t.data.list&&(e.listType=Object(r["E"])(t.data.list,"id","pid","children"),console.log(e.listType)),e.parentDept=e.listType}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProviderByCt.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},get_table_data:function(){var e=this;this.listLoading=!0,console.log(this.$route.query.providerName),void 0!==this.$route.query.pastureName&&(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName),Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)void 0!==t.data.list[a].price&&e.$set(t.data.list[a],"price",parseFloat(t.data.list[a].price)),void 0!==t.data.list[a].reportery&&e.$set(t.data.list[a],"reportery",parseFloat(t.data.list[a].reportery)),void 0!==t.data.list[a].maxRepertory&&e.$set(t.data.list[a],"maxRepertory",parseFloat(t.data.list[a].maxRepertory)),void 0!==t.data.list[a].minRepertory&&e.$set(t.data.list[a],"minRepertory",parseFloat(t.data.list[a].minRepertory));e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[],e.pageNum=0,e.pageSize=0;e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),300)}))},isZeroStock:function(e){return 0==e.isZeroStock?"否":1==e.isZeroStock?"是":void 0},form_see:function(e){this.defaultCheckedKeys=[this.temp.categoryId],this.dialogStatusCard="card",this.activeName="first",this.seeTemp=Object.assign({},e),0==this.seeTemp.isZeroStock?this.seeTemp.isZeroStock="否":this.seeTemp.isZeroStock="是",console.log("查看基础信息data",this.seeTemp),this.getdataListParmStorage.parammaps.pastureId=e.pastureId,this.getdataListParmStorage.parammaps.partCode=e.partCode,this.getdataListParmStorage.parammaps.contractId=e.contractId,this.getCardStorage(),this.getdataListParmDelivery.parammaps.pastureId=e.pastureId,this.getdataListParmDelivery.parammaps.contractId=e.contractId,this.getdataListParmDelivery.parammaps.partCode=e.partCode,this.getCardDelivery(),this.getdataListParmCancelling.parammaps.pastureId=e.pastureId,this.getdataListParmCancelling.parammaps.partCode=e.partCode,this.getdataListParmCancelling.parammaps.contractId=e.contractId,this.getCardCancelling(),this.getdataListParmRefund.parammaps.pastureId=e.pastureId,this.getdataListParmRefund.parammaps.partCode=e.partCode,this.getdataListParmRefund.parammaps.contractId=e.contractId,this.getCardRefund(),this.dialogFormVisibleCard=!0,this.getdataListParmRecord.parammaps.pastureId=e.pastureId,this.getdataListParmRecord.parammaps.partCode=e.partCode,this.getdataListParmRecord.parammaps.contractId=e.contractId,this.getCardRecord(),this.dialogFormVisibleCard=!0},handleChange:function(e){console.log(e),this.changeTemp=Object.assign(e,{}),this.$set(this.changeTemp,"warehoseId",""),this.$set(this.changeTemp,"warehoseCode",""),this.dialogStatus_change="change",this.dialogFormVisible_change=!0},getWarehoseCode:function(e,t){console.log("领用单号模糊查询输入值",e),this.getWarehoseCodeParm.parammaps["pastureId"]=c.a.get("pastureid"),this.getWarehoseCodeParm.parammaps["providerId"]=this.changeTemp.providerId,this.getWarehoseCodeParm.parammaps["warehoseCode"]=e,Object(r["e"])(this.getWarehoseCodeParm).then((function(e){console.log("库位模糊查询搜索data",e.data.list),t(e.data.list)}))},handleFocusWarehoseCode:function(){this.changeTemp.warehoseId="",this.changeTemp.warehoseCode=""},handleSelectWarehoseCode:function(e){console.log(e,"---------"),this.$set(this.changeTemp,"warehoseId",e.id),this.$set(this.changeTemp,"warehoseCode",e.warehoseCode)},handleBlurWarehoseCode:function(){""==this.changeTemp.warehoseId&&(this.changeTemp.warehoseId="",this.changeTemp.warehoseCode="")},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["changeTemp"].validate((function(t){t&&(e.changeParam.parammaps.id=e.changeTemp.id,e.changeParam.parammaps.warehoseCode=e.changeTemp.warehoseCode,e.changeParam.parammaps.warehoseId=e.changeTemp.warehoseId,Object(r["k"])(e.changeParam).then((function(t){console.log(t),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},brandSearch:function(e,t){console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(r["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e)},providerSearch:function(e,t){console.log("供应商模糊查询输入值",e),this.requestProvider.parammaps["providerName"]=e,Object(r["e"])(this.requestProvider).then((function(e){console.log("供应商模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectProvider:function(e){console.log("供应商模糊查询选中值",e)},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.getdataListParm.pastureName=c.a.get("pasturename"),this.get_table_data()},form_searchClear:function(){this.listLoading=!0,this.beforeUploading()},beforeUploading:function(){var e=this;Object(r["k"])(this.getdataListParmBeforeUploading).then((function(t){setTimeout((function(){e.listLoading=!1}),300)}))},handleDownload:function(){var e=this;this.$alert("备件库存信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="getStockPastureList",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.partCode=this.getdataListParm.parammaps.partCode,this.requestParam.parammaps.partName=this.getdataListParm.parammaps.partName,this.requestParam.parammaps.providerName=this.getdataListParm.parammaps.providerName,this.requestParam.parammaps.brandName=this.getdataListParm.parammaps.brandName,this.requestParam.parammaps.contractCode=this.getdataListParm.parammaps.contractCode,this.requestParam.parammaps.statue=this.getdataListParm.parammaps.statue,this.requestParam.parammaps.isZeroStock=this.getdataListParm.parammaps.isZeroStock,this.requestParam.parammaps.warnings=this.getdataListParm.parammaps.warnings,this.requestParam.parammaps.reportery=this.getdataListParm.parammaps.reportery,this.requestParam.parammaps.specification=this.getdataListParm.parammaps.specification,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){console.log(t.data.list),t.data.list.forEach((function(e,t){0==e.isZeroStock?e.isZeroStock="否":e.isZeroStock="是"}));var s=t.data.list;console.log(t.data.list),""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["牧场","备件名称","备件编号","规格","供应商","单位","品牌","单价","当前库存","在库天数","最小库存","最大库存","位置","状态","合同状态","零库存"],r=["pastureName","partName","partCode","specification","providerName","unit","brand","price","reportery","daysInStorage","minRepertory","maxRepertory","location","statue","isZeroStock"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件库存信息",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){this.temp.providerId=e.id,this.temp.providerName=e.name},tableCellClassName:function(e){var t=e.row,a=e.column,s=e.rowIndex,i=e.columnIndex;t.index=s,a.index=i},cellClick:function(e,t,a,s){console.log("行索引",e.index),console.log("列索引",t.index)},selected:function(e){this.selectionIndex=[],this.selectionIndex.push(3,4,5)},popoverHide:function(e,t){console.log(e,t),null!==e&&(0==t.childrens||(this.defaultCheckedKeys=[],this.$message({type:"warning",message:"请选择详细备件类别"}))),this.$forceUpdate()},getDownClassList:function(){var e=this;Object(r["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){Object(l["e"])(new Date,"{y}-{m}-{d}"),this.defaultCheckedKeys=[]},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","物料编码","品名","规格型号","品牌","计量单位","库存数量","最小库存","最大库存","单价","库位","供应商"],r=["牧场","物料编码","品名","规格型号","品牌","计量单位","库存数量","最小库存","最大库存","单价","库位","供应商"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件库存模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.dialogFormVisibleErro=!0,this.dialogStatusErro="erro",this.listErro=e.data.result,setTimeout((function(){s.listLoadingErro=!1}),100),this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","物料编码","品名","规格型号","品牌","计量单位","库存数量","最小库存","最大库存","单价","库位","供应商","报错信息"],r=["牧场","物料编码","品名","规格型号","品牌","计量单位","库存数量","最小库存","最大库存","单价","库位","供应商","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"库存报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},getCardStorage:function(){var e=this;this.listLoadingStorage=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParmStorage.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParmStorage.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParmStorage.parammaps.startTime="",this.getdataListParmStorage.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmStorage).then((function(t){e.listStorage=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalStorage=t.data.total),setTimeout((function(){e.listLoadingStorage=!1}),100)}))},form_searchStorage:function(){this.listLoadingStorage=!0,null===this.getdataListParmStorage.parammaps.inputDatetime&&(this.getdataListParmStorage.parammaps.inputDatetime=""),this.getdataListParmStorage.offset=1,this.getCardStorage()},getCardDelivery:function(){var e=this;this.listLoadingDelivery=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParmDelivery.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParmDelivery.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParmDelivery.parammaps.startTime="",this.getdataListParmDelivery.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmDelivery).then((function(t){e.listDelivery=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalDelivery=t.data.total),setTimeout((function(){e.listLoadingDelivery=!1}),100)}))},form_searchDelivery:function(){this.listLoadingDelivery=!0,this.getdataListParmDelivery.offset=1,this.getCardDelivery()},getCardCancelling:function(){var e=this;this.listLoadingCancelling=!0,void 0!==this.$refs["inputDatetime3"]&&null!==this.$refs["inputDatetime3"].value?(this.getdataListParmCancelling.parammaps.startTime=this.$refs["inputDatetime3"].value[0],this.getdataListParmCancelling.parammaps.stopTime=this.$refs["inputDatetime3"].value[1]):(this.getdataListParmCancelling.parammaps.startTime="",this.getdataListParmCancelling.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmCancelling).then((function(t){e.listCancelling=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalCancelling=t.data.total),setTimeout((function(){e.listLoadingCancelling=!1}),100)}))},form_searchCancelling:function(){this.listLoadingCancelling=!0,this.getdataListParmCancelling.offset=1,this.getCardCancelling()},getCardRefund:function(){var e=this;this.listLoadingRefund=!0,void 0!==this.$refs["inputDatetime4"]&&null!==this.$refs["inputDatetime4"].value?(this.getdataListParmRefund.parammaps.startTime=this.$refs["inputDatetime4"].value[0],this.getdataListParmRefund.parammaps.stopTime=this.$refs["inputDatetime4"].value[1]):(this.getdataListParmRefund.parammaps.startTime="",this.getdataListParmRefund.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmRefund).then((function(t){e.listRefund=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalRefund=t.data.total),setTimeout((function(){e.listLoadingRefund=!1}),100)}))},form_searchRefund:function(){this.listLoadingRefund=!0,this.getdataListParmRefund.offset=1,this.getCardRefund()},getCardRecord:function(){var e=this;this.listLoadingRecord=!0,void 0!==this.$refs["inputDatetime5"]&&null!==this.$refs["inputDatetime5"].value?(this.getdataListParmRecord.parammaps.startTime=this.$refs["inputDatetime5"].value[0],this.getdataListParmRecord.parammaps.stopTime=this.$refs["inputDatetime5"].value[1]):(this.getdataListParmRecord.parammaps.startTime="",this.getdataListParmRecord.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmRecord).then((function(t){e.listRecord=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalRecord=t.data.total),setTimeout((function(){e.listLoadingRecord=!1}),100)}))},form_searchRecord:function(){this.listLoadingRefund=!0,this.getdataListParmRecord.offset=1,this.getCardRecord()}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},5849:function(e,t,a){},5851:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"generalTitle"},[e._v(" 现代牧业设备管理系统 ")])]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"date"},[e._v(" "+e._s(e.row1.date)+" ")])])],1),e._v(" "),a("el-row",{staticClass:"row2",attrs:{gutter:5}},[a("el-col",{attrs:{span:10}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"450px"},attrs:{id:"row2Chart1"}}),e._v(" "),a("el-row",{staticClass:"groupNews",attrs:{gutter:5}},[a("el-col",{attrs:{span:6}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("设备指标预算")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.monthBudgets)+"万元")])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("迄今预算")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.budget)+"万元")])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("设备指标实际")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.sumPrice)+"万元")])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("迄今达成率")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.donerate))])])],1)],1),e._v(" "),e.row2.chart1.isPastureList?a("div",{staticClass:"pastureNews"},[a("dv-border-box-8",{staticClass:"newsTitle",attrs:{dur:-1}},[a("b",[e._v(e._s(e.row2.chart1.pasture.pastureName))])]),e._v(" "),a("dv-border-box-8",{staticClass:"news2",attrs:{dur:-1}},[a("div",[a("b",[e._v("设备指标预算:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.monthBudgets)+"万元")]),a("br"),e._v(" "),a("b",[e._v("设备指标实际:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.sumPrice)+"万元")]),a("br"),e._v(" "),a("b",[e._v("迄今达成率:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.donerate))])])])],1):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:14}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("设备状态统计")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"480px"},attrs:{id:"row2Chart2"}}),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart2")}}},[e._v("查看详情")])])])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("保养完成率")]),e._v(" "),a("div",{staticClass:"IndexTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.row2.chart3.listLoading,expression:"row2.chart3.listLoading"}],key:e.row2.chart3.tableKey,staticClass:"table-fixed Indextable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.row2.chart3.list,fit:"","cell-style":e.cellStyle,"row-style":e.rowStyle,height:480,"header-cell-style":{background:"#003366",color:"#fff",fontSize:"8px",lineHeight:"12px"}}},[e.row2.chart3.isPasture?a("el-table-column",{attrs:{label:"牧场","min-width":"80px",align:"center",prop:"name"}}):e._e(),e._v(" "),e.row2.chart3.isType?a("el-table-column",{attrs:{label:"设备类型","min-width":"80px",align:"center",prop:"typeName"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"保养计划","min-width":"70px",align:"center",prop:"totaluk"}}),e._v(" "),a("el-table-column",{attrs:{label:"完成数","min-width":"60px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养完成率","min-width":"80px",align:"center",prop:"donerate"}})],1)],1),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart3")}}},[e._v("查看详情")])])])],1),e._v(" "),a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("dv-border-box-8",{staticStyle:{height:"250px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("资产运转率")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"190px"},attrs:{id:"row2Chart4"}}),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart4")}}},[e._v("查看详情")])])])],1)],1)],1)],1),e._v(" "),a("el-row",{staticStyle:{height:"300px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{attrs:{span:24}},[a("dv-border-box-8",{staticStyle:{height:"300px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("费用统计")]),e._v(" "),a("div",{staticClass:"costStatistics"},[a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"维修成本分析"}}),e._v("\n 维修费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart1.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart1.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart1.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart1")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart1"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"水量分析"}}),e._v("\n 水费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart2.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart2.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart2.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart2")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart2"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"电量分析"}}),e._v("\n 电费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart3.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart3.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart3.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart3")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart3"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"燃动分析"}}),e._v("\n 燃动费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart4.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart4.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart4.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart4")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart4"}})])],1)],1)],1)],1)])])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=(a("a78e"),a("ed08")),l=a("313e"),o=a.n(l),p=(a("3139"),a("1157")),m=a.n(p);a("817d");var c={name:"DashboardEditor",data:function(){return{row1:{date:Object(n["e"])(new Date,"{y}-{m}-{d}")},row2:{chart1:{getdataListParm:{name:"homepagePastureInfor",parammaps:{}},data:[],Chart:null,get_table_dataParm:{name:"homepageRate",parammaps:{pastureName:"现代牧业"}},list:{},isPastureList:!1,pasture:{getdataListParm:{name:"homepageRate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:""}},pastureName:"",listLoading:!0,total:0,list:[]}},chart2:{getdataListParm:{name:"homepageEqstatus",parammaps:{pastureName:"现代牧业"}},data:[],Chart:null},chart3:{getdataListParm:{name:"homepageUkdoneRatePasture",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{}},tableKey:0,listLoading:!0,total:0,list:[],isType:!1,isPasture:!0},chart4:{getdataListParm:{name:"homepageEqRunstatueListPasture",parammaps:{type:"牧场"}},data:[],Chart:null}},row3:{chart1:{getdataListParm:{name:"homepageFeeWX",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart2:{getdataListParm:{name:"homepageFeeWater",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart3:{getdataListParm:{name:"homepageFeeElec",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart4:{getdataListParm:{name:"homepageFeeDiesel",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}}},rowStyle:{maxHeight:"20px",height:"20px",background:"#003366",color:"#fff",fontSize:"8px"},cellStyle:{padding:"0px",background:"#003366",color:"#fff",fontSize:"8px"}}},created:function(){this.getRow2List1(),this.getRow2Chart1()},methods:{form_seeDetails:function(e){"row2Chart2"==e?(console.log("设备状态统计"),this.$router.push("/report/EquipmentOverview")):"row2Chart3"==e?(console.log("保养完成率"),this.$router.push("/report/CompletionRateMaintenance")):"row2Chart4"==e?(console.log("资产运转率"),this.$router.push("/report/EquipmentOperation")):"row3Chart1"==e?(console.log("维修费"),this.$router.push("/report/QueryRepair")):"row3Chart2"==e?(console.log("水费"),this.$router.push("/report/QueryWater")):"row3Chart3"==e?(console.log("电费"),this.$router.push("/report/QueryElec")):"row3Chart4"==e&&(console.log("燃动费"),this.$router.push("/report/QueryCombustion"))},getRow2List1:function(){var e=this;Object(r["e"])(this.row2.chart1.get_table_dataParm).then((function(t){null!==t.data.list?e.row2.chart1.list=t.data.list[0]:(e.row2.chart1.list.donerate="",e.row2.chart1.list.monthBudgets="",e.row2.chart1.list.sumPrice="")}))},getRow2Chart1:function(){var e=this;Object(r["h"])(this.row2.chart1.getdataListParm).then((function(t){console.log("row2图2",t),null!==t.data?e.row2.chart1.data=t.data:e.row2.chart1.data=[],e.getRow2Chart2(),e.roadRow2Chart1(e.row2.chart1.data)}))},roadRow2Chart1:function(e){null!=this.row2.chart1.Chart&&this.row2.chart1.Chart.dispose(),this.row2.chart1.Chart=o.a.init(document.getElementById("row2Chart1"));var t="/datas/myMap.json",s=this;m.a.getJSON(t,(function(t){o.a.registerMap("china",t);var i=e.data1[0],r=e.data2;console.log("geoCoordMap",JSON.stringify(i)),console.log("data",JSON.stringify(r));var n=function(e){for(var t=[],a=0;a<e.length;a++){var s=i[e[a].name];s&&t.push({name:e[a].name,value:s.concat(e[a].value)})}return t};console.log("convertData",JSON.stringify(n));var l=n(r);console.log("convertData Data",JSON.stringify(l));var p="image://"+a("c1c5"),m={title:"",legend:{orient:"vertical",y:"bottom",x:"right",data:["pm2.5"],textStyle:{color:"#fff"}},visualMap:{show:!1,min:0,max:600,left:"left",top:"bottom",text:["高","低"],calculable:!0,seriesIndex:[1],inRange:{}},geo:{map:"china",show:!0,roam:!0,label:{normal:{show:!1},emphasis:{show:!1}},itemStyle:{normal:{areaColor:"#3a7fd5",borderColor:"#0a53e9",shadowColor:"#092f8f",shadowBlur:20},emphasis:{areaColor:"#0a2dae"}}},series:[{symbolSize:5,label:{normal:{formatter:"{b}",position:"bottom",lineHeight:30,show:!0},emphasis:{show:!0}},itemStyle:{normal:{color:"#fff"}},name:"light",type:"scatter",coordinateSystem:"geo",data:n(r)},{type:"map",map:"china",geoIndex:0,aspectScale:.75,showLegendSymbol:!1,label:{normal:{show:!1},emphasis:{show:!1,textStyle:{color:"#fff"}}},roam:!0,itemStyle:{normal:{areaColor:"#031525",borderColor:"#FFFFFF"},emphasis:{areaColor:"#2B91B7"}},animation:!1,data:r},{name:"Top 5",type:"scatter",coordinateSystem:"geo",symbol:p,symbolSize:[20,20],right:100,label:{normal:{show:!1,textStyle:{color:"#fff",fontSize:9},formatter:function(e){return e.data.value[2]}}},itemStyle:{normal:{color:"#D8BC37",marginRight:100}},data:n(r),showEffectOn:"render",rippleEffect:{brushType:"stroke"},hoverAnimation:!0,zlevel:1}]};s.row2.chart1.Chart.setOption(m),s.row2.chart1.Chart.on("click",(function(e,t){void 0!==e.value.length?(console.log(e),s.row2.chart2.getdataListParm.parammaps.pastureName=e.name,s.row2.chart3.getdataListParm.name="homepageUkdoneRateEqclass",s.row2.chart3.getdataListParm.parammaps.pastureName=e.name,s.row2.chart3.isType=!0,s.row2.chart3.isPasture=!1,s.row2.chart4.getdataListParm.name="homepageEqRunstatueListEqclass",s.row2.chart4.getdataListParm.parammaps.pastureName=e.name,s.row2.chart4.getdataListParm.parammaps.type="设备类别",s.row2.chart1.pasture.getdataListParm.parammaps.pastureName=e.name,s.row3.chart1.getdataListParm.parammaps.pastureName=e.name,s.row3.chart2.getdataListParm.parammaps.pastureName=e.name,s.row3.chart3.getdataListParm.parammaps.pastureName=e.name,s.row3.chart4.getdataListParm.parammaps.pastureName=e.name,s.row2.chart1.pasture.pastureName=e.name,s.getRow2PastureList(),s.getRow2Chart2()):(s.row2.chart2.getdataListParm.parammaps.pastureName="现代牧业",s.row2.chart3.isType=!1,s.row2.chart3.isPasture=!0,s.row2.chart3.getdataListParm.name="homepageUkdoneRatePasture",s.row2.chart3.getdataListParm.parammaps.pastureName="现代牧业",s.row2.chart4.getdataListParm.name="homepageEqRunstatueListPasture",s.row2.chart4.getdataListParm.parammaps.type="牧场",s.row2.chart4.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart1.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart2.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart3.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart4.getdataListParm.parammaps.pastureName="现代牧业",s.getRow2Chart1(),s.row2.chart1.isPastureList=!1)})),window.onresize=function(){s.row2.chart1.Chart.resize()}}))},getRow2PastureList:function(){var e=this;this.row2.chart1.pasture.listLoading=!0,Object(r["e"])(this.row2.chart1.pasture.getdataListParm).then((function(t){null!==t.data.list?(e.row2.chart1.pasture.list=t.data.list[0],console.log("牧场数据",e.row2.chart1.pasture.list),e.row2.chart1.isPastureList=!0):(e.row2.chart1.pasture.list.donerate="",e.row2.chart1.pasture.list.monthBudgets="",e.row2.chart1.pasture.list.sumPrice=""),setTimeout((function(){e.row2.chart1.pasture.listLoading=!1}),100)}))},getRow2Chart2:function(){var e=this;Object(r["h"])(this.row2.chart2.getdataListParm).then((function(t){console.log("row2图2",t),null!==t.data?e.row2.chart2.data=t.data:e.row2.chart2.data=[],e.getRow2Chart3(),e.roadRow2Chart2(e.row2.chart2.data)}))},roadRow2Chart2:function(e){null!=this.row2.chart2.Chart&&this.row2.chart2.Chart.dispose(),this.row2.chart2.Chart=o.a.init(document.getElementById("row2Chart2"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},color:["#769cfc"],grid:{left:"3%",right:"13%",top:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"状态",data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"台数",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{type:"bar",barWidth:30,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}}]};this.row2.chart2.Chart.setOption(t),window.onresize=function(){this.row2.chart2.Chart.resize()}},getRow2Chart3:function(){var e=this;this.row2.chart3.listLoading=!0,Object(r["e"])(this.row2.chart3.getdataListParm).then((function(t){null!==t.data.list?e.row2.chart3.list=t.data.list:e.row2.chart3.list=[],e.getRow2Chart4(),setTimeout((function(){e.row2.chart3.listLoading=!1}),100)}))},getRow2Chart4:function(){var e=this;Object(r["h"])(this.row2.chart4.getdataListParm).then((function(t){console.log("row2图4",t),null!==t.data?e.row2.chart4.data=t.data:e.row2.chart4.data=[],e.getRow3Chart1(),e.roadRow2Chart4(e.row2.chart4.data)}))},roadRow2Chart4:function(e){null!=this.row2.chart4.Chart&&this.row2.chart4.Chart.dispose(),this.row2.chart4.Chart=o.a.init(document.getElementById("row2Chart4"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},color:["#769cfc"],grid:{left:"3%",right:"8%",top:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:e.data3[0],axisLabel:{interval:0,rotate:40},data:e.data1,axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"%",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{type:"bar",data:e.data2,emphasis:{label:{show:!0,position:"inside"}}}]};this.row2.chart4.Chart.setOption(t),window.onresize=function(){this.row2.chart4.Chart.resize()}},getRow3Chart1:function(){var e=this;Object(r["h"])(this.row3.chart1.getdataListParm).then((function(t){console.log("row3图1",t),null!==t.data?(e.row3.chart1.data.data1=t.data.data1,e.row3.chart1.data.data2=t.data.data2,e.row3.chart1.data.data3=t.data.data3,e.row3.chart1.data.data4=t.data.data4,e.row3.chart1.data.data5=t.data.data5,e.row3.chart1.list.data1=t.data.data6[0],e.row3.chart1.list.data2=t.data.data7[0],e.row3.chart1.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart1.data={},e.row3.chart1.list={}),e.getRow3Chart2(),e.roadRow3Chart1(e.row3.chart1.data)}))},roadRow3Chart1:function(e){null!=this.row3.chart1.Chart&&this.row3.chart1.Chart.dispose(),this.row3.chart1.Chart=o.a.init(document.getElementById("row3Chart1"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart1.Chart.setOption(t),window.onresize=function(){this.row3.chart1.Chart.resize()}},getRow3Chart2:function(){var e=this;Object(r["h"])(this.row3.chart2.getdataListParm).then((function(t){console.log("row3图2",t),null!==t.data?(e.row3.chart2.data.data1=t.data.data1,e.row3.chart2.data.data2=t.data.data2,e.row3.chart2.data.data3=t.data.data3,e.row3.chart2.data.data4=t.data.data4,e.row3.chart2.data.data5=t.data.data5,e.row3.chart2.list.data1=t.data.data6[0],e.row3.chart2.list.data2=t.data.data7[0],e.row3.chart2.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart2.data={},e.row3.chart2.list={}),e.getRow3Chart3(),e.roadRow3Chart2(e.row3.chart2.data)}))},roadRow3Chart2:function(e){null!=this.row3.chart2.Chart&&this.row3.chart2.Chart.dispose(),this.row3.chart2.Chart=o.a.init(document.getElementById("row3Chart2"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart2.Chart.setOption(t),window.onresize=function(){this.row3.chart2.Chart.resize()}},getRow3Chart3:function(){var e=this;Object(r["h"])(this.row3.chart3.getdataListParm).then((function(t){console.log("row3图3",t),null!==t.data?(e.row3.chart3.data.data1=t.data.data1,e.row3.chart3.data.data2=t.data.data2,e.row3.chart3.data.data3=t.data.data3,e.row3.chart3.data.data4=t.data.data4,e.row3.chart3.data.data5=t.data.data5,e.row3.chart3.list.data1=t.data.data6[0],e.row3.chart3.list.data2=t.data.data7[0],e.row3.chart3.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart3.data={},e.row3.chart3.list={}),e.getRow3Chart4(),e.roadRow3Chart3(e.row3.chart3.data)}))},roadRow3Chart3:function(e){null!=this.row3.chart3.Chart&&this.row3.chart3.Chart.dispose(),this.row3.chart3.Chart=o.a.init(document.getElementById("row3Chart3"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart3.Chart.setOption(t),window.onresize=function(){this.row3.chart3.Chart.resize()}},getRow3Chart4:function(){var e=this;Object(r["h"])(this.row3.chart4.getdataListParm).then((function(t){console.log("row3图4",t),null!==t.data?(e.row3.chart4.data.data1=t.data.data1,e.row3.chart4.data.data2=t.data.data2,e.row3.chart4.data.data3=t.data.data3,e.row3.chart4.data.data4=t.data.data4,e.row3.chart4.data.data5=t.data.data5,e.row3.chart4.list.data1=t.data.data6[0],e.row3.chart4.list.data2=t.data.data7[0],e.row3.chart4.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart4.data={},e.row3.chart4.list={}),e.roadRow3Chart4(e.row3.chart4.data)}))},roadRow3Chart4:function(e){null!=this.row3.chart4.Chart&&this.row3.chart4.Chart.dispose(),this.row3.chart4.Chart=o.a.init(document.getElementById("row3Chart4"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart4.Chart.setOption(t),window.onresize=function(){this.row3.chart4.Chart.resize()}}}},d=c,u=(a("8e0b"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"0b9a2990",null);t["default"]=h.exports},5856:function(e,t,a){},"58cc":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"BXinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报修开始时间","end-placeholder":"报修结束时间"},model:{value:e.table.getdataListParm.parammaps.BXinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"BXinputDatetime",t)},expression:"table.getdataListParm.parammaps.BXinputDatetime"}}),e._v(" "),a("el-date-picker",{ref:"JDinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"接单开始时间","end-placeholder":"接单结束时间"},model:{value:e.table.getdataListParm.parammaps.JDinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"JDinputDatetime",t)},expression:"table.getdataListParm.parammaps.JDinputDatetime"}}),e._v(" "),a("el-date-picker",{ref:"useSHinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"维修开始时间","end-placeholder":"维修结束时间"},model:{value:e.table.getdataListParm.parammaps.useSHinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"useSHinputDatetime",t)},expression:"table.getdataListParm.parammaps.useSHinputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"单号","min-width":"90px",align:"center",prop:"repairCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"90px",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"90px",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修日期","min-width":"70px",align:"center",prop:"BXTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"接单间隔","min-width":"90px",sortable:"",align:"center",prop:"BxAndJd"}}),e._v(" "),a("el-table-column",{attrs:{label:"接单日期","min-width":"90px",sortable:"",align:"center",prop:"JDTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修间隔","min-width":"70px",sortable:"",align:"center",prop:"JdAndWx"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修日期","min-width":"90px",sortable:"",align:"center",prop:"WXTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"总维修时长","min-width":"90px",sortable:"",align:"center",prop:"WxAndJS"}}),e._v(" "),a("el-table-column",{attrs:{label:"完成维修日期","min-width":"70px",sortable:"",align:"center",prop:"JSTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"确认间隔","min-width":"70px",sortable:"",align:"center",prop:"JSAnduseSH"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用人确认日期","min-width":"70px",sortable:"",align:"center",prop:"useSHTime"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("a78e"),m=a.n(p),c={name:"MaintenanceCycle",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAlleqWX",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{BXinputDatetime:"",SGTimeStart:"",SGTimeEnd:"",JDinputDatetime:"",JDTimeStart:"",JDTimeEnd:"",useSHinputDatetime:"",useSHTimeStart:"",useSHTimeEnd:"",pastureName:m.a.get("pasturename")}}},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}]}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list)}))},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(l["e"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!==t.data.list[a].BxAndJd&&e.$set(t.data.list[a],"BxAndJd",parseFloat(t.data.list[a].BxAndJd)),void 0!==t.data.list[a].JdAndWx&&e.$set(t.data.list[a],"JdAndWx",parseFloat(t.data.list[a].JdAndWx)),void 0!==t.data.list[a].WxAndJS&&e.$set(t.data.list[a],"WxAndJS",parseFloat(t.data.list[a].WxAndJS)),void 0!==t.data.list[a].JSAnduseSH&&e.$set(t.data.list[a],"JSAnduseSH",parseFloat(t.data.list[a].JSAnduseSH));e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[],e.table.total=0;setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.BXinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.BXinputDatetime&&null!==this.table.getdataListParm.parammaps.BXinputDatetime?0!==this.table.getdataListParm.parammaps.BXinputDatetime.length&&(this.table.getdataListParm.parammaps.BXTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.BXinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.BXTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.BXinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.BXinputDatetime=[],this.table.getdataListParm.parammaps.BXTimeStart="",this.table.getdataListParm.parammaps.BXTimeEnd=""),this.table.getdataListParm.parammaps.JDinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.JDinputDatetime&&null!==this.table.getdataListParm.parammaps.JDinputDatetime?0!==this.table.getdataListParm.parammaps.JDinputDatetime.length&&(this.table.getdataListParm.parammaps.JDTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.JDinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.JDTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.JDinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.JDinputDatetime=[],this.table.getdataListParm.parammaps.JDTimeStart="",this.table.getdataListParm.parammaps.JDTimeEnd=""),this.table.getdataListParm.parammaps.useSHinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.useSHinputDatetime&&null!==this.table.getdataListParm.parammaps.useSHinputDatetime?0!==this.table.getdataListParm.parammaps.useSHinputDatetime.length&&(this.table.getdataListParm.parammaps.useSHTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.useSHinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.useSHTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.useSHinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.useSHinputDatetime=[],this.table.getdataListParm.parammaps.useSHTimeStart="",this.table.getdataListParm.parammaps.useSHTimeEnd=""),this.get_table_data()},handleDownload:function(){var e=this;this.$alert("维修周期效率统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.form_search(),this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="getAlleqWX",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","单号","设备类别","设备名称","设备内部编号","报修日期","接单间隔","接单日期","维修间隔","维修日期","总维修时长","完成维修日期","确认间隔","使用人确认时间"],filterVal:["pastureName","repairCode","eqClassName","eqName","eqCode","BXTime","BxAndJd","JDTime","JdAndWx","WXTime","WxAndJS","JSTime","JSAnduseSH","useSHTime"],tableDatas:e.downLoadParm.list,sheetName:"Sheet"}];Object(o["d"])(a,"维修周期效率统计",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},5901:function(e,t,a){},"599a":function(e,t,a){},"59be":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"280px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"时间","end-placeholder":"时间","picker-options":e.pickerOptions},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月份",align:"center",prop:"date"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pasturename"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",align:"center",prop:"empname"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修次数",align:"center",prop:"count"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=(a("7f7f"),a("7514"),a("c5f6"),a("ac6a"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"RepairRecord",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],selectData:"",pickerMinDate:"",pickerRange:5184e6,pickerOptions:{onPick:function(t){t.maxDate;var a=t.minDate;a&&e.pickerMinDate?e.pickerMinDate=null:a&&(e.pickerMinDate=a.getTime())},disabledDate:function(t){return!!e.pickerMinDate&&(t.getTime()>e.pickerMinDate+e.pickerRange||t.getTime()<e.pickerMinDate-e.pickerRange)}},total:0,listLoading:!0,getdataListParm:{name:"getRecordsOfRepairman",page:1,offset:1,pagecount:10,returntype:"Map",inputDatetime:"",parammaps:{pastureId:c.a.get("pastureid"),pastureName:c.a.get("pasturename"),departmentName:"",eqClassId:"",startTime:"",stopTime:"",departmentId:"",inputDatetime:[Object(l["e"])((new Date).getTime()-2592e6,"{y}-{m}-{d}"),Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")]}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},statueReason:!1,downLoadParm:{},downLoadList:[],pageNum:0,pageSize:0,isPercentage:!1,percentage:1,isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{getSummaries1:function(e){var t=e.columns,a=e.data,s=[];return t.forEach((function(e,t){if(0!==t){var i=a.map((function(t){return Number(t[e.property])}));console.log(e.property),console.log(i),i.every((function(e){return isNaN(e)}))?s[t]="-":s[t]=i.reduce((function(e,t){var a=Number(t);return isNaN(a)?e:e+t}),0)}else s[t]="合计"})),s},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this;this.listLoading=!0,"现代牧业"==this.getdataListParm.parammaps.pastureName&&(this.getdataListParm.parammaps.pastureId=""),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){var e=this;this.listLoading=!0,this.getdataListParm.offset=1,this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e.getdataListParm.parammaps.pastureName})).id,this.get_table_data()},tableCellStyle:function(e){e.row,e.column,e.rowIndex,e.columnIndex},handleDownload:function(){var e=this;this.$alert("报修人记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getRecordsOfRepairman",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","月份","部门","姓名","报修次数"],filterVal:["pasturename","date","departmentName","empname","count"],tableDatas:e.downLoadList,sheetName:"报修人记录"}];Object(l["d"])(a,"报修人记录",!0,"xlsx")}))}}},u=d,h=(a("1608"),a("0935"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"631dd6b6",null);t["default"]=g.exports},"5a61":function(e,t,a){},"5a91":function(e,t,a){"use strict";a("7f80")},"5ab9":function(e,t,a){"use strict";a("8398")},"5af4":function(e,t,a){"use strict";a.r(t);var s=a("5095"),i=a("a2b5");for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("9c53");var n=a("2877"),l=Object(n["a"])(i["default"],s["a"],s["b"],!1,null,"60b16609",null);t["default"]=l.exports},"5bf6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{value:e.value.key,disabled:e.disabled},on:{change:e.setKey}})],1),e._v(" "),a("el-col",{staticClass:"devide",attrs:{span:4}},[a("hr")]),e._v(" "),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{value:e.value.value,disabled:e.disabled},on:{change:e.setValue}})],1)],1)},i=[],r={props:{value:{type:Object,default:function(){return{key:"",value:null}}},disabled:{type:Boolean,default:!1},r:{type:Object,default:function(){return{key:"key",value:"value"}}}},methods:{setValue:function(e){this.$set(this.value,"value",e),this.$emit("change",this.value)},setKey:function(e){this.$set(this.value,"key",e),this.send()},send:function(){if(null!==this.value){var e={};e[this.r.key]=this.value.key,e[this.r.value]=this.value.value,this.$emit("change",e)}}}},n=r,l=(a("68b8"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},"5c16":function(e,t,a){"use strict";a("f32a")},"5c3a":function(e,t,a){"use strict";a("1ed9")},"5c67":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-字典管理",use:"icon-字典管理-usage",viewBox:"0 0 1026 1024",content:'<symbol class="icon" viewBox="0 0 1026 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-字典管理"><defs><style type="text/css"></style></defs><path d="M932.717227 140.12416c-51.770027-16.320853-108.663467-23.318187-163.229014-23.318187-90.938027 0-188.87168 18.653867-256.498346 69.952854-67.61984-51.300693-165.5552-69.952853-256.493227-69.952854-90.94144 0-188.8768 18.653867-256.49664 69.952854v683.2128c0 11.654827 11.661653 23.318187 23.31648 23.318186 4.66432 0 6.99904-2.333013 11.66336-2.333013 62.95552-30.313813 153.89184-51.298987 221.5168-51.298987 90.938027 0 188.873387 18.65216 256.493227 69.951147 62.96064-39.63904 177.215147-69.951147 256.498346-69.951147 76.950187 0 156.23168 13.99296 221.518507 48.965974 4.66432 2.331307 6.997333 2.331307 11.661653 2.331306 11.656533 0 23.318187-11.661653 23.318187-23.31648V186.760533c-27.982507-20.98688-58.29632-34.97472-93.269333-46.636373z m0 629.582507c-51.300693-16.320853-107.265707-23.31648-163.229014-23.31648-79.281493 0-193.536 30.313813-256.498346 69.951146V280.029867c62.96064-39.63904 177.215147-69.952853 256.498346-69.952854 55.963307 0 111.92832 6.997333 163.229014 23.31648V769.706667z m0 0" p-id="22182" /></symbol>'});n.a.add(l);t["default"]=l},"5c78":function(e,t,a){"use strict";a("503d")},"5d38":function(e,t,a){},"5d381":function(e,t,a){},"5dc5":function(e,t,a){"use strict";a("8468")},"5e0c":function(e,t,a){"use strict";a("4fff")},"5e18":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-用电管理",use:"icon-用电管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-用电管理"><defs><style type="text/css"></style></defs><path d="M193.269509 923.655541c-9.000594 0-17.14978-4.378667-20.798669-11.189928-3.52726-6.81126-1.946074-14.717187 4.257037-20.068891l313.074712-273.301818-308.087896-147.658391c-7.05452-3.40563-11.311557-9.487112-11.189928-16.176743 0.12163-6.689631 4.500297-12.771113 11.554817-16.055114L819.662193 145.469058c9.730372-4.500297 21.893337-2.432593 28.826226 4.743556 6.93289 7.176149 6.446371 17.39304-1.216296 24.08267L533.954151 451.124362l308.209526 147.658391c7.05452 3.40563 11.311557 9.608742 11.189928 16.176743-0.12163 6.689631-4.500297 12.771113-11.676446 16.055114l-637.460981 290.329968c-3.284 1.581185-7.05452 2.310963-10.946669 2.310963z m45.489489-467.787623l298.479154 143.036465c5.959853 2.797482 9.973631 7.784297 10.946668 13.379261 0.973037 5.594964-1.216296 11.189928-5.959853 15.325336l-233.285663 203.608029L784.876114 614.472978l-298.235895-142.914836c-5.959853-2.797482-9.973631-7.784297-10.946669-13.257631-0.973037-5.594964 1.094667-11.189928 5.838223-15.325336L715.790474 235.839886 238.758998 455.867918z" fill="#A5A5A5" p-id="6414" /></symbol>'});n.a.add(l);t["default"]=l},"5e61":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.getdataListParm.parammaps,"stuteSH",t)},expression:"getdataListParm.parammaps.stuteSH"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"申购部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购人"},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSubscribeAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isSubscribeExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"filter-button"}),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期",sortable:"",prop:"inputTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSubscribeSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),4==s.statue||6==s.statue||8==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isSubscribeExamineKG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]),e._v(" "),e.isSubscribeExamineCG&&5==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核4")]),e._v(" "),!e.isSubscribeDelete||4!=s.statue&&6!=s.statue&&8!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.createTemp.orderNumber,callback:function(t){e.$set(e.createTemp,"orderNumber",t)},expression:"createTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购部门",disabled:"update"===e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购人",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),"create"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"线上采购",clearable:""},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.onlineSubscriptionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.providerName,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e(),e._v(" "),"update"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[""==e.createTemp.providerId?a("span",[e._v(e._s(t.row.price))]):a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"price"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.purpose,callback:function(a){e.$set(t.row,"purpose",a)},expression:"scope.row.purpose"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.seeTemp.orderNumber,callback:function(t){e.$set(e.seeTemp,"orderNumber",t)},expression:"seeTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:""},model:{value:e.seeTemp.pastureId,callback:function(t){e.$set(e.seeTemp,"pastureId",t)},expression:"seeTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.seeTemp.createTime,callback:function(t){e.$set(e.seeTemp,"createTime",t)},expression:"seeTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",sortable:"",prop:"storageAmount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",sortable:"",prop:"price",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量",sortable:"",prop:"amount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isSubscribeExamineKG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]),e._v(" "),e.isSubscribeExamineCG&&5==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核4")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine22"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData22()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Subscribe",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isSubscribeAdd:[],isSubscribeExamineSBZG:[],isSubscribeTemplate:[],isSubscribeImport:[],isSubscribeExport:[],isSubscribeSee:[],isSubscribeDelete:[],isSubscribeExamineKG:[],isSubscribeExamineCG:[],isSubscribeExamineZG:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],onlineSubscriptionList:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getflexProviderList",offset:0,pagecount:0,parammaps:{}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine3:"审核4"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getpartpurchaseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),empId:c.a.get("employeid"),orderNumber:"",stuteSH:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),providerId:""},requestSparePart:{name:"getPartsListSG",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"SG"}},getParmCreateAmount:{name:"getPartsListSGv2",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isPercentage:!1,percentage:1,pending:{total:0,getdataListParm:{name:"getpartpurchaseWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")}}}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:subscribe:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSubscribeAdd=t;var a="customs:subscribe:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSubscribeTemplate=s;var i="customs:subscribe:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSubscribeImport=n;var l="customs:subscribe:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isSubscribeExport=o;var p="customs:subscribe:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isSubscribeSee=m;var c="customs:subscribe:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isSubscribeDelete=d;var u="customs:subscribe:examineKG",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isSubscribeExamineKG=h;var g="customs:subscribe:examineSBZG",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isSubscribeExamineSBZG=f;var b="customs:subscribe:examineZG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isSubscribeExamineZG=v;var y="customs:subscribe:examineCG",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isSubscribeExamineCG=_},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.orderNumber=this.getdataListParm.parammaps.orderNumber,this.pending.getdataListParm.parammaps.stuteSH=this.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getpartpurchaseList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),orderNumber:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getpartpurchaseWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getpartpurchaseWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue?"未通过":5==e.statue?"审核中":6==e.statue?"未通过":7==e.statue?"已通过":8==e.statue?"未通过":9==e.statue?"审核中":10==e.statue?"未通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.employeId=parseInt(c.a.get("employeid")),this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.orderNumber="",this.createTemp.providerId="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeProvider:function(e){""!==e&&(this.createTemp.providerName=this.onlineSubscriptionList.find((function(t){return t.id==e})).providerName),this.listAdd=[]},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""==this.createTemp.providerId?this.requestSparePart.name="getPartsListSG":(this.requestSparePart.name="getPartsListSGFlex",this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps.providerName=this.createTemp.providerName),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){var t=this;console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.partId),console.log(this.listAdd),""==this.createTemp.providerId?(this.listAdd.length>0&&this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["e"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0]),e=a.data.list[0],null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$set(e,"amount",""),t.$set(e,"purpose",""),t.listAdd.unshift(e),t.$forceUpdate()}))}))),this.$forceUpdate()):(this.listAdd.length>0?this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e),this.$forceUpdate()),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.orderNumber||null==e.createTemp.orderNumber||void 0==e.createTemp.orderNumber?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartpurchase",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,orderNumber:this.createTemp.orderNumber,useType:this.createTemp.useType,createTime:this.createTemp.createTime,employeId:this.createTemp.employeId,providerId:this.createTemp.providerId}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:"@insertBigPartpurchase.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.listSee=[],this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;2===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核"},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):9===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核"},{title:"采购审核"}],this.active=3):10===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson,status:"error",reason:t},{title:"供应主管审核"},{title:"采购审核"}],this.active=3):5===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核"}],this.active=4):6===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"采购审核"}],this.active=4):7===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=5):8===this.seeTemp.statue&&(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=5)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(null!==t.data.list){console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath,"=======1"),e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath,e.listAdd[a].srcpath=e.listSee[a].srcpath,e.listAdd[a].picpath=e.listSee[a].picpath,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize):(e.listSee[a].srcpath="",e.listSee[a].picpath="",e.listAdd[a].srcpath="",e.listAdd[a].picpath=""),console.log("http://127.0.0.1:8082/"),console.log(e.listSee,"============")}t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListSee.parammaps.id=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartpurchaseCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.onlineSubscriptionList=t.data.getflexProviderList.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("备件申购正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadPartpurchaseList",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","申购单号","申购时间","备件编号","备件名称","规格型号","品牌","单位","申购数量","申购部门","申购人","备注"],filterVal:["pastureName","orderNumber","inputTime","partCode","partName","specification","brandName","unit","amount","departmentName","empname","purpose"],tableDatas:t.data.list,sheetName:"备件申购"}];Object(l["d"])(e,"备件申购",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartpurchase",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log("点击了库管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=3:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine22:function(e){console.log("点击了设备主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine22",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData22:function(){var e=this;console.log("点击了设备主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseEquipment",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=9:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=10),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了供应主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了供应主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=5:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=6),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:7,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:8,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))}}}),u=d,h=(a("c9ac"),a("dfc4"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"d8b3a85e",null);t["default"]=g.exports},"5e74":function(e,t,a){},"5ea3":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备内部编号"},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentType,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.equipmentStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"month",staticStyle:{height:"50px"}},[e.isMaintenancePlanCopy?a("el-button",{attrs:{type:"primary",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e._v(" "),e.isMaintenancePlanClear?a("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.handleDelate}},[e._v("清空")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isMaintenancePlanUpload?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-date-picker",{staticStyle:{float:"right"},attrs:{type:"month",placeholder:"选择日期",format:"yyyy-MM","value-format":"yyyy-MM",clearable:!1},on:{blur:e.blurMonth},model:{value:e.getdataListParm.month,callback:function(t){e.$set(e.getdataListParm,"month",t)},expression:"getdataListParm.month"}})],1),e._v(" "),a("el-table",{attrs:{slot:"reference",border:"",data:e.list,"header-align":"center","row-style":e.rowStyle,"cell-style":e.tableCellClassName},on:{"cell-click":e.handleCellClick},slot:"reference"},[e._l(e.tablelist,(function(e,t){return[a("el-table-column",{key:t,attrs:{"show-overflow-tooltip":"",prop:e.column_name,label:e.label,width:e.width}})]}))],2),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养名称:",prop:"upkeepTemplateId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},on:{change:e.changeUpkeep},model:{value:e.createTemp.upkeepTemplateId,callback:function(t){e.$set(e.createTemp,"upkeepTemplateId",t)},expression:"createTemp.upkeepTemplateId"}},e._l(e.upkeepTemps,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepEmpId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.createTemp.upkeepEmpId,callback:function(t){e.$set(e.createTemp,"upkeepEmpId",t)},expression:"createTemp.upkeepEmpId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"45%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatusBtn],visible:e.dialogFormVisibleBtn,"close-on-click-modal":!1,width:"450px;"},on:{"update:visible":function(t){e.dialogFormVisibleBtn=t}}},[a("div",{staticClass:"content-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleRevisionPlan}},[e._v("修改计划")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger"},on:{click:e.handleDeletionPlan}},[e._v("删除计划")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"warning"},on:{click:e.handleAdvanceMaintenance}},[e._v("提前保养")])],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"90%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"app-copy"},[a("el-form",{ref:"copyTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.copyTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:12,label:"月份:"}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"月份",multiple:""},model:{value:e.month,callback:function(t){e.month=t},expression:"month"}},e._l(e.months,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("3b2b"),a("28a5"),a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("5c96"),m=a("3de8"),c=a("a78e"),d=a.n(c),u=a("5f87"),h={name:"MaintenancePlan",components:{Pagination:l["a"],TreeSelect:m["a"]},directives:{waves:n["a"]},data:function(){return{equipmentStatusList:[{id:1,name:"正常设备"},{id:2,name:"非正常设备"},{id:"",name:"全部"}],visible:!1,findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},disabled:!1,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:"30px",height:"25px"},total:0,tableKey:0,listLoading:!0,list:[],listTest:{},updateValue:{},tablelist:[],getdataListParm:{name:"geteqList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),eqCode:"",eqName:"",typeCode:"",partName:"",statue:1},month:Object(o["e"])(new Date,"{y}-{m}")},getdataListParmSH:{name:"geteqList",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),eqCode:"",eqName:"",typeCode:"",partName:"",statue:1},month:Object(o["e"])(new Date,"{y}-{m}")},dialogStatus:"",dialogFormVisible:!1,dialogStatusBtn:"",dialogFormVisibleBtn:!1,isokDisable:!1,rules:{upkeepTemplateId:[{required:!0,message:"必填",trigger:"blur"}],upkeepEmpId:[{required:!0,message:"必填",trigger:"blur"}]},textMap:{create:"添加保养计划",update:"修改保养计划",copy:"复制"},listAdd:[],createTemp:{upkeepTemplateId:"",upkeepEmpId:""},postDataPramas:{},requestParam:{},getParmUpemplateByeq:{name:"getUpemplateByeq",parammaps:{}},getParmUpdatePlan:{name:"getseviceplanbyid",parammaps:{}},upkeepTemps:[],findAllEmploye:[],dialogFormVisibleCopy:!1,months:[],copyTemp:{},month:[],downLoadParm:{},downLoadList:[],buttons:[],isMaintenancePlanCopy:[],isMaintenancePlanUpload:[],isMaintenancePlanClear:[],isMaintenancePlanAdd:[],isMaintenancePlanUpdate:[]}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){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:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){void 0!==this.$route.query.myPath&&"CompletionRateMaintenance"==this.$route.query.myPath?(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.eqCode?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.$forceUpdate()):(this.getdataListParm.parammaps.pastureName=d.a.get("pasturename"),this.getdataListParm.parammaps.eqCode=""),this.get_table_data()):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.eqCode?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode):(this.getdataListParm.parammaps.pastureName=d.a.get("pasturename"),this.getdataListParm.parammaps.eqCode=""),this.get_table_data()),this.getTypeList(),this.get_select_list(),this.getMonths();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:{get_auto_buttons:function(){var e="maintenance:maintenancePlan:copy",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isMaintenancePlanCopy=t;var a="maintenance:maintenancePlan:upload",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isMaintenancePlanUpload=s;var i="maintenance:maintenancePlan:clear",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isMaintenancePlanClear=n;var l="maintenance:maintenancePlan:add",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isMaintenancePlanAdd=o;var p="maintenance:maintenancePlan:update",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isMaintenancePlanUpdate=m},popoverHide:function(e,t){console.log("选中值",e,t),null==t?(this.dataform.eqClassId=e,this.dataform.typeCode=""):(this.dataform.eqClassId=e,this.dataform.typeCode=t.typeCode)},getTypeList:function(){var e=this;Object(r["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(r["E"])(t.data.list,"id","pid","children"))}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this,t=this.$createElement;this.listLoading=!0,Object(r["i"])(this.getdataListParm).then((function(a){console.log("table数据",a.data.list),e.list=a.data.list,e.pageNum=a.data.pageNum,e.pageSize=a.data.pageSize,a.data.total&&(e.total=a.data.total);for(var s=e.getdataListParm.month.split("-"),i=s[0],r=s[1],n=new Date(i,r,0),l=[{label:"序号",column_name:"i"},{label:"牧场",column_name:"pastureName"},{label:"部门",column_name:"deptName"},{label:"设备名称",column_name:"eqName"},{label:"设备内部编号",column_name:"eqCode"},{label:"品牌",column_name:"brand"}],o=1;o<=n.getDate();o++){o=JSON.stringify(o);var p={label:o,column_name:"m"+o,width:"40"};l.push(p)}var m={label:"操作",column_name:"operation",width:"100"};l.push(m),e.tablelist=l;for(var c=0;c<e.list.length;c++)for(var d in e.list[c].i=c+1,!1!==e.isMaintenancePlanClear&&(e.list[c].operation=t("el-button",{attrs:{type:"danger",size:"mini",id:"clear","class-name":"small-padding fixed-width",fixed:"right"},style:"width:60px;",ref:"clear"},["清空"])),e.list[c]){var u=/^(?![^a-zA-Z]+$)(?!\D+$)/;if(u.test(d)){var h=JSON.stringify(c);void 0!==e.list[c][d]&&(void 0==e.list[c][d].split("#")[0]?(e.listTest[d+h]=e.list[c][d],e.list[c][d]=""):(e.listTest[d+h]=e.list[c][d],e.list[c][d]=e.list[c][d].split("#")[0]))}}console.log("table数据",e.list),console.log("表头数据",e.tablelist),e.$forceUpdate(),setTimeout((function(){e.listLoading=!1}),100)}))},blurMonth:function(){this.listLoading=!0,null==this.dataform.eqClassId?this.getdataListParm.parammaps.typeCode="":this.getdataListParm.parammaps.typeCode=this.dataform.typeCode,this.get_table_data()},form_search:function(){this.listLoading=!0,null==this.dataform.eqClassId?this.getdataListParm.parammaps.typeCode="":this.getdataListParm.parammaps.typeCode=this.dataform.typeCode,this.getdataListParm.offset=1,this.get_table_data()},tableCellClassName:function(e){var t=e.row,a=e.column,s=e.rowIndex,i=e.columnIndex;t.index=s,a.index=i;var r=JSON.stringify(s);console.log(t,a,s,i);var n=this.listTest[this.tablelist[a.index].column_name+r];if(void 0!==n)if(void 0!==n.split("#")[2]){var l,o=n.split("#")[2],p=n.split("#")[4];if(1==s&&"m31"==this.tablelist[a.index].column_name&&(console.log("test",n),console.log("rowIndex",s,"colorTest",o),console.log("rowIndex",s,"colorTest2",p)),0!==parseFloat(p))l="background: #E6A23C;color:#fff;width:48px";else switch(o){case"0":l="background: #4169E1;color:#fff;width:48px";break;case"1":l="background: #00FF00;color:#fff";break;case"2":l="background: red;color:#fff";break;default:l="background: #4169E1;color:#fff"}if(i>=6&&t[this.tablelist[a.index].column_name]==n.split("#")[0])return l}else{var m="background: #4169E1;color:#fff";if(i>=6&&t[this.tablelist[a.index].column_name]==n.split("#")[0])return m}},resetCreateTemp:function(){this.createTemp.upkeepTemplateId="",this.listAdd=[]},handleCellClick:function(e,t,a,s){var i,n=this;if(i=this.tablelist[t.index].label<10?"0"+this.tablelist[t.index].label:this.tablelist[t.index].label,this.getdataListParm.month+"-"+i>Object(o["e"])(new Date,"{y}-{m}-{d}")){if(this.getParmUpemplateByeq.parammaps.assetCode=e.assetCode,this.getUpemplateByeq(),t.index>5)if(console.log("--表头",this.tablelist[t.index]),console.log("row[this.tablelist[column.index].column_name]",e[this.tablelist[t.index].column_name]),t.index>=6&&void 0!==e[this.tablelist[t.index].column_name])if(console.log(e[this.tablelist[t.index].column_name].elm),void 0==e[this.tablelist[t.index].column_name].elm){var l=JSON.stringify(e.index);this.updateValue=this.listTest[this.tablelist[t.index].column_name+l],console.log("要分割值",this.updateValue),console.log("--年月",this.getdataListParm.month),console.log(this.updateValue.split("#")[4]),0==this.updateValue.split("#")[4]&&(console.log(this.isMaintenancePlanAdd,this.isMaintenancePlanUpdate),1==this.isMaintenancePlanUpdate&&(this.dialogFormVisibleBtn=!0)),this.createTemp.pastureId=e.pastureId,this.createTemp.deptId=e.deptId,this.createTemp.eqName=e.eqName,this.createTemp.eqCode=e.eqCode,this.createTemp.eqId=e.id,this.createTemp.eqClassId=e.eqClassId,this.createTemp.bigupkeeptemplateId=e.upkeepTemplateId,this.createTemp.month=this.getdataListParm.month,this.createTemp.upkeepType=e.upkeepType,this.createTemp.upkeepCycel=e.upkeepCycel,this.createTemp.upkeepName=e.upkeepName,this.createTemp.id=this.updateValue.split("#")[1],this.createTemp.upkeepEmpId=e.upkeepEmpId,this.createTemp.day=this.tablelist[t.index].label,console.log("---------------------",e)}else p["MessageBox"].confirm("是否清空本设备本月保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){n.requestParam.name="ClearoneSevicplan",n.requestParam.parammaps={},n.requestParam.parammaps.id=e.id,n.requestParam.parammaps.monthIN=n.getdataListParm.month,Object(r["k"])(n.requestParam).then((function(){n.get_table_data(),n.dialogFormVisible=!1,n.$notify({title:"成功",message:"清空成功",type:"success",duration:2e3})}))})).catch((function(){n.$message({type:"info",message:"已取消清空"})}));else console.log("--年月",this.getdataListParm.month),console.log("--日",this.tablelist[t.index].label),this.resetCreateTemp(),this.createTemp.pastureId=e.pastureId,this.createTemp.deptId=e.deptId,this.createTemp.eqName=e.eqName,this.createTemp.eqCode=e.eqCode,this.createTemp.eqId=e.id,this.createTemp.eqClassId=e.eqClassId,this.createTemp.month=this.getdataListParm.month,this.createTemp.day=this.tablelist[t.index].label,this.dialogStatus="create",console.log(this.isMaintenancePlanAdd,this.isMaintenancePlanUpdate),1==this.isMaintenancePlanAdd&&(this.dialogFormVisible=!0)}else{console.log("点击后期跳转",e,t,a,s);var m="m"+t.label;if(console.log(m,"str"),console.log(e.str,"row.str"),console.log(e["m"+t.label],"===="),void 0!==e["m"+t.label]&&""!==e["m"+t.label]){var c=this.getdataListParm.month+"-"+i;"现代牧业"==d.a.get("pasturename")||e.pastureName==d.a.get("pasturename")?this.$router.push({path:"/maintenance/maintain",query:{myPath:"MaintenancePlan",eqCode:e.eqCode,time:c}}):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})}}},getUpemplateByeq:function(){var e=this;Object(r["e"])(this.getParmUpemplateByeq).then((function(t){if(null!==t.data.list){e.upkeepTemps=t.data.list;for(var a=0;a<e.upkeepTemps.length;a++)e.upkeepTemps[a].name=e.upkeepTemps[a].upkeepName+"|"+e.upkeepTemps[a].upkeepType+"|"+e.upkeepTemps[a].upkeepLevel}}))},changeUpkeep:function(e){console.log("保养名称",e),console.log(this.upkeepTemps.find((function(t){return t.id===e}))),this.createTemp.upkeepTemplateId=e,this.createTemp.upkeepType=this.upkeepTemps.find((function(t){return t.id===e})).upkeepType,this.createTemp.upkeepCycel=this.upkeepTemps.find((function(t){return t.id===e})).upkeepCycel,this.createTemp.upkeepName=this.upkeepTemps.find((function(t){return t.id===e})).upkeepName},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);for(var t=parseInt(this.createTemp.day);t<this.tablelist.length-5;t+=this.createTemp.upkeepCycel){var a={};a.pastureId=this.createTemp.pastureId,a.deptId=this.createTemp.deptId,a.eqName=this.createTemp.eqName,a.eqCode=this.createTemp.eqCode,a.eqId=this.createTemp.eqId,a.eqClassId=this.createTemp.eqClassId,a.upkeepPerson=this.createTemp.upkeepEmpId,a.bigupkeeptemplateId=this.createTemp.upkeepTemplateId;var s=t;a.plantime=s<10?this.createTemp.month+"-0"+s:this.createTemp.month+"-"+s,this.listAdd.push(a)}console.log("this.listAdd",this.listAdd),this.$refs["createTemp"].validate((function(t){e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertseviceplan",type:"e",parammaps:{pastureId:e.createTemp.pastureId,deptId:e.createTemp.deptId,eqName:e.createTemp.eqName,eqCode:e.createTemp.eqCode,eqId:e.createTemp.eqId,eqClassId:e.createTemp.eqClassId,upkeepTemplateId:e.createTemp.upkeepTemplateId,upkeepType:e.createTemp.upkeepType,upkeepCycel:e.createTemp.upkeepCycel,upkeepName:e.createTemp.upkeepName,month:e.createTemp.month,day:e.createTemp.day,upkeepEmpId:e.createTemp.upkeepEmpId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.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"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},handleRevisionPlan:function(){console.log("点击了修改计划",this.updateValue),console.log("年月",this.getdataListParm.month),this.dialogFormVisibleBtn=!1,this.dialogStatus="update",this.dialogFormVisible=!0,this.getUpdatePlan()},getUpdatePlan:function(){var e=this;this.getParmUpdatePlan.parammaps.id=this.updateValue.split("#")[1],Object(r["e"])(this.getParmUpdatePlan).then((function(t){null!==t.data.list&&(console.log(t.data.list[0]),e.createTemp.id=t.data.list[0].id,e.createTemp.upkeepCycel=t.data.list[0].upkeepCycel,e.createTemp.upkeepEmpId=t.data.list[0].upkeepEmpId,e.createTemp.upkeepName=t.data.list[0].upkeepName,e.createTemp.upkeepTemplateId=t.data.list[0].upkeepTemplateId,e.createTemp.upkeepType=t.data.list[0].upkeepType)}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("this.listAdd",this.listAdd),this.$refs["createTemp"].validate((function(t){e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateseviceplanId",type:"e",parammaps:{id:e.updateValue.split("#")[3]}},e.postDataPramas.data[1]={name:"insertseviceplan",type:"e",parammaps:{pastureId:e.createTemp.pastureId,deptId:e.createTemp.deptId,eqName:e.createTemp.eqName,eqCode:e.createTemp.eqCode,eqId:e.createTemp.eqId,eqClassId:e.createTemp.eqClassId,upkeepTemplateId:e.createTemp.upkeepTemplateId,upkeepType:e.createTemp.upkeepType,upkeepCycel:e.createTemp.upkeepCycel,upkeepName:e.createTemp.upkeepName,month:e.createTemp.month,day:e.createTemp.day,upkeepEmpId:e.createTemp.upkeepEmpId}},e.postDataPramas.data[2]={name:"updateBigUpkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3],bigupkeeptemplateId:e.createTemp.upkeepTemplateId,seviceplanId:"@insertseviceplan.LastInsertId",upkeepPerson:e.createTemp.upkeepEmpId}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},handleDeletionPlan:function(){var e=this;console.log("点击了删除计划"),this.dialogFormVisibleBtn=!1,p["MessageBox"].confirm("是否删除本天保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteBigUpkeep",e.requestParam.parammaps={},console.log("要分割值",e.updateValue),e.requestParam.parammaps.id=e.updateValue.split("#")[3],Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleAdvanceMaintenance:function(){var e=this;console.log("点击了提前保养",this.updateValue),p["MessageBox"].confirm("是否确认提前一天保养本设备?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"advanceBigupkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3]}},e.postDataPramas.data[1]={name:"updateadvanceupkeep",type:"e",parammaps:{id:e.updateValue.split("#")[3],advanceId:"@advanceBigupkeep.LastInsertId"}},e.postDataPramas.data[2]={name:"advanceBupUt",type:"e",parammaps:{bigupkeeptemplateId:e.updateValue.split("#")[1],id:"@advanceBigupkeep.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){if(console.log("提前保养发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("key 'pastureId'");a.test(t.data)?e.$notify({title:"",message:"前一天已有保养计划,不可重复添加",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:"参数错误",type:"warning",duration:2e3})}else e.dialogFormVisibleBtn=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}))},getMonths:function(){var e=new Date;e.setMonth(e.getMonth(),1);for(var t=0;t<12;t++){e.setMonth(e.getMonth()+1);var a=e.getMonth()+1;a=a<10?"0"+a:a;var s={};s.id=t,s.name=e.getFullYear()+"-"+a,this.months.push(s)}console.log(this.months,"---------------")},handleCopy:function(){this.dialogStatus="copy",this.dialogFormVisibleCopy=!0},createCopyData:function(){var e=this;if(console.log(this.month),0===this.month.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.month.length;a++){var s={};s["NewmonthIN"]=this.month[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},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"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))}},handleDelate:function(){var e=this;p["MessageBox"].confirm("是否清空本月保养计划?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="ClearSevicplan",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.eqName=e.getdataListParm.parammaps.eqName,e.requestParam.parammaps.eqCode=e.getdataListParm.parammaps.eqCode,e.requestParam.parammaps.typeCode=e.getdataListParm.parammaps.typeCode,e.requestParam.parammaps.departmentId=e.getdataListParm.parammaps.departmentId,e.requestParam.parammaps.monthIN=e.getdataListParm.month,Object(r["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"清空成功",type:"success",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消清空"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["月份","部门名称","编码","资产名称","牧场","保养人","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"],r=["月份","部门名称","编码","资产名称","牧场","保养人","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"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"保养计划",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},handleDownloadTemp:function(){var e=this;this.downLoadParm={},this.downLoadParm.name="getUpkeepeqlist",this.downLoadParm.month=this.getdataListParm.month,this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["e"])(this.downLoadParm).then((function(t){null!==t.data.list?e.downloadList=t.data.list:e.downloadList=[];for(var a=e.downLoadParm.month.split("-"),s=a[0],i=a[1],r=new Date(s,i,0),n=["月份","部门名称","编码","资产名称","牧场","保养人"],l=1;l<=r.getDate();l++){l=JSON.stringify(l);n.push(l)}console.log(n,"====");var p=[{tHeader:n,filterVal:["i","name","deptName","eqName","eqCode","brandname"],tableDatas:[],sheetName:"SheetJS"}];Object(o["d"])(p,"保养计划模板",!0,"xlsx")}))},handleDownload:function(){var e=this;this.$alert("保养计划正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.getdataListParmSH.month=this.getdataListParm.month,this.getdataListParmSH.parammaps=this.getdataListParm.parammaps,Object(r["i"])(this.getdataListParmSH).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log("ssssss",e.downLoadList);var a=e.getdataListParmSH.month.split("-"),s=a[0],i=a[1],r=(new Date(s,i,0),["月份","部门名称","编码","资产名称","牧场","保养人","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"]);e.downLoadList.forEach((function(e){e.m1="undefined"===typeof e.m1?"":e.m1.substr(0,1),e.m2="undefined"===typeof e.m2?"":e.m2.substr(0,1),e.m3="undefined"===typeof e.m3?"":e.m3.substr(0,1),e.m4="undefined"===typeof e.m4?"":e.m4.substr(0,1),e.m5="undefined"===typeof e.m5?"":e.m5.substr(0,1),e.m6="undefined"===typeof e.m6?"":e.m6.substr(0,1),e.m7="undefined"===typeof e.m7?"":e.m7.substr(0,1),e.m8="undefined"===typeof e.m8?"":e.m8.substr(0,1),e.m9="undefined"===typeof e.m9?"":e.m9.substr(0,1),e.m10="undefined"===typeof e.m10?"":e.m10.substr(0,1),e.m11="undefined"===typeof e.m11?"":e.m11.substr(0,1),e.m12="undefined"===typeof e.m12?"":e.m12.substr(0,1),e.m13="undefined"===typeof e.m13?"":e.m13.substr(0,1),e.m14="undefined"===typeof e.m14?"":e.m14.substr(0,1),e.m15="undefined"===typeof e.m15?"":e.m15.substr(0,1),e.m16="undefined"===typeof e.m16?"":e.m16.substr(0,1),e.m17="undefined"===typeof e.m17?"":e.m17.substr(0,1),e.m18="undefined"===typeof e.m18?"":e.m18.substr(0,1),e.m19="undefined"===typeof e.m19?"":e.m19.substr(0,1),e.m20="undefined"===typeof e.m20?"":e.m20.substr(0,1),e.m21="undefined"===typeof e.m21?"":e.m21.substr(0,1),e.m22="undefined"===typeof e.m22?"":e.m22.substr(0,1),e.m23="undefined"===typeof e.m23?"":e.m23.substr(0,1),e.m24="undefined"===typeof e.m24?"":e.m24.substr(0,1),e.m25="undefined"===typeof e.m25?"":e.m25.substr(0,1),e.m26="undefined"===typeof e.m26?"":e.m26.substr(0,1),e.m27="undefined"===typeof e.m27?"":e.m27.substr(0,1),e.m28="undefined"===typeof e.m28?"":e.m28.substr(0,1),e.m29="undefined"===typeof e.m29?"":e.m29.substr(0,1),e.m30="undefined"===typeof e.m30?"":e.m30.substr(0,1),e.m31="undefined"===typeof e.m31?"":e.m31.substr(0,1)}));var n=[{tHeader:r,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:e.downLoadList,sheetName:"SheetJS"}];Object(o["d"])(n,"保养计划",!0,"xlsx")}))}}},g=h,f=(a("e032"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},"5ee1":function(e,t,a){"use strict";a("ebe9")},"5f54":function(e,t,a){"use strict";a("7d90")},"5f63":function(e,t,a){"use strict";a("66e9")},"5f84":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("a7dc");a("817d");var o=6e3,p={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:[{name:"pageA",type:"bar",stack:"vistors",barWidth:"60%",data:[79,52,200,334,390,330,220],animationDuration:o},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:o},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:o}]})}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"5f87":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return o}));var s=a("a78e"),i=a.n(s),r="vue_admin_template_token";function n(){return i.a.get(r)}function l(e){return i.a.set(r,e)}function o(){return i.a.remove(r)}},6006:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-file1",use:"icon-file1-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file1"><defs><style type="text/css"></style></defs><path d="M922 910.5H102c-21.9 0-39.6-17.7-39.6-39.6V224.3c0-21.9 17.7-39.6 39.6-39.6h820c21.9 0 39.6 17.7 39.6 39.6v646.6c0 21.8-17.8 39.6-39.6 39.6z" fill="#FFA000" p-id="3081" /><path d="M512 354.9H62.4V153.1c0-21.9 17.7-39.6 39.6-39.6h307.7c17.5 0 32.9 11.4 37.9 28.2L512 354.9z" fill="#FFA000" p-id="3082" /><path d="M859.7 861.3H164.3c-21.9 0-39.6-17.7-39.6-39.6v-537c0-21.9 17.7-39.6 39.6-39.6h695.5c21.9 0 39.6 17.7 39.6 39.6v537c0 21.8-17.8 39.6-39.7 39.6z" fill="#FFFFFF" p-id="3083" /><path d="M922 910.5H102c-21.9 0-39.6-17.7-39.6-39.6V359.1c0-21.9 17.7-39.6 39.6-39.6h820c21.9 0 39.6 17.7 39.6 39.6v511.8c0 21.8-17.8 39.6-39.6 39.6z" fill="#FFCA28" p-id="3084" /><path d="M852.8 319.5L612.4 738.8l-209.8-279L147 471.3l97.5 130.1-97.5 4.4 228.2 304.6H922c21.9 0 39.6-17.7 39.6-39.6V463.3L852.8 319.5z" fill="#FFB806" p-id="3085" /><path d="M382.8 483.1H165.1c-10.9 0-19.8-8.9-19.8-19.8s8.9-19.8 19.8-19.8h217.7c10.9 0 19.8 8.9 19.8 19.8s-8.9 19.8-19.8 19.8zM382.8 617.6H165.1c-10.9 0-19.8-8.9-19.8-19.8s8.9-19.8 19.8-19.8h217.7c10.9 0 19.8 8.9 19.8 19.8 0 11-8.9 19.8-19.8 19.8z" fill="#FFF8E1" p-id="3086" /><path d="M837.4 762.9l-107-70.7c-3.3-2.2-7.6-2.2-10.9 0l-107 70.7c-6.6 4.4-15.4-0.4-15.4-8.3V318.1c0-10.9 8.5-19.8 18.9-19.8h217.8c10.4 0 18.9 8.9 18.9 19.8v436.5c0.1 7.9-8.7 12.7-15.3 8.3z" fill="#F44336" p-id="3087" /></symbol>'});n.a.add(l);t["default"]=l},"602c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{gutter:32}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.pastureName,callback:function(t){e.pastureName=t},expression:"pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{attrs:{clearable:!1,"picker-options":e.pickerOptions,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{gutter:32}},[a("h3",[e._v("设备指标(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipmentIndex.table.listLoading,expression:"equipmentIndex.table.listLoading"}],key:e.equipmentIndex.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipmentIndex.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentIndex(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("水费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.water.table.listLoading,expression:"water.table.listLoading"}],key:e.water.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.water.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterCost(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("电费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elec.table.listLoading,expression:"elec.table.listLoading"}],key:e.elec.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elec.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecCost(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("维修费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.repair.table.listLoading,expression:"repair.table.listLoading"}],key:e.repair.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.repair.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort4}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickRepairCost(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("燃动费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gas.table.listLoading,expression:"gas.table.listLoading"}],key:e.gas.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gas.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort5}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasCost(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("水量(吨)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterConsumption.table.listLoading,expression:"waterConsumption.table.listLoading"}],key:e.waterConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort6}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterConsumption(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("电量(度)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecConsumption.table.listLoading,expression:"elecConsumption.table.listLoading"}],key:e.elecConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort7}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecConsumption(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("柴油用量(L)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasConsumption.table.listLoading,expression:"gasConsumption.table.listLoading"}],key:e.gasConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasConsumption(s)}}},[e._v(e._s(s.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"80px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"80px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"80px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"80px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[a("div",{staticClass:"pasture"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialog.listLoading,expression:"dialog.listLoading"}],key:e.dialog.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.dialog.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort9}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.dialog.pageNum-1)*e.dialog.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月份","min-width":"110px",align:"center",sortable:"",prop:"wmonth"}}),e._v(" "),a("el-table-column",{attrs:{label:"预算","min-width":"110px",align:"center",sortable:"",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控","min-width":"110px",align:"center",sortable:"",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控","min-width":"110px",align:"center",sortable:"",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际","min-width":"110px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约","min-width":"110px",align:"center",sortable:"",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"月度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dialog.total>0,expression:"dialog.total>0"}],attrs:{total:e.dialog.total,page:e.dialog.getdataListParm.offset,limit:e.dialog.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.dialog.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.dialog.getdataListParm,"pagecount",t)},pagination:e.get_table_dataDialog}})],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("c5f6"),a("61f7"),a("2934")),n=a("6724"),l=a("a78e"),o=a.n(l),p=a("333d"),m=a("ed08"),c=a("bc3a"),d=a.n(c),u=a("5f87");a("0fd4");var h={name:"FarmEquipment",components:{Pagination:p["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()-864e5}},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}}],yearDate:new Date,month:"",pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),equipmentIndex:{table:{listLoading:!0,list:[],tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataSBMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},water:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataWMMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},elec:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataEMMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},repair:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataXMMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},gas:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataRMMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},waterConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataWSMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},elecConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataESMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},gasConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataRSMC",page:1,offset:1,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),pastureId:o.a.get("pastureid"),month:Object(m["e"])(new Date,"{y}-{m}-{d}")}}}},dialog:{dialogFormVisible:!1,total:0,getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{month:"",pastureName:"",pastureId:""}},tableKey:0,listLoading:!0,list:null},dialogStatus:"",textMap:{},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadAll:{},isPercentage:!1,percentage:1}},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;(new Date).getFullYear()==a.getFullYear()?this.month=Object(m["e"])(new Date,"{y}-{m}-{d}"):this.month=a.getFullYear()+1+"-01-01",this.equipmentIndex.table.getdataListParm.parammaps.month=this.month,this.water.table.getdataListParm.parammaps.month=this.month,this.elec.table.getdataListParm.parammaps.month=this.month,this.repair.table.getdataListParm.parammaps.month=this.month,this.gas.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.getlistEquipmentIndex()}}},created:function(){this.getlistEquipmentIndex(),this.get_select_list()},methods:{sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(m["f"])(e,this.equipmentIndex.table.list)},tableSort2:function(e){Object(m["f"])(e,this.water.table.list)},tableSort3:function(e){Object(m["f"])(e,this.elec.table.list)},tableSort4:function(e){Object(m["f"])(e,this.repair.table.list)},tableSort5:function(e){Object(m["f"])(e,this.gas.table.list)},tableSort6:function(e){Object(m["f"])(e,this.waterConsumption.table.list)},tableSort7:function(e){Object(m["f"])(e,this.elecConsumption.table.list)},tableSort8:function(e){Object(m["f"])(e,this.gasConsumption.table.list)},tableSort9:function(e){Object(m["f"])(e,this.dialog.list)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},changePastureName:function(e){this.pastureName=this.findAllPasture.find((function(t){return t.id==e})).name,this.pastureId=e,console.log(e,this.pastureName),this.equipmentIndex.table.getdataListParm.parammaps.pastureName=this.pastureName,this.equipmentIndex.table.getdataListParm.parammaps.pastureId=this.pastureId,this.water.table.getdataListParm.parammaps.pastureName=this.pastureName,this.water.table.getdataListParm.parammaps.pastureId=this.pastureId,this.elec.table.getdataListParm.parammaps.pastureName=this.pastureName,this.elec.table.getdataListParm.parammaps.pastureId=this.pastureId,this.repair.table.getdataListParm.parammaps.pastureName=this.pastureName,this.repair.table.getdataListParm.parammaps.pastureId=this.pastureId,this.gas.table.getdataListParm.parammaps.pastureName=this.pastureName,this.gas.table.getdataListParm.parammaps.pastureId=this.pastureId,this.waterConsumption.table.getdataListParm.parammaps.pastureName=this.pastureName,this.waterConsumption.table.getdataListParm.parammaps.pastureId=this.pastureId,this.elecConsumption.table.getdataListParm.parammaps.pastureName=this.pastureName,this.elecConsumption.table.getdataListParm.parammaps.pastureId=this.pastureId,this.gasConsumption.table.getdataListParm.parammaps.pastureName=this.pastureName,this.gasConsumption.table.getdataListParm.parammaps.pastureId=this.pastureId,this.getlistEquipmentIndex()},getlistEquipmentIndex:function(){var e=this;this.equipmentIndex.table.listLoading=!0,Object(r["e"])(this.equipmentIndex.table.getdataListParm).then((function(t){null!==t.data.list?e.equipmentIndex.table.list=t.data.list:e.equipmentIndex.table.list=[],console.log("设备指标table",e.equipmentIndex.table.list),setTimeout((function(){e.equipmentIndex.table.listLoading=!1,e.get_table_dataWater()}),100)}))},get_table_dataWater:function(){var e=this;this.water.table.listLoading=!0,Object(r["e"])(this.water.table.getdataListParm).then((function(t){null!==t.data.list?e.water.table.list=t.data.list:e.water.table.list=[],setTimeout((function(){e.water.table.listLoading=!1,e.get_table_dataElec()}),100)}))},get_table_dataElec:function(){var e=this;this.elec.table.listLoading=!0,Object(r["e"])(this.elec.table.getdataListParm).then((function(t){null!==t.data.list?e.elec.table.list=t.data.list:e.elec.table.list=[],setTimeout((function(){e.get_table_dataRepair(),e.elec.table.listLoading=!1}),100)}))},get_table_dataRepair:function(){var e=this;this.repair.table.listLoading=!0,Object(r["e"])(this.repair.table.getdataListParm).then((function(t){null!==t.data.list?e.repair.table.list=t.data.list:e.repair.table.list=[],setTimeout((function(){e.get_table_dataGas(),e.repair.table.listLoading=!1}),100)}))},get_table_dataGas:function(){var e=this;this.gas.table.listLoading=!0,Object(r["e"])(this.gas.table.getdataListParm).then((function(t){null!==t.data.list?e.gas.table.list=t.data.list:e.gas.table.list=[],setTimeout((function(){e.gas.table.listLoading=!1,e.get_table_dataWaterConsumption()}),100)}))},get_table_dataWaterConsumption:function(){var e=this;this.waterConsumption.table.listLoading=!0,Object(r["e"])(this.waterConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.waterConsumption.table.list=t.data.list:e.waterConsumption.table.list=[],setTimeout((function(){e.get_table_dataElecConsumption(),e.waterConsumption.table.listLoading=!1}),100)}))},get_table_dataElecConsumption:function(){var e=this;this.elecConsumption.table.listLoading=!0,Object(r["e"])(this.elecConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.elecConsumption.table.list=t.data.list:e.elecConsumption.table.list=[],setTimeout((function(){e.get_table_dataGasConsumption(),e.elecConsumption.table.listLoading=!1}),100)}))},get_table_dataGasConsumption:function(){var e=this;this.gasConsumption.table.listLoading=!0,Object(r["e"])(this.gasConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.gasConsumption.table.list=t.data.list:e.gasConsumption.table.list=[],setTimeout((function(){e.gasConsumption.table.listLoading=!1}),100)}))},tableCellStyle:function(e){e.row,e.column,e.rowIndex;var t=e.columnIndex;return 1===t?{textDecoration:"underline"}:{textDecoration:"none"}},get_table_dataDialog:function(){var e=this;this.dialog.listLoading=!0,Object(r["e"])(this.dialog.getdataListParm).then((function(t){null==t.data.list?(e.dialog.list=t.data.list,e.dialog.pageNum=0,e.dialog.pageSize=0,e.dialog.total=0):(e.dialog.list=t.data.list,e.dialog.pageNum=t.data.pageNum,e.dialog.pageSize=t.data.pageSize,e.dialog.total=t.data.total),setTimeout((function(){e.dialog.listLoading=!1}),100)}))},clickEquipmentIndex:function(e){this.textMap.equipmentIndex=e.deptName+this.equipmentIndex.table.getdataListParm.parammaps.month.substring(0,4)+"年设备指标",this.dialogStatus="equipmentIndex",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataSBMCM",this.dialog.getdataListParm.parammaps.month=this.equipmentIndex.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.equipmentIndex.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickWaterCost:function(e){this.textMap.water=e.deptName+this.water.table.getdataListParm.parammaps.month.substring(0,4)+"年水费",this.dialogStatus="water",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataWMMCM",this.dialog.getdataListParm.parammaps.month=this.water.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.water.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickElecCost:function(e){this.textMap.elec=e.deptName+this.elec.table.getdataListParm.parammaps.month.substring(0,4)+"年电费",this.dialogStatus="elec",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataEMMCM",this.dialog.getdataListParm.parammaps.month=this.elec.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.elec.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickRepairCost:function(e){this.textMap.repair=e.deptName+this.repair.table.getdataListParm.parammaps.month.substring(0,4)+"年维修费",this.dialogStatus="repair",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataXMMCM",this.dialog.getdataListParm.parammaps.month=this.elec.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.elec.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickGasCost:function(e){this.textMap.gas=e.deptName+this.gas.table.getdataListParm.parammaps.month.substring(0,4)+"年燃动费",this.dialogStatus="gas",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataRMMCM",this.dialog.getdataListParm.parammaps.month=this.gas.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.gas.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickWaterConsumption:function(e){this.textMap.waterConsumption=e.deptName+this.waterConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年水量",this.dialogStatus="waterConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataWSMCM",this.dialog.getdataListParm.parammaps.month=this.waterConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.waterConsumption.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickElecConsumption:function(e){this.textMap.elecConsumption=e.deptName+this.elecConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年电量",this.dialogStatus="elecConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataESMCM",this.dialog.getdataListParm.parammaps.month=this.elecConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.elecConsumption.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},clickGasConsumption:function(e){this.textMap.gasConsumption=e.deptName+this.gasConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年柴油用量",this.dialogStatus="gasConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataRSMCM",this.dialog.getdataListParm.parammaps.month=this.gasConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=this.gasConsumption.table.getdataListParm.parammaps.pastureId,this.dialog.getdataListParm.parammaps.departmentId=e.departmentId,this.get_table_dataDialog()},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="DownloadMailReportMC",(new Date).getFullYear()==Object(m["e"])(this.yearDate,"{y}")?(this.requestParam.date=Object(m["e"])(new Date,"{y}-{m}-{d}"),this.requestParam.mydate=Object(m["e"])(new Date,"{y}")):(this.requestParam.date=parseInt(Object(m["e"])(this.yearDate,"{y}"))+1+"-01-01",this.requestParam.mydate=Object(m["e"])(this.yearDate,"{y}")),this.requestParam.pastureName=this.pastureName,this.requestParam.pastureId=this.pastureId;var a=this.requestParam,s="http://127.0.0.1:8082/authdata/downloadmailreport";d()({method:"post",url:s,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var s=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(s),r=document.createElement("a");r.style.display="none",r.href=i;var n=a.pastureName+a.mydate+".xlsx";r.setAttribute("download",n),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i)}}))}}},g=h,f=(a("a921"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"5b83e568",null);t["default"]=b.exports},6041:function(e,t,a){"use strict";var s={inserted:function(e){for(var t=e.querySelectorAll("input"),a=0;a<t.length;a++)t[a].setAttribute("keyfocusindex",a),t[a].addEventListener("keyup",(function(e){if(13===e.keyCode){var a=e.srcElement.getAttribute("keyfocusto");if(console.log(e.srcElement),a){var s=parseInt(a);s<t.length&&t[s].focus()}else{var i=e.srcElement.getAttribute("keyfocusindex"),r=parseInt(i);r<t.length-1&&t[r+1].focus()}}}))}},i=function(e){e.directive("enterToNext",s)};window.Vue&&(window["enterToNext"]=s,Vue.use(i)),s.install=i;t["a"]=s},"609f":function(e,t,a){"use strict";a("fd98")},"60fd":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-旧品处理",use:"icon-旧品处理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-旧品处理"><defs><style type="text/css"></style></defs><path d="M437.344 531.73l20.916 20.766v38.611l27.075 28.96c10.663 10.662 27.02 10.662 37.656 0L638.375 504.23c10.664-10.663 10.431-26.678-0.246-37.342l-29.204-27.675h-38.612l-98.413-99.11v-38.611l-28.016-28.959a26.747 26.747 0 0 0-38.148 0l-115.63 115.07c-10.65 10.664-10.431 27.184 0.246 37.848l28.959 27.415h38.625l21.272 21.122-233.336 233.322a27.348 27.348 0 0 0-38.611 0l-9.64 9.653a27.334 27.334 0 0 0 0 38.639l57.918 57.917a27.307 27.307 0 0 0 38.611 0l9.667-9.653c10.65-10.663 10.65-27.948 0-38.611l233.527-233.527z m95.259-94.741l14.773 14.172-23.962 24.972-14.773-14.172 23.962-24.972z m-112.38-54.791l14.772 14.172-47.923 49.93-14.773-14.172 47.923-49.93zM183.46 737.348l-27.307-26.214 14.172-14.773 27.307 26.214-14.172 14.773z m616.12 70.52h-13.653V780.56a40.96 40.96 0 0 0-40.96-40.96H512.86a40.96 40.96 0 0 0-40.96 40.96v27.307h-13.653a40.96 40.96 0 0 0-40.96 40.96v68.266H840.54v-68.266c0-22.637-18.323-40.96-40.96-40.96z m-49.725 2.73h-68.772v-19.415h68.772v19.415zM732.16 659.593l-33.164-54.941-23.43 14.322 33.165 54.914z m54.04-4.124l-0.396-64.157-27.457 0.3 0.396 64.158z m120.9 3.823l-56.06 31.198 13.462 23.92 56.074-31.184z m-36.864 79.312l-0.642 27.43 64.144 1.843 0.642-27.47z m-4.86-121.05l-23.716-13.83-32.604 55.254 23.702 13.831zM572.73 264.738L415.758 107.493l-19.142 19.674 156.972 157.246z m-226.727 52.634L217.839 188.976l-19.197 19.62 128.178 128.41z m-49.535-189.645l-20.698-20.821-19.142 19.674 20.699 20.835z m77.906 116.736l20.48-18.323-78.684-78.684-20.48 18.35z" p-id="1723" /></symbol>'});n.a.add(l);t["default"]=l},6177:function(e,t,a){"use strict";a("3c98")},"61f7":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return l}));a("53ca"),a("c5f6");function s(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return 1}function r(e){if(e instanceof Array){if(0===e.length)return!0}else{if(!(e instanceof Object))return"null"===e||null===e||"undefined"===e||void 0===e||""===e;if("{}"===JSON.stringify(e))return!0}return!1}function n(e,t,a){var s=/^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/;""===t||void 0===t||null===t||s.test(t)||""==t?a():a(new Error("请输入正确的电话号码或者固话号码"))}function l(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)}},6260:function(e,t,a){},"632b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"250px",top:"-3px"},attrs:{type:"month",placeholder:"选择月份",format:"yyyy-MM","value-format":"yyyy-MM"},model:{value:e.getdataListParm.parammaps.month,callback:function(t){e.$set(e.getdataListParm.parammaps,"month",t)},expression:"getdataListParm.parammaps.month"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",prop:"name","min-width":"130px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"月份",sortable:"",prop:"date",align:"center","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{label:"库存周转率","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rateofturnover))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初",prop:"earlymonthje",align:"center","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{label:"期末",prop:"endofmonthje",align:"center","min-width":"150px"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=a("2934"),n=a("333d"),l=a("6724"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"InventoryTurnover",components:{Pagination:n["a"]},directives:{waves:l["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],getdataListParm:{name:"getRateOfTurnover",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),month:""}},listLoading:!1,total:0,tableKey:0,list:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(m["f"])(e,this.list)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),null==this.getdataListParm.parammaps.month&&(this.getdataListParm.parammaps.month=""),this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getRateOfTurnover",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["月份","月份","库存周转率","期初","期末"],filterVal:["name","date","rateofturnover","earlymonthje","endofmonthje"],tableDatas:e.downLoadList,sheetName:"库存周转率报表"}];Object(m["d"])(a,"库存周转率报表",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},6375:function(e,t,a){"use strict";a("5e74")},"63ef":function(e,t,a){"use strict";a("bf4d")},6493:function(e,t,a){},"64df":function(e,t,a){"use strict";a("78bf")},6517:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),e._v(" "),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),e._v(" "),a("label",{attrs:{for:"toggle-all"}}),e._v(" "),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,s){return a("todo",{key:s,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),e._v(" "),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v("\n "+e._s(e._f("pluralize")(e.remaining,"item"))+" left\n ")]),e._v(" "),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,s){return a("li",{key:s},[a("a",{class:{selected:e.visibility===s},on:{click:function(t){t.preventDefault(),e.visibility=s}}},[e._v(e._s(e._f("capitalize")(s)))])])})),0)])])},i=[],r=(a("ac6a"),a("1360")),n="todos",l={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},o=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],p={components:{Todo:r["default"]},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:l,todos:o}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return l[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(n,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},m=p,c=(a("9a0f"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"653d":function(e,t,a){"use strict";a("3f29")},65825:function(e,t,a){"use strict";a.r(t);var s=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-1",type:"warning"}})],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!0,null,null,null);t["default"]=l.exports},"65cf":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"generalTitle"},[e._v(" 现代牧业设备管理系统 ")])]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"date"},[e._v(" "+e._s(e.row1.date)+" ")])])],1),e._v(" "),a("el-row",{staticClass:"row2",attrs:{gutter:5}},[a("el-col",{attrs:{span:10}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"450px"},attrs:{id:"row2Chart1"}}),e._v(" "),a("el-row",{staticClass:"groupNews",attrs:{gutter:5}},[a("el-col",{attrs:{span:8}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("设备指标预算")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.monthBudgets)+"万元")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("设备指标实际")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.sumPrice)+"万元")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("dv-border-box-8",{staticClass:"news",attrs:{dur:-1}},[a("b",[e._v("迄今达成率")]),a("br"),e._v(" "),a("span",[e._v(e._s(e.row2.chart1.list.donerate))])])],1)],1),e._v(" "),e.row2.chart1.isPastureList?a("div",{staticClass:"pastureNews"},[a("dv-border-box-8",{staticClass:"newsTitle",attrs:{dur:-1}},[a("b",[e._v(e._s(e.row2.chart1.pasture.pastureName))])]),e._v(" "),a("dv-border-box-8",{staticClass:"news2",attrs:{dur:-1}},[a("div",[a("b",[e._v("设备指标预算:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.monthBudgets)+"万元")]),a("br"),e._v(" "),a("b",[e._v("设备指标实际:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.sumPrice)+"万元")]),a("br"),e._v(" "),a("b",[e._v("迄今达成率:")]),a("span",[e._v(e._s(e.row2.chart1.pasture.list.donerate))])])])],1):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:14}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("设备状态统计")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"480px"},attrs:{id:"row2Chart2"}}),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart2")}}},[e._v("查看详情")])])])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("dv-border-box-8",{staticStyle:{height:"500px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("保养完成率")]),e._v(" "),a("div",{staticClass:"IndexTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.row2.chart3.listLoading,expression:"row2.chart3.listLoading"}],key:e.row2.chart3.tableKey,staticClass:"table-fixed Indextable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.row2.chart3.list,fit:"","cell-style":e.cellStyle,"row-style":e.rowStyle,height:480,"header-cell-style":{background:"#003366",color:"#fff",fontSize:"8px",lineHeight:"12px"}}},[e.row2.chart3.isPasture?a("el-table-column",{attrs:{label:"牧场","min-width":"80px",align:"center",prop:"name"}}):e._e(),e._v(" "),e.row2.chart3.isType?a("el-table-column",{attrs:{label:"设备类型","min-width":"80px",align:"center",prop:"typeName"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"保养计划","min-width":"70px",align:"center",prop:"totaluk"}}),e._v(" "),a("el-table-column",{attrs:{label:"完成数","min-width":"60px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养完成率","min-width":"80px",align:"center",prop:"donerate"}})],1)],1),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart3")}}},[e._v("查看详情")])])])],1),e._v(" "),a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("dv-border-box-8",{staticStyle:{height:"250px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("资产运转率")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"190px"},attrs:{id:"row2Chart4"}}),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row2Chart4")}}},[e._v("查看详情")])])])],1)],1)],1)],1),e._v(" "),a("el-row",{staticStyle:{height:"300px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{attrs:{span:24}},[a("dv-border-box-8",{staticStyle:{height:"300px"},attrs:{dur:-1}},[a("div",{staticClass:"Title"},[e._v("费用统计")]),e._v(" "),a("div",{staticClass:"costStatistics"},[a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"维修成本分析"}}),e._v("\n 维修费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart1.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart1.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart1.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart1")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart1"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"水量分析"}}),e._v("\n 水费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart2.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart2.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart2.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart2")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart2"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"电量分析"}}),e._v("\n 电费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart3.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart3.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart3.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart3")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart3"}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"content"},[a("dv-border-box-8",{staticStyle:{height:"260px"},attrs:{dur:-1}},[a("div",{staticClass:"title"},[a("svg-icon",{attrs:{"icon-class":"燃动分析"}}),e._v("\n 燃动费\n ")],1),e._v(" "),a("el-row",{staticStyle:{height:"260px",color:"#fff"},attrs:{gutter:5}},[a("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:8}},[a("div",{staticClass:"contentLeft"},[a("div",[a("b",[e._v("预算")]),a("span",[e._v(e._s(e.row3.chart4.list.data1)+"元")]),e._v(" "),a("b",[e._v("实际")]),a("span",[e._v(e._s(e.row3.chart4.list.data2)+"元")]),e._v(" "),a("b",[e._v("单头牛实际")]),a("span",[e._v(e._s(e.row3.chart4.list.data3)+"元")])])]),e._v(" "),a("div",{staticClass:"Indexbutton"},[a("a",{on:{click:function(t){return e.form_seeDetails("row3Chart4")}}},[e._v("查看详情")])])]),e._v(" "),a("el-col",{staticStyle:{padding:"0 10px 0 0"},attrs:{span:16}},[a("dv-border-box-8",{staticStyle:{height:"200px"},attrs:{dur:-1}},[a("div",{staticStyle:{width:"100%",height:"200px"},attrs:{id:"row3Chart4"}})])],1)],1)],1)],1)])])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=(a("a78e"),a("ed08")),l=a("313e"),o=a.n(l),p=(a("3139"),a("1157")),m=a.n(p);a("817d");var c={name:"DashboardEditor",data:function(){return{row1:{date:Object(n["e"])(new Date,"{y}-{m}-{d}")},row2:{chart1:{getdataListParm:{name:"homepagePastureInfor",parammaps:{}},data:[],Chart:null,get_table_dataParm:{name:"homepageRate",parammaps:{pastureName:"现代牧业"}},list:{},isPastureList:!1,pasture:{getdataListParm:{name:"homepageRate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:""}},pastureName:"",listLoading:!0,total:0,list:[]}},chart2:{getdataListParm:{name:"homepageEqstatus",parammaps:{pastureName:"现代牧业"}},data:[],Chart:null},chart3:{getdataListParm:{name:"homepageUkdoneRatePasture",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{}},tableKey:0,listLoading:!0,total:0,list:[],isType:!1,isPasture:!0},chart4:{getdataListParm:{name:"homepageEqRunstatueListPasture",parammaps:{type:"牧场"}},data:[],Chart:null}},row3:{chart1:{getdataListParm:{name:"homepageFeeWX",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart2:{getdataListParm:{name:"homepageFeeWater",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart3:{getdataListParm:{name:"homepageFeeElec",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}},chart4:{getdataListParm:{name:"homepageFeeDiesel",parammaps:{type:"至今",pastureName:"现代牧业"}},data:[],Chart:null,list:{}}},rowStyle:{maxHeight:"20px",height:"20px",background:"#003366",color:"#fff",fontSize:"8px"},cellStyle:{padding:"0px",background:"#003366",color:"#fff",fontSize:"8px"}}},created:function(){this.getRow2List1(),this.getRow2Chart1()},methods:{form_seeDetails:function(e){"row2Chart2"==e?(console.log("设备状态统计"),this.$router.push("/report/EquipmentOverview")):"row2Chart3"==e?(console.log("保养完成率"),this.$router.push("/report/CompletionRateMaintenance")):"row2Chart4"==e?(console.log("资产运转率"),this.$router.push("/report/EquipmentOperation")):"row3Chart1"==e?(console.log("维修费"),this.$router.push("/report/QueryRepair")):"row3Chart2"==e?(console.log("水费"),this.$router.push("/report/QueryWater")):"row3Chart3"==e?(console.log("电费"),this.$router.push("/report/QueryElec")):"row3Chart4"==e&&(console.log("燃动费"),this.$router.push("/report/QueryCombustion"))},getRow2List1:function(){var e=this;Object(r["e"])(this.row2.chart1.get_table_dataParm).then((function(t){null!==t.data.list?e.row2.chart1.list=t.data.list[0]:(e.row2.chart1.list.donerate="",e.row2.chart1.list.monthBudgets="",e.row2.chart1.list.sumPrice="")}))},getRow2Chart1:function(){var e=this;Object(r["h"])(this.row2.chart1.getdataListParm).then((function(t){console.log("row2图2",t),null!==t.data?e.row2.chart1.data=t.data:e.row2.chart1.data=[],e.getRow2Chart2(),e.roadRow2Chart1(e.row2.chart1.data)}))},roadRow2Chart1:function(e){null!=this.row2.chart1.Chart&&this.row2.chart1.Chart.dispose(),this.row2.chart1.Chart=o.a.init(document.getElementById("row2Chart1"));var t="/datas/myMap.json",s=this;m.a.getJSON(t,(function(t){o.a.registerMap("china",t);var i=e.data1[0],r=e.data2;console.log("geoCoordMap",JSON.stringify(i)),console.log("data",JSON.stringify(r));var n=function(e){for(var t=[],a=0;a<e.length;a++){var s=i[e[a].name];s&&t.push({name:e[a].name,value:s.concat(e[a].value)})}return t};console.log("convertData",JSON.stringify(n));var l=n(r);console.log("convertData Data",JSON.stringify(l));var p="image://"+a("c1c5"),m={title:"",legend:{orient:"vertical",y:"bottom",x:"right",data:["pm2.5"],textStyle:{color:"#fff"}},visualMap:{show:!1,min:0,max:600,left:"left",top:"bottom",text:["高","低"],calculable:!0,seriesIndex:[1],inRange:{}},geo:{map:"china",show:!0,roam:!0,label:{normal:{show:!1},emphasis:{show:!1}},itemStyle:{normal:{areaColor:"#3a7fd5",borderColor:"#0a53e9",shadowColor:"#092f8f",shadowBlur:20},emphasis:{areaColor:"#0a2dae"}}},series:[{symbolSize:5,label:{normal:{formatter:"{b}",position:"bottom",lineHeight:30,show:!0},emphasis:{show:!0}},itemStyle:{normal:{color:"#fff"}},name:"light",type:"scatter",coordinateSystem:"geo",data:n(r)},{type:"map",map:"china",geoIndex:0,aspectScale:.75,showLegendSymbol:!1,label:{normal:{show:!1},emphasis:{show:!1,textStyle:{color:"#fff"}}},roam:!0,itemStyle:{normal:{areaColor:"#031525",borderColor:"#FFFFFF"},emphasis:{areaColor:"#2B91B7"}},animation:!1,data:r},{name:"Top 5",type:"scatter",coordinateSystem:"geo",symbol:p,symbolSize:[20,20],right:100,label:{normal:{show:!1,textStyle:{color:"#fff",fontSize:9},formatter:function(e){return e.data.value[2]}}},itemStyle:{normal:{color:"#D8BC37",marginRight:100}},data:n(r),showEffectOn:"render",rippleEffect:{brushType:"stroke"},hoverAnimation:!0,zlevel:1}]};s.row2.chart1.Chart.setOption(m),s.row2.chart1.Chart.on("click",(function(e,t){void 0!==e.value.length?(console.log(e),s.row2.chart2.getdataListParm.parammaps.pastureName=e.name,s.row2.chart3.getdataListParm.name="homepageUkdoneRateEqclass",s.row2.chart3.getdataListParm.parammaps.pastureName=e.name,s.row2.chart3.isType=!0,s.row2.chart3.isPasture=!1,s.row2.chart4.getdataListParm.name="homepageEqRunstatueListEqclass",s.row2.chart4.getdataListParm.parammaps.pastureName=e.name,s.row2.chart4.getdataListParm.parammaps.type="设备类别",s.row2.chart1.pasture.getdataListParm.parammaps.pastureName=e.name,s.row3.chart1.getdataListParm.parammaps.pastureName=e.name,s.row3.chart2.getdataListParm.parammaps.pastureName=e.name,s.row3.chart3.getdataListParm.parammaps.pastureName=e.name,s.row3.chart4.getdataListParm.parammaps.pastureName=e.name,s.row2.chart1.pasture.pastureName=e.name,s.getRow2PastureList(),s.getRow2Chart2()):(s.row2.chart2.getdataListParm.parammaps.pastureName="现代牧业",s.row2.chart3.isType=!1,s.row2.chart3.isPasture=!0,s.row2.chart3.getdataListParm.name="homepageUkdoneRatePasture",s.row2.chart3.getdataListParm.parammaps.pastureName="现代牧业",s.row2.chart4.getdataListParm.name="homepageEqRunstatueListPasture",s.row2.chart4.getdataListParm.parammaps.type="牧场",s.row2.chart4.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart1.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart2.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart3.getdataListParm.parammaps.pastureName="现代牧业",s.row3.chart4.getdataListParm.parammaps.pastureName="现代牧业",s.getRow2Chart1(),s.row2.chart1.isPastureList=!1)})),window.onresize=function(){s.row2.chart1.Chart.resize()}}))},getRow2PastureList:function(){var e=this;this.row2.chart1.pasture.listLoading=!0,Object(r["e"])(this.row2.chart1.pasture.getdataListParm).then((function(t){null!==t.data.list?(e.row2.chart1.pasture.list=t.data.list[0],console.log("牧场数据",e.row2.chart1.pasture.list),e.row2.chart1.isPastureList=!0):(e.row2.chart1.pasture.list.donerate="",e.row2.chart1.pasture.list.monthBudgets="",e.row2.chart1.pasture.list.sumPrice=""),setTimeout((function(){e.row2.chart1.pasture.listLoading=!1}),100)}))},getRow2Chart2:function(){var e=this;Object(r["h"])(this.row2.chart2.getdataListParm).then((function(t){console.log("row2图2",t),null!==t.data?e.row2.chart2.data=t.data:e.row2.chart2.data=[],e.getRow2Chart3(),e.roadRow2Chart2(e.row2.chart2.data)}))},roadRow2Chart2:function(e){null!=this.row2.chart2.Chart&&this.row2.chart2.Chart.dispose(),this.row2.chart2.Chart=o.a.init(document.getElementById("row2Chart2"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},color:["#769cfc"],grid:{left:"3%",right:"13%",top:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"状态",data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"台数",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{type:"bar",barWidth:30,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}}]};this.row2.chart2.Chart.setOption(t),window.onresize=function(){this.row2.chart2.Chart.resize()}},getRow2Chart3:function(){var e=this;this.row2.chart3.listLoading=!0,Object(r["e"])(this.row2.chart3.getdataListParm).then((function(t){null!==t.data.list?e.row2.chart3.list=t.data.list:e.row2.chart3.list=[],e.getRow2Chart4(),setTimeout((function(){e.row2.chart3.listLoading=!1}),100)}))},getRow2Chart4:function(){var e=this;Object(r["h"])(this.row2.chart4.getdataListParm).then((function(t){console.log("row2图4",t),null!==t.data?e.row2.chart4.data=t.data:e.row2.chart4.data=[],e.getRow3Chart1(),e.roadRow2Chart4(e.row2.chart4.data)}))},roadRow2Chart4:function(e){null!=this.row2.chart4.Chart&&this.row2.chart4.Chart.dispose(),this.row2.chart4.Chart=o.a.init(document.getElementById("row2Chart4"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},color:["#769cfc"],grid:{left:"3%",right:"8%",top:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:e.data3[0],axisLabel:{interval:0,rotate:40},data:e.data1,axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"%",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{type:"bar",data:e.data2,emphasis:{label:{show:!0,position:"inside"}}}]};this.row2.chart4.Chart.setOption(t),window.onresize=function(){this.row2.chart4.Chart.resize()}},getRow3Chart1:function(){var e=this;Object(r["h"])(this.row3.chart1.getdataListParm).then((function(t){console.log("row3图1",t),null!==t.data?(e.row3.chart1.data.data1=t.data.data1,e.row3.chart1.data.data2=t.data.data2,e.row3.chart1.data.data3=t.data.data3,e.row3.chart1.data.data4=t.data.data4,e.row3.chart1.data.data5=t.data.data5,e.row3.chart1.list.data1=t.data.data6[0],e.row3.chart1.list.data2=t.data.data7[0],e.row3.chart1.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart1.data={},e.row3.chart1.list={}),e.getRow3Chart2(),e.roadRow3Chart1(e.row3.chart1.data)}))},roadRow3Chart1:function(e){null!=this.row3.chart1.Chart&&this.row3.chart1.Chart.dispose(),this.row3.chart1.Chart=o.a.init(document.getElementById("row3Chart1"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart1.Chart.setOption(t),window.onresize=function(){this.row3.chart1.Chart.resize()}},getRow3Chart2:function(){var e=this;Object(r["h"])(this.row3.chart2.getdataListParm).then((function(t){console.log("row3图2",t),null!==t.data?(e.row3.chart2.data.data1=t.data.data1,e.row3.chart2.data.data2=t.data.data2,e.row3.chart2.data.data3=t.data.data3,e.row3.chart2.data.data4=t.data.data4,e.row3.chart2.data.data5=t.data.data5,e.row3.chart2.list.data1=t.data.data6[0],e.row3.chart2.list.data2=t.data.data7[0],e.row3.chart2.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart2.data={},e.row3.chart2.list={}),e.getRow3Chart3(),e.roadRow3Chart2(e.row3.chart2.data)}))},roadRow3Chart2:function(e){null!=this.row3.chart2.Chart&&this.row3.chart2.Chart.dispose(),this.row3.chart2.Chart=o.a.init(document.getElementById("row3Chart2"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart2.Chart.setOption(t),window.onresize=function(){this.row3.chart2.Chart.resize()}},getRow3Chart3:function(){var e=this;Object(r["h"])(this.row3.chart3.getdataListParm).then((function(t){console.log("row3图3",t),null!==t.data?(e.row3.chart3.data.data1=t.data.data1,e.row3.chart3.data.data2=t.data.data2,e.row3.chart3.data.data3=t.data.data3,e.row3.chart3.data.data4=t.data.data4,e.row3.chart3.data.data5=t.data.data5,e.row3.chart3.list.data1=t.data.data6[0],e.row3.chart3.list.data2=t.data.data7[0],e.row3.chart3.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart3.data={},e.row3.chart3.list={}),e.getRow3Chart4(),e.roadRow3Chart3(e.row3.chart3.data)}))},roadRow3Chart3:function(e){null!=this.row3.chart3.Chart&&this.row3.chart3.Chart.dispose(),this.row3.chart3.Chart=o.a.init(document.getElementById("row3Chart3"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart3.Chart.setOption(t),window.onresize=function(){this.row3.chart3.Chart.resize()}},getRow3Chart4:function(){var e=this;Object(r["h"])(this.row3.chart4.getdataListParm).then((function(t){console.log("row3图4",t),null!==t.data?(e.row3.chart4.data.data1=t.data.data1,e.row3.chart4.data.data2=t.data.data2,e.row3.chart4.data.data3=t.data.data3,e.row3.chart4.data.data4=t.data.data4,e.row3.chart4.data.data5=t.data.data5,e.row3.chart4.list.data1=t.data.data6[0],e.row3.chart4.list.data2=t.data.data7[0],e.row3.chart4.list.data3=t.data.data8[0],e.$forceUpdate()):(e.row3.chart4.data={},e.row3.chart4.list={}),e.roadRow3Chart4(e.row3.chart4.data)}))},roadRow3Chart4:function(e){null!=this.row3.chart4.Chart&&this.row3.chart4.Chart.dispose(),this.row3.chart4.Chart=o.a.init(document.getElementById("row3Chart4"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[{name:"今年预算",icon:"circle"},{name:"今年实际",icon:"circle"},{name:"今年内控",icon:"circle"},{name:"去年同期实际",icon:"circle"}],itemWidth:5,itemHeight:5,itemGap:5,y:10,textStyle:{color:"#fff",fontSize:"10"}},color:["#2dc0e8","#769cfc","#e69cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"时间",nameTextStyle:{padding:[0,0,-20,-30]},data:e.data1,axisLabel:{interval:0},axisLine:{lineStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",axisLabel:{formatter:"{value}"},axisLine:{lineStyle:{color:"#fff",width:1}}}],series:[{name:"今年预算",textStyle:{fontSize:12,fontWeight:"bolder",color:"#fff"},type:"bar",barWidth:10,data:e.data2,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年实际",type:"bar",barWidth:10,data:e.data3,emphasis:{label:{show:!0,position:"inside"}}},{name:"今年内控",type:"bar",barWidth:10,data:e.data4,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期实际",type:"bar",barWidth:10,data:e.data5,emphasis:{label:{show:!0,position:"inside"}}}]};this.row3.chart4.Chart.setOption(t),window.onresize=function(){this.row3.chart4.Chart.resize()}}}},d=c,u=(a("2233"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"4dc02d29",null);t["default"]=h.exports},"65ff":function(e,t,a){"use strict";a("aee3")},6633:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{gutter:32}},[a("el-date-picker",{staticStyle:{float:"left"},attrs:{clearable:!1,"picker-options":e.pickerOptions,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{gutter:32}},[a("h3",[e._v("设备指标(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipmentIndex.table.listLoading,expression:"equipmentIndex.table.listLoading"}],key:e.equipmentIndex.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipmentIndex.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentIndex(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今饲养头日",sortable:"","min-width":"100px",align:"center",prop:"cowNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今产奶量(吨)",sortable:"","min-width":"110px",align:"center",prop:"saleNum"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("水费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.water.table.listLoading,expression:"water.table.listLoading"}],key:e.water.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.water.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterCost(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际公斤奶成本(元/公斤)",sortable:"",prop:"milkprice","min-width":"65px",align:"center"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("电费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elec.table.listLoading,expression:"elec.table.listLoading"}],key:e.elec.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elec.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecCost(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际公斤奶成本(元/公斤)",sortable:"",prop:"milkprice","min-width":"65px",align:"center"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("维修费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.repair.table.listLoading,expression:"repair.table.listLoading"}],key:e.repair.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.repair.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort4}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickRepairCost(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际公斤奶成本(元/公斤)",sortable:"",prop:"milkprice","min-width":"65px",align:"center"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("燃动费(万元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gas.table.listLoading,expression:"gas.table.listLoading"}],key:e.gas.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gas.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort5}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasCost(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际公斤奶成本(元/公斤)",sortable:"",prop:"milkprice","min-width":"65px",align:"center"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("水量(吨)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterConsumption.table.listLoading,expression:"waterConsumption.table.listLoading"}],key:e.waterConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort6}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}})],1)],1),e._v(" "),a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("电量(度)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecConsumption.table.listLoading,expression:"elecConsumption.table.listLoading"}],key:e.elecConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort7}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:12,sm:12,lg:12}},[a("h3",[e._v("柴油用量(L)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasConsumption.table.listLoading,expression:"gasConsumption.table.listLoading"}],key:e.gasConsumption.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasConsumption.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"50px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"年度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际单头牛成本",sortable:"",prop:"cowprice","min-width":"65px",align:"center"}})],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[a("div",{staticClass:"pasture"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialog.listLoading,expression:"dialog.listLoading"}],key:e.dialog.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.dialog.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort9}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.dialog.pageNum-1)*e.dialog.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月份",sortable:"",prop:"wmonth","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"",prop:"monthBudget","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"monthLimit","min-width":"130px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"",prop:"qmonthBudget","min-width":"90px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"",prop:"asave","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dac")},"min-width":"90px",align:"center",prop:"dac"}}),e._v(" "),a("el-table-column",{attrs:{label:"月度达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"dacY")},"min-width":"90px",align:"center",prop:"dacY"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dialog.total>0,expression:"dialog.total>0"}],attrs:{total:e.dialog.total,page:e.dialog.getdataListParm.offset,limit:e.dialog.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.dialog.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.dialog.getdataListParm,"pagecount",t)},pagination:e.get_table_dataDialog}})],1)])],1)},i=[],r=(a("c5f6"),a("61f7"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("bc3a"),m=a.n(p),c=a("5f87");a("0fd4");var d={name:"Equipment",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()-864e5}},yearDate:new Date,month:"",equipmentIndex:{table:{listLoading:!0,list:[],tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataSBJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},water:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataWMJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},elec:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataEMJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},repair:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataXMJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},gas:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataRMJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},waterConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataWSJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},elecConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataESJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},gasConsumption:{table:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"geteqMonthBudget_table_dataRSJT",page:1,offset:1,returntype:"Map",parammaps:{month:Object(o["e"])(new Date,"{y}-{m}-{d}")}}}},dialog:{dialogFormVisible:!1,total:0,getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{month:"",pastureId:""}},tableKey:0,listLoading:!0,list:null},dialogStatus:"",textMap:{},requestParam:{name:"",offset:0,pagecount:0,parammaps:{}},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadAll:{},isPercentage:!1,percentage:1}},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;(new Date).getFullYear()==a.getFullYear()?this.month=Object(o["e"])(new Date,"{y}-{m}-{d}"):this.month=a.getFullYear()+1+"-01-01",this.equipmentIndex.table.getdataListParm.parammaps.month=this.month,this.water.table.getdataListParm.parammaps.month=this.month,this.elec.table.getdataListParm.parammaps.month=this.month,this.repair.table.getdataListParm.parammaps.month=this.month,this.gas.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.gasConsumption.table.getdataListParm.parammaps.month=this.month,this.getlistEquipmentIndex()}}},created:function(){this.getlistEquipmentIndex()},methods:{sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(o["f"])(e,this.equipmentIndex.table.list)},tableSort2:function(e){Object(o["f"])(e,this.water.table.list)},tableSort3:function(e){Object(o["f"])(e,this.elec.table.list)},tableSort4:function(e){Object(o["f"])(e,this.repair.table.list)},tableSort5:function(e){Object(o["f"])(e,this.gas.table.list)},tableSort6:function(e){Object(o["f"])(e,this.waterConsumption.table.list)},tableSort7:function(e){Object(o["f"])(e,this.elecConsumption.table.list)},tableSort8:function(e){Object(o["f"])(e,this.gasConsumption.table.list)},tableSort9:function(e){Object(o["f"])(e,this.dialog.list)},getlistEquipmentIndex:function(){var e=this;this.equipmentIndex.table.listLoading=!0,Object(r["e"])(this.equipmentIndex.table.getdataListParm).then((function(t){null!==t.data.list?e.equipmentIndex.table.list=t.data.list:e.equipmentIndex.table.list=[],console.log("设备指标table",e.equipmentIndex.table.list),setTimeout((function(){e.equipmentIndex.table.listLoading=!1,e.get_table_dataWater()}),100)}))},get_table_dataWater:function(){var e=this;this.water.table.listLoading=!0,Object(r["e"])(this.water.table.getdataListParm).then((function(t){null!==t.data.list?e.water.table.list=t.data.list:e.water.table.list=[],setTimeout((function(){e.water.table.listLoading=!1,e.get_table_dataElec()}),100)}))},get_table_dataElec:function(){var e=this;this.elec.table.listLoading=!0,Object(r["e"])(this.elec.table.getdataListParm).then((function(t){null!==t.data.list?e.elec.table.list=t.data.list:e.elec.table.list=[],setTimeout((function(){e.get_table_dataRepair(),e.elec.table.listLoading=!1}),100)}))},get_table_dataRepair:function(){var e=this;this.repair.table.listLoading=!0,Object(r["e"])(this.repair.table.getdataListParm).then((function(t){null!==t.data.list?e.repair.table.list=t.data.list:e.repair.table.list=[],setTimeout((function(){e.get_table_dataGas(),e.repair.table.listLoading=!1}),100)}))},get_table_dataGas:function(){var e=this;this.gas.table.listLoading=!0,Object(r["e"])(this.gas.table.getdataListParm).then((function(t){null!==t.data.list?e.gas.table.list=t.data.list:e.gas.table.list=[],setTimeout((function(){e.gas.table.listLoading=!1,e.get_table_dataWaterConsumption()}),100)}))},get_table_dataWaterConsumption:function(){var e=this;this.waterConsumption.table.listLoading=!0,Object(r["e"])(this.waterConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.waterConsumption.table.list=t.data.list:e.waterConsumption.table.list=[],setTimeout((function(){e.get_table_dataElecConsumption(),e.waterConsumption.table.listLoading=!1}),100)}))},get_table_dataElecConsumption:function(){var e=this;this.elecConsumption.table.listLoading=!0,Object(r["e"])(this.elecConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.elecConsumption.table.list=t.data.list:e.elecConsumption.table.list=[],setTimeout((function(){e.get_table_dataGasConsumption(),e.elecConsumption.table.listLoading=!1}),100)}))},get_table_dataGasConsumption:function(){var e=this;this.gasConsumption.table.listLoading=!0,Object(r["e"])(this.gasConsumption.table.getdataListParm).then((function(t){null!==t.data.list?e.gasConsumption.table.list=t.data.list:e.gasConsumption.table.list=[],setTimeout((function(){e.gasConsumption.table.listLoading=!1}),100)}))},tableCellStyle:function(e){e.row,e.column,e.rowIndex;var t=e.columnIndex;return 1===t?{textDecoration:"underline"}:{textDecoration:"none"}},get_table_dataDialog:function(){var e=this;this.dialog.listLoading=!0,Object(r["e"])(this.dialog.getdataListParm).then((function(t){null==t.data.list?(e.dialog.list=t.data.list,e.dialog.pageNum=0,e.dialog.pageSize=0,e.dialog.total=0):(e.dialog.list=t.data.list,e.dialog.pageNum=t.data.pageNum,e.dialog.pageSize=t.data.pageSize,e.dialog.total=t.data.total),setTimeout((function(){e.dialog.listLoading=!1}),100)}))},clickEquipmentIndex:function(e){this.textMap.equipmentIndex=e.pastureName+this.equipmentIndex.table.getdataListParm.parammaps.month.substring(0,4)+"年设备指标",this.dialogStatus="equipmentIndex",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataSBJTM",this.dialog.getdataListParm.parammaps.month=this.equipmentIndex.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickWaterCost:function(e){this.textMap.water=e.pastureName+this.water.table.getdataListParm.parammaps.month.substring(0,4)+"年水费",this.dialogStatus="water",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataWMJTM",this.dialog.getdataListParm.parammaps.month=this.water.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickElecCost:function(e){this.textMap.elec=e.pastureName+this.elec.table.getdataListParm.parammaps.month.substring(0,4)+"年电费",this.dialogStatus="elec",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataEMJTM",this.dialog.getdataListParm.parammaps.month=this.elec.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickRepairCost:function(e){this.textMap.repair=e.pastureName+this.repair.table.getdataListParm.parammaps.month.substring(0,4)+"年维修费",this.dialogStatus="repair",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataXMJTM",this.dialog.getdataListParm.parammaps.month=this.elec.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickGasCost:function(e){this.textMap.gas=e.pastureName+this.gas.table.getdataListParm.parammaps.month.substring(0,4)+"年燃动费",this.dialogStatus="gas",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataRMJTM",this.dialog.getdataListParm.parammaps.month=this.gas.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickWaterConsumption:function(e){this.textMap.waterConsumption=e.pastureName+this.waterConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年水量",this.dialogStatus="waterConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataWSJTM",this.dialog.getdataListParm.parammaps.month=this.waterConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickElecConsumption:function(e){this.textMap.elecConsumption=e.pastureName+this.elecConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年电量",this.dialogStatus="elecConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataESJTM",this.dialog.getdataListParm.parammaps.month=this.elecConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},clickGasConsumption:function(e){this.textMap.gasConsumption=e.pastureName+this.gasConsumption.table.getdataListParm.parammaps.month.substring(0,4)+"年柴油用量",this.dialogStatus="gasConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="geteqMonthBudget_table_dataRSJTM",this.dialog.getdataListParm.parammaps.month=this.gasConsumption.table.getdataListParm.parammaps.month,this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog()},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="DownloadMailReportJY",(new Date).getFullYear()==Object(o["e"])(this.yearDate,"{y}")?(this.requestParam.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.requestParam.mydate=Object(o["e"])(new Date,"{y}")):(this.requestParam.date=parseInt(Object(o["e"])(this.yearDate,"{y}"))+1+"-01-01",this.requestParam.mydate=Object(o["e"])(this.yearDate,"{y}")),console.log(this.requestParam.date),console.log(this.requestParam.mydate);var a=this.requestParam,s="http://127.0.0.1:8082/authdata/downloadmailreport";m()({method:"post",url:s,data:a,headers:{token:Object(c["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var s=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(s),r=document.createElement("a");r.style.display="none",r.href=i;var n="集团设备指标"+a.mydate+".xlsx";r.setAttribute("download",n),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i)}}))}}},u=d,h=(a("72c2"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"8ee8b6e2",null);t["default"]=g.exports},"66e9":function(e,t,a){},6724:function(e,t,a){"use strict";a("8d41");var s="@@wavesContext";function i(e,t){function a(a){var s=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},s),r=i.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var n=r.getBoundingClientRect(),l=r.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":(l=document.createElement("span"),l.className="waves-ripple",l.style.height=l.style.width=Math.max(n.width,n.height)+"px",r.appendChild(l)),i.type){case"center":l.style.top=n.height/2-l.offsetHeight/2+"px",l.style.left=n.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-n.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-n.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}}return e[s]?e[s].removeHandle=a:e[s]={removeHandle:a},a}var r={bind:function(e,t){e.addEventListener("click",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[s].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[s].removeHandle,!1),e[s]=null,delete e[s]}},n=function(e){e.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(n)),r.install=n;t["a"]=r},6728:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-合同",use:"icon-合同-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-合同"><defs><style type="text/css"></style></defs><path d="M836.885 63.765H187.627a64.17 64.17 0 0 0-64.107 64.086v766.144a64.17 64.17 0 0 0 64.107 64.085h649.258a64.17 64.17 0 0 0 64.107-64.085V127.85a64.15 64.15 0 0 0-64.107-64.086z m7.531 830.23a7.53 7.53 0 0 1-7.53 7.509h-649.26a7.51 7.51 0 0 1-7.509-7.51V127.852c0-4.139 3.371-7.51 7.51-7.51h649.258c4.139 0 7.531 3.371 7.531 7.51v766.144z" p-id="2085" /><path d="M510.656 563.584c0-15.616-12.65-28.288-28.31-28.288h-161.45a28.288 28.288 0 1 0 0 56.576h161.45c15.66 0 28.31-12.672 28.31-28.288z m-189.76-124.779h382.741a28.288 28.288 0 1 0 0-56.576H320.896a28.288 28.288 0 1 0 0 56.576z m0-147.456h382.741a28.288 28.288 0 1 0 0-56.597H320.896a28.288 28.288 0 1 0 0 56.597z m483.776 284.992l-116.075 28.352-89.173-79.53-8.875 119.125-103.168 60.203 110.55 45.269 25.344 116.757 77.226-91.136 118.87 11.926-62.827-101.59 48.128-109.376z" p-id="2086" /></symbol>'});n.a.add(l);t["default"]=l},6733:function(e,t,a){"use strict";a("e84d")},6768:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("newVisitis")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-people"},[a("svg-icon",{attrs:{"icon-class":"peoples","class-name":"card-panel-icon"}})],1),e._v(" "),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v("\n New Visits\n ")]),e._v(" "),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":102400,duration:2600}})],1)])]),e._v(" "),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),e._v(" "),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v("\n Messages\n ")]),e._v(" "),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":81212,duration:3e3}})],1)])]),e._v(" "),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e._v(" "),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v("\n Purchases\n ")]),e._v(" "),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":9280,duration:3200}})],1)])]),e._v(" "),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"shopping","class-name":"card-panel-icon"}})],1),e._v(" "),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v("\n Shoppings\n ")]),e._v(" "),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":13600,duration:3600}})],1)])])],1)},i=[],r=a("ec1b"),n=a.n(r),l={components:{CountTo:n.a},methods:{handleSetLineChartData:function(e){this.$emit("handleSetLineChartData",e)}}},o=l,p=(a("817d9"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"6723c96e",null);t["default"]=m.exports},"67cb":function(e,t,a){},"67fb":function(e,t,a){},6842:function(e,t,a){"use strict";a("39a2")},"68a0":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-button",{attrs:{disabled:e.btnDisable,type:e.type,round:e.round,icon:e.icon,size:e.size},on:{click:e.onClick}},[e._v(e._s(e.label))])},i=[],r={props:{act:Object,row:{type:Object,default:function(){return{}}},multiSelect:{type:Boolean,default:!1},inline:{type:Boolean,default:!0}},computed:{btnDisable:function(){return this.act.multiSelect&&!this.multiSelect||this.act.disable&&!this.row[this.act.disable]},round:function(){return!this.inline||void 0},label:function(){return this.getSwitchValue("label")},type:function(){return this.getSwitchValue("type")},icon:function(){return this.getSwitchValue("icon")},size:function(){return this.getSwitchValue("size")}},methods:{onClick:function(){this.act.url=this.getSwitchValue("switchUrl"),this.$emit("action",this.act,this.row)},getSwitchValue:function(e){return this.act.switch?this.act[e][this.row[this.act.switch]?1:0]:this.act[e]}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},"68b8":function(e,t,a){"use strict";a("ee30")},"68d5":function(e,t,a){"use strict";a("eca7")},"694c":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件入库",use:"icon-备件入库-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件入库"><defs><style type="text/css"></style></defs><path d="M852.8 948.1H666.3c-18.3 0-33.2-14.6-33.2-32.6s14.8-32.6 33.2-32.6h184.4V369.5L505.3 137.1 155.4 381.8v162.8c0 18-14.8 32.6-33.2 32.6-18.3 0-33.2-14.6-33.2-32.6V380.7c0-20.4 10.1-39.6 27-51.4l352-246c21.9-15.3 51.4-15.6 73.6-0.7l347.6 233.7c17.5 11.8 27.9 31.2 27.9 52.1V885c0 34.8-28.9 63.1-64.3 63.1z" p-id="5673" fill="#ffffff" /><path d="M490.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="5674" fill="#ffffff" /><path d="M383.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="5675" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"69a0":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:!1,type:"year",placeholder:"选择年",format:"yyyy","value-format":"yyyy"},on:{change:e.changeYear},model:{value:e.table.get_table_dataParm.parammaps.year,callback:function(t){e.$set(e.table.get_table_dataParm.parammaps,"year",t)},expression:"table.get_table_dataParm.parammaps.year"}}),e._v(" "),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"90px"},attrs:{type:"month",placeholder:"选择月",format:"MM","value-format":"MM"},model:{value:e.month,callback:function(t){e.month=t},expression:"month"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",filterable:"",placeholder:"设备类别"},on:{change:e.changeEqClassName},model:{value:e.table.get_table_dataParm.parammaps.eqClassName,callback:function(t){e.$set(e.table.get_table_dataParm.parammaps,"eqClassName",t)},expression:"table.get_table_dataParm.parammaps.eqClassName"}},e._l(e.equipmentCategoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.typeName}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{disabled:e.table.isChart&&"2"==e.checkDepartment,multiple:"",clearable:"",filterable:"",placeholder:"牧场"},on:{change:e.changeEqClassName},model:{value:e.table.get_table_dataParm.PastureName,callback:function(t){e.$set(e.table.get_table_dataParm,"PastureName",t)},expression:"table.get_table_dataParm.PastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{disabled:e.table.isChart&&"1"==e.checkPasture,multiple:"",clearable:"",filterable:"",placeholder:"部门"},on:{change:e.changeEqClassName},model:{value:e.table.get_table_dataParm.DepartmentName,callback:function(t){e.$set(e.table.get_table_dataParm,"DepartmentName",t)},expression:"table.get_table_dataParm.DepartmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),e.table.isChart?a("el-radio",{attrs:{label:"1"},on:{change:e.changeRadio},model:{value:e.checkPasture,callback:function(t){e.checkPasture=t},expression:"checkPasture"}},[e._v("牧场")]):e._e(),e._v(" "),e.table.isChart?a("el-radio",{attrs:{label:"2"},on:{change:e.changeRadio},model:{value:e.checkDepartment,callback:function(t){e.checkDepartment=t},expression:"checkDepartment"}},[e._v("部门")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"success",icon:"el-icon-download"},on:{click:function(t){return e.handleExport("table")}}},[e._v("导出")])],1),e._v(" "),e.table.isTable?a("div",{staticClass:"table"},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleSwitchChart("table")}}},[e._v("切换图表")]),e._v(" "),a("h4",[e._v("维修费用(元)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}],null,!1,3102377709)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.handleEquipment(s)}}},[e._v(e._s(s.eqClassName))])]}}],null,!1,1037839707)}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用(元)","min-width":"110px",align:"center",sortable:"",prop:"psum"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修设备数量","min-width":"110px",align:"center",sortable:"",prop:"eqcodes"}}),e._v(" "),a("el-table-column",{attrs:{label:"平均维修费(元)","min-width":"110px",align:"center",sortable:"",prop:"avgsum"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.get_table_dataParm.offset,limit:e.table.get_table_dataParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.get_table_dataParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.get_table_dataParm,"pagecount",t)},pagination:e.get_table_data}})],1):e._e(),e._v(" "),e.table.isChart?a("div",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleSwitchTable("table")}}},[e._v("切换表格")])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1)],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.equipment.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.equipment,"dialogFormVisible",t)}}},[e.equipment.isTable?a("div",{staticClass:"table"},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("equipment")}}},[e._v("导出")]),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleSwitchChart("equipment")}}},[e._v("切换图表")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipment.listLoading,expression:"equipment.listLoading"}],key:e.equipment.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipment.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle2},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.handlePasture(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,743620171)}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用(元)","min-width":"110px",align:"center",sortable:"",prop:"psum"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修设备数量","min-width":"110px",align:"center",sortable:"",prop:"eqcodes"}}),e._v(" "),a("el-table-column",{attrs:{label:"平均维修费(元)","min-width":"110px",align:"center",sortable:"",prop:"avgsum"}})],1)],1):e._e(),e._v(" "),e.equipment.isChart?a("div",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleSwitchTable("equipment")}}},[e._v("切换表格")])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"equipmentBarChart1"}})])],1)],1):e._e()]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.pasture.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.pasture,"dialogFormVisible",t)}}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备名称"},model:{value:e.pasture.get_table_dataParm.parammaps.eqName,callback:function(t){e.$set(e.pasture.get_table_dataParm.parammaps,"eqName",t)},expression:"pasture.get_table_dataParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.pasture.get_table_dataParm.parammaps.assetCode,callback:function(t){e.$set(e.pasture.get_table_dataParm.parammaps,"assetCode",t)},expression:"pasture.get_table_dataParm.parammaps.assetCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"300px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"领用开始日期","end-placeholder":"领用结束日期"},model:{value:e.pasture.get_table_dataParm.parammaps.inputDatetime,callback:function(t){e.$set(e.pasture.get_table_dataParm.parammaps,"inputDatetime",t)},expression:"pasture.get_table_dataParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"success",icon:"el-icon-download"},on:{click:function(t){return e.handleExport("pasture")}}},[e._v("导出")])],1),e._v(" "),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pasture.listLoading,expression:"pasture.listLoading"}],key:e.pasture.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.pasture.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pasture.pageNum-1)*e.pasture.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号","min-width":"110px",align:"center",prop:"assetCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"110px",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备规格","min-width":"110px",align:"center",prop:"eqSpecification"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期","min-width":"110px",align:"center",prop:"receiveTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center",prop:"unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量","min-width":"110px",align:"center",sortable:"",prop:"checkoutNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"退库数量","min-width":"110px",align:"center",sortable:"",prop:"quitNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",sortable:"",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",sortable:"",prop:"sumPrice"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.pasture.total>0,expression:"pasture.total>0"}],attrs:{total:e.pasture.total,page:e.pasture.get_table_dataParm.offset,limit:e.pasture.get_table_dataParm.pagecount},on:{"update:page":function(t){return e.$set(e.pasture.get_table_dataParm,"offset",t)},"update:limit":function(t){return e.$set(e.pasture.get_table_dataParm,"pagecount",t)},pagination:e.getPastureList}})],1)])],1)},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("333d"),o=a("2934"),p=a("ed08"),m=a("a78e"),c=a.n(m);a("817d");var d={name:"MaintenanceCategoryAnalysis",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"geteqclasslistSection",offset:0,pagecount:0,returntype:"Map",parammaps:{section:"3"}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart3",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}}],equipmentCategoryList:[],findAllPasture:[],findAllDepart:[],month:new Date,table:{tableKey:0,listLoading:!0,list:[],total:0,get_table_dataParm:{name:"geteqclassFeeSum",page:1,offset:1,pagecount:10,returntype:"Map",PastureName:[],DepartmentName:[],parammaps:{year:Object(p["e"])(new Date,"{y}"),month:Object(p["e"])(new Date,"{m}"),eqClassName:"",PastureName:"",DepartmentName:""}},getBarChartParm:{name:"geteqclassSumMonthWater",parammaps:{receiveTime:"2021-03",pastureName:c.a.get("pasturename"),deptName:"牧场办公室"}},barChart:null,isTable:!0,isChart:!1},deptment:"维修处",dialogStatus:"",equipment:{dialogFormVisible:!1,tableKey:1,listLoading:!0,list:[],total:0,get_table_dataParm:{name:"geteqclassFeeSumPasture",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{year:"",month:"",eqClassName:""}},getBarChartParm:{name:"geteqclassSumMonthWater",parammaps:{receiveTime:"2021-03",pastureName:c.a.get("pasturename"),deptName:"牧场办公室",PastureName:"",DepartmentName:""}},barChart:null,isTable:!0,isChart:!1},pasture:{dialogFormVisible:!1,tableKey:2,listLoading:!0,list:[],total:0,get_table_dataParm:{name:"geteqclassFeeSumPastureDetail",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{year:"",month:"",pastureName:"",assetCode:"",eqName:"",eqClassName:"",inputDatetime:"",startTime:"",stopTime:""}}},textMap:{equipment:"牧场维修费",pasture:"牧场"},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,checkPasture:"",checkDepartment:"",getPastureidParm:{name:"getPastureid"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},watch:{month:{deep:!0,handler:function(e,t){this.month=null==e?"":e,this.table.get_table_dataParm.offset=1,this.table.get_table_dataParm.parammaps.month=this.month,this.get_table_data()}}},created:function(){this.get_select_list(),this.get_table_data()},mounted:function(){},methods:{tableSort1:function(e){Object(p["f"])(e,this.table.list)},tableSort2:function(e){Object(p["f"])(e,this.equipment.list)},tableSort3:function(e){Object(p["f"])(e,this.pasture.list)},getPastureid:function(){var e=this;Object(o["e"])(this.getPastureidParm).then((function(t){null!==t.data.list&&(e.requestParams[2].parammaps.pastureId=t.data.list[0].id,e.get_select_list())}))},get_select_list:function(){var e=this;Object(o["f"])(this.requestParams).then((function(t){e.equipmentCategoryList=t.data.geteqclasslistSection.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart3.list}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);if(null!==t.eqClassName&&3==a||null!==t.pastureName&&3==a)return{textDecoration:"underline"}},tableCellStyle2:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);if(null!==t.eqClassName&&1==a||null!==t.pastureName&&1==a)return{textDecoration:"underline"}},handleSwitchChart:function(e){"table"==e?(this.table.isChart=!0,this.table.isTable=!1,this.table.get_table_dataParm.PastureName.length>0&&this.table.get_table_dataParm.DepartmentName.length>0?(console.log(this.table.get_table_dataParm.PastureName),this.table.get_table_dataParm.DepartmentName=[],this.table.get_table_dataParm.parammaps.DepartmentName="",this.checkPasture="1",this.checkDepartment=""):this.table.get_table_dataParm.PastureName.length>0&&0==this.table.get_table_dataParm.DepartmentName.length?(this.checkPasture="1",this.checkDepartment=""):0==this.table.get_table_dataParm.PastureName.length&&this.table.get_table_dataParm.DepartmentName.length>0?(this.checkPasture="",this.checkDepartment="2"):(this.checkPasture="1",this.checkDepartment=""),this.getTableBarChart()):"equipment"==e&&(this.equipment.isChart=!0,this.equipment.isTable=!1,this.getEquipmentBarChart())},changeRadio:function(e){console.log("item==>",e),1==e?(this.checkPasture="1",this.checkDepartment="",this.table.get_table_dataParm.DepartmentName=[]):(this.checkPasture="",this.checkDepartment="2",this.table.get_table_dataParm.PastureName=[]),this.getTableBarChart()},handleSwitchTable:function(e){"table"==e?(this.table.isChart=!1,this.table.isTable=!0,this.get_table_data()):"equipment"==e&&(this.equipment.isChart=!1,this.equipment.isTable=!0,this.getEquipmentList())},handleExport:function(e){var t=this;if("table"==e){this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var a=setInterval((function(){t.percentage+=5,t.percentage>95&&(t.percentage=99,clearInterval(a)),t.percentage=t.percentage}),1e3);this.downLoadParm=this.table.get_table_dataParm,this.downLoadParm.pagecount=0,Object(o["e"])(this.downLoadParm).then((function(e){t.table.get_table_dataParm.pagecount=10,t.downLoadList=e.data.list,""!==e.data.list&&(t.percentage=99,setTimeout((function(){t.isPercentage=!1}),2e3));var a=[];t.table.get_table_dataParm.DepartmentName.length>0?(console.log(1111),a=[{tHeader:["牧场","部门","设备类别","维修费用(元)","维修设备数量","平均维修费(元)"],filterVal:["pastureName","departmentName","eqClassName","psum","eqcodes","avgsum"],tableDatas:t.downLoadList,sheetName:"sheet"}]):(console.log(222),a=[{tHeader:["牧场","设备类别","维修费用(元)","维修设备数量","平均维修费(元)"],filterVal:["pastureName","eqClassName","psum","eqcodes","avgsum"],tableDatas:t.downLoadList,sheetName:"sheet"}]),Object(p["d"])(a,"维修费用",!0,"xlsx")}))}else if("equipment"==e){this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;a=setInterval((function(){t.percentage+=5,t.percentage>95&&(t.percentage=99,clearInterval(a)),t.percentage=t.percentage}),1e3);this.downLoadParm=this.equipment.get_table_dataParm,this.downLoadParm.pagecount=0,Object(o["e"])(this.downLoadParm).then((function(e){t.equipment.get_table_dataParm.pagecount=10,t.downLoadList=e.data.list,""!==e.data.list&&(t.percentage=99,setTimeout((function(){t.isPercentage=!1}),2e3));var a=[{tHeader:["牧场","维修费用(元)","维修设备数量","平均维修费(元)"],filterVal:["pastureName","psum","eqcodes","avgsum"],tableDatas:t.downLoadList,sheetName:"sheet"}];Object(p["d"])(a,t.textMap.equipment,!0,"xlsx")}))}else if("pasture"==e){this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;a=setInterval((function(){t.percentage+=5,t.percentage>95&&(t.percentage=99,clearInterval(a)),t.percentage=t.percentage}),1e3);this.downLoadParm=this.pasture.get_table_dataParm,this.downLoadParm.pagecount=0,Object(o["e"])(this.downLoadParm).then((function(e){t.pasture.get_table_dataParm.pagecount=10,t.downLoadList=e.data.list,""!==e.data.list&&(t.percentage=99,setTimeout((function(){t.isPercentage=!1}),2e3));var a=[{tHeader:["资产编号","设备名称","设备内部编号","设备规格","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["assetCode","eqName","eqCode","eqSpecification","receiveTime","deptName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:t.downLoadList,sheetName:"sheet"}];Object(p["d"])(a,t.textMap.pasture,!0,"xlsx")}))}},changeYear:function(){this.table.get_table_dataParm.offset=1,this.get_table_data(),this.getTableBarChart()},changeEqClassName:function(){this.table.get_table_dataParm.offset=1,this.get_table_data(),this.getTableBarChart()},get_table_data:function(){var e=this;this.table.listLoading=!0,this.table.get_table_dataParm.parammaps.PastureName=this.table.get_table_dataParm.PastureName.join(),this.table.get_table_dataParm.parammaps.DepartmentName=this.table.get_table_dataParm.DepartmentName.join(),Object(o["e"])(this.table.get_table_dataParm).then((function(t){null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize):(e.table.list=[],e.table.pageNum=0,e.table.pageSize=0),e.table.total=t.data.total,setTimeout((function(){e.table.listLoading=!1}),100)}))},getTableBarChart:function(){var e=this;this.table.getBarChartParm=this.table.get_table_dataParm,this.table.getBarChartParm={},this.table.getBarChartParm.name=this.table.get_table_dataParm.name,this.table.getBarChartParm.page=this.table.get_table_dataParm.page,this.table.getBarChartParm.offset=this.table.get_table_dataParm.offset,this.table.getBarChartParm.pagecount=this.table.get_table_dataParm.pagecount,this.table.getBarChartParm.returntype=this.table.get_table_dataParm.returntype,this.table.getBarChartParm.parammaps={},this.table.getBarChartParm.parammaps.year=this.table.get_table_dataParm.parammaps.year,this.table.getBarChartParm.parammaps.month=this.table.get_table_dataParm.parammaps.month,this.table.getBarChartParm.parammaps.eqClassName=this.table.get_table_dataParm.parammaps.eqClassName,this.table.getBarChartParm.parammaps.PastureName=this.table.get_table_dataParm.parammaps.PastureName,this.table.getBarChartParm.parammaps.DepartmentName=this.table.get_table_dataParm.parammaps.DepartmentName,Object(o["h"])(this.table.getBarChartParm).then((function(t){null!==t.data?e.table.chart_data=t.data.chart_data:e.table.chart_data=[],e.roadTableBarChart(e.table.chart_data,e.deptment)}))},roadTableBarChart:function(e,t){null!=this.table.barChart&&this.table.barChart.dispose(),this.table.barChart=n.a.init(document.getElementById("barChart1"));var a={title:{text:"集团设备类别维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[""],x:"right"},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.data2,name:"设备类别"}],yAxis:[{type:"value",name:"维修费用(元)",axisLabel:{formatter:"{value}"}}],series:[{name:"维修费用",type:"bar",data:e.data1,barWidth:14,emphasis:{label:{show:!0,position:"inside"}}}]};this.table.barChart.setOption(a),window.onresize=function(){this.table.barChart.resize()}},handleEquipment:function(e){this.equipment.dialogFormVisible=!0,this.equipment.isChart=!1,this.equipment.isTable=!0,this.textMap.equipment="牧场维修费 "+e.eqClassName,this.dialogStatus="equipment",this.equipment.get_table_dataParm.parammaps.year=this.table.get_table_dataParm.parammaps.year,this.equipment.get_table_dataParm.parammaps.month=this.table.get_table_dataParm.parammaps.month,this.equipment.get_table_dataParm.parammaps.eqClassName=e.eqClassName,this.getEquipmentList()},getEquipmentList:function(){var e=this;this.equipment.listLoading=!0,Object(o["e"])(this.equipment.get_table_dataParm).then((function(t){null!==t.data.list?(e.equipment.list=t.data.list,t.data.total&&(e.equipment.total=t.data.total)):e.equipment.list=[],setTimeout((function(){e.equipment.listLoading=!1}),100)}))},getEquipmentBarChart:function(){var e=this;this.equipment.getBarChartParm=this.equipment.get_table_dataParm,Object(o["h"])(this.equipment.getBarChartParm).then((function(t){e.equipment.chart_data=t.data.chart_data,e.roadEquipmentBarChart(e.equipment.chart_data,e.equipment.getBarChartParm.parammaps.eqClassName)}))},roadEquipmentBarChart:function(e,t){null!=this.equipment.barChart&&this.equipment.barChart.dispose(),this.equipment.barChart=n.a.init(document.getElementById("equipmentBarChart1"));var a={title:{text:t+"各牧场维修费用",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:[""],x:"right"},color:["#769cfc"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.data2,name:"牧场"}],yAxis:[{type:"value",name:"维修费用(元)",axisLabel:{formatter:"{value}"}}],series:[{name:"维修费用",type:"bar",barWidth:14,data:e.data1,emphasis:{label:{show:!0,position:"inside"}}}]};this.equipment.barChart.setOption(a),window.onresize=function(){this.equipment.barChart.resize()}},handlePasture:function(e){this.pasture.dialogFormVisible=!0,this.textMap.pasture=e.pastureName+"——"+e.eqClassName+"维修明细",this.dialogStatus="pasture",this.pasture.get_table_dataParm.offset=1,this.pasture.get_table_dataParm.parammaps.year=this.equipment.get_table_dataParm.parammaps.year,this.pasture.get_table_dataParm.parammaps.month=this.equipment.get_table_dataParm.parammaps.month,this.pasture.get_table_dataParm.parammaps.pastureName=e.pastureName,this.pasture.get_table_dataParm.parammaps.eqClassName=e.eqClassName,this.pasture.get_table_dataParm.parammaps.inputDatetime="",this.pasture.get_table_dataParm.parammaps.startTime="",this.pasture.get_table_dataParm.parammaps.stopTime="",this.pasture.get_table_dataParm.parammaps.assetCode="",this.pasture.get_table_dataParm.parammaps.eqName="",this.getPastureList()},getPastureList:function(){var e=this;this.pasture.listLoading=!0,null==this.pasture.get_table_dataParm.parammaps.inputDatetime?this.pasture.get_table_dataParm.parammaps.inputDatetime="":(this.pasture.get_table_dataParm.parammaps.startTime=this.pasture.get_table_dataParm.parammaps.inputDatetime[0],this.pasture.get_table_dataParm.parammaps.stopTime=this.pasture.get_table_dataParm.parammaps.inputDatetime[1]),Object(o["e"])(this.pasture.get_table_dataParm).then((function(t){null!==t.data.list?(e.pasture.list=t.data.list,e.pasture.pageNum=t.data.pageNum,e.pasture.pageSize=t.data.pageSize,t.data.total&&(e.pasture.total=t.data.total)):e.pasture.list=[],setTimeout((function(){e.pasture.listLoading=!1}),100)}))},handleSearch:function(){this.pasture.listLoading=!0,null==this.pasture.get_table_dataParm.parammaps.inputDatetime?this.pasture.get_table_dataParm.parammaps.inputDatetime="":(this.pasture.get_table_dataParm.parammaps.startTime=this.pasture.get_table_dataParm.parammaps.inputDatetime[0],this.pasture.get_table_dataParm.parammaps.stopTime=this.pasture.get_table_dataParm.parammaps.inputDatetime[1]),this.pasture.get_table_dataParm.offset=1,this.getPastureList()}}},u=d,h=(a("5c78"),a("29d4"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"eb09a706",null);t["default"]=g.exports},"69ca":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件收发明细",use:"icon-备件收发明细-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件收发明细"><defs><style type="text/css"></style></defs><path d="M359.936 592.896c-6.656 0-13.312-2.56-17.92-7.68L249.344 492.544c-10.24-10.24-10.24-26.112 0-36.352s26.112-10.24 36.352 0l74.752 74.752 74.24-74.24c9.728-10.24 26.112-10.24 36.352 0 10.24 9.728 10.24 26.112 0 36.352l-92.16 92.672c-5.632 4.608-12.288 7.168-18.944 7.168zM765.44 442.88c-6.656 0-12.8-2.56-17.92-7.68l-74.752-74.24L598.528 435.2c-10.24 10.24-26.112 10.24-36.352 0s-10.24-26.112 0-36.352l92.16-92.16c9.728-9.728 26.112-10.24 36.352 0L783.36 399.36c10.24 9.728 10.24 26.112 0 36.352-4.608 4.608-11.264 7.168-17.92 7.168z" p-id="26121" fill="#ffffff" /><path d="M508.416 936.448c-6.656 0-13.312-2.56-17.92-7.68L349.696 788.48H29.696c-14.336 0-25.6-11.264-25.6-25.6V112.64c0-14.336 11.264-25.6 25.6-25.6h957.44c14.336 0 25.6 11.264 25.6 25.6v650.24c0 14.336-11.264 25.6-25.6 25.6h-320l-140.288 140.288c-5.12 5.12-11.776 7.68-18.432 7.68zM55.296 737.28h305.152c6.656 0 13.312 2.56 17.92 7.68l130.048 130.048 130.048-130.048c4.608-4.608 11.264-7.68 17.92-7.68h305.152V138.24h-906.24v599.04z" p-id="26122" fill="#ffffff" /><path d="M359.936 546.816c-14.336 0-25.6-11.264-25.6-25.6V281.6c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v239.616c0 14.336-11.264 25.6-25.6 25.6zM672.768 631.296c-14.336 0-25.6-11.264-25.6-25.6V366.08c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v239.616c0 14.336-11.264 25.6-25.6 25.6z" p-id="26123" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"69dd":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-input",{staticStyle:{"margin-bottom":"30px"},attrs:{placeholder:"Filter keyword"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),e._v(" "),a("el-tree",{ref:"tree2",staticClass:"filter-tree",attrs:{data:e.data2,props:e.defaultProps,"filter-node-method":e.filterNode,"default-expand-all":""}})],1)},i=[],r={data:function(){return{filterText:"",data2:[{id:1,label:"Level one 1",children:[{id:4,label:"Level two 1-1",children:[{id:9,label:"Level three 1-1-1"},{id:10,label:"Level three 1-1-2"}]}]},{id:2,label:"Level one 2",children:[{id:5,label:"Level two 2-1"},{id:6,label:"Level two 2-2"}]},{id:3,label:"Level one 3",children:[{id:7,label:"Level two 3-1"},{id:8,label:"Level two 3-2"}]}],defaultProps:{children:"children",label:"label"}}},watch:{filterText:function(e){this.$refs.tree2.filter(e)}},methods:{filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},"6a3f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"领用单号"},model:{value:e.getdataListParm.parammaps.applyCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyCode",t)},expression:"getdataListParm.parammaps.applyCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用类型"},model:{value:e.getdataListParm.parammaps.applyType,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyType",t)},expression:"getdataListParm.parammaps.applyType"}},e._l(e.collarType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"单据状态"},model:{value:e.getdataListParm.parammaps.bstatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"bstatue",t)},expression:"getdataListParm.parammaps.bstatue"}},e._l(e.applystatueList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isReceiveAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isReceiveExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号",align:"center","min-width":"150px",prop:"applyCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用类型","min-width":"90px",align:"center",formatter:e.applyType}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center","min-width":"100px",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",align:"center","min-width":"100px",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用人",align:"center","min-width":"100px",prop:"empname"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",align:"center","min-width":"100px",sortable:"",prop:"createDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"90px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"90px",align:"center",formatter:e.applystatue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isReceiveSee?a("el-button",{staticStyle:{width:"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),!e.isReceiveUpdate||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus&&10!=s.SHStatus?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),!e.isContractExamineBM||2!=s.SHStatus||s.departmentId!=e.getdataListParm.parammaps.logindeptId&&0==e.depids.filter((function(e){return e==s.departmentId})).length?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isContractExamineSBCZ&&3==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]),e._v(" "),e.isContractExamineCZZL&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]),e._v(" "),e.isContractExamineCZ&&7==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine4(s)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine4(s)}}},[e._v("审核4")]),e._v(" "),!e.isReceiveDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus&&10!=s.SHStatus?e._e():a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]),e._v(" "),1===s.statue&&e.isReceiveDelete?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e(),e._v(" "),e.isReceiveClose&&9==s.SHStatus&&s.statue<2?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleCustomsDeclaration(s)}}},[e._v("关单")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleCustomsDeclaration(s)}}},[e._v("关单")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"==e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门",disabled:"update"==e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用类型:",prop:"applyType"}},[a("el-radio-group",{attrs:{disabled:"update"==e.dialogStatus},on:{change:e.changeType},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[a("el-radio",{attrs:{label:1},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("维修")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("保养")]),e._v(" "),"create"!==e.dialogStatus?a("el-radio",{attrs:{label:0},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("非维保")]):e._e()],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用人",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"领用日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.createDate,callback:function(t){e.$set(e.createTemp,"createDate",t)},expression:"createTemp.createDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),e._v("\n |  "),a("b",[e._v("品牌:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.brand))]),e._v("\n |  "),a("b",[e._v("库存:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.reportery))])]}}]),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqName(a,t.row)},blur:function(a){e.blurSelectEqName(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}],null,!1,3705543158)}):e._e(),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCode(a,t.row)},blur:function(a){e.blurSelectEqCode(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}],null,!1,1794399390)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"库存数量",prop:"reportery",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},on:{blur:function(a){e.blurAmount(a,t.row)}},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.amount))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.applyCode,callback:function(t){e.$set(e.seeTemp,"applyCode",t)},expression:"seeTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"empname"}},[a("el-input",{ref:"empname",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-input",{ref:"createDate",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.createDate,callback:function(t){e.$set(e.seeTemp,"createDate",t)},expression:"seeTemp.createDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用类型:",prop:"applyType"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.applyType,callback:function(t){e.$set(e.seeTemp,"applyType",t)},expression:"seeTemp.applyType"}})],1)],1)],1),e._v(" "),"维修"==e.seeTemp.applyType?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"RUCode"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.RUCode,callback:function(t){e.$set(e.seeTemp,"RUCode",t)},expression:"seeTemp.RUCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:" detail"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.detail,callback:function(t){e.$set(e.seeTemp," detail",t)},expression:"seeTemp. detail"}})],1)],1)],1):e._e(),e._v(" "),"保养"==e.seeTemp.applyType?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"RUCode"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.RUCode,callback:function(t){e.$set(e.seeTemp,"RUCode",t)},expression:"seeTemp.RUCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备编号","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"库存数量",sortable:"",prop:"reportery",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"amount","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已出库数量",sortable:"",prop:"useAmount",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useAmount))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("h3",[e._v("流程进度:")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isContractExamineBM&&2==e.seeTemp.SHStatus&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]),e._v(" "),e.isContractExamineSBCZ&&3==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("审核2")]),e._v(" "),e.isContractExamineCZZL&&5==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核3")]),e._v(" "),e.isContractExamineCZ&&7==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine4()}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine4()}}},[e._v("审核4")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statueSH,callback:function(t){e.$set(e.examineTemp,"statueSH",t)},expression:"examineTemp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),"examine4"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData4()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("28a5"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Receive",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{findAllPasture:[],findAllDepart:[],findAllEmploye:[],createDepartList:[],edit:0,requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},dialogFormVisible:!1,dialogStatus:"",isReceiveUpdate:[],isReceiveAdd:[],isReceiveTemplate:[],isReceiveImport:[],isReceiveExport:[],isReceiveSee:[],isReceiveDelete:[],isContractExamineBM:[],isContractExamineSBCZ:[],isContractExamineCZZL:[],isContractExamineCZ:[],isReceiveClose:[],isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{see:"查看详情",create:"新增",examine:"审核",examine2:"审核",examine3:"审核",update:"编辑"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],applystatueList:[{id:"0",name:"正常"},{id:"1",name:"已关闭"}],collarType:[{id:"0",name:"非维保"},{id:"1",name:"维修"},{id:"2",name:"保养"}],radioAll:"全部",getdataListParm:{name:"getBigpartapplyList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),applyCode:this.$route.query.applyCode,applyType:"",statue:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogFormVisible_See:!1,seeTemp:[],listSee:[],totalSee:0,getdataListSee:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},noMaintenance:!0,repair:!1,maintain:!1,No1:!0,createTemp:{applyType:1,empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,createDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),departmentId:this.$store.state.user.departmentid},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"LY"}},orderPart:{},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},EqCodeList:[],postDataPramas:{},activeList:[],active:3,dialogFormVisible_Examine:!1,examineTemp:{},isStatueReason:!1,requestParam:{},buttons:[],downloadParam:{},isPercentage:!1,percentage:1,TotalAmount:0,pending:{total:0,getdataListParm:{name:"getPartapplyWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},depids:[]}},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.amount)>parseFloat(e.reportery)&&(e.amount=e.reportery)}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){void 0!==c.a.get("depids")?this.depids=c.a.get("depids").split(","):this.depids=[];var e="customs:basic:update",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isReceiveUpdate=t;var a="customs:receive:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isReceiveAdd=s;var i="customs:receive:template",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isReceiveTemplate=n;var l="customs:receive:import",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isReceiveImport=o;var p="customs:receive:export",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isReceiveExport=m;var d="customs:receive:see",u=Object(r["v"])(this.$store.state.user.buttons,d);this.isReceiveSee=u;var h="customs:receive:delete",g=Object(r["v"])(this.$store.state.user.buttons,h);this.isReceiveDelete=g;var f="customs:receive:examineBM",b=Object(r["v"])(this.$store.state.user.buttons,f);this.isContractExamineBM=b;var v="customs:receive:examineSBCZ",y=Object(r["v"])(this.$store.state.user.buttons,v);this.isContractExamineSBCZ=y;var _="customs:receive:examineCZZL",w=Object(r["v"])(this.$store.state.user.buttons,_);this.isContractExamineCZZL=w;var S="customs:receive:examineCZ",P=Object(r["v"])(this.$store.state.user.buttons,S);this.isContractExamineCZ=P;var x="customs:receive:close",T=Object(r["v"])(this.$store.state.user.buttons,x);this.isReceiveClose=T},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.applyType=this.getdataListParm.parammaps.applyType,this.pending.getdataListParm.parammaps.statue=this.getdataListParm.parammaps.statue,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigpartapplyList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),applyCode:"",applyType:"",statue:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",menu:"Receive",loginId:c.a.get("employeid"),logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getPartapplyWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,applyCode:this.getdataListParm.parammaps.applyCode,applyType:this.getdataListParm.parammaps.applyType,statue:this.getdataListParm.parammaps.statue,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getPartapplyWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,applyCode:this.getdataListParm.parammaps.applyCode,applyType:this.getdataListParm.parammaps.applyType,statue:this.getdataListParm.parammaps.statue,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},applyType:function(e){return"0"===e.applyType?"非维保":"1"===e.applyType?"维修":"2"===e.applyType?"保养":void 0},SHStatus:function(e){return"2"==e.SHStatus||"3"==e.SHStatus?"审核中":"4"==e.SHStatus?"未通过":"5"==e.SHStatus?"审核中":"6"==e.SHStatus?"未通过":"7"==e.SHStatus?"审核中":"8"==e.SHStatus?"未通过":"9"==e.SHStatus?"已通过":"10"==e.SHStatus?"未通过":void 0},applystatue:function(e){return"0"==e.applystatue?"正常":"1"==e.applystatue?"已关闭":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},changeStatue:function(e){console.log(e),this.isStatueReason=2==e},form_see:function(e){this.TotalAmount=0,this.seeTemp=Object.assign({},e),"0"===e.applyType?(this.seeTemp.applyType="非维保",this.No1=!1):"1"===e.applyType?(this.seeTemp.applyType="维修",this.No1=!0):(this.seeTemp.applyType="保养",this.No1=!0),this.dialogStatus="see",this.dialogFormVisible_See=!0,this.getdataListSee.parammaps.id=e.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;this.seeTemp.sumPrices<=500&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=1):3===this.seeTemp.SHStatus||4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=2):(9===this.seeTemp.SHStatus||6===this.seeTemp.SHStatus)&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=3)),this.seeTemp.sumPrices>500&&this.seeTemp.sumPrices<=3e3&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"}],this.active=2):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):6===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3)),this.seeTemp.sumPrices>3e3&&this.seeTemp.sumPrices<=1e4&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=2):5===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核"}],this.active=3):6===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"设备助理审核"}],this.active=3):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=4):8===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=4)),this.seeTemp.sumPrices>1e4&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=2):5===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核"},{title:"场长审核"}],this.active=3):6===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"设备助理审核"},{title:"场长审核"}],this.active=3):7===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核"}],this.active=4):8===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t},{title:"场长审核"}],this.active=4):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核",date:this.seeTemp.CZChargeDate,name:this.seeTemp.CZChargePerson}],this.active=5):10===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核",date:this.seeTemp.CZChargeDate,name:this.seeTemp.CZChargePerson,status:"error",reason:t}],this.active=5))},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list,null!==t.data.list){for(var a=0;a<e.listAdd.length;a++)console.log(t.data.list[a].sumPrice),e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),e.listAdd[a].brand=e.listAdd[a].brandName;e.TotalAmount=e.TotalAmount.toFixed(2)}if(null!==t.data.list)for(var s=0;s<t.data.list.length;s++)null!==t.data.list[s].srcpath&&null!==t.data.list[s].picpath&&void 0!==t.data.list[s].srcpath&&void 0!==t.data.list[s].picpath?(e.listSee[s].srcpath="http://127.0.0.1:8082/"+t.data.list[s].srcpath,e.listSee[s].picpath="http://127.0.0.1:8082/"+t.data.list[s].picpath):(e.listSee[s].srcpath="",e.listSee[s].picpath="");setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCreateTemp:function(){this.createTemp.applyType=1,this.No1=!0,this.createTemp.useType=1,this.createTemp.empId=parseInt(c.a.get("employeid")),this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.receiveTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.applyCode="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.employeId=this.$store.state.user.employeid,console.log(this.createTemp),this.TotalAmount=0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps.pastureId=this.createTemp.pastureId,this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.push(e))},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqName:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqName:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCode:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},changeType:function(e){this.No1=1===e||2===e},blurAmount:function(e,t){console.log(e,t),this.TotalAmount=0,this.$set(t,"sumPrice",(parseFloat(t.price)*parseFloat(t.amount)).toFixed(2)),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].sumPrice);this.TotalAmount=this.TotalAmount.toFixed(2)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.applyCode||null==e.createTemp.applyCode||void 0==e.createTemp.applyCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){var t=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(0===this.createTemp.applyType)for(var a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].amount||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}else for(a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].eqName||null==this.listAdd[a].eqCode||null==this.listAdd[a].amount||""===this.listAdd[a].eqName||""===this.listAdd[a].eqCode||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查备件名称或设备内部编号或领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var s=0,i=0;i<this.listAdd.length;i++)s+=parseFloat(this.listAdd[i].price)*parseFloat(this.listAdd[i].amount);return this.createTemp.SHStatus=s>500?2:9,this.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:this.createTemp.pastureId,applyCode:this.createTemp.applyCode,applyType:this.createTemp.applyType,departmentId:this.createTemp.departmentId,empId:this.createTemp.empId,applyDate:this.createTemp.createDate,SHStatus:this.createTemp.SHStatus}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigpartapply",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletepartapply",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDownload:function(){var e=this;this.$alert("备件领用正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadpartapply",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){if(null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"price",parseFloat(t.data.list[a].price)),e.$set(t.data.list[a],"sumPrice",parseFloat(t.data.list[a].sumPrice)),e.$set(t.data.list[a],"amount",parseFloat(t.data.list[a].amount))}e.$nextTick((function(){var e=[{tHeader:["牧场名称","领用单编号","领用申请日期","物料编码","品名","规格型号","品牌","计量单位","领用数量","单价","总价","设备名称","牧场设备编号","领用类型(0非维保,1维修,2保养)","领用部门","领用人"],filterVal:["pastureName","applyCode","createDate","partCode","partName","specification","brandName","unit","amount","price","sumPrice","eqName","eqCode","applyType","departmentName","empname"],tableDatas:t.data.list,sheetName:"备件领用"}];Object(l["d"])(e,"备件领用",!0,"xlsx")}))}))},handleExamine:function(e){console.log("点击了部门审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData:function(){var e=this;console.log("点击了部门审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=3:e.requestParam.parammaps.statue=4,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("部门审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了设备处长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了设备处长审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?parseFloat(e.examineTemp.sumPrices)<=3e3?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=5:e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("设备处长审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了场长助理审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了场长助理审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?parseFloat(e.examineTemp.sumPrices)<=1e4?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=7:e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("场长助理审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine4:function(e){console.log("点击了场长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine4",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData4:function(){var e=this;console.log("点击了场长审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge2",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=10,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("场长审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.dialogStatus="update",this.dialogFormVisible=!0,console.log(e),e.applyType=parseInt(e.applyType),this.createTemp=Object.assign({},e),this.listAdd=[],0==e.applyType&&(this.No1=!1),1!=e.applyType&&2!=e.applyType||(this.No1=!0),this.TotalAmount=0,this.getdataListSee.parammaps.id=e.id,this.getSeeList()},edit_dialog_save:function(){var e=this;if(console.log("点击了编辑"),0!==this.listAdd.length){for(var t=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].amount||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var s=0,i=0;i<this.listAdd.length;i++)s+=parseFloat(this.listAdd[i].price)*parseFloat(this.listAdd[i].amount);return this.createTemp.SHStatus=s>500?2:9,this.postDataPramas.data[0]={name:"updatepartapplyCharge",type:"e",parammaps:{id:this.createTemp.id,SHStatus:this.createTemp.SHStatus}},this.postDataPramas.data[1]={name:"deletePartapply",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartapply",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},handleCustomsDeclaration:function(e){var t=this;p["MessageBox"].confirm("是否确认关单?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"updateBigPartApplystatueV2",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.getPendingList(),t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))}}}),u=d,h=(a("ef23"),a("36a5"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"4a803979",null);t["default"]=g.exports},"6a7a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"el-item"},[a("div",{staticClass:"el-item-label"},[a("span",[e._v(e._s(e.label))])]),e._v(" "),a("div",{staticClass:"el-item-content"},[e._l(e.local,(function(t,s){return a("div",{key:s,staticClass:"el-item-value"},[a("el-form-field",{attrs:{value:e.local[s],disabled:e.disabled,item:e.item,index:s},on:{input:e.input}}),e._v(" "),a("div",{staticClass:"el-item-remove"},[a("el-button",{attrs:{icon:e.btnIcon,type:e.btnType,round:"",size:"mini"},on:{click:function(t){return e.change(s)}}})],1)],1)})),e._v(" "),e.item.asArray?a("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!disabled"}],staticClass:"el-item-add"},[a("el-button",{attrs:{type:"info"},on:{click:e.add}},[e._v("+")])],1):e._e()],2)])},i=[],r=(a("7f7f"),a("180e")),n=a("3738"),l={components:{ElFormField:r["default"]},mixins:[n["default"]],methods:{input:function(e,t){this.$set(this.local,e,t);var a=this.item.asArray?this.local:this.local[0];this.$emit("input",this.index,this.item.name,a)}}},o=l,p=(a("1056"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"527804b6",null);t["default"]=m.exports},"6b0b":function(e,t,a){},"6c5b":function(e,t,a){e.exports=a.p+"static/img/logo_u3.34a9ffae.png"},"6c85":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"SGinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"申购开始时间","end-placeholder":"申购结束时间",clearable:!1},model:{value:e.table.getdataListParm.parammaps.SGinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"SGinputDatetime",t)},expression:"table.getdataListParm.parammaps.SGinputDatetime"}}),e._v(" "),a("el-date-picker",{ref:"PDinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"配单开始时间","end-placeholder":"配单结束时间"},model:{value:e.table.getdataListParm.parammaps.PDinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"PDinputDatetime",t)},expression:"table.getdataListParm.parammaps.PDinputDatetime"}}),e._v(" "),a("el-date-picker",{ref:"CGinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"采购开始时间","end-placeholder":"采购结束时间"},model:{value:e.table.getdataListParm.parammaps.CGinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"CGinputDatetime",t)},expression:"table.getdataListParm.parammaps.CGinputDatetime"}}),e._v(" "),a("el-date-picker",{ref:"RKinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"入库开始时间","end-placeholder":"入库结束时间"},model:{value:e.table.getdataListParm.parammaps.RKinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"RKinputDatetime",t)},expression:"table.getdataListParm.parammaps.RKinputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"90px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"90px",align:"center",prop:"SGCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期","min-width":"90px",align:"center",prop:"SGdate"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"70px",align:"center",prop:"SGDays"}}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"90px",align:"center",prop:"PDCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"配单日期","min-width":"90px",align:"center",prop:"PDdate"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"70px",align:"center",prop:"PDDays"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"90px",align:"center",prop:"CGCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购日期","min-width":"90px",align:"center",prop:"CGdate"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"70px",align:"center",prop:"CGDays"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号","min-width":"90px",align:"center",prop:"RKCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库日期","min-width":"90px",align:"center",prop:"RKdate"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("a78e"),m=a.n(p),c={name:"PurchaseAndwarehousing",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAllPartProcess",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{SGTimeStart:"",SGTimeEnd:"",SGinputDatetime:[],PDTimeStart:"",PDTimeEnd:"",PDinputDatetime:[],CGTimeStart:"",CGTimeEnd:"",CGinputDatetime:[],RKTimeStart:"",RKTimeEnd:"",RKinputDatetime:[],pastureName:m.a.get("pasturename")}}},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}]}},created:function(){this.get_select_list(),this.getTimeFn()},methods:{get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list)}))},getTimeFn:function(){var e=this,t=new Date,a=new Date;t.setTime(t.getTime()-6048e5),e.table.getdataListParm.parammaps.SGinputDatetime[0]=Object(o["e"])(t,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.SGinputDatetime[1]=Object(o["e"])(a,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.SGTimeStart=e.table.getdataListParm.parammaps.SGinputDatetime[0],e.table.getdataListParm.parammaps.SGTimeEnd=e.table.getdataListParm.parammaps.SGinputDatetime[1],e.get_table_data()},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(l["e"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total,setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,""!==this.table.getdataListParm.parammaps.SGinputDatetime&&null!==this.table.getdataListParm.parammaps.SGinputDatetime?0!==this.table.getdataListParm.parammaps.SGinputDatetime.length&&(this.table.getdataListParm.parammaps.SGTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.SGinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.SGTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.SGinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.SGinputDatetime=[],this.table.getdataListParm.parammaps.SGTimeStart="",this.table.getdataListParm.parammaps.SGTimeEnd=""),""!==this.table.getdataListParm.parammaps.PDinputDatetime&&null!==this.table.getdataListParm.parammaps.PDinputDatetime?0!==this.table.getdataListParm.parammaps.PDinputDatetime.length&&(this.table.getdataListParm.parammaps.PDTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.PDinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.PDTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.PDinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.PDinputDatetime=[],this.table.getdataListParm.parammaps.PDTimeStart="",this.table.getdataListParm.parammaps.PDTimeEnd=""),""!==this.table.getdataListParm.parammaps.CGinputDatetime&&null!==this.table.getdataListParm.parammaps.CGinputDatetime?0!==this.table.getdataListParm.parammaps.CGinputDatetime.length&&(this.table.getdataListParm.parammaps.CGTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.CGinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.CGTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.CGinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.CGinputDatetime=[],this.table.getdataListParm.parammaps.CGTimeStart="",this.table.getdataListParm.parammaps.CGTimeEnd=""),""!==this.table.getdataListParm.parammaps.RKinputDatetime&&null!==this.table.getdataListParm.parammaps.RKinputDatetime?0!==this.table.getdataListParm.parammaps.RKinputDatetime.length&&(this.table.getdataListParm.parammaps.RKTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.RKinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.RKTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.RKinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.RKinputDatetime=[],this.table.getdataListParm.parammaps.RKTimeStart="",this.table.getdataListParm.parammaps.RKTimeEnd=""),this.get_table_data()},handleDownload:function(){var e=this;this.$alert("申购入库效率统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.form_search(),this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="getAllPartProcess",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","备件名称","备件编号","申购单号","申购日期","天数","配单单号","配单日期","天数","采购单号","采购日期","天数","入库单号","入库日期","天数"],filterVal:["pastureName","partName","partCode","SGCode"," SGdate","SGDays","PDCode"," PDdate","PDDays","CGCode"," CGdate","CGDays","RKCode"," RKdate","RKDays"],tableDatas:e.downLoadParm.list,sheetName:"Sheet"}];Object(o["d"])(a,"申购入库效率统计",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"6cb0":function(e,t,a){"use strict";a("2a0b")},"6cb5":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{top:"-3px"},attrs:{type:"year",placeholder:"选择年",format:"yyyy","value-format":"yyyy",clearable:!1},model:{value:e.getdataListParm.parammaps.Year,callback:function(t){e.$set(e.getdataListParm.parammaps,"Year",t)},expression:"getdataListParm.parammaps.Year"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"选择月",clearable:""},model:{value:e.getdataListParm.parammaps.Month,callback:function(t){e.$set(e.getdataListParm.parammaps,"Month",t)},expression:"getdataListParm.parammaps.Month"}},e._l(e.monthList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已消耗数量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.consumes))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已消耗总价","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"150","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-see"},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{top:"-3px"},attrs:{type:"year",placeholder:"选择年",format:"yyyy","value-format":"yyyy",clearable:!1},model:{value:e.getdataListParmSee.parammaps.Year,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"Year",t)},expression:"getdataListParmSee.parammaps.Year"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"选择月",clearable:""},model:{value:e.getdataListParmSee.parammaps.Month,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"Month",t)},expression:"getdataListParmSee.parammaps.Month"}},e._l(e.monthList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用部门"},model:{value:e.getdataListParmSee.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"departmentId",t)},expression:"getdataListParmSee.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"费用类型"},model:{value:e.getdataListParmSee.parammaps.useTypeV,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"useTypeV",t)},expression:"getdataListParmSee.parammaps.useTypeV"}},e._l(e.costTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSee}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKeySee,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用人","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联设备名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联设备编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库总价","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>=0,expression:"totalSee>=0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)])],1)},i=[],r=(a("c5f6"),a("2934")),n=a("333d"),l=a("ed08"),o=a("6724"),p=a("a78e"),m=a.n(p),c={name:"Consume",components:{Pagination:n["a"]},directives:{waves:o["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},costTypeList:[{id:"0",name:"维修"},{id:"1",name:"保养"}],monthList:[{id:"01",name:" 1月 "},{id:"02",name:" 2 月"},{id:"03",name:" 3 月"},{id:"04",name:" 4 月"},{id:"05",name:" 5 月"},{id:"06",name:" 6 月"},{id:"07",name:" 7 月"},{id:"08",name:" 8 月"},{id:"09",name:" 9 月"},{id:"10",name:" 1 0"},{id:"11",name:"1 1 月"},{id:"12",name:"12月"}],findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllDepart",offset:0,pagecount:0,params:[this.$store.state.user.pastureid]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}],getdataListParm:{name:"getPartConsume",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{Year:Object(l["e"])(new Date,"{y}"),Month:Object(l["e"])(new Date,"{m}"),month:"",pastureName:m.a.get("pasturename")}},listLoading:!1,total:0,tableKey:0,list:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,dialogFormVisible:!1,dialogStatus:"",textMap:{see:"查看"},getdataListParmSee:{name:"getPartConsumedetail",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{Month:"",Year:Object(l["e"])(new Date,"{y}"),month:"",departmentId:"",useTypeV:""}},listLoadingSee:!1,totalSee:0,tableKeySee:0,listSee:[]}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list}))},get_table_data:function(){var e=this;this.listLoading=!0,""==this.getdataListParm.parammaps.Month||null==this.getdataListParm.parammaps.Month?this.getdataListParm.parammaps.month=this.getdataListParm.parammaps.Year:this.getdataListParm.parammaps.month=this.getdataListParm.parammaps.Year+"-"+this.getdataListParm.parammaps.Month,Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total):e.list=[],setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件消耗统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getPartConsume",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["牧场","备件编号","备件名称","备件规格","备件品牌","供应商","单价","已消耗数量","已消耗总价"],filterVal:["pastureName","partCode","partName","specification","brand","providerName","price","consumes","sumPrice"],tableDatas:e.downLoadList,sheetName:"备件消耗统计"}];Object(l["d"])(a,"备件消耗统计",!0,"xlsx")}))}))},form_see:function(e){this.seeTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0,this.getdataListParmSee.parammaps.contractId=e.contractId,this.getdataListParmSee.parammaps.Month=this.getdataListParm.parammaps.Month,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;this.listLoadingSee=!0,""==this.getdataListParmSee.parammaps.Month||null==this.getdataListParmSee.parammaps.Month?this.getdataListParmSee.parammaps.month=this.getdataListParmSee.parammaps.Year:this.getdataListParmSee.parammaps.month=this.getdataListParmSee.parammaps.Year+"-"+this.getdataListParmSee.parammaps.Month,Object(r["e"])(this.getdataListParmSee).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listSee=t.data.list,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,e.totalSee=t.data.total):e.listSee=[],setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_searchSee:function(){console.log("点击了table搜索"),this.getdataListParmSee.offset=1,this.get_table_dataSee()}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"6d01":function(e,t,a){},"6d02":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}})],1)]),e._v(" "),a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"#000"}},[e._v("\n 单头牛总费用\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1),e._v(" "),a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"#000"}},[e._v("\n 单头牛水费用\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1),e._v(" "),a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"#000"}},[e._v("\n 单头牛电费用\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart3"}})])],1),e._v(" "),a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"#000"}},[e._v("\n 单头牛燃动费用\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart4"}})])],1),e._v(" "),a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"#000"}},[e._v("\n 单头牛维修费用\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart5"}})])],1),e._v(" "),a("el-dialog",{attrs:{title:e.dialogStatus,visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"lineChart"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})],1)])],1)},i=[],r=(a("7f7f"),a("ac6a"),a("313e")),n=a.n(r),l=a("ed08"),o=a("6724"),p=a("2934"),m=a("a78e"),c=a.n(m);a("817d");var d={name:"Cattle",directives:{waves:o["a"]},data:function(){return{yearDate:new Date,total:"",pasture:c.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"geteCowAllList",parammaps:{year:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart1Parm:{name:"geteCowAllMonthList",parammaps:{year:"",pastureName:c.a.get("pasturename")}},getBarChart2Parm:{name:"geteCowWaterList",parammaps:{year:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart2Parm:{name:"geteCowWaterMonthList",parammaps:{year:"",pastureName:c.a.get("pasturename")}},getBarChart3Parm:{name:"geteCowElecList",parammaps:{year:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart3Parm:{name:"geteCowElecMonthList",parammaps:{year:"",pastureName:c.a.get("pasturename")}},getBarChart4Parm:{name:"geteCowDieselList",parammaps:{year:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart4Parm:{name:"geteCowDieselMonthList",parammaps:{year:"",pastureName:c.a.get("pasturename")}},getBarChart5Parm:{name:"geteCowMaintainList",parammaps:{year:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart5Parm:{name:"geteCowMaintainMonthList",parammaps:{year:"",pastureName:c.a.get("pasturename")}},barChart1:null,lineChart1:null,barChart2:null,barChart3:null,barChart4:null,barChart5:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},line_chart_data1:{},dialogStatus:"",dialogFormVisible:!1,requestParam:{},isPercentage:!1,percentage:1}},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getBarChart1Parm.parammaps.year=a.getFullYear(),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear(),this.getBarChart2Parm.parammaps.year=a.getFullYear(),this.getBarChart3Parm.parammaps.receiveTime=a.getFullYear(),this.getBarChart3Parm.parammaps.year=a.getFullYear(),this.getBarChart4Parm.parammaps.receiveTime=a.getFullYear(),this.getBarChart4Parm.parammaps.year=a.getFullYear(),this.getBarChart5Parm.parammaps.receiveTime=a.getFullYear(),this.getBarChart5Parm.parammaps.year=a.getFullYear(),this.getBarChart1(),this.getBarChart2(),this.getBarChart3(),this.getBarChart4(),this.getBarChart5()}}},created:function(){this.getBarChart1(),this.getBarChart2(),this.getBarChart3(),this.getBarChart4(),this.getBarChart5()},mounted:function(){},methods:{getBarChart1:function(){var e=this;Object(p["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.total=s}))},getBarChart2:function(){var e=this;Object(p["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.total=s}))},getBarChart3:function(){var e=this;Object(p["h"])(this.getBarChart3Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadBarChart3(e.chart_data3);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.total=s}))},getBarChart4:function(){var e=this;Object(p["h"])(this.getBarChart4Parm).then((function(t){console.log("图4",t),e.chart_data4=t.data.chart_data,e.roadBarChart4(e.chart_data4);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.total=s}))},getBarChart5:function(){var e=this;Object(p["h"])(this.getBarChart5Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart5(e.chart_data5);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){s+=parseFloat(e)})),e.total=s}))},getLineChart1:function(){var e=this;this.getLineChart1Parm.parammaps.year=this.getBarChart1Parm.parammaps.year,Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("单头牛总费用折线图",t),e.line_chart_data1=t.data.chart_data,e.roadlineChart1(e.line_chart_data1,e.pasture,e.year)}))},getLineChart2:function(){var e=this;this.getLineChart2Parm.parammaps.year=this.getBarChart2Parm.parammaps.year,Object(p["h"])(this.getLineChart2Parm).then((function(t){console.log("点击折线图",t),e.line_chart_data1=t.data.chart_data,e.roadlineChart1(e.line_chart_data1,e.pasture,e.year)}))},getLineChart3:function(){var e=this;this.getLineChart3Parm.parammaps.year=this.getBarChart3Parm.parammaps.year,Object(p["h"])(this.getLineChart3Parm).then((function(t){console.log("点击折线图",t),e.line_chart_data1=t.data.chart_data,e.roadlineChart1(e.line_chart_data1,e.pasture,e.year)}))},getLineChart4:function(){var e=this;this.getLineChart4Parm.parammaps.year=this.getBarChart4Parm.parammaps.year,Object(p["h"])(this.getLineChart4Parm).then((function(t){console.log("点击折线图",t),e.line_chart_data1=t.data.chart_data,e.roadlineChart1(e.line_chart_data1,e.pasture,e.year)}))},getLineChart5:function(){var e=this;this.getLineChart5Parm.parammaps.year=this.getBarChart5Parm.parammaps.year,Object(p["h"])(this.getLineChart5Parm).then((function(t){console.log("点击折线图",t),e.line_chart_data1=t.data.chart_data,e.roadlineChart1(e.line_chart_data1,e.pasture,e.year)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际费用","去年同期"],right:40},color:["#2dc0e8","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.dialogStatus=a.pasture+a.getBarChart1Parm.parammaps.year+"年单头牛总费用",a.requestParam.parammaps={},a.requestParam.parammaps.year=a.getBarChart1Parm.parammaps.year,a.requestParam.parammaps.formType=a.pasture+a.getBarChart1Parm.parammaps.year+"年单头牛总费用",a.dialogFormVisible=!0,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart1()}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际费用","去年同期"],right:40},color:["#2dc0e8","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(t),window.onresize=function(){this.barChart2.resize()};var a=this;this.barChart2.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.dialogStatus=a.pasture+a.getBarChart2Parm.parammaps.year+"年单头牛水费用",a.dialogFormVisible=!0,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getLineChart2()}))},roadBarChart3:function(e){null!=this.barChart3&&this.barChart3.dispose(),this.barChart3=n.a.init(document.getElementById("barChart3"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际费用","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart3.setOption(t),window.onresize=function(){this.barChart3.resize()};var a=this;this.barChart3.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.dialogStatus=a.pasture+a.getBarChart3Parm.parammaps.year+"年单头牛电费用",a.dialogFormVisible=!0,a.getLineChart3Parm.parammaps.pastureName=e.name,a.getLineChart3()}))},roadBarChart4:function(e){null!=this.barChart4&&this.barChart4.dispose(),this.barChart4=n.a.init(document.getElementById("barChart4"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际费用","去年同期"],right:40},color:["#2dc0e8","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart4.setOption(t),window.onresize=function(){this.barChart4.resize()};var a=this;this.barChart4.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.dialogStatus=a.pasture+a.getBarChart4Parm.parammaps.year+"年单头牛燃动费用",a.dialogFormVisible=!0,a.getLineChart4Parm.parammaps.pastureName=e.name,a.getLineChart4()}))},roadBarChart5:function(e){null!=this.barChart5&&this.barChart5.dispose(),this.barChart5=n.a.init(document.getElementById("barChart5"));var t={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际费用","去年同期"],right:40},color:["#2dc0e8","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart5.setOption(t),window.onresize=function(){this.barChart5.resize()};var a=this;this.barChart5.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.dialogStatus=a.pasture+a.getBarChart5Parm.parammaps.year+"年单头牛维修费用",a.dialogFormVisible=!0,a.getLineChart5Parm.parammaps.pastureName=e.name,a.getLineChart5()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=n.a.init(document.getElementById("lineChart1"));var s={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},toolbox:{show:!0,right:"2%",feature:{magicType:{type:["line"]},dataView:{readOnly:!0}}},legend:{data:["实际费用","去年同期"]},color:["#42b983","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}],optionToContent:function(e){var t=e.xAxis[0].data,a=e.series,s='<td style="line-height:30px;width:25%;font-weight:700;color:#909399;">月份</td>',i="";a.forEach((function(e){s+='<td style="line-height:30px;width:25%;font-weight:700;color:#909399;">'.concat(e.name,"</td>")}));for(var r='<table id="table" border="1" style="user-select: text;width:100%;color:#606266;border:1px solid #EBEEF5;margin: 0 auto;border-collapse:collapse;line-height:20px;font-size:14px;text-align:center"><tbody><tr>'.concat(s," </tr>"),n=0;n<t.length;n++){for(var l=0;l<a.length;l++)i+='<td style="width:25%;line-height:20px;">'.concat(a[l].data[n],"</td>");r+='<tr><td style="padding:0 10px;line-height:20px;">'.concat(t[n],"</td>").concat(i,"</tr>"),i=""}return r+="</tbody></table>",r}};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()}},roadlineChart2:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=n.a.init(document.getElementById("lineChart1"));var s={title:{text:"",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},toolbox:{show:!0,right:"2%",feature:{magicType:{type:["line"]},dataView:{readOnly:!0}}},legend:{data:["实际费用","去年同期"]},color:["#42b983","#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"价格/元",axisLabel:{formatter:"{value}"}}],series:[{name:"实际费用",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}],optionToContent:function(e){var t=e.xAxis[0].data;console.log(t,"-------------");var a=e.series,s='<td style="line-height:30px;width:25%;font-weight:700;color:#909399;">月份</td>',i="";a.forEach((function(e){s+='<td style="line-height:30px;width:25%;font-weight:700;color:#909399;">'.concat(e.name,"</td>")}));for(var r='<table id="table" border="1" style="user-select: text;height:350px;width:100%;color:#606266;border:1px solid #EBEEF5;margin: 0 auto;border-collapse:collapse;line-height:20px;font-size:14px;text-align:center"><tbody><tr>'.concat(s," </tr>"),n=0;n<t.length;n++){for(var l=0;l<a.length;l++)i+='<td style="width:25%;line-height:20px;">'.concat(a[l].data[n],"</td>");r+='<tr><td style="padding:0 10px;line-height:20px;">'.concat(t[n],"</td>").concat(i,"</tr>"),i=""}return r+="</tbody></table>",r}};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()}},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);console.log(this.line_chart_data1);for(var a=[],s=0;s<12;s++)a.push({budgetYear:this.line_chart_data1.budgetYear[s],lastYear:this.line_chart_data1.lastYear[s],month:this.line_chart_data1.months[s],nowYear:this.line_chart_data1.nowYear[s]});a!==[]&&(this.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=[{tHeader:["月份","实际费用","去年同期"],filterVal:["month","nowYear","lastYear"],tableDatas:a,sheetName:this.dialogStatus+"数据"}];Object(l["d"])(i,this.dialogStatus+"数据",!0,"xlsx")}}},u=d,h=(a("f775"),a("01d2"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"63d63346",null);t["default"]=g.exports},"6d39":function(e,t,a){"use strict";a("0b6d")},"6e55":function(e,t,a){"use strict";a("217b")},"6e84":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.table.getdataListParm.deptName,callback:function(t){e.$set(e.table.getdataListParm,"deptName",t)},expression:"table.getdataListParm.deptName"}},e._l(e.downList.deptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block",top:"-3px"},attrs:{height:200,width:300,size:"small",data:e.equipmentCategory.list,disabled:e.equipmentCategory.disabled,"default-props":e.equipmentCategory.defaultProps,"node-key":e.equipmentCategory.nodeKey,placeholder:e.equipmentCategory.placeholder,"checked-keys":e.equipmentCategory.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.table.getdataListParm.eqClassId,callback:function(t){e.$set(e.table.getdataListParm,"eqClassId",t)},expression:"table.getdataListParm.eqClassId"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{staticClass:"elTable",attrs:{slot:"reference",border:"",data:e.table.list,"header-align":"center","row-style":e.rowStyle,"cell-style":e.cellStyle},slot:"reference"},[a("el-table-column",{attrs:{label:"部门","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit||0==t.row.isDispaly?a("span",[e._v(e._s(t.row.deptName))]):a("el-select",{staticStyle:{width:"98%"},attrs:{placeholder:"部门"},on:{change:function(a){e.changeDept(a,t.row)}},model:{value:t.row.deptName,callback:function(a){e.$set(t.row,"deptName",a)},expression:"scope.row.deptName"}},e._l(e.downList.deptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit||0==t.row.isDispaly?a("span",[e._v(e._s(t.row.use))]):a("el-input",{model:{value:t.row.use,callback:function(a){e.$set(t.row,"use",a)},expression:"scope.row.use"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"240px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit||0==t.row.isDispaly?a("span",[e._v(e._s(t.row.typeName))]):a("tree-select",{staticStyle:{display:"inline-block"},attrs:{size:"small",width:200,display:t.row.dispaly,data:e.equipmentCategory.list,disabled:e.equipmentCategory.disabled,"default-props":e.equipmentCategory.defaultProps,"node-key":e.equipmentCategory.nodeKey,placeholder:e.equipmentCategory.placeholder,"checked-keys":e.equipmentCategory.defaultCheckedKeys},on:{popoverHide:e.popoverHide2},model:{value:t.row.eqClassId,callback:function(a){e.$set(t.row,"eqClassId",a)},expression:"scope.row.eqClassId"}})]}}])}),e._v(" "),e._l(e.table.tablelist,(function(t,s){return a("el-table-column",{key:s,attrs:{align:"center",property:t.property,label:t.label,"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row[t.column.property]))]):e._e(),e._v(" "),t.row.Edit?a("el-input",{attrs:{type:"number"},model:{value:t.row[t.column.property],callback:function(a){e.$set(t.row,t.column.property,a)},expression:"scope.row[scope.column.property]"}}):e._e()]}}],null,!0)})})),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[s.isCreate?a("el-button",{attrs:{disabled:e.isokDisable,type:"success",size:"mini"},on:{click:function(t){return e.add_dialog_save(s)}}},[e._v("保存")]):e._e(),e._v(" "),s.isCreate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.createCancel(s)}}},[e._v("取消")]):e._e(),e._v(" "),s.isUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),s.isUpdateSave?a("el-button",{attrs:{disabled:e.isokDisable,type:"success",size:"mini"},on:{click:function(t){return e.edit_dialog_save(s)}}},[e._v("保存")]):e._e(),e._v(" "),s.isUpdateSave?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.updateCancel(s)}}},[e._v("取消")]):e._e(),e._v(" "),s.isUpdate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleRowDelete(s)}}},[e._v("删除")]):e._e()]}}])})],2),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=(a("6b54"),a("2934")),n=a("333d"),l=a("5c96"),o=a("3de8"),p={name:"AssetStandardManagement",components:{Pagination:n["a"],TreeSelect:o["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},equipmentCategory:{getdataListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},list:[],placeholder:"设备类别",nodeKey:"id",defaultCheckedKeys:[],disabled:!1,defaultProps:{children:"children",label:"typeName"},display:"none"},downList:{deptParm:{name:"getDepatmentOnlyName"},deptList:[]},table:{tableKey:0,list:[],tablelist:[],total:0,listLoading:!0,idsArray:[],deptEnableList:[],deptNameArray:[],propertyArray:[],getdataListParm:{deptName:"",eqClassId:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},postDataParm:{},isokDisable:!1}},created:function(){this.getDownDeptList(),this.getEquipmentCategoryList(),this.get_table_data()},methods:{getDownDeptList:function(){var e=this;Object(r["e"])(this.downList.deptParm).then((function(t){null!==t.data.list?e.downList.deptList=t.data.list:e.downList.deptList=[]}))},getEquipmentCategoryList:function(){var e=this;Object(r["y"])(this.equipmentCategory.getdataListParm).then((function(t){null!==t.data.list?e.equipmentCategory.list=t.data:e.equipmentCategory.list=[]}))},popoverHide:function(e,t){null!==e?void 0===t.children?this.table.getdataListParm.eqClassId=t.eqClassId:(this.equipmentCategory.defaultCheckedKeys=[],this.table.getdataListParm.eqClassId="",this.$message({type:"warning",message:"请选择具体设备类型"})):(this.equipmentCategory.defaultCheckedKeys=[],this.table.getdataListParm.eqClassId="")},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(r["b"])(this.table.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list),e.table.tablelist=t.data.list[0],e.table.idsArray=[];for(var a=0;a<e.table.tablelist.length;a++)e.table.idsArray.push(e.table.tablelist[a].id);e.table.list=t.data.list[1];for(var s=0;s<e.table.list.length;s++)e.$set(e.table.list[s],"Edit",!1),e.$set(e.table.list[s],"NoEdit",!0),e.$set(e.table.list[s],"isCreate",!1),e.$set(e.table.list[s],"isUpdate",!0),e.$set(e.table.list[s],"isUpdateSave",!1),e.$set(e.table.list[s],"isDispaly",!1),e.$set(e.table.list[s],"dispaly","none");e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.tablelist=[],e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.get_table_data()},form_add:function(){console.log("新增");for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;for(var t={},a=0;a<this.table.tablelist.length;a++){t.myId=(new Date).valueOf(),t.Edit=!0,t.NoEdit=!1,t.isCreate=!0,t.isUpdate=!1,t.isUpdateSave=!1,t.isDispaly=!0,t.display="block",t.deptName="",t.use="",t.typeName="",t.eqClassId="",t.eqCode="",t.typeName="",t[this.table.tablelist[a].property]="";var s=a+1;t["pastureId"+s]=this.table.tablelist[a].id}this.table.list.unshift(t)},changeDept:function(e,t){var a=this;this.postDataParm={},this.postDataParm.param={},this.postDataParm.param.ids=this.table.idsArray.toString(),this.postDataParm.param.deptName=t.deptName,Object(r["j"])(this.postDataParm).then((function(e){a.table.deptEnableList=e.data,a.table.deptNameArray=[],a.table.propertyArray=[],console.log(e.data,"response.data");for(var t=0;t<e.data.length;t++)if(0==e.data[t].enable){console.log(a.table.tablelist,"this.table.tablelist");for(var s=0;s<a.table.tablelist.length;s++)e.data[t].id==a.table.tablelist[s].id&&(console.log(a.table.tablelist[s].label),a.table.deptNameArray.push(a.table.tablelist[s].label),a.table.propertyArray.push(a.table.tablelist[s].property))}console.log(a.table.deptNameArray,"this.table.deptNameArray"),console.log(a.table.propertyArray,"this.table.propertyArray")}))},popoverHide2:function(e,t){console.log(e,t),null!==e?void 0==t.children?(this.table.list[0].eqClassId=t.eqClassId,this.table.list[0].eqCode=t.typeCode,this.table.list[0].typeName=t.NewName):(this.table.list[0].eqClassId="",this.table.list[0].eqCode="",this.table.list[0].typeName="",this.$message({type:"warning",message:"请选择具体设备类型"})):(this.table.list[0].eqClassId="",this.table.list[0].eqCode="",this.table.list[0].typeName="")},add_dialog_save:function(e){var t=this;console.log("新增保存",e),console.log(this.table.propertyArray,"this.table.propertyArray"),console.log(this.table.deptNameArray,"this.table.deptNameArray"),console.log(this.table.tablelist,"this.table.tablelist");for(var a=0;a<this.table.tablelist.length;a++)""==e[this.table.tablelist[a].property]&&(e[this.table.tablelist[a].property]=0);return""==e.deptName?(this.$message({type:"error",message:"部门必填",duration:2e3}),!1):""==e.eqClassId?(this.$message({type:"error",message:"设备类别必填",duration:2e3}),!1):void l["MessageBox"].confirm("以下牧场"+this.table.deptNameArray+"与部门不匹配,保存后会置零,是否保存?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.table.propertyArray.length;a++)e[t.table.propertyArray[a]]=0;t.postDataParm={},t.postDataParm.check="insert",t.postDataParm.param={},t.postDataParm.param=e,Object(r["F"])(t.postDataParm).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}),t.get_table_data()):t.$notify({title:"失败",message:"新增失败-"+e.data,type:"danger",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))},createCancel:function(e){for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},form_edit:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.dispaly="none",e.isDispaly=!1},edit_dialog_save:function(e){var t=this;this.postDataParm={},this.postDataParm.check="update",this.postDataParm.param={},this.postDataParm.param=e,console.log("编辑保存",this.postDataParm),Object(r["F"])(this.postDataParm).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"失败-"+e.data,type:"danger",duration:2e3})}))},updateCancel:function(e){e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.get_table_data()},handleRowDelete:function(e){var t=this;l["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataParm={},t.postDataParm.check="delete",t.postDataParm.param={},t.postDataParm.param=e,Object(r["F"])(t.postDataParm).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败-"+e.data,type:"danger",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},m=p,c=(a("42ad"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,"02041aaa",null);t["default"]=d.exports},"6e96":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]),e._v(" "),a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"warning",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v(" 复制 ")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部位","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检查内容","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.examine))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"部位:",prop:"positionId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部位",disabled:"update"===e.dialogStatus},on:{change:e.changePart},model:{value:e.createTemp.positionId,callback:function(t){e.$set(e.createTemp,"positionId",t)},expression:"createTemp.positionId"}},e._l(e.listPart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.positionName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"检查内容:",prop:"examine"}},[a("el-input",{ref:"examine",attrs:{type:"textarea",autosize:""},model:{value:e.createTemp.examine,callback:function(t){e.$set(e.createTemp,"examine",t)},expression:"createTemp.examine"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"检查标准:",prop:"standard"}},[a("el-input",{ref:"standard",attrs:{type:"textarea",autosize:""},model:{value:e.createTemp.standard,callback:function(t){e.$set(e.createTemp,"standard",t)},expression:"createTemp.standard"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.id=e.assetTypeid,e.get_table_data()}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"content-see"},[a("el-form",{ref:" seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"部位:",prop:"positionName"}},[a("el-input",{ref:"positionName",attrs:{disabled:""},model:{value:e.seeTemp.positionName,callback:function(t){e.$set(e.seeTemp,"positionName",t)},expression:"seeTemp.positionName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"检查内容:",prop:"examine"}},[a("el-input",{ref:"examine",attrs:{type:"textarea",autosize:"",disabled:""},model:{value:e.seeTemp.examine,callback:function(t){e.$set(e.seeTemp,"examine",t)},expression:"seeTemp.examine"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"检查标准:",prop:"standard"}},[a("el-input",{ref:"standard",attrs:{type:"textarea",autosize:"",disabled:""},model:{value:e.seeTemp.standard,callback:function(t){e.$set(e.seeTemp,"standard",t)},expression:"seeTemp.standard"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCopy],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"content-copy"},[a("el-form",{staticStyle:{width:"90%px",margin:"0 auto"},attrs:{"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"NewName"}},[a("tree-select",{attrs:{disabled:e.disabled,width:300,size:"small",multiple:"",data:e.parentType,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=a("5f87"),c=a("ed08"),d={name:"Dianjian",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0},assetTypename:{type:String,default:"1"}},data:function(){return{textMap:{create:"新增",update:"编辑",copy:"复制",see:"查看详情"},dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getSpotCheckTemplateList",parammaps:{id:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{part:"",note:""},listAdd:[],listPart:[],getPartListParam:{name:"getPartList",parammaps:{id:""}},tableKey:0,isokDisable:!1,postDataPramas:{},seeTemp:{},dialogStatusSee:"",dialogFormVisibleSee:!1,requestParam:{},rules:{positionId:[{required:!0,message:"必填",trigger:"blur"}],examine:[{type:"string",required:!0,message:"必填",trigger:"blur"}],standard:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"updateUpKeepSpot",importParams:"设备类别名称,部位,检查内容,标准",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParm.parammaps.id=this.assetTypeid,this.getPartListParam.parammaps.id=this.assetTypeid,this.get_table_data(),this.getPartList(),this.getTypeList())},assetTypename:function(e){console.log(e)}},created:function(){},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetCreateTemp:function(){this.createTemp={}},form_add:function(){this.getPartList(),""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.getPartListParam.parammaps.id=this.assetTypeid,this.getPartList(),console.log(this.listPart))},getPartList:function(){var e=this;Object(l["e"])(this.getPartListParam).then((function(t){e.listPart=t.data.list}))},changePart:function(e){console.log(this.listPart.find((function(t){return t.id==e}))),this.listPart.find((function(t){return t.id==e}))&&(console.log(this.listPart.find((function(t){return t.id==e})).positionName),this.createTemp.positionName=this.listPart.find((function(t){return t.id==e})).positionName,this.createTemp.eqClassId=this.listPart.find((function(t){return t.id==e})).eqClassId,this.createTemp.note=this.listPart.find((function(t){return t.id==e})).note)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertSpotCheckTemplate",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.eqClassId=e.assetTypeid,e.postDataPramas.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertSpotCheckTemplate",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.eqClassId=e.assetTypeid,e.postDataPramas.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.resetCreateTemp(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateSpotCheckTemplate",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.eqClassId=e.assetTypeid,e.postDataPramas.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},handleCopy:function(){""!=this.assetTypeid&&(this.dialogFormVisibleCopy=!0,this.dialogStatusCopy="copy",this.defaultCheckedKeys=[])},createCopyData:function(){var e=this;if(console.log(this.dataform.selectType),0===this.dataform.selectType.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.dataform.selectType.length;a++){var s={};s["newEqclassId"]=this.dataform.selectType[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"CopySpotCheck",type:"e",parammaps:{newEqclassId:"@insertSpotList.newEqclassId",eqclassid:this.assetTypeid}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"复制失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisibleCopy=!1,e.$notify({title:"",message:"复制成功",type:"success",duration:2e3}))}))}},popoverHide:function(e,t){console.log("选中值",e,t),this.dataform.selectType=e,this.UpdateDataRelationParam.values=e},getTypeList:function(){var e=this;Object(l["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(l["E"])(t.data.list,"id","pid","children"))}))},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="see",this.dialogFormVisibleSee=!0},form_delete:function(e){var t=this;o["MessageBox"].confirm("名称:"+e.positionName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteSpotCheckTemplate",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["设备类别名称","部位","检查内容","标准","报错信息"],r=["设备类别名称","部位","检查内容","标准","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"点检模板报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(l["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["设备类别名称","部位","检查内容","标准"],r=["设备类别名称","部位","检查内容","标准"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"点检模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},jump:function(){this.$router.push("/console/menu")}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},7051:function(e,t,a){},7074:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-沼气表录入",use:"icon-沼气表录入-usage",viewBox:"0 0 1326 1024",content:'<symbol class="icon" viewBox="0 0 1326 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-沼气表录入"><defs><style type="text/css"></style></defs><path d="M1250.210909 1024H0c0-220.625455 110.126545-415.837091 278.946909-534.784 11.031273-7.773091 22.341818-15.197091 33.838546-22.318545V279.272727h76.334545V511.371636A588.101818 588.101818 0 0 0 213.457455 651.636364h899.630545a588.101818 588.101818 0 0 0-175.662545-140.264728V279.272727h76.334545v187.624728a665.134545 665.134545 0 0 1 56.901818 39.330909C1226.402909 626.292364 1326.545455 813.568 1326.545455 1024h-76.334546zM674.909091 23.272727c12.334545 0 24.203636 3.653818 32.907636 10.146909 8.727273 6.493091 13.637818 15.290182 13.637818 24.482909v326.376728c0 19.130182-20.829091 34.629818-46.545454 34.629818s-46.545455-15.499636-46.545455-34.629818V57.902545C628.363636 38.772364 649.192727 23.272727 674.909091 23.272727z m-116.363636 96.861091v311.272727c0 18.804364-16.104727 34.048-35.956364 34.048-19.874909 0-35.979636-15.243636-35.979636-34.048V121.134545v-1.000727H558.545455C557.893818 53.713455 500.829091 0.069818 430.545455 0c-70.656 0.069818-127.930182 54.272-128 121.134545 0 18.804364 16.104727 34.048 35.956363 34.048 19.874909 0 35.979636-15.243636 35.979637-34.048-0.279273-19.130182 10.333091-36.933818 27.787636-46.592a58.833455 58.833455 0 0 1 56.552727 0c17.152 9.495273 27.694545 26.833455 27.787637 45.591273H558.545455z m304.570181 5.259637v306.036363a33.745455 33.745455 0 0 1-17.966545 29.463273 37.678545 37.678545 0 0 1-35.909818 0A33.745455 33.745455 0 0 1 791.272727 431.429818V120.436364c0-1.861818 0.162909-3.653818 0.465455-5.422546C795.112727 50.967273 850.990545 0.046545 919.435636 0c70.562909 0.069818 127.767273 54.225455 127.837091 121.041455 0 18.804364-16.081455 34.024727-35.933091 34.024727-19.828364 0-35.909818-15.220364-35.909818-34.024727 0.279273-19.106909-10.333091-36.910545-27.787636-46.545455a58.740364 58.740364 0 0 0-56.459637 0c-17.454545 9.634909-28.043636 27.438545-27.764363 46.545455 0 1.466182-0.093091 2.909091-0.302546 4.352z" p-id="9904" /></symbol>'});n.a.add(l);t["default"]=l},"707d":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"部门",clearable:""},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"记录人"},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"120px",top:"-3px"},attrs:{type:"date",placeholder:"记录时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.logTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"logTime",t)},expression:"getdataListParm.parammaps.logTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isRetreatAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isRetreatMuban?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isRetreatImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类型",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.classes))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单位",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.logTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inputName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("2934"),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5f87"),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"Water",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isRetreatAdd:[],isRetreatMuban:[],isRetreatExport:[],isRetreatImport:[],tableKey:0,list:null,total:0,listLoading:!0,temp:{},getdataListParm:{name:"getImportCostOtherList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),deptName:"",classes:"",empName:"",logTime:""}},getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["水表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],requestFilterParams:{name:"getWaterList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"importCostOther",importParams:"牧场,部门,类型,单位,单价,数量,总价,记录人,记录时间,备注,jwt_username",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_table_data(),this.get_select_list()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},form_add:function(){this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.employeId=this.$store.state.user.employeid},handleDownloadTemp:function(){var e=this;this.requestParam.name="costOtherDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","部门","类型","单位","单价","数量","总价","记录人","记录时间","备注"],r=["牧场","部门","类型","单位","单价","数量","总价","记录人","记录时间","备注"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"其它成本模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;this.requestParam.name="stockQuitDown",this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.createTime=this.getdataListParm.parammaps.createTime,this.$alert("退库时间正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["领用单号","类型","牧场名称","部门名称","退库时间","退库人","备件编号","备件名称","规格","退库数量","备注"],r=["领用单号","类型","牧场名称","部门名称","退库时间","退库人","备件编号","备件名称","规格","退库数量","备注"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"退库时间:"+e.getdataListParm.parammaps.createTime,autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},form_reset:function(){}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},"708a":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-star"><path d="M70.66 4.328l14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol>'});n.a.add(l);t["default"]=l},7101:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"el-aside"},[e._t("prefix"),e._v(" "),a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"2","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"}},[e._l(e.menus,(function(t){return[t.items?a("el-submenu",{key:t.index,attrs:{index:t.index}},[a("template",{slot:"title"},[a("i",{class:e.getIcon(t.icon)}),e._v(e._s(t.label))]),e._v(" "),e._l(t.items,(function(t){return a("el-menu-item",{key:t.index,attrs:{index:t.index},on:{click:function(a){return e.send(t)}}},[a("i",{class:e.getIcon(t.icon)}),e._v(e._s(t.label)+"\n ")])}))],2):a("el-menu-item",{key:t.index,attrs:{index:t.index},on:{click:function(a){return e.send(t)}}},[a("i",{class:e.getIcon(t.icon)}),e._v(e._s(t.label)+"\n ")])]}))],2)],2)},i=[],r={props:["menus"],methods:{send:function(e){this.$emit("redirect",e)},getIcon:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"el-icon-menu";return e}}},n=r,l=(a("ddef"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"0d45c621",null);t["default"]=o.exports},7188:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj1.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"pastureName",t)},expression:"tableObj1.getdataListParm.parammaps.pastureName"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj1.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"departmentId",t)},expression:"tableObj1.getdataListParm.parammaps.departmentId"}},e._l(e.departNameList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"委外维修单号"},model:{value:e.tableObj1.getdataListParm.parammaps.outsourcingCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"outsourcingCode",t)},expression:"tableObj1.getdataListParm.parammaps.outsourcingCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tableObj1.getdataListParm.parammaps.status,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"status",t)},expression:"tableObj1.getdataListParm.parammaps.status"}},e._l(e.statuesNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.tableObj1.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"eqName",t)},expression:"tableObj1.getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备内部编号"},model:{value:e.tableObj1.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"eqCode",t)},expression:"tableObj1.getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"合同编号"},model:{value:e.tableObj1.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"contractCode",t)},expression:"tableObj1.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tableObj1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"inputDatetime",t)},expression:"tableObj1.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.istab1Add?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1),e._v(" "),a("div",{staticClass:"elTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj1.listLoading,expression:"tableObj1.listLoading"}],key:e.tableObj1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj1.pageNum-1)*e.tableObj1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"委外单号","min-width":"120px",align:"center",prop:"outsourcingCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任部门 ","min-width":"120px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.contract?a("span",[e._v("有")]):a("span",[e._v("无")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请人","min-width":"120px",align:"center",prop:"applicantName"}}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"120px",align:"center",prop:"date"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.status?a("span",[e._v("审核中")]):1==t.row.status?a("span",[e._v("审核通过")]):a("span",[e._v("审核未通过")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),e.istab1Edit&&0!==s.status&&1!==s.status?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.istab1Del&&1!==s.status?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e(),e._v(" "),e.istab1Shenhe1&&1==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine(s)}}},[e._v("审核1")]),e._v(" "),e.istab1Shenhe2&&2==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine2(s)}}},[e._v("审核2")]),e._v(" "),e.istab1Shenhe3&&4==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine3(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine3(s)}}},[e._v("审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj1.total>0,expression:"tableObj1.total>0"}],attrs:{total:e.tableObj1.total,page:e.tableObj1.getdataListParm.offset,limit:e.tableObj1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj1.getdataListParm,"pagecount",t)},pagination:function(t){return e.get_table_data1()}}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",[a("el-form",{ref:"createTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"委外维修单号:",prop:"outsourcingCode"}},[a("el-input",{ref:"outsourcingCode",attrs:{disabled:""},model:{value:e.createTemp.outsourcingCode,callback:function(t){e.$set(e.createTemp,"outsourcingCode",t)},expression:"createTemp.outsourcingCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"see"===e.dialogStatus},on:{change:e.change_pasture2},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"责任部门",disabled:"see"===e.dialogStatus},on:{change:e.change_depart2},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.departNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同:",prop:"contract"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus},on:{change:e.change_contract},model:{value:e.createTemp.contract,callback:function(t){e.$set(e.createTemp,"contract",t)},expression:"createTemp.contract"}},[a("el-radio",{attrs:{label:0,checked:0==e.createTemp.contract}},[e._v("无合同")]),e._v(" "),a("el-radio",{attrs:{label:1,checked:1==e.createTemp.contract}},[e._v("有合同")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申请人:",prop:"applicant"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申请人",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.applicant,callback:function(t){e.$set(e.createTemp,"applicant",t)},expression:"createTemp.applicant"}},e._l(e.employeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.date,callback:function(t){e.$set(e.createTemp,"date",t)},expression:"createTemp.date"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"故障描述:",prop:"description"}},[a("el-input",{attrs:{type:"textarea",autosize:"",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.description,callback:function(t){e.$set(e.createTemp,"description",t)},expression:"createTemp.description"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"RUCode"}},[a("el-input",{ref:"RUCode",attrs:{disabled:""},model:{value:e.createTemp.RUCode,callback:function(t){e.$set(e.createTemp,"RUCode",t)},expression:"createTemp.RUCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAddCont,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"供应商"},model:{value:t.row.providerName,callback:function(a){e.$set(t.row,"providerName",a)},expression:"scope.row.providerName"}},e._l(e.providerNameList,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.providerName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"金额",prop:"amount",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.amount))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{disabled:"see"===e.dialogStatus,"fetch-suggestions":e.querySearchEqNameCont,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqNameCont(a,t.row)},blur:function(a){e.blurSelectEqNameCont(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{disabled:"see"===e.dialogStatus,"fetch-suggestions":e.querySearchCodeCont,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCodeCont(a,t.row)},blur:function(a){e.blurSelectEqCodeCont(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",prop:"typea",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"费用类型"},model:{value:t.row.typea,callback:function(a){e.$set(t.row,"typea",a)},expression:"scope.row.typea"}},e._l(e.costTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.typea))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"交付日期",prop:"date",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-date-picker",{staticStyle:{"margin-top":"10px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.row.date,callback:function(a){e.$set(t.row,"date",a)},expression:"scope.row.date"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.date))]):e._e()]}}])}),e._v(" "),1==e.createTemp.contract?a("el-table-column",{attrs:{label:"合同编号",prop:"contractCode",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.contractCode,callback:function(a){e.$set(t.row,"contractCode",a)},expression:"scope.row.contractCode"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.contractCode))]):e._e()]}}],null,!1,3063502122)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e()]}}])})],1),e._v(" "),"see"===e.dialogStatus?a("el-row",{attrs:{gutter:10}},[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data1()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.change_statue},model:{value:e.examineTemp.status,callback:function(t){e.$set(e.examineTemp,"status",t)},expression:"examineTemp.status"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.istab1Shenhe1&&1==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab1Shenhe2&&2==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save2()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab1Shenhe3&&4==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("313e"),a("2934")),n=a("a78e"),l=a.n(n),o=a("ed08"),p=a("5c96"),m=a("333d");a("817d");var c={name:"Tab1",components:{Pagination:m["a"]},inject:["reload"],data:function(){return{send_select_list:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:l.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid")}},{name:"findAllProviderByCt",offset:0,pagecount:0,parammaps:{id:l.a.get("pastureid")}}],pastureNameList:[],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid"),eId:l.a.get("employeid")}},employeNameList:[],departNameList1:[],getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid"),eId:l.a.get("employeid")}},departNameList2:[],statuesNameList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],isokDisable:!1,tableObj1:{getdataListParm:{name:"getBigoutsourcingList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:l.a.get("pasturename"),outsourcingCode:"",departmentName:"",status:"",eqName:"",eqCode:"",contractCode:"",inputDatetime:"",startdate:"",enddate:""}},tableKey:0,listLoading:!1,pageNum:"",pageSize:"",total:0,list:[]},getAddContListParam:{name:"getOutsourcingList",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{bigId:""}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},rules:{outsourcingCode:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],contract:[{required:!0,message:"必填",trigger:"blur"}]},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,date:Object(o["e"])(new Date,"{y}-{m}-{d}"),outsourcingCode:"",applicant:"",RUCode:"",providerId:"",departmentName:"",description:"",contract:1},costTypeList:[{id:"保养",name:"保养"},{id:"维修",name:"维修"},{id:"物耗",name:"物耗"},{id:"土建",name:"土建"},{id:"安全",name:"安全"}],providerNameList:[],getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:l.a.get("pastureid"),codeType:"WW"}},listAddCont:[{providerName:"",providerId:"0",eqId:"0",contractId:"0"}],activeList:[],active:1,EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:l.a.get("pastureid")}},EqCodeList:[],dialogFormVisible_Examine:!1,examineTemp:{status:1,empid:"",flowCompeleted:"",workflowNote:"",id:""},statueReason:!1,rowStyle:{maxHeight:"50px",height:"35px"},cellStyle:{padding:"0px"},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine33:"审核4",examine3:"审核5"},istab1Add:[],istab1Edit:[],istab1Del:[],istab1Shenhe1:[],istab1Shenhe2:[],istab1Shenhe3:[]}},created:function(){this.get_select_list(),this.get_table_data1(),this.get_auto_buttons()},methods:{get_auto_buttons:function(){var e=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:add");this.istab1Add=e;var t=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:edit");this.istab1Edit=t;var a=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:del");this.istab1Del=a;var s=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe1");this.istab1Shenhe1=s;var i=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe2");this.istab1Shenhe2=i;var n=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe3");this.istab1Shenhe3=n},querySearchEqNameCont:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqNameCont:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCodeCont:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCodeCont:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqNameCont:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCodeCont:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},get_select_list:function(){var e=this;Object(r["f"])(this.send_select_list).then((function(t){e.pastureNameList=t.data.findAllPasture.list,console.log("牧场下拉框",e.pastureNameList),e.employeNameList=t.data.findAllEmploye.list,console.log("申请人下拉框",e.employeNameList),e.providerNameList=t.data.findAllProviderByCt.list,e.get_depart_list1()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureNameList.find((function(t){return t.name==e})).id,this.tableObj1.getdataListParm.parammaps.departmentId="",this.get_depart_list1()},get_depart_list1:function(){var e=this;Object(r["e"])(this.getDepartParam1).then((function(t){e.departNameList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.get_depart_list2()},get_depart_list2:function(){var e=this;Object(r["e"])(this.getDepartParam2).then((function(t){e.departNameList2=t.data.list}))},change_depart2:function(e){this.createTemp.departmentName=this.departNameList2.find((function(t){return t.id==e})).name},get_table_data1:function(){var e=this;this.tableObj1.listLoading=!1,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tableObj1.getdataListParm.parammaps.startdate=this.$refs["inputDatetime"].value[0],this.tableObj1.getdataListParm.parammaps.enddate=this.$refs["inputDatetime"].value[1]):(this.tableObj1.getdataListParm.parammaps.inputDatetime="",this.tableObj1.getdataListParm.parammaps.startdate="",this.tableObj1.getdataListParm.parammaps.enddate=""),Object(r["e"])(this.tableObj1.getdataListParm).then((function(t){null!==t.data.list?(e.tableObj1.list=t.data.list,e.tableObj1.pageNum=t.data.pageNum,e.tableObj1.pageSize=t.data.pageSize,e.tableObj1.total=t.data.total):e.tableObj1.list=[],setTimeout((function(){e.tableObj1.listLoading=!1}),100)}))},form_search:function(){console.log("查询"),this.get_table_data1()},change_contract:function(e){console.log(e),this.createTemp.contract=1==e?1:0},form_add:function(){var e=this;this.reset_create(),this.getDepartParam2.parammaps.pastureId=this.createTemp.pastureId,this.get_depart_list2(),this.dialogStatus="create",this.dialogFormVisible=!0,this.listLoading=!1,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.get_create_num()},reset_create:function(){this.createTemp.pastureId=parseInt(l.a.get("pastureid")),this.createTemp.departmentId=parseInt(l.a.get("departmentid")),18==parseInt(l.a.get("pastureid"))&&(this.createTemp.departmentId=""),this.createTemp.departmentName=l.a.get("departmentname"),this.createTemp.employeId=parseInt(l.a.get("employeid")),this.createTemp.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.outsourcingCode="",this.createTemp.applicant=parseInt(l.a.get("employeid")),this.createTemp.providerId="",this.createTemp.contract=1,this.createTemp.description="",this.listAddCont=[{providerName:"",providerId:"0",eqId:"0",contractId:"0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:""}]},get_create_num:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTemp.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAddCont),""==e.createTemp.outsourcingCode||null==e.createTemp.outsourcingCode||void 0==e.createTemp.outsourcingCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTemp.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||this.listAddCont[t].amount,1==this.createTemp.contract&&(null==this.listAddCont[t].contractCode||""===this.listAddCont[t].contractCode))return this.$message({type:"warning",message:"请检查合同编号是否未填写",duration:2e3}),!1;var a={common:{returnmap:"0"},data:[{name:"addBigoutsourcing",type:"e",parammaps:this.createTemp},{name:"insertSpotList",resultmaps:{list:this.listAddCont},children:[{name:"addOutsourcing",type:"e",parammaps:{bigId:"@addBigoutsourcing.LastInsertId",providerId:"@insertSpotList.providerId",amount:"@insertSpotList.amount",eqId:"@insertSpotList.eqId",eqCode:"@insertSpotList.eqCode",eqName:"@insertSpotList.eqName",typea:"@insertSpotList.typea",date:"@insertSpotList.date",contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",contractCode:"@insertSpotList.contractCode"}}]}]};return Object(r["c"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0},form_see:function(e){var t=this;console.log("查看======》",e),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),1==e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.empname},{title:"设备处长"},{title:"场长"},{title:"高级设备工程师"}],this.active=1):2==e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长"},{title:"高级设备工程师"}],this.active=2):3===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName,status:"error",reason:e.workflowNote},{title:"场长"},{title:"高级设备工程师"}],this.active=2):4===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师"}],this.active=3):5===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName,status:"error",reason:e.workflowNote},{title:"高级设备工程师"}],this.active=3):6===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师",date:e.advanceddate,name:e.advancedName}],this.active=4):7===e.flowCompeleted&&(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师",date:e.advanceddate,name:e.advancedName,status:"error",reason:e.workflowNote}],this.active=4),this.getAddContListParam.parammaps.bigId=e.id,this.getAddContList()},getAddContList:function(){var e=this;Object(r["e"])(this.getAddContListParam).then((function(t){e.listAddCont=t.data.list,e.listLoading=!1}))},form_edit:function(e){var t=this;this.reset_create(),console.log("编辑",e),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getAddContListParam.parammaps.bigId=e.id,this.getAddContList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||""===this.listAddCont[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;this.listAddCont[0].providerId="0",this.listAddCont[0].eqId="0",this.listAddCont[0].contractId="0";var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcing",type:"e",parammaps:this.createTemp},{name:"insertSpotList",resultmaps:{list:this.listAddCont},children:[{name:"editOutsourcing",type:"e",parammaps:{bigId:"@insertSpotList.LastInsertId",providerId:"@insertSpotList.providerId",amount:"@insertSpotList.amount",eqId:"@insertSpotList.eqId",eqCode:"@insertSpotList.eqCode",eqName:"@insertSpotList.eqName",typea:"@insertSpotList.typea",date:"@insertSpotList.date",contractId:"@insertSpotList.contractId",id:"@insertSpotList.id",providerName:"@insertSpotList.providerName",contractCode:"@insertSpotList.contractCode"}}]},{name:"updateBigoutsourcingFlowCompeleted",type:"e",parammaps:{id:this.createTemp.id}}]};Object(r["c"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_delete:function(e){var t=this;console.log("点击了删除",e),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"deleteBigoutsourcing",type:"e",parammaps:{id:e.id}}]};Object(r["c"])(a).then((function(e){t.get_table_data1(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},change_statue:function(e){this.statueReason=2==e},form_examine:function(e){console.log("点击了设备处长审核",e),void 0==e?(this.examineTemp=this.createTemp,this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save:function(){var e=this;console.log("点击了设备处长审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="3"):(e.examineTemp.status=0,e.examineTemp.flowCompeleted="2"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingEquipment",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine2:function(e){console.log("点击了场长审核",e),this.examineTemp=Object.assign({},e),void 0==e?(this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save2:function(){var e=this;console.log("点击了场长审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="5"):(e.examineTemp.status=0,e.examineTemp.flowCompeleted="4"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingField",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine3:function(e){console.log("点击了高级工程师 审核",e),this.examineTemp=Object.assign({},e),void 0==e?(this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save3:function(){var e=this;console.log("点击了高级工程师审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="7"):(e.examineTemp.status=1,e.examineTemp.flowCompeleted="6"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingAdvanceddate",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))}}},d=c,u=(a("db80"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"07e1051f",null);t["default"]=h.exports},"718e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e.isStockTypeAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{disabled:e.isokDisable,type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"类别编号名称","min-width":"260px","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partClassCode)+"("+e._s(t.row.partClassName)+") ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"section",label:"层级","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.section))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"子类数",sortable:"",prop:"childrens","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.childrens))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌数",sortable:"",prop:"bps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商数",sortable:"",prop:"pps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件数",sortable:"",prop:"ps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isStockTypeUpdate?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),0===s.childrens&&0===s.pps&&0===s.bps&&0===s.ps?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[e.parentDeptVisible?a("el-form-item",{attrs:{label:"上级类别",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:300,size:"small",clearable:"",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1):e._e(),e._v(" "),a("el-form-item",{staticStyle:{width:"300px"},attrs:{label:"类别编号",prop:"tempClassCode"}},[a("el-input",{ref:"tempClassCode",attrs:{placeholder:"请输入编码"},model:{value:e.deptform.tempClassCode,callback:function(t){e.$set(e.deptform,"tempClassCode",t)},expression:"deptform.tempClassCode"}},[a("template",{slot:"prepend"},[e._v(e._s(e.deptform.tempPClassCode))])],2)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"300px"},attrs:{label:"类别名称",prop:"partClassName"}},[a("el-input",{ref:"partClassName",model:{value:e.deptform.partClassName,callback:function(t){e.$set(e.deptform,"partClassName",t)},expression:"deptform.partClassName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["新增"===e.textMap[e.dialogStatus]?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v(" 保存并新增 ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v(" 保存并关闭 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v(" 取消并关闭 ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("3de8")),n=a("6724"),l=a("61f7"),o=a("2934"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"StockType",components:{TreeSelect:r["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1}],parentDept:[],listLoading:!0,requestParam:{name:"createCategoryType",parammaps:{}},deptform:{id:"",tempClassCode:"",tempPClassCode:"",partClassName:"",partClassCode:"",pid:"",sort:"",enable:""},getDeptListParm:{name:"getpart_classList"},getDeptParm:{name:"getCategoryTyperecu",idname:"value",params:[-1]},rules:{tempClassCode:[{type:"string",required:!0,message:"类别编码必填",trigger:"blur"},{validator:l["b"],trigger:"blur"}],partClassName:[{type:"string",required:!0,message:"类别名称必填",trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"partClassNameCode"},nodeKey:"id",defaultCheckedKeys:[],buttons:[],isStockTypeAdd:[],isStockTypeUpdate:[],isPercentage:!1,percentage:1}},created:function(){var e=this;Object(o["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{tableSort:function(e){Object(d["f"])(e,this.list)},get_auto_buttons:function(){var e="console:stockType:insert",t=Object(o["v"])(this.$store.state.user.buttons,e);this.isStockTypeAdd=t;var a="console:stockType:update",s=Object(o["v"])(this.$store.state.user.buttons,a);this.isStockTypeUpdate=s},popoverHide:function(e,t){this.deptform.pid=e,null!==e?this.deptform.partClassCode=t.partClassCode:this.deptform.pid=-1,this.getMaxCode()},get_table_data:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.getDeptListParm).then((function(t){if(e.list=t.data,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=Object(o["E"])(t.data.list,"id","pid","children")}e.parentDept=e.list,setTimeout((function(){e.listLoading=!1}),500)}))},resetRequestParam:function(){this.requestParam={name:"createCategoryType",parammaps:{}},this.deptform.id="",this.deptform.pid=-1,this.deptform.tempClassCode="",this.deptform.tempPClassCode="",this.deptform.partClassName="",this.deptform.partClassCode="",this.deptform.sort="0",this.deptform.enable=1},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.defaultCheckedKeys=[],this.parentDeptVisible=!0,this.dialogFormVisible=!0,this.deptform.pid=-1,this.deptform.enable=1,this.getMaxCode(),this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},getMaxCode:function(){var e=this;this.requestParam.name="getPCMaxcodeByPid",this.requestParam.parammaps={},this.requestParam.parammaps.pid=this.deptform.pid,Object(o["e"])(this.requestParam).then((function(t){t.data.list.length>0&&(""===t.data.list[0].parentcode?e.deptform.tempPClassCode=e.deptform.partClassCode+".":e.deptform.tempPClassCode=t.data.list[0].parentcode,e.deptform.tempClassCode=t.data.list[0].newcode,-1===e.requestParam.parammaps.pid&&(e.deptform.tempClassCode=e.deptform.tempPClassCode+e.deptform.tempClassCode,e.deptform.tempPClassCode=""))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(console.log(e.deptform),e.requestParam.name="createCategoryType",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps["pid"]=-1:e.requestParam.parammaps["pid"]=e.deptform.pid,e.requestParam.parammaps["partName"]=e.deptform.partClassName,e.deptform.partClassCode=e.deptform.tempPClassCode+e.deptform.tempClassCode,e.requestParam.parammaps["partCode"]=e.deptform.partClassCode,e.requestParam.parammaps["sort"]=e.deptform.sort,e.requestParam.parammaps["enable"]=e.deptform.enable,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createCategoryType",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps["pid"]=-1:e.requestParam.parammaps["pid"]=e.deptform.pid,e.requestParam.parammaps["partName"]=e.deptform.partClassName,e.deptform.partClassCode=e.deptform.tempPClassCode+e.deptform.tempClassCode,e.requestParam.parammaps["partCode"]=e.deptform.partClassCode,e.requestParam.parammaps["sort"]=e.deptform.sort,e.requestParam.parammaps["enable"]=e.deptform.enable,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.deptform.id="",e.deptform.partClassName="",e.getMaxCode(),e.$nextTick((function(){e.$refs["dataForm"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},form_edit:function(e){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.defaultCheckedKeys=[e.pid],this.parentDeptVisible=e.pid>0,this.deptform.id=e.id,this.deptform.pid=e.pid,this.deptform.partClassName=e.partClassName,this.deptform.partClassCode=e.partClassCode,this.deptform.tempPClassCode=this.deptform.partClassCode.substr(0,this.deptform.partClassCode.lastIndexOf(".")+1),this.deptform.tempClassCode=this.deptform.partClassCode.substr(this.deptform.partClassCode.lastIndexOf(".")+1),this.deptform.sort=e.sort,this.deptform.enable=e.enable,this.dialogStatus="update",this.dialogFormVisible=!0},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateCategoryType",e.requestParam.parammaps={},null===e.deptform.pid||""===e.deptform.pid?e.requestParam.parammaps["pid"]=-1:e.requestParam.parammaps["pid"]=e.deptform.pid,e.requestParam.parammaps["partName"]=e.deptform.partClassName,e.deptform.partClassCode=e.deptform.tempPClassCode+e.deptform.tempClassCode,e.requestParam.parammaps["partCode"]=e.deptform.partClassCode,e.requestParam.parammaps["sort"]=e.deptform.sort,e.requestParam.parammaps["enable"]=e.deptform.enable,e.requestParam.parammaps["id"]=e.deptform.id,Object(o["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(o["w"])(t,e.$notify)})))}))},handleDownload:function(){var e=this;this.$alert("备件类别正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="getpart_classList",Object(o["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["类别名称","类别编号","层级","子类数","供应商数","品牌数","备件数","是否启用"],r=["partClassName","partClassCode","section","childrens","pps","bps","ps","enable"],n=Object(o["x"])(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件类别",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateCategoryType",this.requestParam.parammaps={},null===t.pid||""===t.pid?this.requestParam.parammaps["pid"]=-1:this.requestParam.parammaps["pid"]=t.pid,this.requestParam.parammaps["partName"]=t.partClassName,this.requestParam.parammaps["partCode"]=t.partClassCode,this.requestParam.parammaps["sort"]=t.sort,this.requestParam.parammaps["enable"]=t.enable,this.requestParam.parammaps["id"]=t.id,Object(o["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(o["w"])(e,a.$notify)}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("备件类别名称:"+e.partClassName+"("+e.partClassCode+")","确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteCategoryType",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(o["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败",type:"error",duration:2e3})}))}))}}},h=u,g=(a("c3c5"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"1e7ffed0",null);t["default"]=f.exports},7192:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-评估验证",use:"icon-评估验证-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-评估验证"><defs><style type="text/css"></style></defs><path d="M845.312 1023.488H154.624c-68.096 0-122.88-55.808-122.88-124.928V128.512C31.744 59.904 87.04 3.584 154.624 3.584H880.64c68.096 0 122.88 56.32 122.88 124.928v693.248c0 18.944-14.848 33.28-32.768 33.28-18.432 0-32.768-15.36-32.768-33.28V128.512c0-31.744-25.088-57.344-56.832-57.344H154.624c-31.232 0-56.832 25.6-56.832 57.344v770.56c0 31.744 25.088 57.344 56.832 57.344H844.8c18.432 0 32.768 15.36 32.768 33.28 1.024 19.456-13.824 33.792-32.256 33.792z m0 0" fill="#ffffff" p-id="15523" /><path d="M238.592 896v-329.728c0-15.36 15.36-27.648 33.28-27.648 18.944 0 33.28 12.8 33.28 27.648V896c0 15.36-15.36 27.648-33.28 27.648s-33.28-12.288-33.28-27.648z m115.2-38.912M754.688 576V896c0 15.36-15.36 27.648-33.28 27.648-18.944 0-33.28-12.8-33.28-27.648v-320c0-15.36 15.36-37.376 33.28-37.376s33.28 21.504 33.28 37.376z m-115.712 0M544.256 896v-237.568c0-11.776 15.36-20.48 33.28-20.48 18.944 0 33.28 9.216 33.28 20.48V896c0 11.776-15.36 27.648-33.28 27.648s-33.28-16.384-33.28-27.648z m115.2 0M396.8 900.096v-203.264c0-9.728 15.36-17.408 33.28-17.408 18.944 0 33.28 8.192 33.28 17.408v203.264c0 9.728-15.36 23.552-33.28 23.552-18.432 0-33.28-13.824-33.28-23.552z m115.2 0M492.544 544.256c-3.584 0-7.68 0-11.264-4.096-3.584-3.584-3.584-11.264-3.584-15.36l19.456-105.984c0-3.584 3.584-7.68 3.584-7.68l228.352-229.376c15.36-14.848 34.304-22.528 53.248-22.528s37.888 7.68 52.736 23.04c14.848 15.36 22.528 34.304 22.528 53.248s-7.68 37.888-23.04 52.736l-228.352 229.376c-3.584 3.584-3.584 3.584-7.68 3.584l-105.984 23.04z m38.4-113.152L515.072 506.88l72.192-14.848 194.048-195.584L721.408 235.52l-190.464 195.584z m251.392-237.056c-11.264 0-22.528 3.584-30.208 11.264l-7.68 7.68 59.904 60.928 7.68-7.68c7.68-7.68 11.264-18.944 11.776-30.208 0-11.264-3.584-22.528-11.264-30.208-7.68-7.68-18.944-11.264-30.208-11.776z" fill="#ffffff" p-id="15524" /></symbol>'});n.a.add(l);t["default"]=l},7202:function(e,t,a){"use strict";a("4767")},7217:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-单头牛指标",use:"icon-单头牛指标-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-单头牛指标"><defs><style type="text/css"></style></defs><path d="M850.770634 173.35728c-50.919716-50.909483-104.868419-51.216475-189.32188-51.216475L362.551246 122.140805c-84.71952 0-138.422629 0.327458-189.199083 51.093678-50.889017 50.89925-51.206242 104.868419-51.206242 189.32188l0 298.887274c0 84.729753 0.337691 138.443096 51.093678 189.199083 50.919716 50.919716 104.858186 51.216475 189.311647 51.216475l298.897507 0c84.71952 0 138.422629-0.317225 189.199083-51.093678 50.878784-50.878784 51.206242-104.858186 51.206242-189.32188l0-298.887274C901.854079 277.836843 901.536854 224.1235 850.770634 173.35728zM744.295624 707.901739c-4.799306 13.108552-13.865799 31.875988-32.868595 52.423977-32.899294 37.023218-83.645049 51.062979-115.040083 57.31538-15.380292 3.059686-39.243793 5.14723-64.887846 5.750981l0 0.092098c-3.110851 0.051165-6.211469 0.030699-9.322319 0.030699-5.54632 0.051165-11.113105 0.061398-16.669658-0.030699l0-0.225127c-25.644053-0.828878-49.517787-3.366677-64.887846-6.405897-31.395034-6.221702-82.151022-20.210297-115.050316-57.059554-19.002796-20.455891-26.206872-33.196053-32.868595-52.106752-6.65149-18.900465-8.114818-22.584368-8.114818-47.931662 0-68.489884 51.912323-101.297081 110.455671-101.604072 9.864672 0.26606 239.35132 0.102331 246.913553 0 58.543348 0.306992 110.455671 32.807197 110.455671 101.604072C752.410442 685.21504 749.09493 694.793186 744.295624 707.901739zM783.324522 467.394083c6.610558 10.100032 27.598568 5.607718 27.598568 5.607718s-15.277962 44.708248-51.513234 41.085744c-15.779382-1.575892-29.348422-6.579859-39.499619-11.911284 0.010233 11.215436 0.030699 25.89988 0.112564 40.73782 1.146103 12.822027 3.694135 28.662807 5.208629 37.473473-20.660552-21.3871-50.929949-29.225625-83.276658-29.399587-5.669116-0.102331-241.72539 0.102331-246.913553 0-32.029484 0.163729-62.002123 7.92039-82.652442 28.918633 1.678222-7.28594 4.01136-19.279089 4.686742-32.090882-0.194428-5.669116-0.163729-27.086915-0.102331-43.910069-9.649777 4.574179-21.806655 8.626471-35.713386 10.007935-36.235272 3.612271-51.513234-40.993646-51.513234-40.993646s20.977777 4.482081 27.588335-5.587252c13.93743-21.223371 39.417755-26.360368 57.71447-27.086915-104.899118-51.922557-94.440929-155.552775-94.440929-155.552775s4.287653-33.492812 16.557094-35.406394c14.46955-2.241041 18.450211 12.412704 22.072715 27.956725 11.358699 48.740074 64.652486 69.994144 103.425557 79.111802 23.617907-27.956725 57.745169-46.059012 106.116853-46.059012l10.32516 0c-10.263761-22.6253 12.729929-44.278459 11.133571-39.172161-11.102872 35.518958 24.436552 37.422308 23.710005 34.997072-14.500249-48.054459 20.026102-59.546188 18.24555-57.100486-18.757203 25.654286 5.935176 49.865711 20.957311 61.275575l11.2973 0c47.235814 0 82.284051 17.938558 107.283422 46.816259 38.895869-8.728802 94.481861-29.77821 106.10662-79.664388 3.612271-15.533788 7.592932-30.167067 22.042016-27.926026 12.248975 1.90335 16.526395 35.375695 16.526395 35.375695s10.42749 103.33346-94.04184 155.23555C740.765217 440.389032 768.558214 444.840414 783.324522 467.394083zM677.483962 581.421092c-11.747555-4.031826-24.170492 0.071631-31.732725 9.127891-0.808412 0.388856-1.473561 1.084705-1.790786 1.995447-0.613984 1.811252 0.337691 3.765767 2.118244 4.379751 1.514493 0.511653 3.080152-0.122797 3.929496-1.401929 5.791913-7.623631 15.861246-11.154038 25.357528-7.910157 11.880585 4.072759 18.184151 17.07898 14.090926 29.061896-0.552585 1.606591-1.289366 3.090385-2.13871 4.482081l0.092098 0.061398c-0.143263 0.225127-0.306992 0.419556-0.399089 0.675382-0.613984 1.811252 0.337691 3.765767 2.128477 4.379751 1.790786 0.613984 3.735068-0.358157 4.359284-2.159176 0.153496-0.450255 0.204661-0.910743 0.173962-1.360997 0.695848-1.289366 1.432629-2.548032 1.923816-3.980661C700.876742 603.381244 692.761923 586.650187 677.483962 581.421092zM640.378879 475.570299c-9.537214-6.876618-21.796422-13.548574-43.910069-12.883425-19.780509 0.583285-31.446199 13.221116-36.347836 18.532075-4.891404 5.310959 3.121084 12.463869 9.127891 5.403057 8.565073-6.242168 15.717983-11.583826 33.636075-10.765181 16.403598 0.747014 25.746384 4.042059 32.029484 7.081279C640.675638 485.721497 648.13554 481.147318 640.378879 475.570299zM466.519156 482.32412c-4.799306-5.495154-19.61678-19.033495-38.987966-19.637246-21.653159-0.685615-28.550243 6.897084-37.893029 14.009062-7.582699 5.771447-0.255827 10.570753 5.351891 7.623631 6.201236-3.27458 10.222829-8.411577 26.043143-8.544607 17.559934-0.13303 29.870308 5.894244 38.261419 12.351306C464.104153 490.346841 471.308229 487.829508 466.519156 482.32412zM387.571083 593.813331c-7.071046-9.496282-19.320021-14.223956-31.302937-10.734482-15.523555 4.502547-24.467251 20.834514-20.005636 36.470633 0.624217 2.148943 1.555425 4.093225 2.588965 5.976108 0.409322 1.453095 1.678222 2.537799 3.243881 2.537799 1.893116 0 3.428076-1.545192 3.428076-3.448542 0-1.023306-0.450255-1.90335-1.146103-2.537799-0.73678-1.37123-1.422396-2.783393-1.862417-4.338818-3.479241-12.167111 3.479241-24.866341 15.554254-28.376281 10.048867-2.916423 20.394493 1.534959 25.613354 10.110265l0.112564-0.071631c0.624217 0.644683 1.483794 1.043772 2.455935 1.043772 1.882883 0 3.417843-1.545192 3.417843-3.448542C389.668861 595.563184 388.79905 594.335217 387.571083 593.813331z" p-id="8485" /></symbol>'});n.a.add(l);t["default"]=l},7296:function(e,t,a){"use strict";a("7ff7")},"729b":function(e,t,a){"use strict";a("c217")},"72a8":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-成本分析",use:"icon-成本分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-成本分析"><defs><style type="text/css"></style></defs><path d="M923.847227 973.893971v0.393594H124.998413V330.170507a25.091636 25.091636 0 0 0-24.944038-24.993237 25.091636 25.091636 0 0 0-24.993238 24.993237v668.913498c0 13.726601 11.119039 24.84564 24.894839 24.84564h823.989649a25.042437 25.042437 0 1 0-0.098398-50.035674z m0 0" p-id="9235" /><path d="M442.137013 726.175564h109.566811v208.112981H442.137013zM708.895544 661.970495h109.66521v272.367249h-109.66521zM175.280084 661.970495h109.61601v272.367249H175.280084z" p-id="9236" /><path d="M827.465825 288.449512A284.371875 284.371875 0 1 0 261.083639 320.675045a287.274633 287.274633 0 0 0 226.119921 282.895897l43.295372 49.592881c3.788345 4.427936 9.347864 6.937099 15.15338 6.937099a20.171707 20.171707 0 0 0 15.005782-7.183096l40.146618-49.691279a284.371875 284.371875 0 0 0 226.661113-314.777035z m-187.744477 36.751867v27.059608h-69.764589l-0.491992 0.491993v37.588255h70.256581v27.059607h-70.256581v66.419037h-48.116903v-66.419037H451.534077v-27.059607h69.764588v-37.588255l-0.393594-0.491993h-69.370994v-27.059608h54.857204L425.409256 171.798004h54.808005l65.238254 134.215654 65.139855-134.215654h54.857204l-80.982025 153.452575h55.250799z" p-id="9237" /></symbol>'});n.a.add(l);t["default"]=l},"72c2":function(e,t,a){"use strict";a("28d0")},7488:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("98d6");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"475px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({legend:{},tooltip:{},dataset:{source:[["product","2015","2016","2017"],["10月",43.3,85.8,93.7],["9月",83.1,73.4,55.1],["8月",86.4,65.2,82.5],["7月",72.4,53.9,39.1]]},xAxis:[{type:"category",gridIndex:0,name:"最近12个月"}],yAxis:[{gridIndex:0,name:"总费用"}],grid:[{bottom:"58%"},{top:"58%"}],series:[{type:"bar"},{type:"bar"},{type:"bar"}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},7509:function(e,t,a){"use strict";a.r(t);var s=a("2909"),i=a("3835"),r=(a("ac6a"),a("b85c")),n=(a("7f7f"),a("6762"),a("2fdb"),{visitedViews:[],cachedViews:[]}),l={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var a,s=Object(r["a"])(e.visitedViews.entries());try{for(s.s();!(a=s.n()).done;){var n=Object(i["a"])(a.value,2),l=n[0],o=n[1];if(o.path===t.path){e.visitedViews.splice(l,1);break}}}catch(p){s.e(p)}finally{s.f()}},DEL_CACHED_VIEW:function(e,t){var a,s=Object(r["a"])(e.cachedViews);try{for(s.s();!(a=s.n()).done;){var i=a.value;if(i===t.name){var n=e.cachedViews.indexOf(i);e.cachedViews.splice(n,1);break}}}catch(l){s.e(l)}finally{s.f()}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var a,s=Object(r["a"])(e.cachedViews);try{for(s.s();!(a=s.n()).done;){var i=a.value;if(i===t.name){var n=e.cachedViews.indexOf(i);e.cachedViews=e.cachedViews.slice(n,n+1);break}}}catch(l){s.e(l)}finally{s.f()}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var a,s=Object(r["a"])(e.visitedViews);try{for(s.s();!(a=s.n()).done;){var i=a.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(n){s.e(n)}finally{s.f()}}},o={addView:function(e,t){var a=e.dispatch;a("addVisitedView",t),a("addCachedView",t)},addVisitedView:function(e,t){var a=e.commit;a("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var a=e.commit;a("ADD_CACHED_VIEW",t)},delView:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delVisitedView",t),a("delCachedView",t),e({visitedViews:Object(s["a"])(i.visitedViews),cachedViews:Object(s["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_VISITED_VIEW",t),e(Object(s["a"])(i.visitedViews))}))},delCachedView:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_CACHED_VIEW",t),e(Object(s["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delOthersVisitedViews",t),a("delOthersCachedViews",t),e({visitedViews:Object(s["a"])(i.visitedViews),cachedViews:Object(s["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_OTHERS_VISITED_VIEWS",t),e(Object(s["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_OTHERS_CACHED_VIEWS",t),e(Object(s["a"])(i.cachedViews))}))},delAllViews:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delAllVisitedViews",t),a("delAllCachedViews",t),e({visitedViews:Object(s["a"])(i.visitedViews),cachedViews:Object(s["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(s["a"])(a.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(s["a"])(a.cachedViews))}))},updateVisitedView:function(e,t){var a=e.commit;a("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:n,mutations:l,actions:o}},"75a4":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},7613:function(e,t,a){"use strict";a("07c3")},"766c":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-水表分析",use:"icon-水表分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-水表分析"><defs><style type="text/css"></style></defs><path d="M371.3536 741.0176c0 71.168 62.976 128.9216 140.6464 128.9216s140.6464-57.7536 140.6464-128.9216q0-71.168-140.6464-257.8432-140.6464 186.624-140.6464 257.8432z m0 0" p-id="7087" /><path d="M914.2784 0H109.7216A73.2672 73.2672 0 0 0 36.5568 73.1648v877.6704A73.2672 73.2672 0 0 0 109.7216 1024h804.5568a73.2672 73.2672 0 0 0 73.1648-73.1648V73.1648A73.2672 73.2672 0 0 0 914.2784 0zM177.6128 51.2h668.8256v294.4512H177.6128zM87.808 972.8V51.2h38.5536v345.6h771.2256V51.2h38.5536v921.6z" p-id="7088" /><path d="M296.4992 141.4656h66.4064v113.92H296.4992zM478.8224 141.4656h66.4064v113.92H478.8224zM661.0944 141.4656h66.4064v113.92h-66.4064z" p-id="7089" /></symbol>'});n.a.add(l);t["default"]=l},"76f8":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-其他燃动成本",use:"icon-其他燃动成本-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-其他燃动成本"><defs><style type="text/css"></style></defs><path d="M555.306667 482.986667h237.226666a17.749333 17.749333 0 0 0 18.048-17.493334V235.136c0-9.642667-8.106667-17.493333-18.005333-17.493333h-237.226667a17.749333 17.749333 0 0 0-18.048 17.493333V465.493333c0 9.685333 8.064 17.493333 18.005334 17.493334zM472.362667 544.426667H235.093333a17.749333 17.749333 0 0 0-18.048 17.493333v230.229333c0 9.642667 8.106667 17.493333 18.005334 17.493334h237.226666a17.749333 17.749333 0 0 0 18.048-17.493334V561.877333c0-9.642667-8.064-17.493333-18.005333-17.493333z m338.218666 17.493333c0-9.685333-8.106667-17.493333-18.005333-17.493333h-237.226667a17.749333 17.749333 0 0 0-18.048 17.493333v230.229333c0 9.642667 8.064 17.493333 18.005334 17.493334h237.226666a17.749333 17.749333 0 0 0 18.048-17.493334V561.877333zM353.706667 214.016C276.181333 214.058667 213.333333 275.072 213.333333 350.336s62.848 136.277333 140.373334 136.277333c77.568 0 140.416-61.013333 140.416-136.277333S431.274667 214.058667 353.749333 214.058667z" p-id="11415" /></symbol>'});n.a.add(l);t["default"]=l},"77b4":function(e,t,a){"use strict";a("dc59")},"78bf":function(e,t,a){},"78fd":function(e,t,a){"use strict";a("3dfb")},"79a7":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.parammaps,"pastureName",t)},expression:"tableObj.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj.parammaps.departName,callback:function(t){e.$set(e.tableObj.parammaps,"departName",t)},expression:"tableObj.parammaps.departName"}},e._l(e.departList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tableObj.parammaps.date,callback:function(t){e.$set(e.tableObj.parammaps,"date",t)},expression:"tableObj.parammaps.date"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.form_export}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天煤炭用量","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remarks))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.see_record(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.tableObj.offset,limit:e.tableObj.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules1,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.departList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.temp.departmentName,callback:function(t){e.$set(e.temp,"departmentName",t)},expression:"temp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前煤炭用量:",prop:"dosage"}},[a("el-input",{ref:"dosage",model:{value:e.temp.dosage,callback:function(t){e.$set(e.temp,"dosage",t)},expression:"temp.dosage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.temp.price,callback:function(t){e.$set(e.temp,"price",t)},expression:"temp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前费用:",prop:"expense"}},[a("el-input",{ref:"expense",model:{value:e.temp.expense,callback:function(t){e.$set(e.temp,"expense",t)},expression:"temp.expense"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"记录人:",prop:"inputid"}},[a("el-select",{ref:"inputid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"记录人"},on:{change:e.change_emp},model:{value:e.temp.inputid,callback:function(t){e.$set(e.temp,"inputid",t)},expression:"temp.inputid "}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"记录人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.temp.empname,callback:function(t){e.$set(e.temp,"empname",t)},expression:"temp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[a("el-input",{ref:"remarks",model:{value:e.temp.remarks,callback:function(t){e.$set(e.temp,"remarks",t)},expression:"temp.remarks"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"用量记录",visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("牧场:"+e._s(e.dosageRecordTemp.pastureName))]),e._v(" "),a("span",[e._v("部门:"+e._s(e.dosageRecordTemp.departmentName))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",prop:"dosage","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"expense",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.get_record_list}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules2,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_delete_sure()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("ade3")),n=a("2934"),l=a("6724"),o=a("ed08"),p=a("333d"),m=(a("5c96"),a("5f87")),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"CoalConsum",components:{Pagination:p["a"]},directives:{waves:l["a"]},data:function(){var e;return{isokDisable:!1,isElecAdd:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},tableObj:{name:"getCoal",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadObj:{name:"getCoal",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadList:[],useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],pastureList:[],departList1:[],departList2:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",departName:"",dosage:"",price:"",expense:"",remarks:"",empname:"",date:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputid:this.$store.state.user.employeid,departmentId:"",pastureId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getCoalList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{departmentId:""}},dosageRecordTemp:{},rules:(e={pastureId:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],dosage:[{required:!0,message:"必填",trigger:"blur"}],price:[{required:!0,message:"必填",trigger:"blur"}]},Object(r["a"])(e,"departmentId",[{required:!0,message:"必填",trigger:"blur"}]),Object(r["a"])(e,"expense",[{required:!0,message:"必填",trigger:"blur"}]),e),rules2:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importCoal",importParams:"牧场,部门,当天煤炭用量,单价,当天费用,记录人,日期,备注",sheetname:"煤炭用量"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(o["f"])(e,this.list)},tableSort2:function(e){Object(o["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:coal:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="cost:coal:export",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isElecExport=s;var i="cost:coal:import",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isElecImport=r;var l="cost:coal:modify",o=Object(n["v"])(this.$store.state.user.buttons,l);this.isElecModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},form_export:function(){var e=this;this.downLoadObj.parammaps=this.tableObj.parammaps,Object(n["e"])(this.downLoadObj).then((function(t){null!==t.data.list?e.downLoadList=t.data.list:e.downLoadList=[];var a=[{tHeader:["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注"],filterVal:["pastureName","departmentName","dosage","price","expense","empname","date","remarks"],tableDatas:e.downLoadList,sheetName:"煤炭用量"}];Object(o["d"])(a,"煤炭用量",!0,"xlsx")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注","错误信息"],r=["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;"现代牧业"==this.tableObj.parammaps.pastureName&&(this.tableObj.parammaps.pastureName=""),this.listLoading=!0,Object(n["e"])(this.tableObj).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.pastureList=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.get_departList1(),e.get_departList2()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureList.find((function(t){return t.name==e})).id,this.tableObj.parammaps.departName="",this.get_departList1()},get_departList1:function(){var e=this;Object(n["e"])(this.getDepartParam1).then((function(t){e.departList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.temp.departmentId="",this.get_departList2()},get_departList2:function(){var e=this;Object(n["e"])(this.getDepartParam2).then((function(t){e.departList2=t.data.list}))},form_search:function(){this.listLoading=!0,this.tableObj.offset=1,null==this.tableObj.parammaps.date&&(this.tableObj.parammaps.date=""),this.get_table_data()},change_emp:function(e){console.log("记录人",e),this.$set(this.temp,"inputid",e),this.$forceUpdate()},form_reset:function(){this.temp.pastureName="",this.temp.departName="",this.temp.dosage="",this.temp.price="",this.temp.expense="",this.temp.remarks="",this.temp.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.temp.empname="",this.temp.inputid=this.$store.state.user.employeid,this.temp.departmentId="",this.temp.pastureId=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log("this.temp=====>",this.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertCoal",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertCoal",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){var t=this;console.log("row=======",e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a={name:"updateCoal",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},form_delete_sure:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){if(t){var a={name:"delCoal",offset:0,pagecount:0,parammaps:{date:e.deleteTemp.startTime}};Object(n["k"])(a).then((function(t){"fail"==t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())}))}}))},see_record:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),console.log("row=========see_record",e),this.get_record_list()},get_record_list:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.departmentId=this.dosageRecordTemp.departmentId,Object(n["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"7a8b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.getdataListParm.parammaps,"stuteSH",t)},expression:"getdataListParm.parammaps.stuteSH"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"申购部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购人"},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSubscribeAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isSubscribeExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"filter-button"}),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期",sortable:"",prop:"inputTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSubscribeSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),4==s.statue||6==s.statue||8==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isSubscribeExamineKG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]),e._v(" "),1==s.priceClass&&5==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine33(s)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine33(s)}}},[e._v("审核5")]),e._v(" "),e.isSubscribeExamineCG&&11==s.statue&&1==s.priceClass||e.isSubscribeExamineCG&&5==s.statue&&0==s.priceClass?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核5")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核5")]),e._v(" "),!e.isSubscribeDelete||4!=s.statue&&6!=s.statue&&8!=s.statue&&12!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.createTemp.orderNumber,callback:function(t){e.$set(e.createTemp,"orderNumber",t)},expression:"createTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购部门",disabled:"update"===e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购人",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),"create"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"线上采购",clearable:""},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.onlineSubscriptionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.providerName,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e(),e._v(" "),"update"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[""==e.createTemp.providerId?a("span",[e._v(e._s(t.row.price))]):a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"price"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.purpose,callback:function(a){e.$set(t.row,"purpose",a)},expression:"scope.row.purpose"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.seeTemp.orderNumber,callback:function(t){e.$set(e.seeTemp,"orderNumber",t)},expression:"seeTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:""},model:{value:e.seeTemp.pastureId,callback:function(t){e.$set(e.seeTemp,"pastureId",t)},expression:"seeTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.seeTemp.createTime,callback:function(t){e.$set(e.seeTemp,"createTime",t)},expression:"seeTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",sortable:"",prop:"storageAmount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",sortable:"",prop:"price",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量",sortable:"",prop:"amount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isSubscribeExamineKG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]),e._v(" "),1==e.seeTemp.priceClass&&5==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine33(e.row)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine33(e.row)}}},[e._v("审核5")]),e._v(" "),e.isSubscribeExamineCG&&11==e.seeTemp.statue&&1==e.seeTemp.priceClass||e.isSubscribeExamineCG&&5==e.seeTemp.statue&&0==e.seeTemp.priceClass?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核5")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核5")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine22"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData22()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine33"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData33()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Subscribe",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isSubscribeAdd:[],isSubscribeExamineSBZG:[],isSubscribeTemplate:[],isSubscribeImport:[],isSubscribeExport:[],isSubscribeSee:[],isSubscribeDelete:[],isSubscribeExamineKG:[],isSubscribeExamineCG:[],isSubscribeExamineZG:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],onlineSubscriptionList:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getflexProviderList",offset:0,pagecount:0,parammaps:{}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine33:"审核4",examine3:"审核5"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getpartpurchaseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),empId:c.a.get("employeid"),orderNumber:"",stuteSH:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),providerId:""},requestSparePart:{name:"getPartsListSG",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"SG"}},getParmCreateAmount:{name:"getPartsListSGv2",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isPercentage:!1,percentage:1,pending:{total:0,getdataListParm:{name:"getpartpurchaseWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")}}}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:subscribe:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSubscribeAdd=t;var a="customs:subscribe:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSubscribeTemplate=s;var i="customs:subscribe:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSubscribeImport=n;var l="customs:subscribe:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isSubscribeExport=o;var p="customs:subscribe:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isSubscribeSee=m;var c="customs:subscribe:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isSubscribeDelete=d;var u="customs:subscribe:examineKG",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isSubscribeExamineKG=h;var g="customs:subscribe:examineSBZG",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isSubscribeExamineSBZG=f;var b="customs:subscribe:examineZG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isSubscribeExamineZG=v;var y="customs:subscribe:examineCG",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isSubscribeExamineCG=_},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.orderNumber=this.getdataListParm.parammaps.orderNumber,this.pending.getdataListParm.parammaps.stuteSH=this.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getpartpurchaseList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),orderNumber:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getpartpurchaseWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getpartpurchaseWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue?"未通过":5==e.statue?"审核中":6==e.statue?"未通过":7==e.statue?"已通过":8==e.statue?"未通过":9==e.statue?"审核中":10==e.statue?"未通过":11==e.statue?"审核中":12==e.statue?"未通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.employeId=parseInt(c.a.get("employeid")),this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.orderNumber="",this.createTemp.providerId="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeProvider:function(e){""!==e&&(this.createTemp.providerName=this.onlineSubscriptionList.find((function(t){return t.id==e})).providerName),this.listAdd=[]},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""==this.createTemp.providerId?this.requestSparePart.name="getPartsListSG":(this.requestSparePart.name="getPartsListSGFlex",this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps.providerName=this.createTemp.providerName),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){var t=this;console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.partId),console.log(this.listAdd),""==this.createTemp.providerId?(this.listAdd.length>0&&this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["e"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0]),e=a.data.list[0],null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$set(e,"amount",""),t.$set(e,"purpose",""),t.listAdd.unshift(e),t.$forceUpdate()}))}))),this.$forceUpdate()):(this.listAdd.length>0?this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e),this.$forceUpdate()),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.orderNumber||null==e.createTemp.orderNumber||void 0==e.createTemp.orderNumber?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartpurchase",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,orderNumber:this.createTemp.orderNumber,useType:this.createTemp.useType,createTime:this.createTemp.createTime,employeId:this.createTemp.employeId,providerId:this.createTemp.providerId}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:"@insertBigPartpurchase.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.listSee=[],this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;1===this.seeTemp.priceClass?2===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核"},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=2):9===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=3):10===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson,status:"error",reason:t},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=3):5===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核"},{title:"采购审核"}],this.active=4):6===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"场长审核"},{title:"采购审核"}],this.active=4):11===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核"}],this.active=5):12===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson,status:"error",reason:t},{title:"采购审核"}],this.active=5):7===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=6):8===this.seeTemp.statue&&(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=6):2===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核"},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备主管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):9===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核"},{title:"采购审核"}],this.active=3):10===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson,status:"error",reason:t},{title:"供应主管审核"},{title:"采购审核"}],this.active=3):5===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核"}],this.active=4):6===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"采购审核"}],this.active=4):7===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=6):8===this.seeTemp.statue&&(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=6)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(null!==t.data.list){console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath,"=======1"),e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath,e.listAdd[a].srcpath=e.listSee[a].srcpath,e.listAdd[a].picpath=e.listSee[a].picpath,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize):(e.listSee[a].srcpath="",e.listSee[a].picpath="",e.listAdd[a].srcpath="",e.listAdd[a].picpath=""),console.log("http://127.0.0.1:8082/"),console.log(e.listSee,"============")}t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListSee.parammaps.id=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartpurchaseCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.onlineSubscriptionList=t.data.getflexProviderList.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("备件申购正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadPartpurchaseList",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","申购单号","申购时间","备件编号","备件名称","规格型号","品牌","单位","申购数量","申购部门","申购人","备注"],filterVal:["pastureName","orderNumber","inputTime","partCode","partName","specification","brandName","unit","amount","departmentName","empname","purpose"],tableDatas:t.data.list,sheetName:"备件申购"}];Object(l["d"])(e,"备件申购",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartpurchase",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log("点击了库管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=3:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine22:function(e){console.log("点击了设备主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine22",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData22:function(){var e=this;console.log("点击了设备主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseEquipment",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=9:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=10),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了供应主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了供应主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=5:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=6),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine33:function(e){console.log("点击了场长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine33",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData33:function(){var e=this;console.log("点击了场长审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseField",type:"e",parammaps:{id:e.examineTemp.id,statue:11,field:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseField",type:"e",parammaps:{id:e.examineTemp.id,statue:12,field:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:7,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:8,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))}}}),u=d,h=(a("6375"),a("ee8e"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"185a4974",null);t["default"]=g.exports},"7b1f":function(e,t,a){},"7b75":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("a7dc");a("817d");var o=3e3,p={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Techology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:o}]})}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"7b7f":function(e,t,a){},"7b95":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-部门",use:"icon-部门-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-部门"><defs><style type="text/css"></style></defs><path d="M395.776 887.04c-21.76-4.864-35.072-8.96-39.68-12.288-5.632-4.096-9.728-16.128-12.544-36.608-0.768-5.632-1.28-11.52-1.536-17.152v-8.192c-3.072 7.168-9.728 11.776-18.688 11.776h-61.696c-12.288 0-20.48-8.448-20.48-20.992v-125.44c0-12.544 8.192-20.992 20.48-20.992h61.696c8.96 0 15.872 4.352 18.688 11.776 1.28 2.816 1.792 6.144 1.792 9.216v104.192c0.768-7.168 1.792-14.848 3.072-22.784 3.072-18.432 10.752-32.256 22.784-41.728 13.056-9.984 27.648-17.408 43.008-22.528 16.384-5.632 33.536-10.496 50.944-15.104 1.024-0.256 2.048-0.512 3.328-0.768v-64.256c0-12.544 8.192-20.992 20.48-20.992h62.464c0-3.072-0.256-6.4-0.512-9.728-1.024-12.032-4.864-21.248-11.776-27.648-7.424-6.912-15.36-13.824-23.296-20.224-4.352-4.096-8.192-8.96-10.752-14.592-1.792-3.84-3.584-7.68-5.12-11.52h-11.008c-12.288 0-20.48-8.448-20.48-20.992v-25.856c-3.328-4.352-6.4-10.752-8.704-18.944-2.56-8.448-3.584-16.128-2.816-22.784 0.512-6.144 2.048-12.032 4.096-17.664 2.304-5.632 5.376-11.008 9.216-15.616-0.512-18.944 0.512-37.888 3.072-56.832 0.512-4.608 1.28-9.216 2.048-14.08-4.608-3.584-7.168-9.472-7.168-16.384V238.848c0-12.544 8.192-20.992 20.48-20.992h30.464c6.144-6.912 13.056-13.056 20.48-18.432 21.504-16.128 46.592-26.88 72.96-30.976 11.776-2.048 23.808-2.816 35.84-3.072 14.336 0 28.416 1.792 42.24 5.12l0.512 0.256V113.408H119.552l0.512 709.12H56.576v85.76h466.688c-17.408-2.048-34.304-4.608-51.2-7.168-28.928-4.608-54.528-9.216-76.288-14.08zM241.408 238.848c0-12.544 8.192-20.992 20.48-20.992h61.696c8.96 0 15.872 4.352 18.688 11.776 1.28 2.816 1.792 6.144 1.792 9.216v62.72c0 3.072-0.512 6.4-1.792 9.216-3.072 7.168-9.728 11.776-18.688 11.776h-61.696c-12.288 0-20.48-8.448-20.48-20.992V238.848z m0 188.16c0-12.544 8.192-20.992 20.48-20.992h61.696c8.96 0 15.872 4.352 18.688 11.776 1.28 2.816 1.792 6.144 1.792 9.216v62.72c0 3.072-0.512 6.4-1.792 9.216-3.072 7.168-9.728 11.776-18.688 11.776h-61.696c-12.288 0-20.48-8.448-20.48-20.992v-62.72z m0 0" p-id="17056" /><path d="M965.376 772.096c-1.024-9.472-2.816-18.688-5.632-27.648-4.096-12.288-12.032-22.784-22.528-30.464-11.008-7.936-23.296-14.336-36.096-18.944-13.824-5.12-27.648-9.472-41.984-13.056-13.568-3.328-26.88-7.68-39.936-12.544-13.312-5.376-23.808-11.52-31.744-18.176-7.936-6.656-13.568-13.824-16.896-21.248-3.328-7.168-5.376-14.592-5.888-22.272-0.512-7.424 0-14.848 1.536-22.016 0.768-5.12 2.304-9.984 4.608-14.848 1.792-3.84 4.352-7.424 7.168-10.496 3.072-3.072 6.656-5.888 10.24-8.192 4.352-2.816 8.448-6.144 12.544-9.728 4.352-4.096 8.192-8.704 10.752-14.08 3.328-6.144 5.888-12.288 8.448-18.432 2.56-7.424 4.608-14.848 6.656-22.272 5.12-1.536 9.984-4.352 13.824-7.936 4.352-4.096 7.936-8.704 10.752-14.08 3.328-6.144 5.376-14.08 6.912-24.064 1.024-6.4 0.768-13.056-0.512-19.456-1.024-4.608-2.56-8.96-4.864-13.056-1.792-3.584-4.608-6.656-8.192-8.704 0.512-19.2-0.512-38.656-3.584-57.6-2.816-17.664-6.912-35.328-12.8-52.224-6.144-18.432-15.36-35.84-27.648-50.944-6.144-7.424-13.312-14.08-21.248-19.968-9.472-6.912-19.456-12.8-30.208-17.664-11.52-5.376-23.552-9.728-35.84-12.8l-0.512-0.256c-13.312-3.328-27.136-5.12-40.704-5.12-11.52 0-23.296 1.024-34.816 2.816-25.6 4.096-49.664 14.336-70.4 29.952-7.168 5.12-13.824 11.264-19.712 17.664h-1.28c-4.096 4.608-7.936 9.216-11.52 14.336-9.984 14.336-17.408 30.208-22.272 46.848-3.584 11.776-6.4 23.552-8.448 35.584 0.256 0.256 0.768 0.512 1.024 0.768-0.768 4.352-1.536 8.704-2.048 12.8-2.56 18.176-3.584 36.608-3.072 54.784-3.84 4.608-6.656 9.728-8.704 15.104-2.048 5.376-3.584 11.008-4.096 16.896-0.768 6.4 0.256 13.824 2.56 22.016 1.536 5.888 4.096 11.52 7.424 16.64v1.536l0.256 0.256c2.816 3.584 6.144 7.168 9.472 10.24 3.072 2.304 6.656 4.096 10.24 5.12 2.304 7.424 4.864 14.848 7.424 22.272 1.024 2.56 2.048 4.864 3.072 7.168h1.28c1.536 3.84 3.328 7.424 5.12 11.264 2.56 5.376 5.888 10.24 10.24 14.08 7.68 6.144 15.104 12.8 22.528 19.456 6.656 6.144 10.496 15.104 11.264 26.624 0.256 3.328 0.256 6.4 0.512 9.472 0.256 3.84 0.256 7.424 0.256 10.752 0 6.144-1.024 12.288-3.328 17.92-2.56 6.656-6.656 12.544-11.776 17.408-5.632 5.632-13.568 11.776-23.808 18.176-12.8 7.936-26.88 14.08-41.472 17.92l-3.072 0.768c-16.896 4.352-33.28 9.216-49.408 14.336-15.104 4.864-29.184 12.032-41.472 21.76-11.776 9.216-19.2 22.528-22.016 40.448-1.28 7.68-2.304 14.848-3.072 22.016v20.48c0 3.072-0.512 6.144-1.792 8.96v7.936c0.256 5.632 0.512 11.264 1.28 16.64 2.816 19.712 6.656 31.488 12.032 35.328 4.352 3.328 17.152 7.168 38.144 11.776 20.992 4.608 45.568 8.96 73.472 13.312 16.128 2.56 32.768 4.864 49.408 6.912 12.032 1.536 24.32 2.816 36.608 4.352 29.44 3.072 54.784 4.864 76.288 4.864 14.08 0 30.976-0.768 50.176-2.304 19.2-1.536 39.424-3.328 59.904-5.888 20.48-2.56 41.216-5.12 62.208-8.192 20.736-3.072 39.424-6.4 56.32-9.984 14.336-3.072 28.416-6.656 42.24-11.264 11.52-3.84 18.432-7.424 20.992-10.752 3.328-5.12 6.144-13.056 7.68-23.04 1.792-10.496 2.56-21.248 2.56-32 0.768-11.52 0.256-22.784-1.024-34.048z m-623.104 40.704c1.28-2.816 1.792-6.144 1.792-9.216v-21.248c-1.024 8.704-1.536 17.152-1.792 24.832v5.632z m0 0" p-id="17057" /></symbol>'});n.a.add(l);t["default"]=l},"7c34":function(e,t,a){},"7ce9":function(e,t,a){},"7d40":function(e,t,a){"use strict";a("9d4b")},"7d4a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.table1.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"pastureName",t)},expression:"table1.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"冲销类型"},on:{change:e.change_type},model:{value:e.table1.getdataListParm.parammaps.writeoffType,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"writeoffType",t)},expression:"table1.getdataListParm.parammaps.writeoffType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备管理平台单号"},model:{value:e.table1.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"orderNumber",t)},expression:"table1.getdataListParm.parammaps.orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",placeholder:"是否已开票"},model:{value:e.table1.getdataListParm.parammaps.hasTicket,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"hasTicket",t)},expression:"table1.getdataListParm.parammaps.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isWriteoffAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table1.listLoading,expression:"table1.listLoading"}],key:e.table1.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table1.pageNum-1)*e.table1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"150px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证号","min-width":"150px",align:"center",prop:"materialCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证年度","min-width":"150px",align:"center",prop:"proofYear"}}),e._v(" "),a("el-table-column",{attrs:{label:"凭证中的过账信息","min-width":"150px",align:"center",prop:"chargeDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台单号","min-width":"150px",align:"center",prop:"orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-table-column",{attrs:{label:"是否已开票","min-width":"150px",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.hasTicket?a("span",[e._v("是")]):e._e(),e._v(" "),0==t.row.hasTicket?a("span",[e._v("否")]):e._e(),e._v(" "),""==t.row.hasTicket?a("span"):e._e()]}}],null,!1,4169319136)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台行号","min-width":"150px",align:"center",prop:"rowNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"150px",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isWriteoffSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table1.total>0,expression:"table1.total>0"}],attrs:{total:e.table1.total,page:e.table1.getdataListParm.offset,limit:e.table1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table1.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"create",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.create.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备管理平台单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:"see"==e.dialogStatus},on:{blur:e.blurOrderNumber},model:{value:e.create.temp.orderNumber,callback:function(t){e.$set(e.create.temp,"orderNumber",t)},expression:"create.temp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"冲销类型:",prop:"NumberType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},on:{change:e.changeWriteoff},model:{value:e.create.temp.NumberType,callback:function(t){e.$set(e.create.temp,"NumberType",t)},expression:"create.temp.NumberType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否已开票:",prop:"hasTicket"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},model:{value:e.create.temp.hasTicket,callback:function(t){e.$set(e.create.temp,"hasTicket",t)},expression:"create.temp.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证号:",prop:"materialCode"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.materialCode,callback:function(t){e.$set(e.create.temp,"materialCode",t)},expression:"create.temp.materialCode"}},e._l(e.materialVoucherNoList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"凭证中的过账日期:",prop:"chargeDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"","picker-options":e.pickerOptions,type:"date",placeholder:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.create.temp.chargeDate,callback:function(t){e.$set(e.create.temp,"chargeDate",t)},expression:"create.temp.chargeDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证年度:",prop:"proofYear"}},[a("el-input",{ref:"proofYear",attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.proofYear,callback:function(t){e.$set(e.create.temp,"proofYear",t)},expression:"create.temp.proofYear"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"行号",align:"center",prop:"rowNumber",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"partBrand",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"supplier",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"库位",prop:"warehouse",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更数量",prop:"changeCount",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"unitPrice",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"90"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["create"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("2934")),n=a("ed08"),l=a("333d"),o=a("5c96"),p=a("a78e"),m=a.n(p),c={name:"Writeoff",components:{Pagination:l["a"]},data:function(){return{findAllPasture:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,returntype:"Map",parammaps:{}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}}],writeoffList:[{id:1,name:"备件入库"},{id:3,name:"备件出库"}],invoicedReturnDocList:[{id:0,name:"否"},{id:1,name:"是"}],materialVoucherNoList:[{id:0,name:"11111"},{id:1,name:"2222"}],table1:{getdataListParm:{name:"getLaidProofList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),writeoffType:"备件入库",orderNumber:"",hasTicket:""}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogStatus:"",dialogFormVisible:!1,textMap:{create:"新增",see:"查看"},rules:{orderNumber:[{required:!0,message:"必填",trigger:"blur"}],NumberType:[{required:!0,message:"必填",trigger:"blur"}]},create:{temp:{applyDate:Object(n["e"])(new Date,"{y}-{m}-{d}")},getdataListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},getdataListParm2:{name:"getPartlaidByBigid",returntype:"Map",parammaps:{bigid:""}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},isWriteoffAdd:[],isWriteoffSee:[],isWriteoffDel:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="customs:writeoff:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isWriteoffAdd=t;var a="customs:writeoff:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isWriteoffSee=s;var i="customs:writeoff:del",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isWriteoffDel=n},get_table_data:function(){var e=this;this.table1.listLoading=!0,Object(r["e"])(this.table1.getdataListParm).then((function(t){t.data.list?(console.log("table数据",t.data.list),e.table1.list=t.data.list,e.table1.pageNum=t.data.pageNum,e.table1.pageSize=t.data.pageSize):(e.table1.list=[],e.table1.pageNum=0,e.table1.pageSize=0),t.data.total&&(e.table1.total=t.data.total),setTimeout((function(){e.table1.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),this.table1.listLoading=!0,this.table1.getdataListParm.offset=1,this.get_table_data()},form_add:function(){this.dialogStatus="create",this.dialogFormVisible=!0,this.create.temp={materialCode:"",proofYear:"",chargeDate:"",orderNumber:"",hasTicket:"",orderNumberId:"",NumberType:"",rowsNumber:[]},this.create.list=[]},changeWriteoff:function(e){this.getTableFormList()},blurOrderNumber:function(){this.getTableFormList()},getTableFormList:function(){var e=this,t="authdata/sap/proof/detail",a={OrderNumber:this.create.temp.orderNumber,NumberType:this.create.temp.NumberType};""!=this.create.temp.orderNumber?""!=this.create.temp.NumberType?Object(r["A"])(t,a).then((function(t){console.log(t.msg,"response==="),"fail"!==t.msg?t.data?(e.create.temp=t.data,e.create.temp.rowsNumber=[],t.data.parts?e.create.list=t.data.parts:e.create.list=[]):(e.create.list=[],e.create.temp={}):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})})).catch((function(e){})):this.$message({title:"",message:"冲销类型不能为空",type:"warning",duration:2e3}):this.$message({title:"",message:"设备管理平台单号不能为空",type:"warning",duration:2e3})},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var t=[];this.create.list.forEach((function(e){t.push(e.rowNumber)})),console.log("rowsNumberArr",t),this.$refs["create"].validate((function(a){if(a){var s="authdata/sap/proof/off",i={materialCode:e.create.temp.materialCode,proofYear:e.create.temp.proofYear,chargeDate:e.create.temp.chargeDate,orderNumber:e.create.temp.orderNumber,hasTicket:e.create.temp.hasTicket,rowsNumber:t,orderNumberId:e.create.temp.orderNumberId,NumberType:e.create.temp.NumberType};if(0==t.length)return void e.$message({message:"暂无冲销的备件,请稍等……",type:"warning",duration:2e3});Object(r["A"])(s,i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})}))}}))},change_type:function(e){console.log(e),"备件入库"==e&&(this.table1.getdataListParm.name="getLaidProofList",this.table1.getdataListParm.parammaps.writeoffType="备件入库"),"备件出库"==e&&(this.table1.getdataListParm.name="getReturnProofList",this.table1.getdataListParm.parammaps.writeoffType="备件出库"),"备件退库"==e&&(this.table1.getdataListParm.name="getQuitProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退库"),"备件退货"==e&&(this.table1.getdataListParm.name="getUseProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退货")},form_see:function(e){this.dialogStatus="see",this.create.temp=Object.assign({},e),console.log("row",e),1==e.NumberType&&(this.create.getdataListParm2.name="getPartlaidByBigid"),4==e.NumberType&&(this.create.getdataListParm2.name="getPartquitByBigid"),2==e.NumberType&&(this.create.getdataListParm2.name="getPartrefundByBigid"),3==e.NumberType&&(this.create.getdataListParm2.name="getPartuseByBigid"),this.create.getdataListParm2.parammaps.bigid=e.id,this.getDialogList2(),this.dialogFormVisible=!0},getDialogList2:function(){var e=this;Object(r["e"])(this.create.getdataListParm2).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},getDialogList:function(){var e=this;Object(r["e"])(this.create.getdataListParm).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPasture2=t.data.getPastureList.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDelate:function(e){var t=this;o["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("删除")})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},d=c,u=(a("a990"),a("8888"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"7c0e5a50",null);t["default"]=h.exports},"7d4f":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-elec",use:"icon-elec-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-elec"><defs><style type="text/css"></style></defs><path d="M896 64H128c-19.2 0-32 12.8-32 32v832c0 19.2 12.8 32 32 32h768c19.2 0 32-12.8 32-32V96c0-19.2-12.8-32-32-32z m-236.8 556.8l-156.8 240c-3.2 6.4-9.6 6.4-16 3.2s-6.4-9.6-6.4-12.8l22.4-131.2c3.2-12.8-6.4-22.4-19.2-25.6H480l-92.8-3.2c-12.8 0-22.4-9.6-22.4-22.4 0-3.2 0-6.4 3.2-9.6l124.8-201.6c3.2-6.4 9.6-6.4 16-3.2 3.2 3.2 6.4 6.4 6.4 9.6l-9.6 102.4c0 12.8 6.4 22.4 19.2 22.4H640c12.8 0 22.4 9.6 22.4 22.4 0 0-3.2 6.4-3.2 9.6zM832 352H192V192c0-19.2 12.8-32 32-32h576c19.2 0 32 12.8 32 32v160z" p-id="4373" /></symbol>'});n.a.add(l);t["default"]=l},"7d90":function(e,t,a){},"7de8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),5==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]),e._v(" "),3==s.SHStatue&&e.isDepartmentCharge&&s.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,2923556019),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"60%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"视频",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"350px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||6==e.SHStatue||8==e.SHStatue?"未通过":5==e.SHStatue?"审核中":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养"},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核"},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"部门主管审核"},{title:"设备主管审核"}]):5===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"",reason:""},{title:"设备主管审核"}],this.active=3):6===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"error",reason:t},{title:"设备主管审核"}],this.active=3):7===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=4):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=4),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!0,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("9c3a"),a("6177"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"2721b6fc",null);t["default"]=g.exports},"7e25":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-运行数据追踪",use:"icon-运行数据追踪-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-运行数据追踪"><defs><style type="text/css"></style></defs><path d="M47.616 940.544c0-18.944 14.336-34.304 32.256-34.304h873.984c16.384 0 29.696 15.36 29.696 34.304s-13.312 34.304-29.696 34.304H79.872c-17.408 0-32.256-15.36-32.256-34.304zM306.688 857.6H230.4c-35.84 0-65.536-29.184-65.536-65.536v-268.288c0-35.84 29.184-65.536 65.536-65.536h76.288c35.84 0 65.536 29.184 65.536 65.536v268.288c0 36.352-29.184 65.536-65.536 65.536zM230.4 523.264c-0.512 0-1.024 0.512-1.024 1.024v268.288c0 0.512 0.512 1.024 1.024 1.024h76.288c0.512 0 1.024-0.512 1.024-1.024v-268.288c0-0.512-0.512-1.024-1.024-1.024H230.4zM554.496 857.6H478.72c-35.84 0-65.536-29.184-65.536-65.536v-660.48c0-35.84 29.184-65.536 65.536-65.536h76.288c35.84 0 65.536 29.184 65.536 65.536v660.48c-0.512 36.352-29.696 65.536-66.048 65.536zM478.72 131.072c-0.512 0-1.024 0.512-1.024 1.024v660.48c0 0.512 0.512 1.024 1.024 1.024h76.288c0.512 0 1.024-0.512 1.024-1.024v-660.48c0-0.512-0.512-1.024-1.024-1.024H478.72zM810.496 857.6h-76.288c-35.84 0-65.536-29.184-65.536-65.536V389.632c0-35.84 29.184-65.536 65.536-65.536h76.288c35.84 0 65.536 29.184 65.536 65.536v402.944c0 35.84-29.184 65.024-65.536 65.024z m-76.288-468.992c-0.512 0-1.024 0.512-1.024 1.024v402.944c0 0.512 0.512 1.024 1.024 1.024h76.288c0.512 0 1.024-0.512 1.024-1.024V389.632c0-0.512-0.512-1.024-1.024-1.024h-76.288z" fill="#ffffff" p-id="1216" /></symbol>'});n.a.add(l);t["default"]=l},"7ea3":function(e,t,a){},"7ec9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),e.List1?a("div",[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("评估")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"warning"},on:{click:e.handleInspectionStandard}},[e._v("检查标准管理")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"评估时间","min-width":"130px",align:"center",sortable:"",prop:"batime"}}),e._v(" "),a("el-table-column",{attrs:{label:"评估人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}],null,!1,484002009)}),e._v(" "),a("el-table-column",{attrs:{label:"评估分数","min-width":"120px",align:"center",sortable:"",prop:"scores"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,159467832)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"===e.dialogStatus},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估日期:",prop:"batime"}},[a("el-date-picker",{staticStyle:{top:"-3px",width:"100%"},attrs:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.batime,callback:function(t){e.$set(e.createTemp,"batime",t)},expression:"createTemp.batime"}})],1)],1)],1),e._v(" "),"assessment"===e.dialogStatus?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检查类别:",prop:"createTemp.statue"}},[a("el-select",{ref:"statue",staticClass:"filter-item",staticStyle:{width:"100%"},on:{change:e.changeStatue},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.list2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.statue,value:e.id}})})),1)],1)],1)],1):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAdd,expression:"listLoadingAdd"}],key:e.tableKeyAdd,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.judgetype))])]}}],null,!1,1593826471)}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"检查结果","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"检查结果"},model:{value:t.row.score,callback:function(a){e.$set(t.row,"score",a)},expression:"scope.row.score"}},e._l(e.inspectionResultsList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)]}}],null,!1,32981736)}),e._v(" "),a("el-table-column",{attrs:{label:"问题描述","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{staticStyle:{width:"90%",height:"25px"},attrs:{autosize:"",type:"textarea"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,3728575190)}),e._v(" "),a("el-table-column",{attrs:{label:"问题照片",width:"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-upload",{ref:"upload",class:{hide:s.showUpload},attrs:{id:"uploadPic",limit:3,"list-type":"picture-card","file-list":s.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a,s)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a,s)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])]}}],null,!1,3811197778)})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["assessment"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_saveAdd()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估人:",prop:"empName"}},[a("el-input",{ref:"empName",model:{value:e.seeTemp.empName,callback:function(t){e.$set(e.seeTemp,"empName",t)},expression:"seeTemp.empName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估日期:",prop:"batime"}},[a("el-input",{ref:"batime",model:{value:e.seeTemp.batime,callback:function(t){e.$set(e.seeTemp,"batime",t)},expression:"seeTemp.batime"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKeySee,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}],null,!1,1273495597)}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.judgetype))])]}}],null,!1,1593826471)}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"检查结果","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score))])]}}],null,!1,4082093486)}),e._v(" "),a("el-table-column",{attrs:{label:"问题描述","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)}),e._v(" "),a("el-table-column",{attrs:{label:"问题照片","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-upload",{ref:"upload",class:{hide:s.showUpload},attrs:{id:"uploadPicSee","list-type":"picture-card","file-list":s.fileList,action:e.uploadImageUrl,"on-preview":e.handlePicPreview}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])]}}],null,!1,2140629950)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownloadSee}},[e._v("导出")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)])],1):e._e(),e._v(" "),e.List2?a("div",[a("div",{staticClass:"title2"},[a("b",{staticClass:"title2-l"},[e._v("检查标准管理")]),e._v(" "),a("a",{staticClass:"title2-r",on:{click:e.goBack}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add2}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp2}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers2,data:e.uploadData2,action:e.uploadExcelUrl2,"show-file-list":!1,"before-upload":e.beforeImportExcel2,"on-success":e.handleImportExcelSuccess2}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}],null,!1,1138521997)}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_see2(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit2(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete2(s)}}},[e._v("删除")])]}}],null,!1,2845493957)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"检查类别:",prop:"statue"}},[a("el-input",{attrs:{placeholder:"请输入检查类别",disabled:"see"==e.dialogStatus},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleAddStandard}},[e._v("添加标准")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading3,expression:"listLoading3"}],key:e.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:e.list3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"statue"}},[a("el-input",{staticStyle:{width:"90%",height:"25px"},attrs:{autosize:"",type:"textarea",disabled:"see"==e.dialogStatus},model:{value:t.row.statue,callback:function(a){e.$set(t.row,"statue",a)},expression:"scope.row.statue"}})],1)],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.statue))]):e._e()]}}],null,!1,1603489370)}),e._v(" "),"update"===e.dialogStatus||"create"===e.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete3(s)}}},[e._v("删除")])]}}],null,!1,1063117506)}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save2():e.edit_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data2()}}},[e._v("取消并关闭")])],1)],1)])],1):e._e()])},i=[],r=(a("28a5"),a("7514"),a("2934")),n=a("6724"),l=a("a78e"),o=a.n(l),p=a("333d"),m=a("5c96"),c=a("ed08"),d=a("5f87"),u=a("6988"),h={name:"Assessment",components:{Pagination:p["a"]},directives:{waves:n["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],findAllEmploye:[],inspectionResultsList:[{id:1,name:1},{id:2,name:2},{id:3,name:3},{id:4,name:4},{id:5,name:5}],requestParams:[{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}}],isokDisable:!1,List1:!0,List2:!1,rules:{statue:[{required:!0,message:"必填",trigger:"blur"}]},dialogFormVisibleAdd:!1,getdataListParm:{name:"getbigjudgeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),startTime:"",stopTime:"",inputDatetime:""}},list:[],tableKey:0,total:0,listLoading:!0,dialogFormVisibleSee:!1,getdataListParmSee:{name:"getjudgeListBybig",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getDownloadSeeParm:{name:"getjudgeListBybig",returntype:"Map",parammaps:{}},listSee:[],tableKeySee:0,totalSee:0,listLoadingSee:!0,seeTemp:{},listAdd:[],tableKeyAdd:0,listLoadingAdd:!1,dialogImageUrl:"",dialogVisible:!1,fileList:[],headers:{optname:"insertcustompic",id:1,token:Object(d["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",postDataPramas:{},getdataListParmUpdate:{name:"getjudgeListBybig",returntype:"Map",parammaps:{}},getdataListParm2:{name:"getAssessmentList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},list2:[],tableKey2:0,total2:0,listLoading2:!0,judgetype:"",dialogStatus:"",dialogFormVisible:!1,textMap:{update:"编辑",create:"新增",see:"查看",assessment:"评估"},tableKey3:0,listLoading3:!1,list3:[],getdataListParmSee2:{name:"getAssessmentListBybigid",returntype:"Map",parammaps:{}},createTemp:{statue:"",pastureId:this.$store.state.user.pastureid,batime:Object(c["e"])(new Date,"{y}-{m}-{d}"),empId:this.$store.state.user.employeid},postDataParam:{},isPercentage:!1,percentage:1}},computed:{headers2:function(){return{token:Object(d["a"])()}},uploadData2:function(){return{name:"uploadAssessment",importParams:"检查类别,检查标准",sheetname:"SheetJS"}},uploadExcelUrl2:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data(),console.log(this.uploadImageUrl)},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list}))},get_table_data:function(){var e=this;console.log(this.$refs["inputDatetime"],"------------------"),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),300)}))},form_search:function(){console.log("点击了搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},form_see:function(e){console.log("查看"),this.seeTemp=Object.assign(e,{}),this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;this.listLoadingSee=!0,this.getdataListParmSee.parammaps.id=this.seeTemp.id,Object(r["e"])(this.getdataListParmSee).then((function(t){if(e.listSee=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++){console.log(t.data.list[a]);var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listSee[a],"fileList",i),console.log(e.listSee),e.listSee[a].showUpload=!0}e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))},handleDownloadSee:function(){var e=this;this.listLoadingSee=!0,this.$alert("评估验证正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.getDownloadSeeParm.parammaps.id=this.seeTemp.id,Object(r["d"])(this.getDownloadSeeParm).then((function(t){if(e.listSee=t.data.list,null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++){var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listSee[a],"fileList",i),console.log(e.listSee),e.listSee[a].showUpload=!0}console.log(e.listSee);for(var l=[],o=0;o<e.listSee.length;o++){var p={};e.$set(p,"pastureName",e.seeTemp.pastureName),e.$set(p,"empName",e.seeTemp.empName),e.$set(p,"batime",e.seeTemp.batime),e.$set(p,"judgetype",e.listSee[o].judgetype),e.$set(p,"statue",e.listSee[o].statue),e.$set(p,"score",e.listSee[o].score),e.$set(p,"note",e.listSee[o].note),e.$set(p,"mypic1","http://127.0.0.1:8082/"+e.listSee[o].picpath1),e.$set(p,"mypic2","http://127.0.0.1:8082/"+e.listSee[o].picpath2),e.$set(p,"mypic3","http://127.0.0.1:8082/"+e.listSee[o].picpath3),l.push(p)}console.log("downloadseeArray",l);var m=[{title:"牧场",key:"pastureName",type:"text"},{title:"评估人",key:"empName",type:"text"},{title:"评估日期",key:"batime",type:"text"},{title:"检查类别",key:"judgetype",type:"text"},{title:"检查标准",key:"statue",type:"text"},{title:"检查结果",key:"score",type:"text"},{title:"问题描述",key:"note",type:"text"},{title:"问题图片",key:"mypic1",type:"image",width:80,height:60},{title:"问题图片",key:"mypic2",type:"image",width:80,height:60},{title:"问题图片",key:"mypic3",type:"image",width:80,height:60}],c=l,d="评估验证";Object(u["a"])(m,c,d)}setTimeout((function(){e.listLoadingSee=!1}),300)}))},form_add:function(){console.log("点击了评估"),this.createTemp.statue="",this.createTemp.empId=this.$store.state.user.employeid,this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.batime=Object(c["e"])(new Date,"{y}-{m}-{d}"),this.dialogStatus="assessment",this.dialogFormVisibleAdd=!0,this.listAdd=[],this.get_table_data2()},changeStatue:function(e){this.listAdd=[],this.getdataListParmSee2.parammaps.id=e,this.get_table_dataSee2(),this.list2.find((function(t){return t.id==e}))&&(console.log(this.list2.find((function(t){return t.id==e})).statue),this.judgetype=this.list2.find((function(t){return t.id==e})).statue),console.log(this.listAdd)},handlePicChange:function(e,t,a){var s=this;console.log(e,"文件状态改变时的钩子file"),console.log(t,"文件状态改变时的钩子fileList------------"),console.log(a,"文件状态改变时的钩子row"),console.log(a.showUpload,"文件状态改变时的钩子row"),t.length>2?this.$nextTick((function(){s.$set(a,"showUpload",!0)})):this.$nextTick((function(){a.showUpload=!1})),console.log(a)},handlePicSuccess:function(e,t,a,s){a.length>2?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0===s.pic1||-1==s.pic1?this.$set(s,"pic1",e.execresult.LastInsertId):void 0===s.pic2||-1==s.pic2?this.$set(s,"pic2",e.execresult.LastInsertId):void 0!==s.pic3&&-1!=s.pic3||this.$set(s,"pic3",e.execresult.LastInsertId),console.log(s,"文件上传成功时的钩子row")},handlePicRemove:function(e,t,a){if(console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),console.log(a,"文件列表移除文件时的钩子row---"),"assessment"===this.dialogStatus)for(var s in t.length<3&&this.$set(a,"showUpload",!1),a)a[s]===e.response.execresult.LastInsertId&&this.$delete(a,s);else if("update"===this.dialogStatus){t.length<3&&(a.showUpload=!1);var i="uploads"+e.url.split("uploads")[1];for(var r in a)a[r]===i&&(console.log(r),"picpath1"===r?this.$delete(a,"pic1"):"picpath2"===r?this.$delete(a,"pic2"):"picpath3"===r&&this.$delete(a,"pic3"))}console.log(a,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;console.log(e.listAdd[a].pic1),void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",judgetype:"@insertSpotList.judgetype",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},form_edit:function(e){console.log("编辑",e),this.dialogStatus="update",this.dialogFormVisibleAdd=!0,this.createTemp=Object.assign(e,{}),this.get_table_dataUpdate(),this.get_table_data2()},get_table_dataUpdate:function(){var e=this;this.listLoadingAdd=!0,this.getdataListParmUpdate.parammaps.id=this.createTemp.id,Object(r["e"])(this.getdataListParmUpdate).then((function(t){if(e.listAdd=t.data.list,console.log(e.listAdd,"this,listAdd"),null!==t.data.list)for(var a=0;a<t.data.list.length;a++){console.log(t.data.list[a]);var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listAdd[a],"fileList",i),console.log(e.listAdd),e.listAdd[a].fileList.length>2?e.listAdd[a].showUpload=!0:e.listAdd[a].showUpload=!1}setTimeout((function(){e.listLoadingAdd=!1}),300)}))},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存",this.listAdd),console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;console.log(e.listAdd[a].pic1),void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatejudge",type:"e",parammaps:{bigId:e.createTemp.id,judgetype:"@insertSpotList.judgetype",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3",id:"@insertSpotList.id"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(e){var t=this;console.log("删除"),m["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigjudge",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletejudge",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){console.log("删除发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.getdataListParm.parammaps.inputDatetime="",t.get_table_data(),t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_table_data2:function(){var e=this;this.listLoading2=!0,Object(r["e"])(this.getdataListParm2).then((function(t){null!==t.data.list?e.list2=t.data.list:e.list2=[],e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},handleInspectionStandard:function(){console.log("点击了检查标准管理"),this.List1=!1,this.List2=!0,this.get_table_data2()},goBack:function(){this.List1=!0,this.List2=!1,this.get_table_data()},form_add2:function(){console.log("点击了检查标准管理-新增"),this.createTemp.statue="",this.list3=[],this.dialogStatus="create",this.dialogFormVisible=!0},handleDownloadTemp2:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["检查类别","检查标准"],i=["检查类别","检查标准"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"评估验证模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel2:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess2:function(e,t){var s=this;this.get_table_data2(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["检查类别","检查标准","报错信息"],r=["检查类别","检查标准","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"评估验证报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},handleAddStandard:function(){console.log("点击了检查标准管理-新增-添加标准"),this.list3.push({myid:(new Date).valueOf(),statue:""})},form_delete3:function(e){var t=this;console.log(e),void 0!==e.id&&this.$set(e,"myid",e.id),m["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.list3.length;a++){if(console.log(t.list3[a]),t.list3[a].myid==e.myid)var s=t.list3.indexOf(t.list3[a]);if(s>-1)return void t.list3.splice(s,1)}}))},add_dialog_save2:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(0===e.list3.length)return e.$message({title:"",message:"请选择添加标准",type:"warning",duration:2e3}),!1;for(var a=0;a<e.list3.length;a++){if(""==e.list3[a].statue)return e.$message({type:"warning",message:"请检查检查标准是否未填写",duration:2e3}),!1;e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"inserBigAssessment",type:"e",parammaps:{statue:e.createTemp.statue}},e.postDataParam.data[1]={name:"insertSpotList",resultmaps:{list:e.list3}},e.postDataParam.data[1].children=[],e.postDataParam.data[1].children[0]={name:"insertAssessment",type:"e",parammaps:{statue:"@insertSpotList.statue",bigId:"@inserBigAssessment.LastInsertId"}}}Object(r["c"])(e.postDataParam).then((function(t){console.log("保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data2(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_see2:function(e){this.list3=[],this.createTemp=Object.assign(e,{}),this.dialogStatus="see",this.dialogFormVisible=!0,this.getdataListParmSee2.parammaps.id=e.id,this.get_table_dataSee2()},get_table_dataSee2:function(){var e=this;Object(r["e"])(this.getdataListParmSee2).then((function(t){if(null!==t.data.list){e.listAdd=t.data.list,e.list3=t.data.list;for(var a=0;a<e.listAdd.length;a++)e.$set(e.listAdd[a],"showUpload",!1),e.$set(e.listAdd[a],"judgetype",e.judgetype)}else e.list3=[],e.listAdd=[];setTimeout((function(){e.listLoading3=!1}),300)}))},form_edit2:function(e){this.createTemp.statue="",this.list3=[],this.createTemp=Object.assign(e,{}),this.dialogStatus="update",this.dialogFormVisible=!0,this.getdataListParmSee2.parammaps.id=e.id,this.get_table_dataSee2()},edit_dialog_save2:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(0===e.list3.length)return e.$message({title:"",message:"请选择添加标准",type:"warning",duration:2e3}),!1;for(var a=0;a<e.list3.length;a++){if(""==e.list3[a].statue)return e.$message({type:"warning",message:"请检查检查标准是否未填写",duration:2e3}),!1;e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"updateBigAssessment",type:"e",parammaps:{id:e.createTemp.id,statue:e.createTemp.statue}},e.postDataParam.data[1]={name:"deleteAssessmentListBybigid",type:"e",parammaps:{id:e.createTemp.id}},e.postDataParam.data[2]={name:"insertSpotList",resultmaps:{list:e.list3}},e.postDataParam.data[2].children=[],e.postDataParam.data[2].children[0]={name:"insertAssessment",type:"e",parammaps:{statue:"@insertSpotList.statue",bigId:e.createTemp.id}}}Object(r["c"])(e.postDataParam).then((function(t){console.log("保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data2(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete2:function(e){var t=this;console.log("检查标准管理-删除"),m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataParam.name="deleteAssessmentList",t.postDataParam.parammaps={},t.postDataParam.parammaps.id=e.id,Object(r["k"])(t.postDataParam).then((function(){t.get_table_data2(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},g=h,f=(a("2b4e"),a("2ef3"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"66533c40",null);t["default"]=b.exports},"7f4e":function(e,t,a){},"7f6e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-radio-group",{staticStyle:{float:"right","margin-top":"20px"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"集团"}},[e._v("集团")]),e._v(" "),a("el-radio",{attrs:{label:"一中心"}},[e._v("一中心")]),e._v(" "),a("el-radio",{attrs:{label:"二中心"}},[e._v("二中心")]),e._v(" "),a("el-radio",{attrs:{label:"三中心"}},[e._v("三中心")])],1)],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团用水量:"+e._s(e.total)+"万m³\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"70px"}}),e._v(" "),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"700px"},attrs:{multiple:"",clearable:"",filterable:"",placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.pastureNameListP,callback:function(t){e.pastureNameListP=t},expression:"pastureNameListP"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("333d"),m=a("2934"),c=a("a78e"),d=a.n(c);a("817d");var u={name:"QueryWater",directives:{waves:o["a"]},components:{Pagination:p["a"]},data:function(){var e;return e={yearDate:new Date,total:"",pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",pastureNameListP:[],findAllPasture:[],radio:"集团",getBarChart1Parm:{name:"getpSumNowWater",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthWater",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}},radio:{deep:!0,handler:function(e,t){console.log(e,t),this.getBarChart1Parm.parammaps.center="集团"==e?"":e,this.getBarChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(m["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),Object(m["e"])({name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}}).then((function(t){console.log(t),e.findAllPasture=t.data.list}))},mounted:function(){},methods:{changePastureName:function(e){console.log(e),e.length>5&&this.$notify({title:"提示",message:"最多只能选5家牧场!",type:"danger",duration:2e3})},get_auto_buttons:function(){var e="report:queryWater:pastures",t=Object(m["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(m["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(m["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(m["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(m["e"])(this.getPieChart1Parm).then((function(t){console.log("图4",t),null===t.data||null===t.data.list?(e.chart_data4={name:[],arr1:[],arr2:[]},e.chart_data4={name:["挤奶处","安环处","饲喂处","牧场办公室","品控处"],arr1:[2,3,13,43,12],arr2:[12,31,23,33,13]},e.roadpieChart1(e.chart_data4,e.month)):(e.chart_data4={name:["挤奶处","安环处","饲喂处","牧场办公室","品控处"],arr1:[2,3,13,43,12],arr2:[12,31,23,33,13]},e.roadpieChart1(e.chart_data4,e.month))}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际","预算"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},toolbox:{show:!0},calculable:!0,xAxis:[{type:"category",data:e.name}],yAxis:[{type:"value"}],series:[{name:"实际",type:"bar",data:e.arr1},{name:"预算",type:"bar",data:e.arr2}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},getBarChart2:function(){var e=this;Object(m["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.chart_data5={name:["装载机","安环处","饲喂处","牧场办公室","品控处"],arr1:[2,3,13,43,12],arr2:[12,31,23,33,13]},e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"用水量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["实际","预算"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.name,name:"",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"实际",type:"bar",data:e.arr1},{name:"预算",type:"bar",data:e.arr2}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量","预算"],x:"right"},color:["#769cfc","#FFB800","#6bda00"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"预算",type:"line",data:e.budget,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:a+"月每日用水量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"水(m³)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))}}},h=u,g=(a("9cac"),a("aa3f"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"ca7fe000",null);t["default"]=f.exports},"7f80":function(e,t,a){},"7f96b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"供应商名"},model:{value:e.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm.parammaps,"providerName",t)},expression:"getdataListParm.parammaps.providerName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isProductAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"联系人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.linkman))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"联系方式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.telphone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产数",sortable:"",prop:"eqs","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqs))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件数",sortable:"",prop:"bcs","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bcs))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同数",sortable:"",prop:"pps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类型数",sortable:"",prop:"eps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eps))])]}}])}),e._v(" "),e.isProductUpdate?a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}],null,!1,451894543)}):e._e(),e._v(" "),e.isProductUpdate?a("el-table-column",{attrs:{label:"是否线上采购","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleFlexPriceChange(t.$index,t.row)}},model:{value:t.row.flexPrice,callback:function(a){e.$set(t.row,"flexPrice",a)},expression:"scope.row.flexPrice"}})]}}],null,!1,903715247)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"400px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleeqMenu(s)}}},[e._v("设备")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handlePartMenu(s)}}},[e._v("备件")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handlewarehouseMenu(s)}}},[e._v("库位")]),e._v(" "),e.isProductUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.isProductDelete&&0===s.bcs&&0===s.eqs&&0===s.pps&&0===s.eps?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"供应商简称",prop:"providerName"}},[a("el-input",{ref:"providerName",model:{value:e.temp.providerName,callback:function(t){e.$set(e.temp,"providerName",t)},expression:"temp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"SAP编号",prop:"sapcode"}},[a("el-input",{ref:"sapcode",model:{value:e.temp.sapcode,callback:function(t){e.$set(e.temp,"sapcode",t)},expression:"temp.sapcode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"供应商名",prop:"providerIntro"}},[a("el-input",{ref:"providerIntro",model:{value:e.temp.providerIntro,callback:function(t){e.$set(e.temp,"providerIntro",t)},expression:"temp.providerIntro"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商编号",prop:"providerNumber"}},[a("el-input",{ref:"providerNumber",model:{value:e.temp.providerNumber,callback:function(t){e.$set(e.temp,"providerNumber",t)},expression:"temp.providerNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"营业执照",prop:"businessLicense"}},[a("el-input",{ref:"businessLicense",model:{value:e.temp.businessLicense,callback:function(t){e.$set(e.temp,"businessLicense",t)},expression:"temp.businessLicense"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"组织机构代码",prop:"organizationCode"}},[a("el-input",{ref:"organizationCode",model:{value:e.temp.organizationCode,callback:function(t){e.$set(e.temp,"organizationCode",t)},expression:"temp.organizationCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"税务登记证",prop:"IRSregister"}},[a("el-input",{ref:"IRSregister",model:{value:e.temp.IRSregister,callback:function(t){e.$set(e.temp,"IRSregister",t)},expression:"temp.IRSregister"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开户许可证",prop:"openLicence"}},[a("el-input",{ref:"openLicence",model:{value:e.temp.openLicence,callback:function(t){e.$set(e.temp,"openLicence",t)},expression:"temp.openLicence"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系人",prop:"linkman"}},[a("el-input",{ref:"linkman",model:{value:e.temp.linkman,callback:function(t){e.$set(e.temp,"linkman",t)},expression:"temp.linkman"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系电话",prop:"telphone"}},[a("el-input",{ref:"telphone",model:{value:e.temp.telphone,callback:function(t){e.$set(e.temp,"telphone",t)},expression:"temp.telphone"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{ref:"email",model:{value:e.temp.email,callback:function(t){e.$set(e.temp,"email",t)},expression:"temp.email"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["stock"],visible:e.dialogstockVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogstockVisible=t}}},[a("el-form",{staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"150px"}},[a("el-form-item",{attrs:{label:"可提供的备件类别",prop:"stockname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",multiple:"",data:e.sparePartparentstock,"default-props":e.sparePartdefaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.sparePartDefaultCheckedKeys},on:{popoverHide:e.sparePartpopoverHide}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updatestock()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogstockVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["location"],visible:e.dialogwarehouseVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogwarehouseVisible=t}}},[a("div",{staticClass:"content-warehoseCode"},[a("el-form",{staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"库位:",prop:"warehoseCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.querySearchWarehoseCode,placeholder:"请输入库位"},on:{select:e.handleSelectWarehoseCode},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("库位编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.warehoseCode))])]}}]),model:{value:e.warehoseTemp.warehoseCode,callback:function(t){e.$set(e.warehoseTemp,"warehoseCode",t)},expression:"warehoseTemp.warehoseCode"}})],1)],1),e._v(" "),a("el-col",{staticStyle:{"margin-left":"20px"},attrs:{span:7}},[a("el-button",{staticClass:"filter-item",staticStyle:{display:"inline-block"},attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"库位编号","min-width":"90px",prop:"warehoseCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.handleWarehoseDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalWarehouprovider>0,expression:"totalWarehouprovider>0"}],attrs:{total:e.totalWarehouprovider,page:e.getWarehouListParm.offset,limit:e.getWarehouListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getWarehouListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getWarehouListParm,"pagecount",t)},pagination:e.getWarehouproviderlist}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogwarehouseVisible=!1}}},[e._v(" 关闭 ")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["eq"],visible:e.dialogeqVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogeqVisible=t}}},[a("el-form",{staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"150px"}},[a("el-form-item",{attrs:{label:"可提供的设备类别",prop:"eqname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",multiple:"",data:e.parenteq,"default-props":e.eq_defaultProps,"collapse-tags":"","node-key":e.eq_nodeKey,"checked-keys":e.eq_defaultCheckedKeys},on:{popoverHide:e.eq_popoverHide}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateeq()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogeqVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)},i=[],r=(a("7514"),a("7f7f"),a("3de8")),n=a("2934"),l=a("6724"),o=a("ed08"),p=(a("61f7"),a("333d")),m=a("5c96"),c=a("a78e"),d=a.n(c),u=a("5f87"),h={name:"Product",components:{Pagination:p["a"],TreeSelect:r["a"]},directives:{waves:l["a"]},data:function(){return{disabled:!1,tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"createRole",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{providerName:""}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[],temp:{},sparePartparentstock:[],getParmSparePart:{name:"getpart_classList"},sparePartdefaultProps:{children:"children",label:"partClassName"},sparePartDefaultCheckedKeys:[],sparePartDataform:{id:"",name:"",selectSparePart:[],sort:"",enable:""},sparePartUpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getStockParm:{name:"getWarehousimple",page:1,offset:1,pagecount:10,parammaps:{pastureId:d.a.get("pastureid")}},warehoseTemp:{},listAdd:[],selectWarehose:[],postWarehosePramas:{},getWarehouListParm:{name:"getWarehouproviderlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},totalWarehouprovider:0,parentstock:[],nodeKey:"id",defaultCheckedKeys:[],defaultProps:{children:"children",label:"warehoseCode"},dialogstockVisible:!1,dialogwarehouseVisible:!1,selectedstock:"",dataform:{id:"",name:"",selectedstock:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getEQParm:{name:"geteqclasslist"},parenteq:[],eq_nodeKey:"id",eq_defaultCheckedKeys:[],eq_defaultProps:{children:"children",label:"typeName"},dialogeqVisible:!1,selectedeq:"",eq_dataform:{id:"",name:"",selectedeq:[],sort:"",enable:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",stock:"绑定备件",location:"绑定库位",eq:"授权设备"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],providerName:[{required:!0,message:"必填",trigger:"blur"}],providerNumber:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isProductDelete:[],isProductUpdate:[],isProductAdd:[],isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"insertwarehouseprovider",importParams:"牧场,库位,供应商",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data(),this.getStockList(),this.geteqList(),this.getTypeList()},methods:{tableSort:function(e){Object(o["f"])(e,this.list)},get_auto_buttons:function(){var e="basic:product:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isProductAdd=t;var a="basic:product:delete",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isProductDelete=s;var i="basic:product:update",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isProductUpdate=r},getTypeList:function(){var e=this;Object(n["e"])(this.getParmSparePart).then((function(t){null!==t.data.list&&(e.sparePartparentstock=Object(n["E"])(t.data.list,"id","pid","children"))}))},sparePartpopoverHide:function(e,t){console.log("选中值",e,t),this.sparePartDataform.selectSparePart=e,this.sparePartUpdateDataRelationParam.values=e},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){Object(n["f"])(this.requestParams).then((function(e){}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(o["e"])(new Date,"{y}-{m}-{d}")}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertProvider",void 0!==e.temp.pastureId&&""!==e.temp.pastureId||(e.temp.pastureId="-1"),e.requestParam.parammaps=e.temp,Object(n["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},eq_popoverHide:function(e,t){this.eq_dataform.selectedeq=e,this.selectedeq=e,this.UpdateDataRelationParam.values=e},geteqList:function(){var e=this;Object(n["e"])(this.getEQParm).then((function(t){null!==t.data.list&&(e.parenteq=Object(n["E"])(t.data.list,"id","pid","children"))}))},handleeqMenu:function(e){var t=this;this.dialogeqVisible=!0,this.requestParam.name="getEQByProvider",this.requestParam.parammaps={providerId:e.id},this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dialogMenuVisible=!0,Object(n["e"])(this.requestParam).then((function(e){t.selectedeq=e.data.lists.eqClassId,t.eq_defaultCheckedKeys=t.selectedeq,t.UpdateDataRelationParam.values=t.eq_defaultCheckedKeys}))},updateeq:function(){var e=this;this.UpdateDataRelationParam.name="eqclass_provider",this.UpdateDataRelationParam.dataname="providerId",this.UpdateDataRelationParam.datavalue=this.requestParam.parammaps.providerId,this.UpdateDataRelationParam.valuename="eqClassId",this.UpdateDataRelationParam.values=this.selectedeq,Object(n["u"])(this.UpdateDataRelationParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogeqVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)}))},popoverHide:function(e,t){this.dataform.selectedstock=e,this.selectedstock=e,this.UpdateDataRelationParam.values=e},getStockList:function(){var e=this;Object(n["e"])(this.getStockParm).then((function(t){null!==t.data.list&&(e.parentstock=Object(n["E"])(t.data.list,"id","pid","children"))}))},handlePartMenu:function(e){var t=this;this.requestParam.name="getPartByProvider",this.requestParam.parammaps={providerId:e.id},this.requestParam.pagecount=0,this.requestParam.returntype="list",Object(n["e"])(this.requestParam).then((function(e){t.selectedstock=e.data.lists.partClassId,t.defaultCheckedKeys=t.selectedstock,t.UpdateDataRelationParam.values=t.defaultCheckedKeys})),this.dialogstockVisible=!0,this.dialogMenuVisible=!0},handlewarehouseMenu:function(e){this.warehoseTemp=Object.assign({},e),this.dialogwarehouseVisible=!0,this.dialogMenuVisible=!0,this.selectWarehose=[],this.getWarehouproviderlist()},getWarehouproviderlist:function(){var e=this;this.getWarehouListParm.parammaps.id=this.warehoseTemp.id,this.getWarehouListParm.parammaps.pastureId=this.$store.state.user.pastureid,Object(n["e"])(this.getWarehouListParm).then((function(t){e.listAdd=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalWarehouprovider=t.data.total)}))},querySearchWarehoseCode:function(e,t){console.log("库位模糊查询输入值",e),this.getStockParm.parammaps["warehoseCode"]=e,Object(n["e"])(this.getStockParm).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectWarehoseCode:function(e){var t=this;console.log("库位模糊查询选中值",e),null!=this.listAdd?this.listAdd.find((function(t){return t.warehouseId===e.warehouseId}))?this.$message({type:"warning",message:"此库位已存在,请重新选择库位"}):(this.UpdateDataRelationParam.name="insertWarehouprovider",this.UpdateDataRelationParam.parammaps={},this.UpdateDataRelationParam.parammaps.id=this.warehoseTemp.id,this.UpdateDataRelationParam.parammaps.warehouseId=e.warehouseId,Object(n["e"])(this.UpdateDataRelationParam).then((function(a){"fail"!==a.msg?(t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),t.listAdd.unshift(e),t.getWarehouproviderlist()):Object(n["w"])(a,t.$notify)}))):(this.listAdd=[],this.UpdateDataRelationParam.name="insertWarehouprovider",this.UpdateDataRelationParam.parammaps={},this.UpdateDataRelationParam.parammaps.id=this.warehoseTemp.id,this.UpdateDataRelationParam.parammaps.warehouseId=e.warehouseId,Object(n["e"])(this.UpdateDataRelationParam).then((function(a){"fail"!==a.msg?(t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),t.listAdd.unshift(e),t.getWarehouproviderlist()):Object(n["w"])(a,t.$notify)}))),this.$forceUpdate()},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","供应商","库位","error_msg"],r=["牧场","供应商","库位","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"供应商库位报错信息",autoWidth:!0,bookType:"xlsx"})}))),this.getWarehouproviderlist()):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockLaidDownTemp",Object(n["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","供应商","库位"],r=["牧场","供应商","库位"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"供应商库位模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},handleWarehoseDelete:function(e){var t=this;console.log(e),console.log(this.listMaintenance),m["MessageBox"].confirm("确认是否删除当前信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postWarehosePramas.name="deleteWarehouprovider",t.postWarehosePramas.parammaps={},t.postWarehosePramas.parammaps.id=e.id,Object(n["k"])(t.postWarehosePramas).then((function(e){console.log("保存发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.getWarehouproviderlist(),t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},updatestock:function(){var e=this;this.UpdateDataRelationParam.name="partClass_provider",this.UpdateDataRelationParam.dataname="providerId",this.UpdateDataRelationParam.datavalue=this.requestParam.parammaps.providerId,this.UpdateDataRelationParam.valuename="partClassId",this.UpdateDataRelationParam.values=this.selectedstock,Object(n["u"])(this.UpdateDataRelationParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogstockVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateProvider",e.requestParam.parammaps=e.temp,Object(n["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},handleDownload:function(){var e=this;this.$alert("供应商正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="getProviderList",Object(n["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["供应商名称","供应商编码","供应商简称","联系人","联系方式","营业执照","组织机构代码","税务登记证","开户许可证","邮箱"],r=["providerName","providerNumber","providerIntro","linkman","telphone","businessLicense","organizationCode","IRSregister","openLicence","email"],l=Object(n["x"])(r,s);a.export_json_to_excel({header:i,data:l,filename:"供应商",autoWidth:!0,bookType:"xlsx"})}))}))}))},form_delete:function(e){var t=this;m["MessageBox"].confirm("设备名称:"+e.providerName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteProvider",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(n["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateProviderEnable",this.requestParam.parammaps={},this.requestParam.parammaps.enable=t.enable,this.requestParam.parammaps.id=t.id,Object(n["k"])(this.requestParam).then((function(e){"fail"!==e.msg?(a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),a.get_table_data()):Object(n["w"])(e,a.$notify)}))},handleFlexPriceChange:function(e,t){var a=this;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateProviderflexPrice",type:"e",parammaps:{flexPrice:t.flexPrice,id:t.id}},this.requestParam.data[1]={name:"insertBrandV2",type:"e",parammaps:{brandName:t.providerName}},Object(n["c"])(this.requestParam).then((function(e){"fail"==e.msg?a.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(a.get_table_data(),a.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},"7ff7":function(e,t,a){},"802c":function(e,t,a){"use strict";a("01cd")},"817d9":function(e,t,a){"use strict";a("c174")},"81d6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},8269:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[a("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[a("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),e._v(" "),a("div",{staticStyle:{position:"relative"}},[a("pan-thumb",{staticClass:"panThumb",attrs:{image:e.avatar}}),e._v(" "),a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),e._v(" "),a("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[a("span",[e._v("Vue")]),e._v(" "),a("el-progress",{attrs:{percentage:70}})],1),e._v(" "),a("div",{staticClass:"progress-item"},[a("span",[e._v("JavaScript")]),e._v(" "),a("el-progress",{attrs:{percentage:18}})],1),e._v(" "),a("div",{staticClass:"progress-item"},[a("span",[e._v("Css")]),e._v(" "),a("el-progress",{attrs:{percentage:12}})],1),e._v(" "),a("div",{staticClass:"progress-item"},[a("span",[e._v("ESLint")]),e._v(" "),a("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},i=[],r=a("5530"),n=a("2f62"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pan-item",style:{zIndex:e.zIndex,height:e.height,width:e.width}},[a("div",{staticClass:"pan-info"},[a("div",{staticClass:"pan-info-roles-container"},[e._t("default")],2)]),e._v(" "),a("img",{staticClass:"pan-thumb",attrs:{src:e.image}})])},o=[],p=(a("c5f6"),{name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}}),m=p,c=(a("b65b"),a("2877")),d=Object(c["a"])(m,l,o,!1,null,"be3d0b3e",null),u=d.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{staticClass:"link--mallki",class:e.className,attrs:{href:"#"}},[e._v("\n "+e._s(e.text)+"\n "),a("span",{attrs:{"data-letters":e.text}}),e._v(" "),a("span",{attrs:{"data-letters":e.text}})])},g=[],f={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},b=f,v=(a("11d5"),Object(c["a"])(b,h,g,!1,null,null,null)),y=v.exports,_={components:{PanThumb:u,Mallki:y},filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(r["a"])({},Object(n["b"])(["name","avatar","roles"]))},w=_,S=(a("77b4"),a("c0f4"),Object(c["a"])(w,s,i,!1,null,"17677967",null));t["default"]=S.exports},"82fd":function(e,t,a){"use strict";a("7051")},8326:function(e,t,a){},8398:function(e,t,a){},"839c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e.isWorkerAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类别名称","min-width":"110px","header-align":"center",align:"center",prop:"typeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"顺序","min-width":"110px",sortable:"","header-align":"center",align:"center",prop:"sort"}}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0"},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"160","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isWorkerUpdate?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("el-form",{ref:"createTemp",attrs:{rules:e.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"维修工类别:",prop:"typeName"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-input",{ref:"typeName",model:{value:e.create.temp.typeName,callback:function(t){e.$set(e.create.temp,"typeName",t)},expression:"create.temp.typeName"}})],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序:",prop:"sort"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-input",{ref:"sort",model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"启用:",prop:"enable"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0"},model:{value:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"==e.dialogStatus?a("el-button",{attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"==e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.create.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)],1)])},i=[],r=a("6724"),n=a("2934"),l=a("333d"),o=a("ed08"),p=a("61f7"),m={name:"MaintenanceWorkerCategory",components:{Pagination:l["a"]},directives:{waves:r["a"]},data:function(){return{isWorkerAdd:[],isWorkerUpdate:[],table:{tableKey:0,total:0,listLoading:!0,list:[],pageNum:0,pageSize:10,getdataListParm:{name:"getMaintence",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},requestParam:{name:"createapisql",offset:0,pagecount:0,parammaps:[]},create:{temp:{typeName:"",sort:"",enable:"1"},dialogFormVisible:!1},dialogStatus:"",rules:{typeName:[{type:"string",required:!0,message:"必填",trigger:"change"}],sort:[{validator:p["b"],trigger:"blur"}]},textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_table_data(),this.get_auto_buttons()},methods:{tableSort:function(e){Object(o["f"])(e,this.list)},get_auto_buttons:function(){var e="basic:worker:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isWorkerAdd=t;var a="basic:worker:update",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isWorkerUpdate=s},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(n["e"])(this.table.getdataListParm).then((function(t){e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,t.data.total&&(e.table.total=t.data.total),setTimeout((function(){e.table.listLoading=!1}),1e3)}))},form_add:function(){this.create.temp={typeName:"",sort:0,enable:"1"},this.dialogStatus="create",this.create.dialogFormVisible=!0},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="insertMaintenanceType",e.requestParam.parammaps=e.create.temp,Object(n["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.create.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="insertMaintenanceType",e.requestParam.parammaps=e.create.temp,Object(n["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.create.temp={typeName:"",sort:"",enable:"1"},e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){this.create.temp=Object.assign(e,{}),this.dialogStatus="update",this.create.dialogFormVisible=!0},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="updateMaintenanceType",e.requestParam.parammaps=e.create.temp,Object(n["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.create.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},"83d6":function(e,t){e.exports={title:"现代牧业设备管理平台",fixedHeader:!0,tagsView:!0,sidebarLogo:!0}},"840c":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-用电设备资料",use:"icon-用电设备资料-usage",viewBox:"0 0 1025 1024",content:'<symbol class="icon" viewBox="0 0 1025 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-用电设备资料"><defs><style type="text/css"></style></defs><path d="M961.793 446.344 961.793 446.344 202.079 446.344c-28.215 0-52.07 18.43-60.285 43.93l0 0L75.51 694.483 75.51 129.847l0 0 316.499 0 0 0 0.07 0c0 69.927 56.645 126.57 126.575 126.57l0 0 316.499 0 0 126.572 63.28 0L898.433 256.417c0-34.927-28.35-63.287-63.28-63.287L518.579 193.13c-34.925 0-63.285-28.355-63.285-63.282l0 0c0-34.93-28.285-63.287-63.285-63.287l0 0L75.51 66.561c-34.927 0-63.285 28.357-63.285 63.287l0 759.571c0 34.93 28.357 63.28 63.285 63.28l759.573 0c28.215 0 52.07-18.425 60.285-43.93l0.07 0 129.5-399.137C1024.937 474.704 996.722 446.416 961.793 446.344zM838.368 889.418 75.51 889.418l123.285-379.787 762.853 0L838.368 889.418z" p-id="6614" /></symbol>'});n.a.add(l);t["default"]=l},8468:function(e,t,a){},"85d6":function(e,t,a){"use strict";a("b5d2")},"85e5":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.tabName,callback:function(t){e.tabName=t},expression:"tabName"}},[e.isBasic?a("el-tab-pane",{attrs:{label:"设备基础信息",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,clearable:"",disabled:e.disabled,placeholder:"请选择设备类别","checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编号",clearable:""},model:{value:e.getdataListParm.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"financeCode",t)},expression:"getdataListParm.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"折旧预警"},model:{value:e.getdataListParm.parammaps.warning,callback:function(t){e.$set(e.getdataListParm.parammaps,"warning",t)},expression:"getdataListParm.parammaps.warning"}},e._l(e.depreciationAlertList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"购置日期","end-placeholder":"购置日期"},model:{value:e.getdataListParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime2",t)},expression:"getdataListParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetCode",t)},expression:"getdataListParm.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"品牌",clearable:""},model:{value:e.getdataListParm.parammaps.brand,callback:function(t){e.$set(e.getdataListParm.parammaps,"brand",t)},expression:"getdataListParm.parammaps.brand"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"供应商",clearable:""},model:{value:e.getdataListParm.parammaps.proName,callback:function(t){e.$set(e.getdataListParm.parammaps,"proName",t)},expression:"getdataListParm.parammaps.proName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleBatchChange}},[e._v("批量变更")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["正常"==s.status?a("div",[1==s.warning?a("div",{staticStyle:{background:"#EC808D",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):2==s.warning?a("div",{staticStyle:{background:"#FACD91",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):a("div",[e._v(e._s(s.status))])]):a("div",[a("div",{staticStyle:{background:"#D7D7D7",display:"block","line-height":"50px"}},[e._v(e._s(s.status))])])]}}],null,!1,870163095)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",align:"center",prop:"purpose"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批日期",sortable:"",align:"center",prop:"spDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"购置日期",sortable:"",align:"center",prop:"purchaseDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"入场日期",sortable:"",align:"center",prop:"entranceDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"报废日期",sortable:"",align:"center",prop:"bfDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"picpath",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath&&""!==t.row.srcpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath&&""!==t.row.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2373517811)}),e._v(" "),a("el-table-column",{attrs:{label:"折旧年限",sortable:"",align:"center",prop:"depreciation"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用时长(年)",sortable:"",align:"center",prop:"serviceDuration"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用率(%)",sortable:"",align:"center",prop:"utilizationRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicsDel2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1177932640)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)]):e._e(),e._v(" "),e.isBasicSH?a("el-tab-pane",{attrs:{label:"审核设备",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmSH.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"pastureName",t)},expression:"getdataListParmSH.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"assetCode",t)},expression:"getdataListParmSH.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqName",t)},expression:"getdataListParmSH.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqCode",t)},expression:"getdataListParmSH.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编码",clearable:""},model:{value:e.getdataListParmSH.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"financeCode",t)},expression:"getdataListParmSH.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParmSH.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"departmentId",t)},expression:"getdataListParmSH.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParmSH.parammaps.status,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"status",t)},expression:"getdataListParmSH.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParmSH.parammaps.SHStatus,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"SHStatus",t)},expression:"getdataListParmSH.parammaps.SHStatus"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSH.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"inputDatetime1",t)},expression:"getdataListParmSH.parammaps.inputDatetime1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSH}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownloadSH}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSH,expression:"listLoadingSH"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSH,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSH-1)*e.pageSizeSH+1))])]}}],null,!1,1072732269)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号",align:"center",prop:"assetCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",align:"center",prop:"lrTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicsUpdate&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicExamine&&0==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),e.isBasicsDel&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1494658625)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSH>=0,expression:"totalSH>=0"}],attrs:{total:e.totalSH,page:e.getdataListParmSH.offset,limit:e.getdataListParmSH.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSH,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSH,"pagecount",t)},pagination:e.get_table_dataSH}})],1)]):e._e()],1),e._v(" "),a("el-dialog",{directives:[{name:"show",rawName:"v-show",value:e.dialogFormVisible,expression:"dialogFormVisible"}],attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rulesCreate,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.eqClassId,callback:function(t){e.$set(e.createTemp,"eqClassId",t)},expression:"createTemp.eqClassId"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入编号",disabled:""},model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号"},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号"},model:{value:e.createTemp.financeCode,callback:function(t){e.$set(e.createTemp,"financeCode",t)},expression:"createTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格"},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{select:function(t){e.handleSelectBrand(t)}},model:{value:e.createTemp.brandName,callback:function(t){e.$set(e.createTemp,"brandName",t)},expression:"createTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商"},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途"},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.createTemp.status,callback:function(t){e.$set(e.createTemp,"status",t)},expression:"createTemp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.purchaseDate,callback:function(t){e.$set(e.createTemp,"purchaseDate",t)},expression:"createTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.entranceDate,callback:function(t){e.$set(e.createTemp,"entranceDate",t)},expression:"createTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限"},model:{value:e.createTemp.depreciation,callback:function(t){e.$set(e.createTemp,"depreciation",t)},expression:"createTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值"},model:{value:e.createTemp.yuanzhi,callback:function(t){e.$set(e.createTemp,"yuanzhi",t)},expression:"createTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值"},model:{value:e.createTemp.salvage,callback:function(t){e.$set(e.createTemp,"salvage",t)},expression:"createTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值"},model:{value:e.createTemp.subtractvalue,callback:function(t){e.$set(e.createTemp,"subtractvalue",t)},expression:"createTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-select",{ref:"upkeepgrade",staticClass:"filter-item",attrs:{placeholder:"保养级别"},on:{"visible-change":e.upkeepgradeChange,change:e.changeUpkeepgrade},model:{value:e.createTemp.upkeepgrade,callback:function(t){e.$set(e.createTemp,"upkeepgrade",t)},expression:"createTemp.upkeepgrade"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用"},model:{value:e.createTemp.yearUpkeepCost,callback:function(t){e.$set(e.createTemp,"yearUpkeepCost",t)},expression:"createTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用"},model:{value:e.createTemp.yearMaintainCost,callback:function(t){e.$set(e.createTemp,"yearMaintainCost",t)},expression:"createTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数"},model:{value:e.createTemp.baseHours,callback:function(t){e.$set(e.createTemp,"baseHours",t)},expression:"createTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empname","fetch-suggestions":e.employeSearch,placeholder:"请输入责任人"},on:{select:e.handleSelectEmploye},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.name))])]}}]),model:{value:e.createTemp.employeName,callback:function(t){e.$set(e.createTemp,"employeName",t)},expression:"createTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUser"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.createTemp.inputUser,callback:function(t){e.$set(e.createTemp,"inputUser",t)},expression:"createTemp.inputUser"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"指定维修人:",prop:"maintenance"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",placeholder:"指定维修人"},model:{value:e.createTemp.maintenance,callback:function(t){e.$set(e.createTemp,"maintenance",t)},expression:"createTemp.maintenance"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级督办:",prop:"levelone"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"设备主管"},model:{value:e.createTemp.levelone,callback:function(t){e.$set(e.createTemp,"levelone",t)},expression:"createTemp.levelone"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级间隔时间(小时)",prop:"leveloneTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.leveloneTime,callback:function(t){e.$set(e.createTemp,"leveloneTime",t)},expression:"createTemp.leveloneTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级督办:",prop:"leveltwo"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"设备助理"},model:{value:e.createTemp.leveltwo,callback:function(t){e.$set(e.createTemp,"leveltwo",t)},expression:"createTemp.leveltwo"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级间隔时间(小时)",prop:"leveltwoTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.leveltwoTime,callback:function(t){e.$set(e.createTemp,"leveltwoTime",t)},expression:"createTemp.leveltwoTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级督办:",prop:"levelthree"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"场长"},model:{value:e.createTemp.levelthree,callback:function(t){e.$set(e.createTemp,"levelthree",t)},expression:"createTemp.levelthree"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级间隔时间(小时)",prop:"levelthreeTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.levelthreeTime,callback:function(t){e.$set(e.createTemp,"levelthreeTime",t)},expression:"createTemp.levelthreeTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.seeTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.seeTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"card"},[a("el-tabs",{on:{"tab-click":e.form_seeTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassName"}},[a("el-input",{ref:"eqClassName",attrs:{placeholder:"请输入设备类别",disabled:""},model:{value:e.seeTemp.eqClassName,callback:function(t){e.$set(e.seeTemp,"eqClassName",t)},expression:"seeTemp.eqClassName"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入资产编号",disabled:""},model:{value:e.seeTemp.assetCode,callback:function(t){e.$set(e.seeTemp,"assetCode",t)},expression:"seeTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号",disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.seeTemp.financeCode,callback:function(t){e.$set(e.seeTemp,"financeCode",t)},expression:"seeTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格",disabled:""},model:{value:e.seeTemp.specification,callback:function(t){e.$set(e.seeTemp,"specification",t)},expression:"seeTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-input",{ref:"brandName",attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.seeTemp.brandName,callback:function(t){e.$set(e.seeTemp,"brandName",t)},expression:"seeTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"请输入供应商",disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途",disabled:""},model:{value:e.seeTemp.purpose,callback:function(t){e.$set(e.seeTemp,"purpose",t)},expression:"seeTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-input",{ref:"status",attrs:{placeholder:"请输入状态",disabled:""},model:{value:e.seeTemp.status,callback:function(t){e.$set(e.seeTemp,"status",t)},expression:"seeTemp.status"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-input",{ref:"purchaseDate",attrs:{placeholder:"请输入购置日期",disabled:""},model:{value:e.seeTemp.purchaseDate,callback:function(t){e.$set(e.seeTemp,"purchaseDate",t)},expression:"seeTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-input",{ref:"entranceDate",attrs:{placeholder:"请输入入场日期",disabled:""},model:{value:e.seeTemp.entranceDate,callback:function(t){e.$set(e.seeTemp,"entranceDate",t)},expression:"seeTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限",disabled:""},model:{value:e.seeTemp.depreciation,callback:function(t){e.$set(e.seeTemp,"depreciation",t)},expression:"seeTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值",disabled:""},model:{value:e.seeTemp.yuanzhi,callback:function(t){e.$set(e.seeTemp,"yuanzhi",t)},expression:"seeTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值",disabled:""},model:{value:e.seeTemp.salvage,callback:function(t){e.$set(e.seeTemp,"salvage",t)},expression:"seeTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值",disabled:""},model:{value:e.seeTemp.subtractvalue,callback:function(t){e.$set(e.seeTemp,"subtractvalue",t)},expression:"seeTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-input",{ref:"upkeepgrade",attrs:{placeholder:"请输入保养级别",disabled:""},model:{value:e.seeTemp.upkeepgrade,callback:function(t){e.$set(e.seeTemp,"upkeepgrade",t)},expression:"seeTemp.upkeepgrade"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用",disabled:""},model:{value:e.seeTemp.yearUpkeepCost,callback:function(t){e.$set(e.seeTemp,"yearUpkeepCost",t)},expression:"seeTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用",disabled:""},model:{value:e.seeTemp.yearMaintainCost,callback:function(t){e.$set(e.seeTemp,"yearMaintainCost",t)},expression:"seeTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数",disabled:""},model:{value:e.seeTemp.baseHours,callback:function(t){e.$set(e.seeTemp,"baseHours",t)},expression:"seeTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"请输入牧场",disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{placeholder:"请输入部门",disabled:""},model:{value:e.seeTemp.deptName,callback:function(t){e.$set(e.seeTemp,"deptName",t)},expression:"seeTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{placeholder:"请输入责任人",disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUserName"}},[a("el-input",{ref:"inputUserName",attrs:{placeholder:"请输入录入人",disabled:""},model:{value:e.seeTemp.inputUserName,callback:function(t){e.$set(e.seeTemp,"inputUserName",t)},expression:"seeTemp.inputUserName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",attrs:{placeholder:"请输入录入时间",disabled:""},model:{value:e.seeTemp.inputDatetime,callback:function(t){e.$set(e.seeTemp,"inputDatetime",t)},expression:"seeTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"指定维修人:",prop:"maintenanceName"}},[a("el-input",{ref:"maintenanceName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.maintenanceName,callback:function(t){e.$set(e.seeTemp,"maintenanceName",t)},expression:"seeTemp.maintenanceName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级督办:",prop:"leveloneName"}},[a("el-input",{ref:"leveloneName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveloneName,callback:function(t){e.$set(e.seeTemp,"leveloneName",t)},expression:"seeTemp.leveloneName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级间隔时间(小时):",prop:"leveloneTime"}},[a("el-input",{ref:"leveloneTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveloneTime,callback:function(t){e.$set(e.seeTemp,"leveloneTime",t)},expression:"seeTemp.leveloneTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级督办:",prop:"leveltwoName"}},[a("el-input",{ref:"leveltwoName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveltwoName,callback:function(t){e.$set(e.seeTemp,"leveltwoName",t)},expression:"seeTemp.leveltwoName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级间隔时间(小时):",prop:"leveltwoTime"}},[a("el-input",{ref:"leveltwoTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveltwoTime,callback:function(t){e.$set(e.seeTemp,"leveltwoTime",t)},expression:"seeTemp.leveltwoTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级督办:",prop:"levelthreeName"}},[a("el-input",{ref:"levelthreeName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.levelthreeName,callback:function(t){e.$set(e.seeTemp,"levelthreeName",t)},expression:"seeTemp.levelthreeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级间隔时间(小时):",prop:"levelthreeTime"}},[a("el-input",{ref:"levelthreeTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.levelthreeTime,callback:function(t){e.$set(e.seeTemp,"levelthreeTime",t)},expression:"seeTemp.levelthreeTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isBasicExamine&&0==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"点检记录",name:"second"}},[a("el-date-picker",{ref:"inputDatetimeCheck1",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1,callback:function(t){e.$set(e.getAssetBigSpotCheckListParm.parammaps,"inputDatetimeSpotCheck1",t)},expression:"getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSportCheck}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSpotCheck1-1)*e.pageSizeSpotCheck1+1))])]}}],null,!1,1006182765)}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",sortable:"",prop:"inspectionResults","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",sortable:"",prop:"empname","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSpotCheck1,page:e.getAssetBigSpotCheckListParm.offset,limit:e.getAssetBigSpotCheckListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"pagecount",t)},pagination:e.getAssetBigSpotCheckList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"保养单号"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepCode",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"保养类型"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepType,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepType",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepType"}},e._l(e.maintainTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeUpkeepbyeq",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"inputDatetimeUpkeepbyeq",t)},expression:"getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchUpkeepbyeq}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpkeepbyeq,expression:"listLoadingUpkeepbyeq"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpkeepbyeq,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumUpkeepbyeq-1)*e.pageSizeUpkeepbyeq+1))])]}}],null,!1,1082609005)}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号",prop:"upkeepCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养名称",prop:"upkeepName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型",prop:"upkeepType","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别",prop:"upkeepLevel","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养人",prop:"upkeepPerson","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养费用",prop:"upkeepCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalUpkeepbyeq,page:e.getBigupkeepbyeqParm.offset,limit:e.getBigupkeepbyeqParm.pagecount},on:{"update:page":function(t){return e.$set(e.getBigupkeepbyeqParm,"offset",t)},"update:limit":function(t){return e.$set(e.getBigupkeepbyeqParm,"pagecount",t)},pagination:e.getBigupkeepbyeqList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"维修记录",name:"fouth"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"维修单号"},model:{value:e.getAssetMaintainParm.parammaps.repairCode,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"repairCode",t)},expression:"getAssetMaintainParm.parammaps.repairCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetMaintain",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"inputDatetimeAssetMaintain",t)},expression:"getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetMaintain}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetMaintain,expression:"listLoadingAssetMaintain"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetMaintain-1)*e.pageSizeAssetMaintain+1))])]}}],null,!1,353234157)}),e._v(" "),a("el-table-column",{attrs:{label:"维修单号",prop:"repairCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修人",prop:"requestName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人",prop:"empname","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"诊断故障",prop:"details","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用",sortable:"",prop:"maintenanceCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetMaintain,page:e.getAssetMaintainParm.offset,limit:e.getAssetMaintainParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetMaintainParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetMaintainParm,"pagecount",t)},pagination:e.getAssetMaintainList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"启停记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.startTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"startTime",t)},expression:"getAssetSTTParm.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.stopTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"stopTime",t)},expression:"getAssetSTTParm.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetSTT,expression:"listLoadingAssetSTT"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetSTT-1)*e.pageSizeAssetSTT+1))])]}}],null,!1,1514873197)}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人",prop:"blockName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetSTT,page:e.getAssetSTTParm.offset,limit:e.getAssetSTTParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetSTTParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetSTTParm,"pagecount",t)},pagination:e.getAssetSTTList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"变更记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更状态"},model:{value:e.getAssetChangeParm.parammaps.changeStatue,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"changeStatue",t)},expression:"getAssetChangeParm.parammaps.changeStatue"}},e._l(e.changeStates,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetChange",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetChangeParm.parammaps.inputDatetimeAssetChange,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"inputDatetimeAssetChange",t)},expression:"getAssetChangeParm.parammaps.inputDatetimeAssetChange"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetChange}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetChange,expression:"listLoadingAssetChange"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetChange-1)*e.pageSizeAssetChange+1))])]}}],null,!1,1891472333)}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",formatter:e.changeStatue,prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",prop:"changeName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetChange,page:e.getAssetChangeParm.offset,limit:e.getAssetChangeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetChangeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetChangeParm,"pagecount",t)},pagination:e.getAssetChangeList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"备件领用记录",name:"seventh"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getAssetPartApplyParm.parammaps.useCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"useCode",t)},expression:"getAssetPartApplyParm.parammaps.useCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getAssetPartApplyParm.parammaps.partCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partCode",t)},expression:"getAssetPartApplyParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getAssetPartApplyParm.parammaps.partName,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partName",t)},expression:"getAssetPartApplyParm.parammaps.partName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetPartApply",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"inputDatetimeAssetPartApply",t)},expression:"getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetPartApply}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetPartApply,expression:"listLoadingAssetPartApply"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetPartApply,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetPartApply-1)*e.pageSizeAssetPartApply+1))])]}}],null,!1,3522052013)}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",sortable:"",prop:"partCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"useNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际出库数量",sortable:"",prop:"checkoutNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间",sortable:"",prop:"receiveTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"距离上次时间(天)",sortable:"",prop:"dif","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetPartApply,page:e.getAssetPartApplyParm.offset,limit:e.getAssetPartApplyParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetPartApplyParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetPartApplyParm,"pagecount",t)},pagination:e.getAssetPartApplyList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"费用统计",name:"eighth"}},[a("el-row",[a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}}):e._e()]),e._v(" "),a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}}):e._e()])],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],"append-to-body":"",visible:e.dialogFormVisible_ChartSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible_ChartSee=t}}},[a("div",{staticClass:"app-contentSee"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getChartSeeParm.parammaps.useTypeV,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"useTypeV",t)},expression:"getChartSeeParm.parammaps.useTypeV"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getChartSeeParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"inputDatetime2",t)},expression:"getChartSeeParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchChartSee}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadChartSee}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChartSee,expression:"listLoadingChartSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listChartSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChartSee-1)*e.pageSizeChartSee+1))])]}}],null,!1,747959405)}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"单号",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.RUcode))])]}}],null,!1,3074352844)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"领用日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatTime))])]}}],null,!1,462173042)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}],null,!1,1252061914)}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"退库数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}],null,!1,3036156380)}),e._v(" "),a("el-table-column",{key:12,attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{key:13,attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChartSee>=0,expression:"totalChartSee>=0"}],attrs:{total:e.totalChartSee,page:e.getChartSeeParm.offset,limit:e.getChartSeeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getChartSeeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getChartSeeParm,"pagecount",t)},pagination:e.getChartSeeList}})],1)])],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:22}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:3},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"batchChangeTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.batchChange.temp,"label-position":"right","label-width":"115px"},nativeOn:{click:function(e){e.preventDefault()},submit:function(e){e.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更部门"},on:{change:e.changeBatchDept},model:{value:e.batchChange.temp.departmentId,callback:function(t){e.$set(e.batchChange.temp,"departmentId",t)},expression:"batchChange.temp.departmentId"}},e._l(e.batchChange.deptList,(function(e){return a("el-option",{key:e.deptid,attrs:{label:e.departmentName,value:e.deptid}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更责任人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更责任人"},on:{change:e.changeBatchPerson},model:{value:e.batchChange.temp.employeeId,callback:function(t){e.$set(e.batchChange.temp,"employeeId",t)},expression:"batchChange.temp.employeeId"}},e._l(e.batchChange.personList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("28a5"),a("6b54"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"Basics",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},rulesCreate:{eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],deptId:[{required:!0,message:"必填",trigger:"blur"}],employeName:[{required:!0,message:"必填",trigger:"blur"}],pastureId:[{required:!0,message:"必填",trigger:"blur"}],maintenance:[{required:!0,message:"必填",trigger:"blur"}],leveloneTime:[{required:!0,message:"必填",trigger:"blur"}],leveltwoTime:[{required:!0,message:"必填",trigger:"blur"}],levelthreeTime:[{required:!0,message:"必填",trigger:"blur"}],levelone:[{required:!0,message:"必填",trigger:"blur"}],leveltwo:[{required:!0,message:"必填",trigger:"blur"}],levelthree:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},placeholder:"请选择设备类别",findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],pushNameList:[{id:"60",name:"60"},{id:"120",name:"120"},{id:"180",name:"180"}],pushNameList2:[{id:"1",name:"1"},{id:"2",name:"2"},{id:"3",name:"3"},{id:"5",name:"5"},{id:"8",name:"8"},{id:"12",name:"12"},{id:"18",name:"18"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{proId:"",brandId:"",assetCode:"",eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},listSH:[],totalSH:0,listLoadingSH:!0,tabName:"",getdataListParmSH:{name:"getAssetListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",SHStatus:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:"5",maintenance:"",levelone:"",leveltwo:"",levelthree:"",pushTime:"",leveloneTime:"",leveltwoTime:"",levelthreeTime:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_Examine:!1,dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{uploadData:function(){return{name:"importStockUse",importParams:"牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/equipment"}},created:function(){var e=this,t=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:h.a.get("name")}}).then((function(e){t.buttons=e.data.list,t.get_auto_buttons()})),this.get_table_dataSH(),this.getDownClassList(),void 0==this.$route.query.tabName?this.tabName="first":this.tabName=this.$route.query.tabName,!1===this.isBasic&&(this.tabName="second"),"first"==this.tabName?(this.isDisplayRecord=!0,this.isFlowChart=!1):(this.isDisplayRecord=!1,this.isFlowChart=!0),void 0!==this.$route.query.myPath&&"AssetStandardManagement"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.departmentId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,isNaN(e.$route.query.departmentId)?e.getdataListParm.parammaps.departmentId="":e.getdataListParm.parammaps.departmentId=parseInt(e.$route.query.departmentId),e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.departmentId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"equipmentOverview"==this.$route.query.myPath&&(this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId),void 0!==this.$route.query.myPath&&"equipmentOverview2"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.eqClassId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.eqClassId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"PurchaseScrap"==this.$route.query.myPath&&("新购设备数"==this.$route.query.project?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime2=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList()):(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime3=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList())),this.get_table_data(),this.keyupSubmit()},methods:{beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.list=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath="");e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},get_table_dataSH:function(){var e=this;this.listLoadingSH=!0,console.log(this.$refs),console.log(this.$refs["inputDatetime1"]),null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),Object(l["e"])(this.getdataListParmSH).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.listSH=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&t.data.list[a].picpath?(e.listSH[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSH[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSH[a].srcpath="",e.listSH[a].picpath="");e.pageNumSH=t.data.pageNum,e.pageSizeSH=t.data.pageSize}else e.listSH=[];e.totalSH=t.data.total,setTimeout((function(){e.listLoadingSH=!1}),100)}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},form_searchSH:function(){this.listLoadingSH=!0,null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),this.getdataListParmSH.offset=1,this.get_table_dataSH()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存",this.createTemp.maintenance),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation="5"},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}if(0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}if(0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){if(this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==e.levelone&&(this.createTemp.levelone=parseInt(e.levelone)),void 0!==e.leveltwo&&(this.createTemp.leveltwo=parseInt(e.leveltwo)),void 0!==e.levelthree&&(this.createTemp.levelthree=parseInt(e.levelthree)),void 0!==e.leveloneTime&&(this.createTemp.leveloneTime=parseInt(e.leveloneTime)),void 0!==e.leveltwoTime&&(this.createTemp.leveltwoTime=parseInt(e.leveltwoTime)),void 0!==e.levelthreeTime&&(this.createTemp.levelthreeTime=parseInt(e.levelthreeTime)),void 0!==e.maintenance){var a=e.maintenance.split(","),s=[];a.forEach((function(e){s.push(parseInt(e))})),console.log("arr2",s),this.createTemp.maintenance=s}void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var i=[],r=[];void 0==e.picpath||""==e.picpath?i.push():i.push(e.picpath);for(var n=0;n<i.length;n++){var l={};this.$set(l,"url",i[n]),r.push(l)}this.$set(this.createTemp,"fileList",r),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;console.log(this.createTemp.maintenance),this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);if(0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},handleDownloadChartSee:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm2.name="getEqPartuseDetailList",this.downLoadParm2.returntype="Map",this.downLoadParm2.parammaps=this.getChartSeeParm.parammaps,Object(l["d"])(this.downLoadParm2).then((function(t){e.$nextTick((function(){e.downLoadList2=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList2);var a=[{tHeader:["类型","单号","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["useTypeV","RUcode","creatTime","departmentName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList2,sheetName:"费用统计"}];Object(p["d"])(a,"费用统计",!0,"xlsx")}))}))},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber,console.log(t.data.list[0].createNumber),console.log(e.createTemp.assetCode),e.$forceUpdate()}))},handleTabClick:function(e){console.log("点击了基础信息/审核设备tab",e),"first"==e.name?(this.isFlowChart=!1,this.isDisplayRecord=!0):(this.isFlowChart=!0,this.isDisplayRecord=!1),this.get_table_data(),this.get_table_dataSH()},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"SHstatue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1,this.keyupSubmit()},changeSHStatue:function(e){this.statueReason=2==e},keyupSubmit:function(){var e=this;document.onkeydown=function(t){var a=window.event.keyCode;13===a&&e.createExamineData()}},createExamineData:function(){var e=this;"update"!==this.dialogStatus&&"create"!==this.dialogStatus&&(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="eqCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.SHstatue?e.requestParam.parammaps.statue=1:e.requestParam.parammaps.statue=2,e.requestParam.parammaps.empId=h.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.get_table_dataSH(),e.get_table_data(),e.activeName):Object(l["w"])(t,e.$notify)})))})))},handleDownload:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","部门","责任人","录入人","录入时间","使用时长(年)","使用率(%)","指定维修人","一级督办","一级间隔时间","二级督办","二级间隔时间","三级督办","三级间隔时间"],filterVal:["pastureName","eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","deptName","employeName","inputUserName","inputDatetime","serviceDuration","utilizationRate","maintenanceName","leveloneName","leveloneTime","leveltwoName","leveltwoTime","levelthreeName","levelthreeTime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleDownloadSH:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetListSH",this.downLoadParm.parammaps=this.getdataListParmSH.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","牧场","部门","责任人","录入人","录入时间"],filterVal:["eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","pastureName","deptName","employeName","inputUserName","inputDatetime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleSelectionChange:function(e){this.selectionList=e},handleBatchChange:function(){if(this.selectionList.length>0){for(var e=0;e<this.selectionList.length;e++)if(this.selectionList[e].pastureId!==this.selectionList[0].pastureId)return this.$message({type:"error",message:"请检测变更牧场是否一致!",duration:2e3}),!1;console.log("批量变更"),this.batchChange.temp.departmentId="",this.batchChange.temp.employeeId="",this.batchChange.deptList=[],this.batchChange.personList=[],this.dialogFormVisible_change=!0,this.dialogStatus="change",this.batchChange.getdataListParmDept.parammaps.pastureId=this.selectionList[0].pastureId,this.getBatchChangeDeptDownList()}else this.$message({type:"error",message:"请选择变更牧场",duration:2e3})},getBatchChangeDeptDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmDept).then((function(t){null!==t.data.list?e.batchChange.deptList=t.data.list:e.batchChange.deptList=[]}))},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("f51c"),a("916b"),a("350f"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"4c754288",null);t["default"]=y.exports},8643:function(e,t,a){"use strict";a("53e5")},8699:function(e,t,a){},"86b2":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-资产标准配置",use:"icon-资产标准配置-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-资产标准配置"><defs><style type="text/css"></style></defs><path d="M837.485714 73.142857a14.811429 14.811429 0 0 1 3.657143 11.52v853.942857a15.725714 15.725714 0 0 1-4.571428 12.251429h-649.142858a18.285714 18.285714 0 0 1-2.194285-21.211429L833.828571 78.628571l2.56-3.291428A5.12 5.12 0 0 1 837.485714 73.142857m0-73.142857a73.142857 73.142857 0 0 0-60.891428 34.377143L125.257143 887.405714C87.222857 943.725714 123.428571 1024 186.88 1024h650.422857A81.371429 81.371429 0 0 0 914.285714 938.605714V85.394286A80.822857 80.822857 0 0 0 836.571429 0z" p-id="2186" fill="#ffffff" /><path d="M671.451429 585.142857v129.462857h-95.268572L671.451429 585.142857m45.165714-167.131428a26.331429 26.331429 0 0 0-21.942857 12.251428L467.748571 739.108571a31.085714 31.085714 0 0 0 22.308572 49.188572h226.742857a29.257143 29.257143 0 0 0 27.794286-30.72V449.28a29.074286 29.074286 0 0 0-27.977143-30.72z" p-id="2187" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"872f":function(e,t,a){"use strict";a("2cbe")},8796:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("div"),e._v(" "),a("div",{staticClass:"view-wrap"},["simple"===e.type?a("simple"):e._e(),e._v(" "),"encapsulation"===e.type?a("encapsulation"):e._e()],1)])},i=[],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-table",{staticClass:"tableArea",staticStyle:{width:"100%"},attrs:{data:e.listData,"span-method":e.objectSpanMethod}},[a("el-table-column",{attrs:{prop:"type",label:"序号",align:"center",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sheetType",label:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"taskKey",label:"宝鸡1"}}),e._v(" "),a("el-table-column",{attrs:{prop:"templateUrl",label:"宝鸡2"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top-start"}},[a("i",{staticClass:"el-icon-edit-outline",on:{click:function(a){return e.modify(t)}}})]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除",placement:"top-start"}},[a("i",{staticClass:"el-icon-delete",on:{click:function(a){return e.deleteData(t)}}})])]}}])})],1)],1)},n=[];a("ac6a");function l(e,t){var a={};if(e instanceof Array&&t instanceof Array&&e.length&&t.length)return e.forEach((function(e){a[e]=[];var s=0;t.forEach((function(i,r){0===r?(a[e].push(1),s=0):t[r][e]instanceof Array||t[r][e]instanceof Object?JSON.stringify(t[r][e])===JSON.stringify(t[r-1][e])?(a[e][s]+=1,a[e].push(0)):(a[e].push(1),s=r):t[r][e]===t[r-1][e]?(a[e][s]+=1,a[e].push(0)):(a[e].push(1),s=r)}))})),a}function o(e,t,a,s){if(t instanceof Array&&a instanceof Object)for(var i=e.row,r=e.column,n=e.rowIndex,l=(e.columnIndex,0);l<t.length;l++){var o=void 0;if(o=s?r.property===t[l]&&"/"!==i[t[l]]:r.property===t[l],o){var p=a[t[l]][n],m=p>0?1:0;return{rowspan:p,colspan:m}}}}var p={name:"MyNeedDeal",data:function(){return{listData:[],spanObj:{},mergekeys:["type","sheetType","templateUrl"]}},created:function(){},mounted:function(){this.queryData()},methods:{queryData:function(){this.listData=[{id:1,type:1,sheetType:"事件单",taskKey:"shijian_01",templateUrl:"/shijian_01"},{id:2,type:1,sheetType:"事件单",taskKey:"shijian_02",templateUrl:"/shijian_02"},{id:3,type:1,sheetType:"事件单",taskKey:"shijian_02",templateUrl:"/shijian_03"},{id:4,type:2,sheetType:"问题单",taskKey:"wenti_01",templateUrl:"/wenti_01"},{id:5,type:2,sheetType:"问题单",taskKey:"wenti_02",templateUrl:"/wenti_02"},{id:6,type:2,sheetType:"问题单",taskKey:"wenti_03",templateUrl:"/wenti_03"}],this.handleSpan()},handleSpan:function(){var e=this;this.mergekeys.forEach((function(t){e.spanObj[t]=[];var a=0;e.listData.forEach((function(s,i){0===i?(e.spanObj[t].push(1),a=0):e.listData[i][t]===e.listData[i-1][t]?(e.spanObj[t][a]+=1,e.spanObj[t].push(0)):(e.spanObj[t].push(1),a=i)}))}))},objectSpanMethod:function(e){e.row;for(var t=e.column,a=e.rowIndex,s=(e.columnIndex,0);s<this.mergekeys.length;s++)if(t.property===this.mergekeys[s]){var i=this.spanObj[this.mergekeys[s]][a],r=i>0?1:0;return{rowspan:i,colspan:r}}}}},m=p,c=a("2877"),d=Object(c["a"])(m,r,n,!1,null,null,null),u=d.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("div",{staticClass:"content"},[a("div",{staticClass:"data-container",staticStyle:{width:"98%",margin:"0 auto"}},[a("h3",[e._v("各牧场设备统计表:")]),e._v(" "),a("el-table",{ref:"interfaceTable",staticStyle:{width:"100%"},attrs:{data:e.dataList,border:"","row-style":e.rowStyle,"cell-style":e.cellStyle,"span-method":e.colspanMethod,"show-header":e.showHeader}},[a("el-table-column",{attrs:{label:"一级分类",prop:"pasture",align:"center",width:"160"}}),e._v(" "),a("el-table-column",{attrs:{label:"二级分类",prop:"pasture1",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"三级分类",prop:"pasture2",align:"center",width:"160"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"宝鸡1",prop:"pastureName1",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"宝鸡2",prop:"pastureName2",align:"center",width:"160"}})],1)],1)])])},g=[],f=[{pasture:"一级分类",pasture1:"二级分类",pasture2:"三级分类",type:"类型",pastureName1:"宝鸡1",pastureName2:"宝鸡2"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机A",type:"数量",barCode:"323",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机A",type:"运转率",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机A",type:"闲置率",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机B",type:"数量",barCode:"323",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机B",type:"运转率",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆A",pasture1:"装载机A",pasture2:"小型装载机B",type:"闲置率",pastureName1:"1111",pastureName2:"2222"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机A",type:"数量",barCode:"323",pastureName1:"2222",pastureName2:"3333"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机A",type:"运转率",pastureName1:"2222",pastureName2:"3333"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机A",type:"闲置率",pastureName1:"2222",pastureName2:"3333"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机B",type:"数量",barCode:"323",pastureName1:"2222",pastureName2:"3333"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机B",type:"运转率",pastureName1:"2222",pastureName2:"3333"},{pasture:"车辆B",pasture1:"装载机B",pasture2:"小型装载机B",type:"闲置率",pastureName1:"2222",pastureName2:"3333"}],b=f,v={components:{},mixins:[],data:function(){return{border:!1,showHeader:!1,dataList:[],rowspanObj:{},mergekeys:["pasture","pasture1","pasture2","logisticsNo","arr","materialsCode"],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{},watch:{dataList:function(){this.$nextTick((function(){this.$refs.interfaceTable.$el.background="red !important",console.log(this.$refs.interfaceTable.$el),console.log(this.$refs.interfaceTable)}))}},created:function(){},mounted:function(){this.getDataList()},methods:{getDataList:function(){this.dataList=b,console.log(),this.rowspanObj=l(this.mergekeys,this.dataList),console.log(this.rowspanObj)},colspanMethod:function(e){return o(e,this.mergekeys,this.rowspanObj,!0)}}},y=v,_=Object(c["a"])(y,h,g,!1,null,"80d66128",null),w=_.exports,S={name:"Statiscs",components:{Simple:u,Encapsulation:w},mixins:[],data:function(){return{type:"encapsulation"}},computed:{},watch:{},mounted:function(){},methods:{}},P=S,x=Object(c["a"])(P,s,i,!1,null,null,null);t["default"]=x.exports},"87bd":function(e,t,a){},"87d3":function(e,t,a){"use strict";a("da6c")},8888:function(e,t,a){"use strict";a("b618")},"88c3":function(e,t,a){},8939:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center",prop:"totaluk"}}),e._v(" "),a("el-table-column",{attrs:{label:"单号","min-width":"100px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"100px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center",prop:"donerateuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"100px",align:"center",prop:"totalmt"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"接单日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"结束日期","min-width":"100px",align:"center",prop:"donemt"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p={name:"RepairRateStatistics",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"UkdoneRatePasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetime:[]}}},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.getTimeFn(),this.getDownClassList()},methods:{getTimeFn:function(){var e=this,t=new Date,a=new Date;t.setTime(t.getTime()-6048e5),e.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(t,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(a,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.startTime=e.table.getdataListParm.parammaps.inputDatetime[0],e.table.getdataListParm.parammaps.stopTime=e.table.getdataListParm.parammaps.inputDatetime[1],e.get_table_data()},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(l["e"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total,setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.inputDatetime[0],this.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.inputDatetime[1],this.get_table_data()},handleDownload:function(){var e=this;this.$alert("维修周期效率统计报表-设备正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="UkdoneRateEqclass",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","单号","设备类别","设备名称","设备内部编号","报修日期","天数","接单日期","天数","维修日期","天数","结束日期"],filterVal:["","","","","","","","","","","",""],tableDatas:e.downLoadParm.list,sheetName:"Sheet"}];Object(o["d"])(a,"维修周期效率统计",!0,"xlsx")}))}))}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},8970:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("98d6");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieTypeData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieTypeData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieTypeData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TypeData,a=e.text;this.chart.setOption({title:{text:a+"月类型统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){console.log(e),s.$emit("chartClickType",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"89ba":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-特种设备管理",use:"icon-特种设备管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-特种设备管理"><defs><style type="text/css"></style></defs><path d="M894.4 596.1c-6 28.2-15.3 55.2-27 80.7l81.5 51.1c-16.7 33.8-37 65.4-60.8 94.1l-81.8-51.3c-14.6 16.7-30.7 32.3-47.8 46.2l54.3 78.8c-29.3 23.1-61.2 42.8-95.4 58.9l-55-79.9c-29.6 12.3-61.2 21.2-94.1 25.9v96.1c-18.3 2.1-37 3.2-55.9 3.2s-37.7-1.1-55.9-3.2v-96.1c-48.3-6.9-93.8-22.7-134.9-45.7l-55.4 78.3c-33-19.2-63.5-42.5-91-68.8l55.7-79.2c-15.9-16.2-30.1-34-42.8-53.1l-86.2 42.8c-20.3-31.7-37.2-66.3-49.7-102.6l86.4-43c-7.6-24.3-12.7-49.4-15.5-75.6H27.2c-1.1-13.9-1.8-27.9-1.8-42 0-23.8 1.8-47.2 4.9-70.2H127c5.8-32.1 15.3-62.6 28.4-91.3l-81.5-51.1c16.4-34 36.7-65.6 60.1-94.7l81.6 51.3c14.5-16.9 30.5-32.6 47.8-46.9l-56.8-76.9c29.4-23.8 61.7-44.4 96.3-60.8l58 78.6C391 137 423 128 456.3 123.3V27.2c18.3-2.1 37-3.2 55.9-3.2s37.7 1.1 55.9 3.2v96.1c51.7 7.4 100.1 24.9 143.3 50.6l56.8-77.2c32.4 20.1 62.4 43.9 89.2 71l-57.3 78.1c12.2 13.2 23.4 27 33.5 41.8l85.7-42.8c20.8 31.6 37.9 65.9 51 102.3L884 389.8c9.7 29.8 16 61.5 18.3 94.1h95.4c0.4 9.3 0.9 18.7 0.9 28.2 0 28.7-2.6 56.8-7.2 84.3h-97.1l0.1-0.3zM511.8 212.5c-165 0-298.5 134-298.5 299.4S347 811.2 511.8 811.2s298.5-134 298.5-299.4-133.5-299.3-298.5-299.3z m0 537.9c-131.2 0-237.7-106.7-237.7-238.4s106.3-238.4 237.7-238.4S749.5 380.3 749.5 512c0.2 131.7-106.2 238.4-237.7 238.4z m0-344.5c-58.5 0-105.6 47.4-105.6 106.1 0 58.7 47.4 106.1 105.6 106.1 58.5 0 105.6-47.4 105.6-106.1 0.4-58.5-47-106.1-105.6-106.1z" p-id="3864" /></symbol>'});n.a.add(l);t["default"]=l},"89ff":function(e,t,a){"use strict";a("5729")},"8a76":function(e,t,a){},"8a90":function(e,t,a){},"8c3d":function(e,t,a){"use strict";a("9c0c")},"8cdb":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[e._m(0),e._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),e._v(" "),a("div",{staticClass:"bullshit__info"},[e._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),e._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[e._v("Back to home")])])])])},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),e._v(" "),s("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),e._v(" "),s("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),e._v(" "),s("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},n=r,l=(a("b310"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"1699b730",null);t["default"]=o.exports},"8d0b":function(e,t,a){},"8d11":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"280px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"时间","end-placeholder":"时间","picker-options":e.pickerOptions},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"请输入设备名称"},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间",align:"center",prop:"run"}}),e._v(" "),a("el-table-column",{attrs:{label:"停机时间",align:"center",prop:"stop"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=(a("7f7f"),a("7514"),a("c5f6"),a("ac6a"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"StopRecord",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){return{findAllPasture:[],findAllDepart:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},disabled:!1,placeholder:"请选择设备类别",getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],selectData:"",pickerMinDate:"",pickerRange:5184e6,pickerOptions:{},total:0,listLoading:!0,getdataListParm:{name:"startStopRecord",page:1,offset:1,pagecount:10,returntype:"Map",inputDatetime:[Object(l["e"])((new Date).getTime()-2592e6,"{y}-{m}-{d}"),Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")],parammaps:{pastureId:c.a.get("pastureid"),pastureName:c.a.get("pasturename"),departmentName:"",eqClassId:"",eqName:"",startTime:"",endTime:"",departmentId:"",inputDatetime:[Object(l["e"])((new Date).getTime()-2592e6,"{y}-{m}-{d}"),Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")],page:1,offset:1,pagecount:10}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},statueReason:!1,downLoadParm:{},downLoadList:[],pageNum:0,pageSize:0,isPercentage:!1,percentage:1,isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_select_list(),this.get_table_data()},methods:{getSummaries1:function(e){var t=e.columns,a=e.data,s=[];return t.forEach((function(e,t){if(0!==t){var i=a.map((function(t){return Number(t[e.property])}));console.log(e.property),console.log(i),i.every((function(e){return isNaN(e)}))?s[t]="-":s[t]=i.reduce((function(e,t){var a=Number(t);return isNaN(a)?e:e+t}),0)}else s[t]="合计"})),s},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},get_table_data:function(){var e=this;this.listLoading=!0,"现代牧业"==this.getdataListParm.parammaps.pastureName&&(this.getdataListParm.parammaps.pastureId=""),null==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.endTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.endTime=this.getdataListParm.parammaps.inputDatetime[1]),this.getdataListParm.parammaps.offset=this.getdataListParm.offset,this.getdataListParm.parammaps.pagecount=this.getdataListParm.pagecount,this.getdataListParm.parammaps.page=this.getdataListParm.page,Object(r["D"])(this.getdataListParm.parammaps).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){var e=this;this.listLoading=!0,this.getdataListParm.offset=1,this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e.getdataListParm.parammaps.pastureName})).id,this.get_table_data()},tableCellStyle:function(e){e.row,e.column,e.rowIndex,e.columnIndex},handleDownload:function(){var e=this;this.$alert("启停记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="startStopRecord",this.downLoadParm.parammaps=this.getdataListParm.parammaps,this.downLoadParm.parammaps.pagecount=0,this.downLoadParm.parammaps.page=0,this.downLoadParm.parammaps.offset=0,Object(r["D"])(this.downLoadParm.parammaps).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备名称","设备内部编号","运行时间","停机时间"],filterVal:["pastureName","eqName","eqCode","run","stop"],tableDatas:e.downLoadList,sheetName:"启停记录"}];Object(l["d"])(a,"启停记录",!0,"xlsx")}))}}},u=d,h=(a("feec"),a("cbc0"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"031a41d6",null);t["default"]=g.exports},"8d41":function(e,t,a){},"8d8b":function(e,t,a){"use strict";a.r(t);var s=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-3",type:"success"}})],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!0,null,null,null);t["default"]=l.exports},"8e0b":function(e,t,a){"use strict";a("1f93")},"8e8d":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812L94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol>'});n.a.add(l);t["default"]=l},"8eae":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentName",t)},expression:"getdataListParm.parammaps.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-autocomplete",{ref:"cardNumber",staticClass:"inline-input filter-item",staticStyle:{width:"300px"},attrs:{"value-key":"cardNumber","fetch-suggestions":e.cardNumberSearch,placeholder:"请选择油卡编号"},on:{select:e.handlecardNumberSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.cardNumber))])]}}]),model:{value:e.getdataListParm.parammaps.cardNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"cardNumber",t)},expression:"getdataListParm.parammaps.cardNumber"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px",display:"inline-block"},attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]),e._v(" "),e.isOtherinfoExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{"margin-left":"10px",display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"油卡编号","min-width":"110px",align:"center",prop:"cardNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"油卡类型","min-width":"110px",align:"center",prop:"cardType"}}),e._v(" "),a("el-table-column",{attrs:{label:"剩余余额","min-width":"110px",align:"center",sortable:"",prop:"cardAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号","min-width":"110px",align:"center",prop:"assetNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center",prop:"assetName"}}),e._v(" "),a("el-table-column",{attrs:{label:"油卡状态","min-width":"110px",align:"center",prop:"assetName"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.enable?a("span",[e._v("启用")]):a("span",[e._v("停用")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[0==s.enable?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleChange(s)}}},[e._v("变更记录")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRecharge(s)}}},[e._v("充值")]),e._v(" "),0==s.enable?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDisable(s)}}},[e._v("停用")]):a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDisable(s)}}},[e._v("启用")]),e._v(" "),1==s.enable?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡号:",prop:"cardNumber"}},[a("el-input",{ref:"cardNumber",attrs:{disabled:"update"==e.dialogStatus},model:{value:e.temp.cardNumber,callback:function(t){e.$set(e.temp,"cardNumber",t)},expression:"temp.cardNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"设备:",prop:"assetSum"}},[a("el-autocomplete",{ref:"assetSum",staticClass:"inline-input",staticStyle:{width:"300px"},attrs:{"value-key":"assetSum","fetch-suggestions":e.formNumberSearch,placeholder:"请选择设备"},on:{select:e.handleformNameSelect,blur:e.blurformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.assetName))])]}}]),model:{value:e.temp.assetSum,callback:function(t){e.$set(e.temp,"assetSum",t)},expression:"temp.assetSum"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.temp.departmentName,callback:function(t){e.$set(e.temp,"departmentName",t)},expression:"temp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡类型:",prop:"cardType"}},[a("el-select",{ref:"cardType",staticStyle:{width:"100%"},attrs:{placeholder:"卡类型"},model:{value:e.temp.cardType,callback:function(t){e.$set(e.temp,"cardType",t)},expression:"temp.cardType"}},e._l(e.cardTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡余额:",prop:"cardAmount"}},[a("el-input",{ref:"cardAmount",model:{value:e.temp.cardAmount,callback:function(t){e.$set(e.temp,"cardAmount",t)},expression:"temp.cardAmount"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.tabledialogStatus],visible:e.changeFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.changeFormVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.changelistLoading,expression:"changelistLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.changelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"变更日期",align:"center",sortable:"","min-width":"110px",prop:"changeDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更类型",align:"center","min-width":"110px",prop:"changeType"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更前设备",align:"center","min-width":"110px",prop:"beforeMaintenance"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更后设备",align:"center","min-width":"110px",prop:"afterMaintenance"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",align:"center","min-width":"110px",prop:"empname"}})],1),e._v(" "),a("h3",{staticStyle:{"font-weight":"300"}},[e._v(e._s(e.cardNumber)+"-启停记录")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.changelistLoading,expression:"changelistLoading"}],key:e.tableKey2,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.changelist2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"启停日期",align:"center",sortable:"","min-width":"110px",prop:"oildCardDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"启停类型",align:"center","min-width":"110px",prop:"statue"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作人",align:"center","min-width":"110px",prop:"personName"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.changeFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.tabledialogStatus],visible:e.rechargeFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.rechargeFormVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.rechargelistLoading,expression:"rechargelistLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.rechargelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"日期",align:"center",type:"index",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dateFormat))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cardCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"充值金额",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rechargeNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"充值人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[0==e.rechargeTemp.enable?a("el-button",{attrs:{type:"success"},on:{click:function(t){return e.createRecharge()}}},[e._v("充值")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.rechargeFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.rechargeFFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.rechargeFFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"当前时间:",prop:"dateFormat"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.dateFormat,callback:function(t){e.$set(e.temp,"dateFormat",t)},expression:"temp.dateFormat"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"充值金额",prop:"rechargeNum"}},[a("el-input",{ref:"rechargeNum",model:{value:e.temp.rechargeNum,callback:function(t){e.$set(e.temp,"rechargeNum",t)},expression:"temp.rechargeNum"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.createRechargeData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.rechargeFFormVisible=!1}}},[e._v("取消并关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u={name:"Otherinfo",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isOtherinfoExport:[],buttons:[],isokDisable:!1,tableKey:0,tableKey2:0,list:null,changelist:null,changelist2:null,rechargelist:null,total:0,listLoading:!0,changelistLoading:!0,rechargelistLoading:!0,formNumberSearchList:[],requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},requestParam2:{},parentDept:[],getDeptParm:{name:"getdeptrecu",idname:"value",params:[-1]},postDataPramas:{},getdataListParm:{name:"getOilcardList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pname:"",pastureName:c.a.get("pasturename")}},requestFilterParams:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},requestFilterParams2:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getchangedataListParm:{name:"getOilcardHistory",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getchangedataListParm2:{},getrechargedataListParm:{name:"getrechargerecordList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},cardTypeList:[{name:"IC卡",id:"0"},{name:"磁卡",id:"1"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],findAllAsset:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllAsset",offset:0,pagecount:0,params:[]},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},dataform:{deptId:"",parentId:""},temp:{},dialogFormVisible:!1,changeFormVisible:!1,rechargeFormVisible:!1,rechargeFFormVisible:!1,tabledialogStatus:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",change:"变更记录",recharge:"充值记录",changeF:"换卡",rechargeF:"充值"},dialogPvVisible:!1,rules:{cardNumber:[{required:!0,message:"必填",trigger:"blur"}],cardType:[{required:!0,message:"必填",trigger:"blur"}],cardAmount:[{required:!0,message:"必填",trigger:"blur"}]},rechargeTemp:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"label"},nodeKey:"value",defaultCheckedKeys:[],cardNumber:"",isPercentage:!1,percentage:1,downLoadParm:{},downLoadList:[]}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importOilcard",importParams:"牧场,车自编号,油卡,类型,上次用油量,部门",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getDepartDownList()},methods:{get_auto_buttons:function(){var e="basic:otherinfo:otherinfoExport",t=Object(r["v"])(this.buttons,e);this.isOtherinfoExport=t},tableSort:function(e){Object(l["f"])(e,this.list)},getDeptList:function(){var e=this;Object(r["y"])(this.getDeptParm).then((function(t){e.parentDept=t.data}))},popoverHide:function(e,t){this.dataform.deptId=e,this.dataform.parentId=t.parentid},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.assetName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!==t.data.list[a].cardAmount&&e.$set(t.data.list[a],"cardAmount",parseFloat(t.data.list[a].cardAmount));e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[],e.pageNum=0,e.pageSize=0;e.total=t.data.total,e.getDeptList(),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;this.requestParams[5].params[0]=this.$store.state.user.pastureid,Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllAsset=t.data.findAllAsset.list,e.getDictByName=t.data.getDictByName.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),dateFormat:Object(l["e"])(new Date,"{y}-{m}-{d}"),assetName:"",assetId:"",deptName:"",pastureName:"",pastureId:c.a.get("pastureid"),cardNumber:"",cardType:"",cardAmount:"",rechargeNum:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.cardAmount=parseFloat(e.temp.cardAmount).toFixed(2),console.log(e.requestParam,"000"),e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],void 0!=e.temp.departmentId&&""!=e.temp.departmentId||(e.temp.departmentId="",e.temp.departmentName=""),void 0!=e.temp.assetId&&""!=e.temp.assetId||(e.temp.assetId="",e.temp.assetSum=""),void 0!=e.temp.pastureName&&""!=e.temp.pastureName||(e.temp.pastureName=c.a.get("pasturename")),e.requestParam.data[0]={name:"checkOilcard",type:"v",parammaps:{cardCode:e.temp.cardNumber,eqId:e.temp.assetId}},e.requestParam.data[1]={name:"insertOilcard",type:"e",parammaps:{assetId:e.temp.assetId,assetName:e.temp.assetSum,cardAmount:e.temp.cardAmount,cardNumber:e.temp.cardNumber,cardType:e.temp.cardType,dateFormat:e.temp.dateFormat,departmentId:e.temp.departmentId,deptName:e.temp.departmentName,inputDatetime:e.temp.inputDatetime,pastureId:e.temp.pastureId,pastureName:e.temp.pastureName,rechargeNum:e.temp.rechargeNum}},null!==e.temp.assetSum&&void 0!==e.temp.assetSum&&""!==e.temp.assetSum&&(e.requestParam.data[2]={name:"insertSpotList",resultmaps:{list:[{changeType:"新增",beforeMaintenance:0,afterMaintenance:e.temp.assetSum,changePersonId:c.a.get("employeid")}]}},e.requestParam.data[2].children=[],e.requestParam.data[2].children[0]={name:"insertOilcardHistory",type:"e",parammaps:{oildcardId:"@insertOilcard.LastInsertId",changeType:"@insertSpotList.changeType",beforeMaintenance:"@insertSpotList.beforeMaintenance",afterMaintenance:"@insertSpotList.afterMaintenance",changePersonId:"@insertSpotList.changePersonId"}}),Object(r["c"])(e.requestParam).then((function(t){"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.cardAmount=parseFloat(e.temp.cardAmount).toFixed(2),console.log(e.requestParam,"000"),e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],void 0!=e.temp.departmentId&&""!=e.temp.departmentId||(e.temp.departmentId="",e.temp.departmentName=""),void 0!=e.temp.assetId&&""!=e.temp.assetId||(e.temp.assetId="",e.temp.assetSum=""),void 0!=e.temp.pastureName&&""!=e.temp.pastureName||(e.temp.pastureName=c.a.get("pasturename")),e.requestParam.data[0]={name:"checkOilcard",type:"v",parammaps:{cardCode:e.temp.cardNumber,eqId:e.temp.assetId}},e.requestParam.data[1]={name:"insertOilcard",type:"e",parammaps:{assetId:e.temp.assetId,assetName:e.temp.assetSum,cardAmount:e.temp.cardAmount,cardNumber:e.temp.cardNumber,cardType:e.temp.cardType,dateFormat:e.temp.dateFormat,departmentId:e.temp.departmentId,deptName:e.temp.departmentName,inputDatetime:e.temp.inputDatetime,pastureId:e.temp.pastureId,pastureName:e.temp.pastureName,rechargeNum:e.temp.rechargeNum}},null!==e.temp.assetSum&&void 0!==e.temp.assetSum&&""!==e.temp.assetSum&&(e.requestParam.data[2]={name:"insertSpotList",resultmaps:{list:[{changeType:"新增",beforeMaintenance:0,afterMaintenance:e.temp.assetSum,changePersonId:c.a.get("employeid")}]}},e.requestParam.data[2].children=[],e.requestParam.data[2].children[0]={name:"insertOilcardHistory",type:"e",parammaps:{oildcardId:"@insertOilcard.LastInsertId",changeType:"@insertSpotList.changeType",beforeMaintenance:"@insertSpotList.beforeMaintenance",afterMaintenance:"@insertSpotList.afterMaintenance",changePersonId:"@insertSpotList.changePersonId"}}),Object(r["c"])(e.requestParam).then((function(t){"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.form_reset(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))})))}))},createRechargeData:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.temp.rechargeNum)))return e.$message({type:"error",message:"充值金额请保留两位小数",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertrechargerecord",type:"e",parammaps:{id:e.temp.id,employeId:e.temp.employeId,cardCode:e.temp.cardCode,rechargeNum:e.temp.rechargeNum}},e.postDataPramas.data[1]={name:"updateCardbalanceExecData",type:"e",parammaps:{id:e.temp.id,rechargeNum:e.temp.rechargeNum}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.getrechargedataListParmList(),e.rechargeFFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},createRecharge:function(){this.dialogStatus="recharge",this.rechargeFFormVisible=!0,this.$set(this.temp,"employeId",parseFloat(c.a.get("employeid"))),this.$set(this.temp,"rechargeNum",""),this.temp.id=this.$store.id,this.temp.dateFormat=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.cardCode=this.$store.cardCode},handleChange:function(e){this.textMap.change=e.cardNumber+"-变更记录",this.cardNumber=e.cardNumber,this.tabledialogStatus="change",this.changeFormVisible=!0,this.getchangedataListParm.parammaps["oildcardId"]=e.id,this.temp.dateFormat=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getchangedataListParmList2(e)},getchangedataListParmList2:function(e){var t=this;this.changelistLoading=!0,this.getchangedataListParm2={},this.getchangedataListParm2.common={returnmap:"0"},this.getchangedataListParm2.data=[],this.getchangedataListParm2.data[0]={name:"getOilcardstatuehistory",type:"sm",parammaps:{id:e.id}},this.getchangedataListParm2.data[1]={name:"getOilcardHistory",type:"sm",parammaps:{id:e.id}},Object(r["c"])(this.getchangedataListParm2).then((function(e){null!==e.data[0].resultmaps?t.changelist2=e.data[0].resultmaps:t.changelist2=[],null!==e.data[1].resultmaps?t.changelist=e.data[1].resultmaps:t.changelist=[],setTimeout((function(){t.changelistLoading=!1}),100)}))},handleRecharge:function(e){this.rechargeTemp=Object.assign({},e),this.tabledialogStatus="recharge",this.rechargeFormVisible=!0,this.rechargelistLoading=!0,this.getrechargedataListParm.parammaps["cardId"]=e.id,this.$store.id=e.id,this.$store.cardCode=e.cardNumber,this.getrechargedataListParmList()},getrechargedataListParmList:function(){var e=this;Object(r["e"])(this.getrechargedataListParm).then((function(t){e.rechargelist=t.data.list,setTimeout((function(){e.rechargelistLoading=!1}),100)}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,""!=this.temp.assetId&&void 0!=this.temp.assetId||(this.temp.pastureName=""),this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.cardAmount=parseFloat(e.temp.cardAmount).toFixed(2),e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],void 0!=e.temp.pastureName&&""!=e.temp.pastureName||(e.temp.pastureName=c.a.get("pasturename")),""==e.temp.assetSum||null==e.temp.assetSum||void 0==e.temp.assetSum?(e.temp.pastureName="",e.temp.deptName="",e.temp.departmentId="",e.temp.assetId="",e.requestParam.data[0]={name:"insertOilcardHistory",type:"e",parammaps:{changeType:"删除",beforeMaintenance:1,afterMaintenance:e.temp.assetSum,changePersonId:c.a.get("employeid"),oildcardId:e.temp.id,pastureId:e.temp.pastureId,pastureName:e.temp.pastureName}}):e.requestParam.data[0]={name:"insertOilcardHistory",type:"e",parammaps:{changeType:"修改",beforeMaintenance:1,afterMaintenance:e.temp.assetSum,changePersonId:c.a.get("employeid"),oildcardId:e.temp.id,pastureId:e.temp.pastureId,pastureName:e.temp.pastureName}},e.requestParam.data[1]={name:"updateOilcard",type:"e",parammaps:{cardNumber:e.temp.cardNumber,cardType:e.temp.cardType,cardAmount:e.temp.cardAmount,assetId:e.temp.assetId,departmentId:e.temp.departmentId,id:e.temp.id,pastureId:e.temp.pastureId,pastureName:e.temp.pastureName}},Object(r["c"])(e.requestParam).then((function(t){"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},handleDisable:function(e){var t=this,a="";a=0==e.enable?"停用":"启用";var s="";s=0==e.enable?"1":"0";var i="确认"+a+"?";p["MessageBox"].confirm("油卡编号"+e.cardNumber,i,{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertOilcardstatuehistory",type:"e",parammaps:{oilCardId:e.id,statue:a,personId:c.a.get("employeid")}},t.requestParam.data[1]={name:"deleteOilcard",type:"e",parammaps:{id:e.id,enable:s}},console.log(t.requestParam),Object(r["c"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"失败",message:"失败"+e.data,type:"danger",duration:2e3}):(t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消停用"})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("油卡编号"+e.cardNumber,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="checkDeleteOilcard",t.requestParam.type="v",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["c"])(t.requestParam).then((function(a){console.log(a),"成功执行!"==a.data?(t.requestParam2.name="deleteOilcard2",t.requestParam2.parammaps={},t.requestParam2.parammaps["id"]=e.id,Object(r["k"])(t.requestParam2).then((function(e){"fail"==e.msg?t.$notify({title:"失败",message:"失败"+e.data,type:"danger",duration:2e3}):(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}))}))):t.$notify({title:"失败",message:"失败"+a.data,type:"danger",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleformNameSelect:function(e){console.log(e),this.temp.assetSum=e.assetName,this.temp.assetId=e.assetId,this.temp.departmentName=e.deptName,this.temp.departmentId=e.departmentId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName},blurformNameSelect:function(e){this.temp.assetSum="",this.temp.assetId="",this.temp.deptName="",this.temp.departmentId="",this.temp.departmentName="",this.temp.pastureName=""},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetM",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["assetName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list,console.log(a.formNumberSearchList),console.log(a.formNumberSearchList[0]),console.log("queryString",e);var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","车自编号","油卡","类型","上次用油量","部门","错误信息"],r=["牧场","车自编号","油卡","类型","上次用油量","部门","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"油卡",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownloadTemp:function(){var e=this;Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","车自编号","油卡","类型","余额","部门"],i=["牧场","车自编号","油卡","类型","余额","部门"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"油卡模板",autoWidth:!0,bookType:"xlsx"})}))},handlecardNumberSelect:function(e){console.log(e),this.getdataListParm.parammaps.cardNumber=e.assetName},cardNumberSearch:function(e,t){var a=this;this.requestFilterParams2.name="getOilcardList",this.requestFilterParams2.parammaps["cardNumber"]=e,Object(r["e"])(this.requestFilterParams2).then((function(s){null===s.data.list?a.cardNumberSearchList=[]:a.cardNumberSearchList=s.data.list;var i=e?a.cardNumberSearchList.filter(a.createFilter(e)):a.cardNumberSearchList;t(i)}))},handleDownload:function(){var e=this;this.$alert("油卡正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getOilcardList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["e"])(this.downLoadParm).then((function(t){if(null!==t.data.list&&""!==t.data.list)for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].enable?e.$set(t.data.list[a],"enable","启用"):e.$set(t.data.list[a],"enable","停用");e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var s=[{tHeader:["部门","油卡编号","油卡类型","剩余余额","设备编号","设备名称","油卡状态"],filterVal:["departmentName","cardNumber","cardType","cardAmount","assetNumber","assetName","enable"],tableDatas:e.downLoadList,sheetName:"油卡"}];Object(l["d"])(s,"油卡",!0,"xlsx")}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"8efe":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieDeptData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DeptData,a=e.text;this.chart.setOption({title:{text:a+"月部门统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){s.$emit("chartClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"8f0c":function(e,t,a){"use strict";a("2377")},"8f2b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentName",t)},expression:"getdataListParm.parammaps.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"油卡编号","min-width":"110px",align:"center",prop:"cardNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"油卡类型","min-width":"110px",align:"center",prop:"cardType"}}),e._v(" "),a("el-table-column",{attrs:{label:"剩余余额","min-width":"110px",align:"center",sortable:"",prop:"cardAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备编号","min-width":"110px",align:"center",prop:"assetNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center",prop:"assetName"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleChange(s)}}},[e._v("换卡")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRecharge(s)}}},[e._v("充值")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"设备:",prop:"assetName"}},[a("el-autocomplete",{ref:"assetName",staticClass:"inline-input",staticStyle:{width:"300px"},attrs:{"value-key":"assetName",clearable:"","fetch-suggestions":e.formNumberSearch,placeholder:"请选择设备"},on:{select:e.handleformNameSelect,blur:e.blurformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.assetName))])]}}]),model:{value:e.temp.assetName,callback:function(t){e.$set(e.temp,"assetName",t)},expression:"temp.assetName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{disabled:""},model:{value:e.temp.deptName,callback:function(t){e.$set(e.temp,"deptName",t)},expression:"temp.deptName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡号:",prop:"cardNumber"}},[a("el-input",{ref:"cardNumber",model:{value:e.temp.cardNumber,callback:function(t){e.$set(e.temp,"cardNumber",t)},expression:"temp.cardNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡类型:",prop:"cardType"}},[a("el-input",{ref:"cardType",model:{value:e.temp.cardType,callback:function(t){e.$set(e.temp,"cardType",t)},expression:"temp.cardType"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卡余额:",prop:"cardAmount"}},[a("el-input",{ref:"cardAmount",model:{value:e.temp.cardAmount,callback:function(t){e.$set(e.temp,"cardAmount",t)},expression:"temp.cardAmount"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.tabledialogStatus],visible:e.changeFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.changeFormVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.changelistLoading,expression:"changelistLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.changelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"日期",align:"center",type:"index",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dateFormat))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cardCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"换卡人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createChange()}}},[e._v("换卡")]),e._v(" "),a("el-button",{on:{click:function(t){e.changeFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.changeFFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.changeFFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"更换卡号",prop:"cardCode"}},[a("el-input",{ref:"cardNumber",model:{value:e.temp.cardCode,callback:function(t){e.$set(e.temp,"cardCode",t)},expression:"temp.cardCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"更换卡类型",prop:"cardType"}},[a("el-input",{ref:"cardType",model:{value:e.temp.cardType,callback:function(t){e.$set(e.temp,"cardType",t)},expression:"temp.cardType"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"dateFormat"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.dateFormat,callback:function(t){e.$set(e.temp,"dateFormat",t)},expression:"temp.dateFormat"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createChangeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.changeFFormVisible=!1}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.tabledialogStatus],visible:e.rechargeFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.rechargeFormVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.rechargelistLoading,expression:"rechargelistLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.rechargelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"日期",align:"center",type:"index",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dateFormat))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cardCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"充值金额",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rechargeNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"充值人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createRecharge()}}},[e._v("充值")]),e._v(" "),a("el-button",{on:{click:function(t){e.rechargeFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.rechargeFFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.rechargeFFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"dateFormat"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.dateFormat,callback:function(t){e.$set(e.temp,"dateFormat",t)},expression:"temp.dateFormat"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"充值金额",prop:"rechargeNum"}},[a("el-input",{ref:"rechargeNum",model:{value:e.temp.rechargeNum,callback:function(t){e.$set(e.temp,"rechargeNum",t)},expression:"temp.rechargeNum"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.createRechargeData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.rechargeFFormVisible=!1}}},[e._v("取消并关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u={name:"Otherinfo",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,tableKey:0,list:null,changelist:null,rechargelist:null,total:0,listLoading:!0,changelistLoading:!0,rechargelistLoading:!0,formNumberSearchList:[],requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},parentDept:[],getDeptParm:{name:"getdeptrecu",idname:"value",params:[-1]},postDataPramas:{},getdataListParm:{name:"getOilcardList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pname:"",pastureName:c.a.get("pasturename")}},requestFilterParams:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getchangedataListParm:{name:"getcardrecordList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getrechargedataListParm:{name:"getrechargerecordList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],findAllAsset:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllAsset",offset:0,pagecount:0,params:[]},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],dataform:{deptId:"",parentId:""},temp:{},dialogFormVisible:!1,changeFormVisible:!1,rechargeFormVisible:!1,changeFFormVisible:!1,rechargeFFormVisible:!1,tabledialogStatus:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",change:"换卡记录",recharge:"充值记录",changeF:"换卡",rechargeF:"充值"},dialogPvVisible:!1,rules:{assetName:[{required:!0,message:"必填",trigger:"blur"}],pastureName:[{required:!0,message:"必填",trigger:"blur"}],deptName:[{required:!0,message:"必填",trigger:"blur"}],cardNumber:[{required:!0,message:"必填",trigger:"blur"}],cardAmount:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"label"},nodeKey:"value",defaultCheckedKeys:[]}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importOilcard",importParams:"牧场,车自编号,油卡,类型,上次用油量,部门",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},getDeptList:function(){var e=this;Object(r["y"])(this.getDeptParm).then((function(t){e.parentDept=t.data}))},popoverHide:function(e,t){this.dataform.deptId=e,this.dataform.parentId=t.parentid},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.assetName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),e.getDeptList(),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;this.requestParams[5].params[0]=this.$store.state.user.pastureid,Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllAsset=t.data.findAllAsset.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),dateFormat:Object(l["e"])(new Date,"{y}-{m}-{d}"),assetName:"",assetId:"",deptName:"",pastureName:"",cardNumber:"",cardType:"",cardAmount:"",rechargeNum:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){e.requestParam.name="insertOilcard",e.requestParam.parammaps=e.temp;var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.temp.cardAmount)))return e.$message({type:"error",message:"卡余额请保留两位小数",duration:2e3}),!1;Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"danger",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.requestParam.name="insertOilcard",e.requestParam.parammaps=e.temp;var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.temp.cardAmount)))return e.$message({type:"error",message:"卡余额请保留两位小数",duration:2e3}),!1;Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(e.form_reset(),e.$nextTick((function(){e.$refs["temp"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))}}))},createChangeData:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertchangerecord",type:"e",parammaps:{id:e.temp.id,employeId:e.temp.employeId,cardCode:e.temp.cardCode,cardType:e.temp.cardType}},e.postDataPramas.data[1]={name:"updateCardExecData",type:"e",parammaps:{id:e.temp.id,employeId:e.temp.employeId,cardCode:e.temp.cardCode,cardType:e.temp.cardType}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.getchangedataListParmList(),e.changeFFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createRechargeData:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.temp.rechargeNum)))return e.$message({type:"error",message:"充值金额请保留两位小数",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertrechargerecord",type:"e",parammaps:{id:e.temp.id,employeId:e.temp.employeId,cardCode:e.temp.cardCode,rechargeNum:e.temp.rechargeNum}},e.postDataPramas.data[1]={name:"updateCardbalanceExecData",type:"e",parammaps:{id:e.temp.id,rechargeNum:e.temp.rechargeNum}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.getrechargedataListParmList(),e.rechargeFFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},createChange:function(){var e=this;this.dialogStatus="change",this.changeFFormVisible=!0,this.form_reset(),this.$set(this.temp,"employeId",parseFloat(c.a.get("employeid"))),this.$set(this.temp,"cardNumber",""),this.$set(this.temp,"cardType",""),this.temp.dateFormat=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.id=this.$store.id,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},createRecharge:function(){this.dialogStatus="recharge",this.rechargeFFormVisible=!0,this.$set(this.temp,"employeId",parseFloat(c.a.get("employeid"))),this.$set(this.temp,"rechargeNum",""),this.temp.id=this.$store.id,this.temp.dateFormat=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.cardCode=this.$store.cardCode},handleChange:function(e){this.tabledialogStatus="change",this.changeFormVisible=!0,this.changelistLoading=!0,this.getchangedataListParm.parammaps["cardId"]=e.id,this.$store.id=e.id,this.temp.dateFormat=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getchangedataListParmList()},getchangedataListParmList:function(){var e=this;Object(r["e"])(this.getchangedataListParm).then((function(t){e.changelist=t.data.list,setTimeout((function(){e.changelistLoading=!1}),100)}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateOilcard",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},handleRecharge:function(e){this.tabledialogStatus="recharge",this.rechargeFormVisible=!0,this.rechargelistLoading=!0,this.getrechargedataListParm.parammaps["cardId"]=e.id,this.$store.id=e.id,this.$store.cardCode=e.cardNumber,this.getrechargedataListParmList()},getrechargedataListParmList:function(){var e=this;Object(r["e"])(this.getrechargedataListParm).then((function(t){e.rechargelist=t.data.list,setTimeout((function(){e.rechargelistLoading=!1}),100)}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("油卡编号"+e.cardNumber,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteOilcard",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleformNameSelect:function(e){console.log(e),this.temp.assetName=e.assetName,this.temp.assetId=e.assetId,this.temp.deptName=e.deptName,this.temp.departmentId=e.departmentId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName},blurformNameSelect:function(e){this.temp.assetName="",this.temp.assetId="",this.temp.deptName="",this.temp.pastureName=""},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetM",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["assetName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list,console.log(a.formNumberSearchList),console.log(a.formNumberSearchList[0]),console.log("queryString",e);var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","车自编号","油卡","类型","上次用油量","部门","错误信息"],r=["牧场","车自编号","油卡","类型","上次用油量","部门","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"油卡",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"8f3b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"牧场编号","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场名称","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.address))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"牧场编号",prop:"pastureNumber"}},[a("el-input",{ref:"pastureNumber",model:{value:e.dataform.pastureNumber,callback:function(t){e.$set(e.dataform,"pastureNumber",t)},expression:"dataform.pastureNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.dataform.name,callback:function(t){e.$set(e.dataform,"name",t)},expression:"dataform.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"地址",prop:"address"}},[a("el-input",{ref:"address",model:{value:e.dataform.address,callback:function(t){e.$set(e.dataform,"address",t)},expression:"dataform.address"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("\n 确认新增\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("\n 确认\n ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("\n 关闭\n ")])],1)],1)],1)])},i=[],r=(a("7f7f"),a("6724")),n=a("61f7"),l=a("6041"),o=a("2934"),p=a("333d"),m=a("5c96"),c={name:"Productclass",components:{Pagination:p["a"]},directives:{waves:r["a"],enterToNext:l["a"]},data:function(){return{tableKey:0,list:[],total:0,listLoading:!0,requestParam:{name:"createapisql",params:[]},dataform:{productclass:"",id:"",sort:"",enable:""},getdataListParm:{name:"getPastureList",offset:1,pagecount:10,params:[]},rules:{productclass:[{type:"string",required:!0,message:"产品分类名称必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),500)}))},resetRequestParam:function(){this.dataform.productclass="",this.dataform.id="",this.dataform.sort="0",this.dataform.enable="1"},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.productclass.focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertPasture",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.pastureNumber,e.requestParam.params[1]=e.dataform.name,e.requestParam.params[2]=e.dataform.address,Object(o["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertPasture",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.pastureNumber,e.requestParam.params[1]=e.dataform.name,e.requestParam.params[2]=e.dataform.address,Object(o["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["productclass"].focus()})),e.get_table_data(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.dataform.id=e.id,this.dataform.pastureNumber=e.pastureNumber,this.dataform.name=e.name,this.dataform.address=e.address,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["productclass"].focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateProductclass",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.pastureNumber,e.requestParam.params[1]=e.dataform.name,e.requestParam.params[2]=e.dataform.address,e.requestParam.params[3]=e.dataform.id,Object(o["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updatePasture",this.requestParam.params=[],this.requestParam.params[0]=t.pastureNumber,this.requestParam.params[1]=t.name,this.requestParam.params[2]=t.address,this.requestParam.params[3]=t.id,Object(o["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;m["MessageBox"].confirm("分类名称:"+e.productclass,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deletePasture",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(o["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"8f62":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",{staticClass:"el-main"},[a("div",{staticClass:"top",attrs:{slot:"top"},slot:"top"},[a("div",e._l(e.view.btns.items,(function(t){return a("el-btn",{key:t.label,attrs:{act:t,"multi-select":!0,plain:!0},on:{action:e.handleButton}})})),1)]),e._v(" "),a("ve-tree",{ref:"tree",attrs:{slot:"content",rows:e.rows,columns:e.view.columns,actions:e.view.actions},on:{action:e.ajax},slot:"content"})],1)},i=[],r=(a("7f7f"),{data:function(){return{rows:[],loading:!1}},methods:{ajax:function(e,t){var a=this;e.next?this.$root.$EventBus.stack("redirect",e.next):this.load(e.url,t).then((function(){return a.getData()}))},edit:function(e,t,a){this.load(t.editUrl,{col:t.name,id:e.id,value:a}).then((function(a){e[t.name]=a.value}))},load:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.loading=!0,this.$HttpGet(e,a).then((function(e){return t.loading=!1,e}),(function(){t.loading=!1})).catch((function(){t.loading=!1}))}}}),n=r,l=a("68a0"),o=a("5af4"),p=a("28b6"),m=a("a328"),c={components:{ElBtn:l["default"],Pannel:o["default"],VeTree:p["default"]},extends:m["default"],mixins:[n],mounted:function(){this.getData()},methods:{handleButton:function(e){var t;e.multiSelect&&(t={id:this.$refs.tree.getCheckedKeys()}),this.ajax(e,t)},getData:function(){var e=this;this.load(this.view.url).then((function(t){e.rows=t.rows,e.$nextTick((function(){e.rowSelect(t.selected)}))}))},rowSelect:function(e){e&&this.$refs.tree.setCheckedKeys(e)}}},d=c,u=(a("78fd"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"34c6149c",null);t["default"]=h.exports},"8f6e":function(e,t,a){"use strict";a("11a1")},"8f83":function(e,t,a){"use strict";a("4e06")},"8fe4":function(e,t,a){"use strict";a("06f4")},9064:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-文档上传",use:"icon-文档上传-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-文档上传"><defs><style type="text/css"></style></defs><path d="M989.181582 804.269185a35.362456 35.362456 0 1 0-68.427863 17.590555l35.846045 122.468949H518.165762l25.388429-116.18229a35.362456 35.362456 0 0 0-68.427863-17.771901l-33.428099 129.480992v4.473199a79.671311 79.671311 0 0 0 79.550413 79.550414h423.503188a79.671311 79.671311 0 0 0 79.550413-79.550414v-4.473199z m-258.297048 67.279339a35.362456 35.362456 0 0 0 35.362455-35.362456v-224.324911l89.222196 89.222196a35.362456 35.362456 0 1 0 50.051476-49.930579l-145.56033-145.439433a45.699174 45.699174 0 0 0-56.942621 0L557.578276 651.152774a35.362456 35.362456 0 0 0 50.051476 49.930579l88.073672-88.073672v223.176387a35.120661 35.120661 0 0 0 35.120661 35.362456z m28.592207-571.360567a35.362456 35.362456 0 1 0 0-70.724911H406.275325a35.362456 35.362456 0 1 0 0 70.724911zM159.100826 424.168123a35.362456 35.362456 0 0 0 35.362456 35.362456h565.013459a35.362456 35.362456 0 1 0 0-70.724912H194.463282a35.362456 35.362456 0 0 0-35.362456 35.362456z m247.174499 123.980165h-211.570248a35.362456 35.362456 0 1 0 0 70.724912h211.570248a35.362456 35.362456 0 0 0 0-70.724912z m-52.832114 405.005903h-235.749705a47.149941 47.149941 0 0 1-47.089492-47.089492V330.35183h172.883117a56.277686 56.277686 0 0 0 56.700826-55.794097V70.36222h517.863519a47.149941 47.149941 0 0 1 47.089492 47.089492V370.550177a35.362456 35.362456 0 1 0 70.724912 0V117.451712A117.935301 117.935301 0 0 0 818.414168 0h-575.471075a63.531523 63.531523 0 0 0-48.782054 22.728689l-178.142149 211.570248a67.279339 67.279339 0 0 0-15.837544 43.402126v628.363636a117.935301 117.935301 0 0 0 117.753955 117.753955h235.749705a35.302007 35.302007 0 1 0 0-70.604014zM229.946635 90.128926V259.929162H87.166942z" p-id="3159" /></symbol>'});n.a.add(l);t["default"]=l},9065:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"250px",top:"-3px"},attrs:{type:"month",placeholder:"选择月份",format:"yyyy-MM","value-format":"yyyy-MM"},model:{value:e.getdataListParm.parammaps.month,callback:function(t){e.$set(e.getdataListParm.parammaps,"month",t)},expression:"getdataListParm.parammaps.month"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{slot:"reference",border:"",data:e.list,"header-align":"center","row-style":e.rowStyle,"cell-style":e.cellStyle},slot:"reference"},[e._l(e.tablelist,(function(e,t){return[a("el-table-column",{key:t,attrs:{"show-overflow-tooltip":"",sortable:"",prop:e.column_name,label:e.label,width:e.width}})]}))],2),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=(a("28a5"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("a78e"),m=a.n(p),c=(a("5c96"),{name:"StandingBook",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{visible:!1,disabled:!1,findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}],rowStyle:{maxHeight:"30px",height:"25px"},cellStyle:{padding:"0px"},total:0,tableKey:0,listLoading:!0,list:[],listTest:{},tablelist:[],getdataListParm:{name:"getPartrepertryAccount",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),month:Object(o["e"])(new Date,"{y}-{m}")}},dialogStatus:"",dialogFormVisible:!1,isokDisable:!1,rules:{},textMap:{},months:[],month:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},computed:{},created:function(){this.get_table_data(),this.get_select_list()},methods:{forDight:function(e,t){for(var a=1,s=0;s<t;s++)a*=10;return Math.round(e*a)/a},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["d"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?e.list=t.data.list:e.list=[],e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total);for(var a=e.getdataListParm.parammaps.month.split("-"),s=a[0],i=a[1],r=new Date(s,i,0),n=[{label:"序号",column_name:"i"},{label:"牧场",column_name:"pastureName"},{label:"月份",column_name:"month"},{label:"备件编号",column_name:"partCode",width:"120"},{label:"备件名称",column_name:"partName"},{label:"备件规格",column_name:"specification"},{label:"单位",column_name:"unit"},{label:"品牌",column_name:"brandName"},{label:"供应商",column_name:"providerName"},{label:"单价",column_name:"price"},{label:"期初数量",column_name:"startSum"},{label:"期初金额",column_name:"startPrice"}],l=1;l<=r.getDate();l++){l=JSON.stringify(l);var o="入库数量"+l+"日",p="入库金额"+l+"日",m={label:o,column_name:"laid"+l,width:"80"},c={label:p,column_name:"laidPrice"+l,width:"80"};n.push(m),n.push(c)}var d={label:"合计入库数量",column_name:"Sumlaid",width:"120"},u={label:"合计入库金额",column_name:"SumlaidPrice",width:"120"};n.push(d),n.push(u),console.log(r.getDate(),"----------");for(var h=1;h<=r.getDate();h++){h=JSON.stringify(h);var g="出库数量"+h+"日",f="出库金额"+h+"日",b={label:g,column_name:"use"+h,width:"80"},v={label:f,column_name:"usePrice"+h,width:"80"};n.push(b),n.push(v)}var y={label:"合计出库数量",column_name:"Sumuse",width:"120"},_={label:"合计出库金额",column_name:"SumusePrice",width:"120"},w={label:"退货数量",column_name:"THsum",width:"120"},S={label:"退货金额",column_name:"THsumPrice",width:"120"},P={label:"期末数量",column_name:"endSum",width:"120"},x={label:"期末金额",column_name:"endSumPrice",width:"120"};if(n.push(y),n.push(_),n.push(w),n.push(S),n.push(P),n.push(x),e.tablelist=n,null!==e.list)for(var T=0;T<e.list.length;T++){e.list[T].i=T+1,console.log(e.list[T]),e.$set(e.list[T],"startPrice",e.forDight(parseFloat(e.list[T].startSum)*parseFloat(e.list[T].price),3)),e.$set(e.list[T],"SumlaidPrice",e.forDight(parseFloat(e.list[T].Sumlaid)*parseFloat(e.list[T].price),3)),e.$set(e.list[T],"SumusePrice",e.forDight(parseFloat(e.list[T].Sumuse)*parseFloat(e.list[T].price),3)),e.$set(e.list[T],"THsumPrice",e.forDight(parseFloat(e.list[T].THsum)*parseFloat(e.list[T].price),3)),e.$set(e.list[T],"endSumPrice",e.forDight(parseFloat(e.list[T].endSum)*parseFloat(e.list[T].price),3));for(var k=1;k<=r.getDate();k++){k=JSON.stringify(k),console.log("laid"+k);var C="laid"+k,L="use"+k;console.log(e.list[T][C]),e.$set(e.list[T],"laidPrice"+k,e.forDight(parseFloat(e.list[T][C])*parseFloat(e.list[T].price),3)),e.$set(e.list[T],"usePrice"+k,e.forDight(parseFloat(e.list[T][L])*parseFloat(e.list[T].price),3))}}console.log("table数据",e.list),console.log("表头数据",e.tablelist),e.$forceUpdate(),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件台账信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getPartrepertryAccount",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadList=t.data.list,null!==t.data.list)for(var a=e.getdataListParm.parammaps.month.split("-"),s=a[0],i=a[1],r=new Date(s,i,0),n=0;n<t.data.list.length;n++){e.$set(t.data.list[n],"startPrice",e.forDight(parseFloat(t.data.list[n].startSum)*parseFloat(t.data.list[n].price),3)),e.$set(t.data.list[n],"SumlaidPrice",e.forDight(parseFloat(t.data.list[n].Sumlaid)*parseFloat(t.data.list[n].price),3)),e.$set(t.data.list[n],"SumusePrice",e.forDight(parseFloat(t.data.list[n].Sumuse)*parseFloat(t.data.list[n].price),3)),e.$set(t.data.list[n],"THsumPrice",e.forDight(parseFloat(t.data.list[n].THsum)*parseFloat(t.data.list[n].price),3)),e.$set(t.data.list[n],"endSumPrice",e.forDight(parseFloat(t.data.list[n].endSum)*parseFloat(t.data.list[n].price),3));for(var l=1;l<=r.getDate();l++){l=JSON.stringify(l),console.log("laid"+l);var p="laid"+l,m="use"+l;console.log(t.data.list[n][p]),e.$set(t.data.list[n],"laidPrice"+l,e.forDight(parseFloat(t.data.list[n][p])*parseFloat(t.data.list[n].price),3)),e.$set(t.data.list[n],"usePrice"+l,e.forDight(parseFloat(t.data.list[n][m])*parseFloat(t.data.list[n].price),3))}}console.log(e.tablelist);for(var c=[],d=[],u=1;u<e.tablelist.length;u++)c.push(e.tablelist[u].label),d.push(e.tablelist[u].column_name);console.log(c,d);var h=[{tHeader:c,filterVal:d,tableDatas:e.downLoadList,sheetName:"备件台账"}];Object(o["d"])(h,"备件台账",!0,"xlsx")}))}))}}}),d=c,u=(a("4233"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"70a6075a",null);t["default"]=h.exports},"90ae":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-柴油表录入",use:"icon-柴油表录入-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-柴油表录入"><defs><style type="text/css"></style></defs><path d="M446.119287 433.709624a3049.340198 3049.340198 0 0 0-55.296 106.120871c-65.75905 133.018614-75.573228 182.951287-75.573228 200.876356a129.307881 129.307881 0 0 0 38.313822 92.251248 130.159525 130.159525 0 0 0 92.484436 38.18202h0.060832c72.136238-0.030416 130.828673-58.550495 130.838811-130.443406 0-17.904792-9.814178-67.827327-75.55295-200.856079a3049.745743 3049.745743 0 0 0-55.275723-106.13101z m0 463.172435h0.020277-0.020277zM446.048317 922.613861a181.531881 181.531881 0 0 1-129.003723-53.258138A180.365941 180.365941 0 0 1 263.60396 740.696713c0-90.639208 143.704713-344.246495 160.088713-372.867802a25.843327 25.843327 0 1 1 44.853228 0C484.929901 396.470495 628.594059 650.087921 628.594059 740.71699 628.573782 840.967604 546.724752 922.573307 446.129426 922.613861h-0.081109z" p-id="10614" /><path d="M193.394059 972.617505h637.211882v-454.919604L420.144158 232.894099a25.681109 25.681109 0 0 1-11.051089-21.098455v-69.165624h-94.988673v73.119683c0 14.183921-11.517465 25.691248-25.721663 25.691247h-94.998812v731.176555zM856.337743 1024H167.662257A25.711525 25.711525 0 0 1 141.940594 998.308752V215.749703c0-14.194059 11.517465-25.691248 25.721663-25.691248h94.998812v-73.119683c0-14.194059 11.507327-25.691248 25.721664-25.691247h146.442138a25.711525 25.711525 0 0 1 25.721664 25.691247v81.41307L871.008317 483.175921A25.67097 25.67097 0 0 1 882.059406 504.264238v494.054653c0 14.183921-11.517465 25.681109-25.721663 25.681109z" p-id="10615" /><path d="M222.633822 82.680396H497.197624v-33.558812H222.64396v33.558812zM520.404911 131.80198H199.426535C184.502495 131.80198 172.356436 119.939802 172.356436 105.350337V26.461782C172.356436 11.862178 184.502495 0 199.426535 0h320.988515C535.339089 0 547.485149 11.862178 547.485149 26.451644v78.898693C547.485149 119.939802 535.339089 131.80198 520.41505 131.80198z" p-id="10616" /></symbol>'});n.a.add(l);t["default"]=l},"90b5":function(e,t,a){"use strict";a("220d")},"90fe":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.title)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"Author",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.author))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"Pageviews",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.pageviews)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e._f("statusFilter")(t.row.status)}},[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"created_at",label:"Display_time",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-time"}),e._v(" "),a("span",[e._v(e._s(t.row.display_time))])]}}])})],1)],1)},i=[],r=a("b775");function n(e){return Object(r["a"])({url:"/table/list",method:"get",params:e})}var l={filters:{statusFilter:function(e){var t={published:"success",draft:"gray",deleted:"danger"};return t[e]}},data:function(){return{list:null,listLoading:!0}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.listLoading=!0,n().then((function(t){e.list=t.data.items,e.listLoading=!1}))}}},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},9169:function(e,t,a){e.exports=a.p+"static/img/login-bg1.1f1602f0.jpg"},"916b":function(e,t,a){"use strict";a("9936")},"91b3":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-1",type:"success"}},[a("router-view")],1)],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!1,null,null,null);t["default"]=l.exports},9205:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.deptId,callback:function(t){e.$set(e.getdataListParm.parammaps,"deptId",t)},expression:"getdataListParm.parammaps.deptId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.syStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"syStatus",t)},expression:"getdataListParm.parammaps.syStatus"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.enabledTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"enabledTime",t)},expression:"getdataListParm.parammaps.enabledTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.blockTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"blockTime",t)},expression:"getdataListParm.parammaps.blockTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_add}},[e._v("启停")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启停状态","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最近开启时间",sortable:"",prop:"enabledTime","min-width":"120px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近关闭时间",sortable:"",prop:"blockTime","min-width":"120px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini",disabled:"启用"==s.changeStatue},on:{click:function(t){return e.handleSST(s)}}},[e._v("开启")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini",disabled:"停用"==s.changeStatue},on:{click:function(t){return e.handleSST(s)}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("启停记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"assetName"}},[a("el-autocomplete",{ref:"assetName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"assetName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.assetName,callback:function(t){e.$set(e.temp,"assetName",t)},expression:"temp.assetName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-autocomplete",{ref:"eqCode",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"eqCode","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.eqCode,callback:function(t){e.$set(e.temp,"eqCode",t)},expression:"temp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"启停状态:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.temp.changeStatue,callback:function(t){e.$set(e.temp,"changeStatue",t)},expression:"temp.changeStatue"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.temp.deptName,callback:function(t){e.$set(e.temp,"deptName",t)},expression:"temp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"操作人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"操作人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["停用"==e.temp.changeStatue?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.createStartData()}}},[e._v("开启")]):e._e(),e._v(" "),"启用"==e.temp.changeStatue?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.createStopData()}}},[e._v("停用")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{staticStyle:{width:"500px",margin:"0 auto","margin-bottom":"50px"},attrs:{title:e.textMap[e.dialogStatusSST],visible:e.dialogFormVisibleSST,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSST=t}}},[a("div",{staticClass:"app-SST"},[a("el-form",{ref:"tempSST",attrs:{rules:e.rules,model:e.tempSST,"label-position":"right","label-width":"100px"}},[a("h3",{staticStyle:{"margin-bottom":"50px"}},[e._v("是否"+e._s("停用"==e.tempSST.changeStatue?"开启":"关闭")+"?")])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"停用"==e.tempSST.changeStatue?e.add_dialog_saveSST1():e.add_dialog_saveSST2()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleSST=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.cardTitle,visible:e.dialogFormVisibleCard,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"rowSeeData",staticStyle:{width:"100%",margin:"0 auto"},attrs:{rules:e.rules,model:e.rowSeeData,"label-position":"right","label-width":"120px"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmSee.parammaps.startTime,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"startTime",t)},expression:"getdataListParmSee.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmSee.parammaps.stopTime,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"stopTime",t)},expression:"getdataListParmSee.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.runTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",prop:"departmentName","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"停机时间",sortable:"",prop:"shutdownTime","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.shutdownTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"开启人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.enabledName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.blockName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=(a("b383"),a("a78e")),m=a.n(p),c={name:"SST",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"geteqSTTList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",pastureName:m.a.get("pasturename"),deptName:"",syStatus:"",deptId:this.$route.query.deptId,blockTime:"",enabledTime:""}},requestParamSST:{name:"updateEQStartStop",parammaps:{inputDatetime:new Date,employeId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),sttId:""}},temp:{pastureName:"",deptName:"",deptId:"",employeName:"",eqName:"",assetId:"",eqCode:"",inputDatetime:new Date,typeName:"",assTypeId:"",syStatus:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},tempSST:{},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["设备使用记录"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},assetA:{eqName:"",eqCode:""},requestFilterParams:{name:"findAssetMain",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},dialogFormVisible:!1,dialogFormVisibleCheck:!1,dialogStatus:"",dialogFormVisibleSST:!1,dialogStatusSST:"",dialogStatusCheck:"",textMap:{create:"新增",sst:"设备启停"},dialogPvVisible:!1,cardTitle:"启停记录",dialogFormVisibleCard:!1,dialogStatusCard:"",listLoadingSee:!0,rowSeeData:{},listSee:[],totalSee:0,getdataListParmSee:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetId:"",startTime:"",stopTime:"",pastureId:m.a.get("pastureid")}},pickerOptions0:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},rules:{assetName:[{required:!0,message:"必填",trigger:"remove-tag"}],eqCode:[{required:!0,message:"必填",trigger:"expand-change"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.$store.dispatch("user/getInfo"),this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},formNumberSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]=e,this.requestFilterParams.parammaps["assetName"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},formNameSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]="",this.requestFilterParams.parammaps["assetName"]=e,this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNumberSelect:function(e){this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.temp.eqId=e.eqId,this.temp.id=e.assetId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName,this.temp.deptName=e.deptName,this.temp.deptId=e.deptName,this.temp.changeStatue=e.changeStatue,void 0===e.sttId||null===e.sttId?this.temp.sttId=0:this.temp.sttId=e.sttId},handleformNameSelect:function(e){console.log(e),this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.temp.id=e.assetId,this.temp.eqId=e.eqId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName,this.temp.deptName=e.deptName,this.temp.deptId=e.deptName,this.temp.changeStatue=e.changeStatue,console.log(e.inputDatetime),void 0===e.sttId||null===e.sttId?this.temp.sttId=0:this.temp.sttId=e.sttId},get_table_data:function(){var e=this;this.listLoading=!0,null===this.getdataListParm.parammaps.enabledTime&&(this.getdataListParm.parammaps.enabledTime=""),null===this.getdataListParm.parammaps.blockTime&&(this.getdataListParm.parammaps.blockTime=""),Object(r["e"])(this.getdataListParm).then((function(t){if(console.log("表格",t.data.list),e.list=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath=""),console.log(e.list[a].srcpath);e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)})),this.temp={pastureName:"",deptName:"",deptId:"",employeName:"",eqName:"",assetId:"",eqCode:"",inputDatetime:new Date,typeName:"",assTypeId:"",syStatus:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid}},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.deptId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==m.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(m.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==m.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name),console.log(e.createTemp.departmentName,"this.createTemp.departmentName"))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={pastureName:"",deptName:"",deptId:"",employeName:"",eqName:"",assetId:"",eqCode:"",inputDatetime:new Date,typeName:"",assTypeId:"",syStatus:"",employeId:parseInt(m.a.get("employeid")),departmentId:parseInt(m.a.get("departmentid")),pastureId:parseInt(m.a.get("pastureid"))}},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},form_add:function(){var e=this;this.form_reset(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.temp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},handleSST:function(e){this.dialogStatusSST="sst",this.dialogFormVisibleSST=!0,this.tempSST=Object.assign({},e),console.log(this.tempSST)},add_dialog_saveSST1:function(){var e=this;console.log(this.tempSST);var t={name:"updateEQStartStop",parammaps:{SSPstatue:"启用",id:this.tempSST.id,sttId:this.tempSST.sttId1,employeId:m.a.get("employeid"),pastureId:this.tempSST.pastureId}};Object(r["k"])(t).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleSST=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))},add_dialog_saveSST2:function(){var e=this;console.log(this.tempSST);var t={name:"updateEQStartStop",parammaps:{SSPstatue:"停用",id:this.tempSST.id,sttId:this.tempSST.sttId1,employeId:m.a.get("employeid"),pastureId:this.tempSST.pastureId}};Object(r["k"])(t).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleSST=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))},add_dialog_saveSST:function(){var e=this;this.requestParamSST.parammaps.id=this.tempSST.id,this.requestParamSST.parammaps.pastureId=this.tempSST.pastureId,this.requestParamSST.parammaps.sttId=this.tempSST.sttId,this.requestParamSST.parammaps.changeStatue=this.tempSST.changeStatue,Object(r["k"])(this.requestParamSST).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleSST=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))},createStartData:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){console.log(e.temp);var a={name:"updateEQStartStop",parammaps:{SSPstatue:"启用",sttId:e.temp.sttId,id:e.temp.eqId,employeId:m.a.get("employeid"),pastureId:e.temp.pastureId}};Object(r["k"])(a).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))}}))},createStopData:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){console.log(e.temp);var a={name:"updateEQStartStop",parammaps:{SSPstatue:"停用",sttId:e.temp.sttId,id:e.temp.eqId,employeId:m.a.get("employeid"),pastureId:e.temp.pastureId}};Object(r["k"])(a).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))}}))},form_see:function(e){this.rowSeeData=Object.assign({},e),this.cardTitle="启停记录 设备名称:"+e.eqName+"设备编号:"+e.eqCode,this.dialogFormVisibleCard=!0,this.getdataListParmSee.parammaps.assetId=e.id,this.get_table_dataSee()},form_searchDelivery:function(){null===this.getdataListParmSee.parammaps.inputDatetime&&(this.getdataListParmSee.parammaps.inputDatetime=""),this.getdataListParmSee.offset=1,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;void 0!==this.getdataListParmSee.parammaps.startTime&&null!==this.getdataListParmSee.parammaps.startTime||(this.getdataListParmSee.parammaps.startTime=""),void 0!==this.getdataListParmSee.parammaps.stopTime&&null!==this.getdataListParmSee.parammaps.stopTime||(this.getdataListParmSee.parammaps.stopTime=""),Object(r["e"])(this.getdataListParmSee).then((function(t){e.listSee=t.data.list,console.log("记录列表数据",t.data.list),e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},9223:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"生产厂家","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂日期","min-width":"80px",align:"center",sortable:"",prop:"factoryNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"80px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"110px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"校验周期","min-width":"80px",align:"center",sortable:"",prop:"amount"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入设备名称",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入规格型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生产厂家:",prop:"level"}},[a("el-input",{ref:"level",attrs:{placeholder:"请输入生产厂家",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.level,callback:function(t){e.$set(e.createTemp,"level",t)},expression:"createTemp.level"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出厂编号:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入出厂编号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出场日期:",prop:"factoryNumber"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请输入出场日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用部门:",prop:"departmentName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入使用部门",disabled:"see"===e.dialogStatus},on:{change:e.changeDepartment},model:{value:e.createTemp.departmentName,callback:function(t){e.$set(e.createTemp,"departmentName",t)},expression:"createTemp.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"empName"}},[a("el-select",{ref:"empName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入责任人",disabled:"see"===e.dialogStatus},on:{change:e.changeEmp},model:{value:e.createTemp.empName,callback:function(t){e.$set(e.createTemp,"empName",t)},expression:"createTemp.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验周期:",prop:"amount"}},[a("el-input",{ref:"amount",attrs:{placeholder:"请输入检验周期",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.amount,callback:function(t){e.$set(e.createTemp,"amount",t)},expression:"createTemp.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"请输入备注",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"SpecialEquipment",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"特种设备"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,departmentName:this.$store.state.user.departmentname,departmentId:this.$store.state.user.departmentid,warnName:"",specification:"",level:"",measureRange:"",factoryNumber:"",lastCheckDate:"",validityDate:"",amount:"",note:"",empId:"",empName:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnTZ",importParams:"牧场,设备名称,规程型号,生产厂家,出厂编号,出厂日期,使用部门,责任人,校验日期,有效期至,校验周期,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null==t.data.list||null==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,console.log(t.data.list[a].validityDate),e.getNextDate(t.data.list[a].validityDate,-30),console.log("30天前",e.getNextDate(t.data.list[a].validityDate,-30)),console.log("30天前",e.getNextDate("2020-08-24",-30)),e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.departmentName=this.$store.state.user.departmentname,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.level="",this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.amount="",this.createTemp.note="",this.createTemp.empName="",this.createTemp.empId=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},changeDepartment:function(e){this.createTemp.departmentId=this.findAllDepart.find((function(t){return t.name===e})).id},changeEmp:function(e){this.createTemp.empId=this.findAllEmploye.find((function(t){return t.name===e})).id},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="特种设备",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑",e),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="特种设备",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="特种设备",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],i=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"特种设备模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注","报错信息"],r=["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"特种设备报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("特种设备正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","设备名称","规程型号","生产厂家","出厂编号","出厂日期","使用部门","责任人","校验日期","有效期至","校验周期","备注"],filterVal:["pastureName","warnName","specification","level","measureRange","factoryNumber","departmentName","empName","lastCheckDate","validityDate","amount","note"],tableDatas:e.downLoadList,sheetName:"特种设备"}];Object(p["d"])(a,"特种设备",!0,"xlsx")}))}))}}},h=u,g=(a("00af"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"63198bc2",null);t["default"]=f.exports},9284:function(e,t,a){},9318:function(e,t,a){},"933a":function(e,t,a){},"936c":function(e,t,a){},"93cd":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol>'});n.a.add(l);t["default"]=l},9406:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.myComponent,{ref:"detail",tag:"component"})},i=[],r=a("a78e"),n=a.n(r),l={data:function(){return{myComponent:null}},mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if(console.log(n.a.get("isHomePage"),"isHomePage"),1==n.a.get("isHomePage")){var e=this,t=function(){return Promise.resolve().then(a.bind(null,"5851"))};return e.myComponent=t}var s=this;t=function(){return Promise.resolve().then(a.bind(null,"3f2c"))};return s.myComponent=t}}},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},9448:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-月预算",use:"icon-月预算-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-月预算"><defs><style type="text/css"></style></defs><path d="M511.685845 105.653295c-224.289276 0-406.099065 181.809789-406.099065 406.099065 0 224.270856 181.809789 406.099065 406.099065 406.099065s406.099065-181.829232 406.099065-406.099065C917.785933 287.464107 735.975121 105.653295 511.685845 105.653295zM681.823803 486.199381l0 40.142256L538.694989 526.341636l0 63.526849 143.128815 0 0 40.171931L538.694989 630.040417 538.694989 762.949472l-52.563146 0L486.131843 630.04144 343.731622 630.04144l0-40.171931 142.401244 0 0-63.526849L343.731622 526.34266l0-40.142256 116.104321 0L324.745199 260.557294l58.416458 0 129.981377 221.24494L641.666198 260.557294l56.960293 0L564.991911 486.199381 681.823803 486.199381z" p-id="12239" /></symbol>'});n.a.add(l);t["default"]=l},"947b":function(e,t,a){},"95ba":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"领用单号"},model:{value:e.getdataListParm.parammaps.applyCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyCode",t)},expression:"getdataListParm.parammaps.applyCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用类型"},model:{value:e.getdataListParm.parammaps.applyType,callback:function(t){e.$set(e.getdataListParm.parammaps,"applyType",t)},expression:"getdataListParm.parammaps.applyType"}},e._l(e.collarType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"领用部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"单据状态"},model:{value:e.getdataListParm.parammaps.bstatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"bstatue",t)},expression:"getdataListParm.parammaps.bstatue"}},e._l(e.applystatueList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isReceiveAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isReceiveExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号",align:"center","min-width":"150px",prop:"applyCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用类型","min-width":"90px",align:"center",formatter:e.applyType}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center","min-width":"100px",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",align:"center","min-width":"100px",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用人",align:"center","min-width":"100px",prop:"empname"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",align:"center","min-width":"100px",sortable:"",prop:"createDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"90px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"90px",align:"center",formatter:e.applystatue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isReceiveSee?a("el-button",{staticStyle:{width:"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),!e.isReceiveUpdate||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus&&10!=s.SHStatus?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),!e.isContractExamineBM||2!=s.SHStatus||s.departmentId!=e.getdataListParm.parammaps.logindeptId&&0==e.depids.filter((function(e){return e==s.departmentId})).length?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isContractExamineSBCZ&&3==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]),e._v(" "),e.isContractExamineCZZL&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]),e._v(" "),e.isContractExamineCZ&&7==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine4(s)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine4(s)}}},[e._v("审核4")]),e._v(" "),!e.isReceiveDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus&&10!=s.SHStatus?e._e():a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]),e._v(" "),1===s.statue&&e.isReceiveDelete?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e(),e._v(" "),e.isReceiveClose&&(9==s.SHStatus||5==s.SHStatus||7==s.SHStatus)&&s.statue<2?a("el-button",{staticStyle:{display:"inline-block",width:"60px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleCustomsDeclaration(s)}}},[e._v("关单")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleCustomsDeclaration(s)}}},[e._v("关单")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"==e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门",disabled:"update"==e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用类型:",prop:"applyType"}},[a("el-radio-group",{attrs:{disabled:"update"==e.dialogStatus},on:{change:e.changeType},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[a("el-radio",{attrs:{label:1},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("维修")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("保养")]),e._v(" "),"create"!==e.dialogStatus?a("el-radio",{attrs:{label:0},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[e._v("非维保")]):e._e()],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用人",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"领用日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.createDate,callback:function(t){e.$set(e.createTemp,"createDate",t)},expression:"createTemp.createDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),e._v("\n |  "),a("b",[e._v("品牌:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.brand))]),e._v("\n |  "),a("b",[e._v("库存:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.reportery))])]}}]),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqName(a,t.row)},blur:function(a){e.blurSelectEqName(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}],null,!1,3705543158)}):e._e(),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCode(a,t.row)},blur:function(a){e.blurSelectEqCode(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}],null,!1,1794399390)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"库存数量",prop:"reportery",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},on:{blur:function(a){e.blurAmount(a,t.row)}},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.amount))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.applyCode,callback:function(t){e.$set(e.seeTemp,"applyCode",t)},expression:"seeTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"empname"}},[a("el-input",{ref:"empname",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-input",{ref:"createDate",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.createDate,callback:function(t){e.$set(e.seeTemp,"createDate",t)},expression:"seeTemp.createDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用类型:",prop:"applyType"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.applyType,callback:function(t){e.$set(e.seeTemp,"applyType",t)},expression:"seeTemp.applyType"}})],1)],1)],1),e._v(" "),"维修"==e.seeTemp.applyType?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"RUCode"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.RUCode,callback:function(t){e.$set(e.seeTemp,"RUCode",t)},expression:"seeTemp.RUCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:" detail"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.detail,callback:function(t){e.$set(e.seeTemp," detail",t)},expression:"seeTemp. detail"}})],1)],1)],1):e._e(),e._v(" "),"保养"==e.seeTemp.applyType?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"RUCode"}},[a("el-input",{ref:"",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.seeTemp.RUCode,callback:function(t){e.$set(e.seeTemp,"RUCode",t)},expression:"seeTemp.RUCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.No1?a("el-table-column",{attrs:{label:"设备编号","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"库存数量",sortable:"",prop:"reportery",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"amount","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已出库数量",sortable:"",prop:"useAmount",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useAmount))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("h3",[e._v("流程进度:")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isContractExamineBM&&2==e.seeTemp.SHStatus&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核1")]),e._v(" "),e.isContractExamineSBCZ&&3==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("审核2")]),e._v(" "),e.isContractExamineCZZL&&5==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("审核3")]),e._v(" "),e.isContractExamineCZ&&7==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine4()}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine4()}}},[e._v("审核4")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statueSH,callback:function(t){e.$set(e.examineTemp,"statueSH",t)},expression:"examineTemp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),"examine4"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData4()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("28a5"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Receive",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{findAllPasture:[],findAllDepart:[],findAllEmploye:[],createDepartList:[],edit:0,requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},dialogFormVisible:!1,dialogStatus:"",isReceiveUpdate:[],isReceiveAdd:[],isReceiveTemplate:[],isReceiveImport:[],isReceiveExport:[],isReceiveSee:[],isReceiveDelete:[],isContractExamineBM:[],isContractExamineSBCZ:[],isContractExamineCZZL:[],isContractExamineCZ:[],isReceiveClose:[],isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{see:"查看详情",create:"新增",examine:"审核",examine2:"审核",examine3:"审核",update:"编辑"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],applystatueList:[{id:"0",name:"正常"},{id:"1",name:"已关闭"}],collarType:[{id:"0",name:"非维保"},{id:"1",name:"维修"},{id:"2",name:"保养"}],radioAll:"全部",getdataListParm:{name:"getBigpartapplyList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),applyCode:this.$route.query.applyCode,applyType:"",statue:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogFormVisible_See:!1,seeTemp:[],listSee:[],totalSee:0,getdataListSee:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},noMaintenance:!0,repair:!1,maintain:!1,No1:!0,createTemp:{applyType:1,empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,createDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),departmentId:this.$store.state.user.departmentid},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"LY"}},orderPart:{},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},EqCodeList:[],postDataPramas:{},activeList:[],active:3,dialogFormVisible_Examine:!1,examineTemp:{},isStatueReason:!1,requestParam:{},buttons:[],downloadParam:{},isPercentage:!1,percentage:1,TotalAmount:0,pending:{total:0,getdataListParm:{name:"getPartapplyWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},depids:[]}},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.amount)>parseFloat(e.reportery)&&(e.amount=e.reportery)}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){void 0!==c.a.get("depids")?this.depids=c.a.get("depids").split(","):this.depids=[];var e="customs:basic:update",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isReceiveUpdate=t;var a="customs:receive:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isReceiveAdd=s;var i="customs:receive:template",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isReceiveTemplate=n;var l="customs:receive:import",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isReceiveImport=o;var p="customs:receive:export",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isReceiveExport=m;var d="customs:receive:see",u=Object(r["v"])(this.$store.state.user.buttons,d);this.isReceiveSee=u;var h="customs:receive:delete",g=Object(r["v"])(this.$store.state.user.buttons,h);this.isReceiveDelete=g;var f="customs:receive:examineBM",b=Object(r["v"])(this.$store.state.user.buttons,f);this.isContractExamineBM=b;var v="customs:receive:examineSBCZ",y=Object(r["v"])(this.$store.state.user.buttons,v);this.isContractExamineSBCZ=y;var _="customs:receive:examineCZZL",w=Object(r["v"])(this.$store.state.user.buttons,_);this.isContractExamineCZZL=w;var S="customs:receive:examineCZ",P=Object(r["v"])(this.$store.state.user.buttons,S);this.isContractExamineCZ=P;var x="customs:receive:close",T=Object(r["v"])(this.$store.state.user.buttons,x);this.isReceiveClose=T},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.applyType=this.getdataListParm.parammaps.applyType,this.pending.getdataListParm.parammaps.statue=this.getdataListParm.parammaps.statue,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigpartapplyList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),applyCode:"",applyType:"",statue:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",menu:"Receive",loginId:c.a.get("employeid"),logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getPartapplyWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,applyCode:this.getdataListParm.parammaps.applyCode,applyType:this.getdataListParm.parammaps.applyType,statue:this.getdataListParm.parammaps.statue,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getPartapplyWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,applyCode:this.getdataListParm.parammaps.applyCode,applyType:this.getdataListParm.parammaps.applyType,statue:this.getdataListParm.parammaps.statue,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Receive",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},applyType:function(e){return"0"===e.applyType?"非维保":"1"===e.applyType?"维修":"2"===e.applyType?"保养":void 0},SHStatus:function(e){return"2"==e.SHStatus||"3"==e.SHStatus?"审核中":"4"==e.SHStatus?"未通过":"5"==e.SHStatus?"审核中":"6"==e.SHStatus?"未通过":"7"==e.SHStatus?"审核中":"8"==e.SHStatus?"未通过":"9"==e.SHStatus?"已通过":"10"==e.SHStatus?"未通过":void 0},applystatue:function(e){return"0"==e.applystatue?"正常":"1"==e.applystatue?"已关闭":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},changeStatue:function(e){console.log(e),this.isStatueReason=2==e},form_see:function(e){this.TotalAmount=0,this.seeTemp=Object.assign({},e),"0"===e.applyType?(this.seeTemp.applyType="非维保",this.No1=!1):"1"===e.applyType?(this.seeTemp.applyType="维修",this.No1=!0):(this.seeTemp.applyType="保养",this.No1=!0),this.dialogStatus="see",this.dialogFormVisible_See=!0,this.getdataListSee.parammaps.id=e.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;this.seeTemp.sumPrices<=500&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=1):3===this.seeTemp.SHStatus||4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=2):(9===this.seeTemp.SHStatus||6===this.seeTemp.SHStatus)&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname}],this.active=3)),this.seeTemp.sumPrices>500&&this.seeTemp.sumPrices<=3e3&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"}],this.active=2):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):6===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3)),this.seeTemp.sumPrices>3e3&&this.seeTemp.sumPrices<=1e4&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"},{title:"设备助理审核"}],this.active=2):5===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核"}],this.active=3):6===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"设备助理审核"}],this.active=3):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=4):8===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=4)),this.seeTemp.sumPrices>1e4&&(2===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核"},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=1):3===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=2):4===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备处长审核"},{title:"设备助理审核"},{title:"场长审核"}],this.active=2):5===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核"},{title:"场长审核"}],this.active=3):6===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"设备助理审核"},{title:"场长审核"}],this.active=3):7===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核"}],this.active=4):8===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t},{title:"场长审核"}],this.active=4):9===this.seeTemp.SHStatus?(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核",date:this.seeTemp.CZChargeDate,name:this.seeTemp.CZChargePerson}],this.active=5):10===this.seeTemp.SHStatus&&(this.activeList=[{title:"领用申请",date:this.seeTemp.createDate,name:this.seeTemp.empname},{title:"部门审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备处长审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"设备助理审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson},{title:"场长审核",date:this.seeTemp.CZChargeDate,name:this.seeTemp.CZChargePerson,status:"error",reason:t}],this.active=5))},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list,null!==t.data.list){for(var a=0;a<e.listAdd.length;a++)console.log(t.data.list[a].sumPrice),e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),e.listAdd[a].brand=e.listAdd[a].brandName;e.TotalAmount=e.TotalAmount.toFixed(2)}if(null!==t.data.list)for(var s=0;s<t.data.list.length;s++)null!==t.data.list[s].srcpath&&null!==t.data.list[s].picpath&&void 0!==t.data.list[s].srcpath&&void 0!==t.data.list[s].picpath?(e.listSee[s].srcpath="http://127.0.0.1:8082/"+t.data.list[s].srcpath,e.listSee[s].picpath="http://127.0.0.1:8082/"+t.data.list[s].picpath):(e.listSee[s].srcpath="",e.listSee[s].picpath="");setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCreateTemp:function(){this.createTemp.applyType=1,this.No1=!0,this.createTemp.useType=1,this.createTemp.empId=parseInt(c.a.get("employeid")),this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.receiveTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.applyCode="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.employeId=this.$store.state.user.employeid,console.log(this.createTemp),this.TotalAmount=0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps.pastureId=this.createTemp.pastureId,this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.push(e))},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqName:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqName:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCode:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},changeType:function(e){this.No1=1===e||2===e},blurAmount:function(e,t){console.log(e,t),this.TotalAmount=0,this.$set(t,"sumPrice",(parseFloat(t.price)*parseFloat(t.amount)).toFixed(2)),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].sumPrice);this.TotalAmount=this.TotalAmount.toFixed(2)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.applyCode||null==e.createTemp.applyCode||void 0==e.createTemp.applyCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){var t=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(0===this.createTemp.applyType)for(var a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].amount||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}else for(a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].eqName||null==this.listAdd[a].eqCode||null==this.listAdd[a].amount||""===this.listAdd[a].eqName||""===this.listAdd[a].eqCode||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查备件名称或设备内部编号或领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var s=0,i=0;i<this.listAdd.length;i++)s+=parseFloat(this.listAdd[i].price)*parseFloat(this.listAdd[i].amount);return this.createTemp.SHStatus=s>500?2:9,this.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:this.createTemp.pastureId,applyCode:this.createTemp.applyCode,applyType:this.createTemp.applyType,departmentId:this.createTemp.departmentId,empId:this.createTemp.empId,applyDate:this.createTemp.createDate,SHStatus:this.createTemp.SHStatus}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigpartapply",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletepartapply",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDownload:function(){var e=this;this.$alert("备件领用正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadpartapply",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){if(null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"price",parseFloat(t.data.list[a].price)),e.$set(t.data.list[a],"sumPrice",parseFloat(t.data.list[a].sumPrice)),e.$set(t.data.list[a],"amount",parseFloat(t.data.list[a].amount))}e.$nextTick((function(){var e=[{tHeader:["牧场名称","领用单编号","领用申请日期","物料编码","品名","规格型号","品牌","计量单位","领用数量","单价","总价","设备名称","牧场设备编号","领用类型(0非维保,1维修,2保养)","领用部门","领用人"],filterVal:["pastureName","applyCode","createDate","partCode","partName","specification","brandName","unit","amount","price","sumPrice","eqName","eqCode","applyType","departmentName","empname"],tableDatas:t.data.list,sheetName:"备件领用"}];Object(l["d"])(e,"备件领用",!0,"xlsx")}))}))},handleExamine:function(e){console.log("点击了部门审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData:function(){var e=this;console.log("点击了部门审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=3:e.requestParam.parammaps.statue=4,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("部门审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了设备处长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了设备处长审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?parseFloat(e.examineTemp.sumPrices)<=3e3?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=5:e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("设备处长审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了场长助理审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了场长助理审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?parseFloat(e.examineTemp.sumPrices)<=1e4?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=7:e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("场长助理审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine4:function(e){console.log("点击了场长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine4",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData4:function(){var e=this;console.log("点击了场长审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partapplyCharge2",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.statueSH?e.requestParam.parammaps.statue=9:e.requestParam.parammaps.statue=10,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("场长审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.dialogStatus="update",this.dialogFormVisible=!0,console.log(e),e.applyType=parseInt(e.applyType),this.createTemp=Object.assign({},e),this.listAdd=[],0==e.applyType&&(this.No1=!1),1!=e.applyType&&2!=e.applyType||(this.No1=!0),this.TotalAmount=0,this.getdataListSee.parammaps.id=e.id,this.getSeeList()},edit_dialog_save:function(){var e=this;if(console.log("点击了编辑"),0!==this.listAdd.length){for(var t=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/,a=0;a<this.listAdd.length;a++){if(null==this.listAdd[a].amount||""===this.listAdd[a].amount)return this.$message({title:"",message:"请检查领用数量是否未填写",type:"error",duration:2e3}),!1;if(!t.test(this.listAdd[a].amount))return this.$message({type:"error",message:"请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[a].amount)>parseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var s=0,i=0;i<this.listAdd.length;i++)s+=parseFloat(this.listAdd[i].price)*parseFloat(this.listAdd[i].amount);return this.createTemp.SHStatus=s>500?2:9,this.postDataPramas.data[0]={name:"updatepartapplyCharge",type:"e",parammaps:{id:this.createTemp.id,SHStatus:this.createTemp.SHStatus}},this.postDataPramas.data[1]={name:"deletePartapply",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartapply",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},handleCustomsDeclaration:function(e){var t=this;p["MessageBox"].confirm("是否确认关单?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"updateBigPartApplystatueV2",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.getPendingList(),t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))}}}),u=d,h=(a("90b5"),a("3ad9"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"7a5d278e",null);t["default"]=g.exports},9609:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}})],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团柴油量:"+e._s(e.total)+"万升\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("2934"),m=a("a78e"),c=a.n(m);a("817d");var d={name:"QueryCombustion",directives:{waves:o["a"]},data:function(){var e;return e={yearDate:new Date,total:"",pasture:c.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"getpSumNowDiesel",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:c.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:c.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(p["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryCombustion:pastures",t=Object(p["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(p["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(p["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(p["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(p["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"月每日柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"柴油用量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["柴油用量"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"设备",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"柴油用量",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}}}},u=d,h=(a("a7de"),a("872f"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"639adb66",null);t["default"]=g.exports},9649:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-燃动分析",use:"icon-燃动分析-usage",viewBox:"0 0 1025 1024",content:'<symbol class="icon" viewBox="0 0 1025 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-燃动分析"><defs><style type="text/css"></style></defs><path d="M511.801 0c-0.106 0-0.211 0.002-0.317 0.002l-0.006-0.002-21 0 0 254.583 86.652 0-1.024-185.359c216.507 31.177 382.885 217.431 382.885 442.575 0 246.988-200.216 447.204-447.191 447.204s-447.185-200.216-447.185-447.204c0-125.359 51.579-238.663 134.671-319.855l-40.9-50.325c-97.589 93.196-158.386 224.589-158.386 370.18 0 282.654 229.145 511.805 511.799 511.805 282.66 0 511.799-229.151 511.799-511.805S794.461 0 511.801 0zM561.846 456.442c-6.358-5.75-13.716-10.41-21.775-13.712l-262.84-165.513 165.514 262.9c3.29 8.015 7.925 15.333 13.639 21.665l2.107 3.347 0.547-0.547c13.505 13.5 32.159 21.85 52.764 21.85 41.219 0 74.633-33.414 74.633-74.633 0-20.603-8.351-39.257-21.853-52.761l0.536-0.536L561.846 456.442z" p-id="13854" /></symbol>'});n.a.add(l);t["default"]=l},"966f":function(e,t,a){"use strict";a("0983")},"96b8":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-radio-group",{staticStyle:{float:"right","margin-top":"20px"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"集团"}},[e._v("集团")]),e._v(" "),a("el-radio",{attrs:{label:"一中心"}},[e._v("一中心")]),e._v(" "),a("el-radio",{attrs:{label:"二中心"}},[e._v("二中心")]),e._v(" "),a("el-radio",{attrs:{label:"三中心"}},[e._v("三中心")])],1)],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团柴油量:"+e._s(e.total)+"万升\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("2934"),m=a("a78e"),c=a.n(m);a("817d");var d={name:"QueryCombustion",directives:{waves:o["a"]},data:function(){var e;return e={yearDate:new Date,total:"",radio:"集团",pasture:c.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",getBarChart1Parm:{name:"getpSumNowDiesel",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:c.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:c.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthDiesel",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:c.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:c.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}},radio:{deep:!0,handler:function(e,t){console.log(e,t),this.getBarChart1Parm.parammaps.center="集团"==e?"":e,this.getBarChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(p["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryCombustion:pastures",t=Object(p["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(p["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(p["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(p["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(p["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(p["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",name:"牧场",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量"]},color:["#769cfc","#FFB800","#6bda00"],grid:{left:"3%",right:"8%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"预算",type:"line",data:e.budget,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"月每日柴油量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"柴油用量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["柴油用量"]},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"设备",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"升",axisLabel:{formatter:"{value}"}}],series:[{name:"柴油用量",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}}}},u=d,h=(a("82fd"),a("966f"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"a24164bc",null);t["default"]=g.exports},"96d3":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-知识库管理",use:"icon-知识库管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-知识库管理"><defs><style type="text/css"></style></defs><path d="M274.863158 865.010526H137.431579c-10.778947 0-18.863158 8.084211-18.863158 18.863158s8.084211 18.863158 18.863158 18.863158h137.431579c10.778947 0 18.863158-8.084211 18.863158-18.863158s-8.084211-18.863158-18.863158-18.863158zM582.063158 865.010526h-137.431579c-10.778947 0-18.863158 8.084211-18.863158 18.863158s8.084211 18.863158 18.863158 18.863158h137.431579c10.778947 0 18.863158-8.084211 18.863158-18.863158s-10.778947-18.863158-18.863158-18.863158z" p-id="1708" /><path d="M983.578947 309.894737l-150.905263-264.084211c-5.389474-8.084211-16.168421-13.473684-26.947368-8.08421-8.084211 5.389474-13.473684 16.168421-8.084211 26.947368l10.778948 10.778948h-161.684211l-2.694737-24.252632c-2.694737-10.778947-10.778947-16.168421-21.557894-16.168421-10.778947 2.694737-16.168421 10.778947-16.168422 21.557895l2.694737 18.863158h-191.326315l2.694736-18.863158c2.694737-10.778947-5.389474-18.863158-16.168421-21.557895-10.778947-2.694737-18.863158 5.389474-21.557894 16.168421l-5.389474 24.252632H215.578947l5.389474-10.778948c8.084211-10.778947 2.694737-21.557895-5.389474-26.947368-8.084211-5.389474-21.557895-2.694737-26.947368 8.08421l-150.905263 264.084211c-2.694737 5.389474-5.389474 13.473684-5.389474 18.863158v619.789473c0 21.557895 18.863158 40.421053 43.11579 40.421053h256c8.084211 0 18.863158-2.694737 24.252631-8.08421 8.084211 5.389474 16.168421 8.084211 24.252632 8.08421h256c8.084211 0 18.863158-2.694737 24.252631-8.08421 8.084211 5.389474 16.168421 8.084211 24.252632 8.08421h256c24.252632 0 43.115789-18.863158 43.115789-40.421053v-619.789473c5.389474-8.084211 2.694737-13.473684 0-18.863158z m-264.08421-196.71579l45.810526 132.042106c2.694737 8.084211 10.778947 13.473684 18.863158 13.473684h5.389474c10.778947-2.694737 16.168421-13.473684 10.778947-24.252632l-43.115789-121.263158h70.063158l99.705263 175.157895h-239.831579c-2.694737 0-8.084211 0-10.778948 2.694737l-26.947368-175.157895h70.063158z m-226.357895 0v126.652632c0 10.778947 8.084211 18.863158 18.863158 18.863158s18.863158-8.084211 18.863158-18.863158V113.178947h83.536842l26.947368 175.157895h-256l26.947369-175.157895h80.842105z m-229.052631 0L220.968421 231.747368c-2.694737 10.778947 2.694737 21.557895 13.473684 24.252632h5.389474c8.084211 0 16.168421-5.389474 18.863158-13.473684l45.810526-132.042105h67.368421l-26.947368 175.157894c-2.694737 0-8.084211-2.694737-10.778948-2.694737H97.010526L196.715789 107.789474h67.368422z m70.063157 838.063158H78.147368c-2.694737 0-5.389474-2.694737-5.389473-2.694737v-619.789473s2.694737-2.694737 5.389473-2.694737h256c2.694737 0 5.389474 2.694737 5.389474 2.694737v619.789473s0 2.694737-5.389474 2.694737z m307.2 0h-256c-2.694737 0-5.389474-2.694737-5.389473-2.694737V326.063158s2.694737-2.694737 5.389473-2.694737h256c2.694737 0 5.389474 2.694737 5.389474 2.694737v622.48421s-2.694737 2.694737-5.389474 2.694737z m304.505264 0h-256c-2.694737 0-5.389474-2.694737-5.389474-2.694737v-619.789473s2.694737-2.694737 5.389474-2.694737h256c2.694737 0 5.389474 2.694737 5.389473 2.694737v619.789473s-2.694737 2.694737-5.389473 2.694737z" p-id="1709" /><path d="M886.568421 865.010526h-137.431579c-10.778947 0-18.863158 8.084211-18.863158 18.863158s8.084211 18.863158 18.863158 18.863158h137.431579c10.778947 0 18.863158-8.084211 18.863158-18.863158s-8.084211-18.863158-18.863158-18.863158z" p-id="1710" /></symbol>'});n.a.add(l);t["default"]=l},"974e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[e.isPraseTime?a("el-date-picker",{staticStyle:{top:"-3px"},attrs:{clearable:!1,type:"date","picker-options":e.pickerOptions1,placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.praseTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"praseTime",t)},expression:"getdataListParm.parammaps.praseTime"}}):e._e(),e._v(" "),e.isPraseTime?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]):e._e(),e._v(" "),e.isType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getDeptListParm.parammaps.type,callback:function(t){e.$set(e.getDeptListParm.parammaps,"type",t)},expression:"getDeptListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),e.isPraseTime?a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1),e._v(" "),e.isTitle?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goBackPasture}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(e.seeTemp.pastureName))])]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"接口类型","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.SapApiName[t.row.name]?a("span",[e._v(" "+e._s(e.SapApiName[t.row.name])+" ")]):a("span",[e._v(" "+e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"请求地址","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.url))])]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"请求参数","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.request))])]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"返回参数","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.response))])]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"请求时间","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created_at))])]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"状态","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"消息","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.msgtext))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=(a("c5f6"),a("6724")),n=a("333d"),l=a("2934"),o=a("ed08"),p={name:"Saplog",components:{Pagination:n["a"]},directives:{waves:r["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getSapLog",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(o["e"])((new Date).getTime(),"{y}-{m}-{d}")}},pickerOptions1:{disabledDate:function(e){return e.getTime()>(new Date).getTime()}},seeTemp:{},isTitle:!1,isPraseTime:!0,isTable1:!0,types:[{id:0,name:"按部门"},{id:1,name:"按设备类别"}],isType:!1,total2:0,isTable2:!1,getDeptListParm:{name:"getEqRunstatueListDept",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{type:0}},total3:0,isTable3:!1,getTypeListParm:{name:"getEqRunstatueListEqclass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},isDetailed:!1,downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,SapApiName:{FI004:"资产卡片信息同步",MM001:"物料凭证接口",MM002:"物料主数据信息同步",MM007:"采购订单接口",MM004:"供应商主数据信息同步",MM012:"跨牧场/法人调拨",MM015:"物料凭证冲销接口","sap-order":"发送采购订单到sap"}}},created:function(){this.get_table_data()},methods:{tableSort1:function(e){Object(o["f"])(e,this.list)},get_table_data:function(){var e=this;Object(l["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)0!==t.data.list[a].eqQY&&0!==t.data.list[a].eqUse?e.$set(t.data.list[a],"eqQY2",(parseFloat(t.data.list[a].eqQY)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)):e.$set(t.data.list[a],"eqQY2",0),0!==t.data.list[a].runTime&&0!==t.data.list[a].totalTime?e.$set(t.data.list[a],"runTime2",(parseFloat(t.data.list[a].runTime)/parseFloat(t.data.list[a].totalTime)*100).toFixed(2)):e.$set(t.data.list[a],"ontimeClassCount2",0),0!==t.data.list[a].maintain&&0!==t.data.list[a].eqUse?e.$set(t.data.list[a],"maintain2",(parseFloat(t.data.list[a].maintain)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)):e.$set(t.data.list[a],"maintain2",0)}e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.pastureName&&null==t.departmentName&&null==t.typeName&&1===a?{textDecoration:"underline"}:{textDecoration:"none"}},tableCellClick:function(e){"现代牧业"!==e.pastureName?(this.seeTemp=Object.assign({},e),this.isPraseTime=!1,this.isTable1=!1,this.isTable2=!0,this.isTitle=!0,this.isType=!0,this.isDetailed=!0,this.listLoading=!0,this.getDeptList()):this.isTitle=!1},changeType:function(e){console.log("选中值"),this.Type=e,0==this.Type?(this.listLoading=!0,this.getDeptList(),this.isTable2=!0,this.isTable3=!1):(this.listLoading=!0,this.isTable2=!1,this.isTable3=!0,this.getTypeList())},getDeptList:function(){var e=this;this.getDeptListParm.parammaps.pastureId=this.seeTemp.pastureId,this.getDeptListParm.parammaps.praseTime=this.getdataListParm.parammaps.praseTime,Object(l["e"])(this.getDeptListParm).then((function(t){console.log("table数据",t.data.list),e.$nextTick((function(){e.list=t.data.list})),e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total2=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getTypeList:function(){var e=this;this.getTypeListParm.parammaps.pastureId=this.seeTemp.pastureId,this.getTypeListParm.parammaps.praseTime=this.getdataListParm.parammaps.praseTime,Object(l["e"])(this.getTypeListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total3=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},goBackPasture:function(){this.isType=!1,this.isPraseTime=!0,this.isTable1=!0,this.isTable2=!1,this.isTable3=!1,this.isTitle=!1,this.isDetailed=!1,this.listLoading=!0,this.get_table_data()},handleDetailed:function(e){console.log(e),this.$router.push({path:"/maintenance/SST",query:{deptId:e.deptId}}),this.getdataListParm.parammaps.deptId=e.deptId},handleDownload:function(){var e=this;this.$alert("设备运行统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getSapLog",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadList=t.data.list,t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)e.downLoadList[a].LYL=(parseFloat(t.data.list[a].eqQY)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)+"%",0===parseFloat(t.data.list[a].runTime)||0===parseFloat(t.data.list[a].totalTime)?e.downLoadList[a].YZL=0:e.downLoadList[a].YZL=(parseFloat(t.data.list[a].runTime)/parseFloat(t.data.list[a].totalTime)*100).toFixed(2)+"%",e.downLoadList[a].GZL=(parseFloat(t.data.list[a].maintain)/parseFloat(t.data.list[a].eqUse)*100).toFixed(2)+"%";console.log(e.downLoadList);var s=[{tHeader:["接口类型","请求地址","请求参数","返回参数","请求时间","状态","消息"],filterVal:["name","url","request","response","created_at","status","msgtext"],tableDatas:e.downLoadList,sheetName:"Sap请求日志"}];Object(o["d"])(s,"Sap请求日志",!0,"xlsx")}))}))}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"97c9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),e.tableIputShow1?a("el-date-picker",{ref:"BXinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报修开始时间","end-placeholder":"报修结束时间"},model:{value:e.table.getdataListParm.parammaps.BXinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"BXinputDatetime",t)},expression:"table.getdataListParm.parammaps.BXinputDatetime"}}):e._e(),e._v(" "),e.tableIputShow1?a("el-date-picker",{ref:"JDinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"接单开始时间","end-placeholder":"接单结束时间"},model:{value:e.table.getdataListParm.parammaps.JDinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"JDinputDatetime",t)},expression:"table.getdataListParm.parammaps.JDinputDatetime"}}):e._e(),e._v(" "),e.tableIputShow1?a("el-date-picker",{ref:"useSHinputDatetime",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"维修开始时间","end-placeholder":"维修结束时间"},model:{value:e.table.getdataListParm.parammaps.useSHinputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"useSHinputDatetime",t)},expression:"table.getdataListParm.parammaps.useSHinputDatetime"}}):e._e(),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange","picker-options":e.pickerOptions,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.table2.getdataListParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"inputDatetime2",t)},expression:"table2.getdataListParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"类别",clearable:""},on:{change:e.change_eqClass},model:{value:e.table2.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"eqClassId",t)},expression:"table2.getdataListParm.parammaps.eqClassId"}},e._l(e.typeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.remark,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),e.tableShow1?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}],null,!1,3102377709)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"单号","min-width":"90px",align:"center",prop:"repairCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"90px",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"90px",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修日期","min-width":"70px",align:"center",prop:"BXTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"接单间隔","min-width":"90px",sortable:"",align:"center",prop:"BxAndJd"}}),e._v(" "),a("el-table-column",{attrs:{label:"接单日期","min-width":"90px",sortable:"",align:"center",prop:"JDTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人","min-width":"70px",sortable:"",align:"center",prop:"pickname"}}),e._v(" "),a("el-table-column",{attrs:{label:"总维修时长","min-width":"90px",sortable:"",align:"center",prop:"WxAndJS"}}),e._v(" "),a("el-table-column",{attrs:{label:"完成维修日期","min-width":"70px",sortable:"",align:"center",prop:"JSTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"确认间隔","min-width":"70px",sortable:"",align:"center",prop:"JSAnduseSH"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用人确认日期","min-width":"70px",sortable:"",align:"center",prop:"useSHTime"}})],1):e._e(),e._v(" "),e.tableShow1?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}):e._e(),e._v(" "),e.tableShow2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!1,2873507970)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"90px",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修次数","min-width":"90px",align:"center",prop:"count"}}),e._v(" "),a("el-table-column",{attrs:{label:"平均维修时间(MTTR)","min-width":"70px",sortable:"",align:"center",prop:"mttr"}}),e._v(" "),a("el-table-column",{attrs:{label:"无故障时间(MTTF)","min-width":"90px",sortable:"",align:"center",prop:"mttf"}}),e._v(" "),a("el-table-column",{attrs:{label:"平均故障间隔时间(MTBF)","min-width":"90px",sortable:"",align:"center",prop:"mtbf"}})],1):e._e()],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("a78e"),m=a.n(p),c={name:"MaintenanceCycle",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){var e=this;return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},tableIputShow1:!0,tableShow1:!0,tableShow2:!1,table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAlleqWX",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{BXinputDatetime:"",SGTimeStart:"",SGTimeEnd:"",JDinputDatetime:"",JDTimeStart:"",JDTimeEnd:"",useSHinputDatetime:"",useSHTimeStart:"",useSHTimeEnd:"",pastureName:m.a.get("pasturename")}}},selectData:"",pickerMinDate:"",pickerRange:31536e6,pickerOptions:{onPick:function(t){t.maxDate;var a=t.minDate;a&&e.pickerMinDate?e.pickerMinDate=null:a&&(e.pickerMinDate=a.getTime())},disabledDate:function(t){return!!e.pickerMinDate&&(t.getTime()>e.pickerMinDate+e.pickerRange||t.getTime()<e.pickerMinDate-e.pickerRange)}},table2:{tableKey:0,list:[{id:1}],total:0,listLoading:!1,getdataListParm:{name:"maintain",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqClassId:"",pastureName:m.a.get("pasturename"),startTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),endTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputDatetime2:[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")],pastureId:""}}},typeNameList:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"getEqClassBengbu",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}]}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllPasture=t.data.findAllPasture.list,e.typeNameList=t.data.getEqClassBengbu.list)}))},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(l["e"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!==t.data.list[a].BxAndJd&&e.$set(t.data.list[a],"BxAndJd",parseFloat(t.data.list[a].BxAndJd)),void 0!==t.data.list[a].JdAndWx&&e.$set(t.data.list[a],"JdAndWx",parseFloat(t.data.list[a].JdAndWx)),void 0!==t.data.list[a].WxAndJS&&e.$set(t.data.list[a],"WxAndJS",parseFloat(t.data.list[a].WxAndJS)),void 0!==t.data.list[a].JSAnduseSH&&e.$set(t.data.list[a],"JSAnduseSH",parseFloat(t.data.list[a].JSAnduseSH));e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[],e.table.total=0;setTimeout((function(){e.table.listLoading=!1}),100)}))},get_table_data2:function(){var e=this;this.table2.listLoading=!0;var t="authdata/maintain",a=this.table2.getdataListParm.parammaps;Object(l["A"])(t,a).then((function(t){console.log("table数据",t.data.list),0!==t.data.length?e.table2.list=t.data:e.table2.list=[],setTimeout((function(){e.table2.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.BXinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.BXinputDatetime&&null!==this.table.getdataListParm.parammaps.BXinputDatetime?0!==this.table.getdataListParm.parammaps.BXinputDatetime.length&&(this.table.getdataListParm.parammaps.BXTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.BXinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.BXTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.BXinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.BXinputDatetime=[],this.table.getdataListParm.parammaps.BXTimeStart="",this.table.getdataListParm.parammaps.BXTimeEnd=""),this.table.getdataListParm.parammaps.JDinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.JDinputDatetime&&null!==this.table.getdataListParm.parammaps.JDinputDatetime?0!==this.table.getdataListParm.parammaps.JDinputDatetime.length&&(this.table.getdataListParm.parammaps.JDTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.JDinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.JDTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.JDinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.JDinputDatetime=[],this.table.getdataListParm.parammaps.JDTimeStart="",this.table.getdataListParm.parammaps.JDTimeEnd=""),this.table.getdataListParm.parammaps.useSHinputDatetime!==[]&&""!==this.table.getdataListParm.parammaps.useSHinputDatetime&&null!==this.table.getdataListParm.parammaps.useSHinputDatetime?0!==this.table.getdataListParm.parammaps.useSHinputDatetime.length&&(this.table.getdataListParm.parammaps.useSHTimeStart=Object(o["e"])(this.table.getdataListParm.parammaps.useSHinputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.useSHTimeEnd=Object(o["e"])(this.table.getdataListParm.parammaps.useSHinputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.useSHinputDatetime=[],this.table.getdataListParm.parammaps.useSHTimeStart="",this.table.getdataListParm.parammaps.useSHTimeEnd=""),this.table2.getdataListParm.parammaps.inputDatetime2!==[]&&""!==this.table2.getdataListParm.parammaps.inputDatetime2&&null!==this.table2.getdataListParm.parammaps.inputDatetime2?0!==this.table2.getdataListParm.parammaps.inputDatetime2.length&&(this.table2.getdataListParm.parammaps.startTime=Object(o["e"])(this.table2.getdataListParm.parammaps.inputDatetime2[0],"{y}-{m}-{d}"),this.table2.getdataListParm.parammaps.endTime=Object(o["e"])(this.table2.getdataListParm.parammaps.inputDatetime2[1],"{y}-{m}-{d}")):(this.table2.getdataListParm.parammaps.inputDatetime2=[],this.table2.getdataListParm.parammaps.startTime="",this.table2.getdataListParm.parammaps.endTime=""),this.table2.getdataListParm.parammaps.pastureName=this.table.getdataListParm.parammaps.pastureName,console.log(this.table2.getdataListParm.parammaps.eqClassId),""!=this.table2.getdataListParm.parammaps.eqClassId?(this.tableShow2=!0,this.tableShow1=!1,this.tableIputShow1=!1,this.get_table_data2()):(this.tableShow2=!1,this.tableShow1=!0,this.tableIputShow1=!0,this.get_table_data())},change_eqClass:function(e){},handleDownload:function(){var e=this;this.$alert("维修周期效率统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.form_search(),this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="getAlleqWX",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","单号","设备类别","设备名称","设备内部编号","报修日期","接单间隔","接单日期","维修人","总维修时长","完成维修日期","确认间隔","使用人确认时间"],filterVal:["pastureName","repairCode","eqClassName","eqName","eqCode","BXTime","BxAndJd","JDTime","pickname","WxAndJS","JSTime","JSAnduseSH","useSHTime"],tableDatas:e.downLoadParm.list,sheetName:"Sheet"}];Object(o["d"])(a,"维修周期效率统计",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},"97e9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"冲销类型"},on:{change:e.change_type},model:{value:e.table1.getdataListParm.parammaps.writeoffType,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"writeoffType",t)},expression:"table1.getdataListParm.parammaps.writeoffType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备管理平台单号"},model:{value:e.table1.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"orderNumber",t)},expression:"table1.getdataListParm.parammaps.orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",placeholder:"是否已开票"},model:{value:e.table1.getdataListParm.parammaps.hasTicket,callback:function(t){e.$set(e.table1.getdataListParm.parammaps,"hasTicket",t)},expression:"table1.getdataListParm.parammaps.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isWriteoffAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table1.listLoading,expression:"table1.listLoading"}],key:e.table1.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table1.pageNum-1)*e.table1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证号","min-width":"150px",align:"center",prop:"materialCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"物料凭证年度","min-width":"150px",align:"center",prop:"proofYear"}}),e._v(" "),a("el-table-column",{attrs:{label:"凭证中的过账信息","min-width":"150px",align:"center",prop:"chargeDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台单号","min-width":"150px",align:"center",prop:"orderNumber"}}),e._v(" "),"备件入库"==e.table1.getdataListParm.parammaps.writeoffType||"备件退货"==e.table1.getdataListParm.parammaps.writeoffType?a("el-table-column",{attrs:{label:"是否已开票","min-width":"150px",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.hasTicket?a("span",[e._v("是")]):e._e(),e._v(" "),0==t.row.hasTicket?a("span",[e._v("否")]):e._e(),e._v(" "),""==t.row.hasTicket?a("span"):e._e()]}}],null,!1,4169319136)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"设备管理平台行号","min-width":"150px",align:"center",prop:"rowNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isWriteoffSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table1.total>0,expression:"table1.total>0"}],attrs:{total:e.table1.total,page:e.table1.getdataListParm.offset,limit:e.table1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table1.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"create",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.create.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备管理平台单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:"see"==e.dialogStatus},on:{blur:e.blurOrderNumber},model:{value:e.create.temp.orderNumber,callback:function(t){e.$set(e.create.temp,"orderNumber",t)},expression:"create.temp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"冲销类型:",prop:"NumberType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},on:{change:e.changeWriteoff},model:{value:e.create.temp.NumberType,callback:function(t){e.$set(e.create.temp,"NumberType",t)},expression:"create.temp.NumberType"}},e._l(e.writeoffList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否已开票:",prop:"hasTicket"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.dialogStatus,placeholder:""},model:{value:e.create.temp.hasTicket,callback:function(t){e.$set(e.create.temp,"hasTicket",t)},expression:"create.temp.hasTicket"}},e._l(e.invoicedReturnDocList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证号:",prop:"materialCode"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.materialCode,callback:function(t){e.$set(e.create.temp,"materialCode",t)},expression:"create.temp.materialCode"}},e._l(e.materialVoucherNoList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"凭证中的过账日期:",prop:"chargeDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"","picker-options":e.pickerOptions,type:"date",placeholder:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.create.temp.chargeDate,callback:function(t){e.$set(e.create.temp,"chargeDate",t)},expression:"create.temp.chargeDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物料凭证年度:",prop:"proofYear"}},[a("el-input",{ref:"proofYear",attrs:{disabled:"",placeholder:""},model:{value:e.create.temp.proofYear,callback:function(t){e.$set(e.create.temp,"proofYear",t)},expression:"create.temp.proofYear"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"行号",align:"center",prop:"rowNumber",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"partBrand",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"supplier",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"库位",prop:"warehouse",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更数量",prop:"changeCount",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"unitPrice",align:"center","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"90"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["create"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=a("2934"),n=a("ed08"),l=a("333d"),o=a("5c96"),p=a("a78e"),m=a.n(p),c={name:"Writeoff",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"getPastureList",offset:0,pagecount:0,returntype:"Map",parammaps:{}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}}],writeoffList:[{id:1,name:"备件入库"},{id:2,name:"备件退货"},{id:3,name:"备件出库"},{id:4,name:"备件退库"}],invoicedReturnDocList:[{id:0,name:"否"},{id:1,name:"是"}],materialVoucherNoList:[{id:0,name:"11111"},{id:1,name:"2222"}],table1:{getdataListParm:{name:"getLaidProofList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),writeoffType:"备件入库",orderNumber:"",hasTicket:""}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogStatus:"",dialogFormVisible:!1,textMap:{create:"新增",see:"查看"},rules:{orderNumber:[{required:!0,message:"必填",trigger:"blur"}],NumberType:[{required:!0,message:"必填",trigger:"blur"}]},create:{temp:{applyDate:Object(n["e"])(new Date,"{y}-{m}-{d}")},getdataListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},getdataListParm2:{name:"getPartlaidByBigid",returntype:"Map",parammaps:{bigid:""}},tableKey:0,listLoading:!1,total:0,list:[],pageNum:0,pageSize:0},isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},isWriteoffAdd:[],isWriteoffSee:[],isWriteoffDel:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="customs:writeoff:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isWriteoffAdd=t;var a="customs:writeoff:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isWriteoffSee=s;var i="customs:writeoff:del",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isWriteoffDel=n},get_table_data:function(){var e=this;this.table1.listLoading=!0,Object(r["e"])(this.table1.getdataListParm).then((function(t){t.data.list?(console.log("table数据",t.data.list),e.table1.list=t.data.list,e.table1.pageNum=t.data.pageNum,e.table1.pageSize=t.data.pageSize):(e.table1.list=[],e.table1.pageNum=0,e.table1.pageSize=0),t.data.total&&(e.table1.total=t.data.total),setTimeout((function(){e.table1.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),this.table1.listLoading=!0,this.table1.getdataListParm.offset=1,this.get_table_data()},form_add:function(){this.dialogStatus="create",this.dialogFormVisible=!0,this.create.temp={materialCode:"",proofYear:"",chargeDate:"",orderNumber:"",hasTicket:"",orderNumberId:"",NumberType:"",rowsNumber:[]},this.create.list=[]},changeWriteoff:function(e){this.getTableFormList()},blurOrderNumber:function(){this.getTableFormList()},getTableFormList:function(){var e=this,t="authdata/sap/proof/detail",a={OrderNumber:this.create.temp.orderNumber,NumberType:this.create.temp.NumberType};""!=this.create.temp.orderNumber?""!=this.create.temp.NumberType?Object(r["A"])(t,a).then((function(t){console.log(t.msg,"response==="),"fail"!==t.msg?t.data?(e.create.temp=t.data,e.create.temp.rowsNumber=[],t.data.parts?e.create.list=t.data.parts:e.create.list=[]):(e.create.list=[],e.create.temp={}):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})})).catch((function(e){})):this.$message({title:"",message:"冲销类型不能为空",type:"warning",duration:2e3}):this.$message({title:"",message:"设备管理平台单号不能为空",type:"warning",duration:2e3})},handleSelectionChange:function(e){this.create.temp.rowsNumber=[];for(var t=0;t<e.length;t++)this.create.temp.rowsNumber.push(e[t].rowNumber);console.log(this.create.temp.rowsNumber)},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["create"].validate((function(t){if(t){console.log("新增保存",e.create.temp.rowsNumber);var a="authdata/sap/proof/off",s={materialCode:e.create.temp.materialCode,proofYear:e.create.temp.proofYear,chargeDate:e.create.temp.chargeDate,orderNumber:e.create.temp.orderNumber,hasTicket:e.create.temp.hasTicket,rowsNumber:e.create.temp.rowsNumber,orderNumberId:e.create.temp.orderNumberId,NumberType:e.create.temp.NumberType};if(0==e.create.temp.rowsNumber.length)return void e.$message({message:"请选择需要冲销的备件",type:"warning",duration:2e3});Object(r["A"])(a,s).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1):e.$notify({title:"失败",message:t.message,type:"warning",duration:2e3})}))}}))},change_type:function(e){console.log(e),"备件入库"==e&&(this.table1.getdataListParm.name="getLaidProofList",this.table1.getdataListParm.parammaps.writeoffType="备件入库"),"备件出库"==e&&(this.table1.getdataListParm.name="getReturnProofList",this.table1.getdataListParm.parammaps.writeoffType="备件出库"),"备件退库"==e&&(this.table1.getdataListParm.name="getQuitProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退库"),"备件退货"==e&&(this.table1.getdataListParm.name="getUseProofList",this.table1.getdataListParm.parammaps.writeoffType="备件退货")},form_see:function(e){this.dialogStatus="see",this.create.temp=Object.assign({},e),console.log("row",e),1==e.NumberType&&(this.create.getdataListParm2.name="getPartlaidByBigid"),4==e.NumberType&&(this.create.getdataListParm2.name="getPartquitByBigid"),2==e.NumberType&&(this.create.getdataListParm2.name="getPartrefundByBigid"),3==e.NumberType&&(this.create.getdataListParm2.name="getPartuseByBigid"),this.create.getdataListParm2.parammaps.bigid=e.id,this.getDialogList2(),this.dialogFormVisible=!0},getDialogList2:function(){var e=this;Object(r["e"])(this.create.getdataListParm2).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},getDialogList:function(){var e=this;Object(r["e"])(this.create.getdataListParm).then((function(t){t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize):(e.create.list=[],e.create.pageNum=0,e.create.pageSize=0),t.data.total&&(e.create.total=t.data.total),setTimeout((function(){e.create.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPasture2=t.data.getPastureList.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDelate:function(e){var t=this;o["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("删除")})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},d=c,u=(a("3bb8"),a("060b"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"7baedcd5",null);t["default"]=h.exports},"98d6":function(e,t,a){"use strict";var s=a("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_resizeHandler:function(){var e=this;return Object(s["a"])((function(){e.chart&&e.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"98de":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"盘点编号"},model:{value:e.getdataListParm.parammaps.oddCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"oddCode",t)},expression:"getdataListParm.parammaps.oddCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"盘点状态",clearable:""},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.findAllStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"260px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.oddCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘盈金额",sortable:"",prop:"moreSum","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.moreSum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘亏金额",sortable:"",prop:"lessSum","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lessSum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盈亏净额",sortable:"",prop:"sums","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sums))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点原因","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0==t.row.statue?"盘点中":"已完成"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点日期",sortable:"",prop:"checkDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"240px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),0==s.statue?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("盘点")]):e._e(),e._v(" "),0==s.statue?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点单号:"}},[a("el-input",{staticStyle:{width:"170px"},attrs:{disabled:""},model:{value:e.temp.oddCode,callback:function(t){e.$set(e.temp,"oddCode",t)},expression:"temp.oddCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{placeholder:"牧场",disabled:"see"===e.dialogStatus},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{placeholder:"盘点人",disabled:"see"===e.dialogStatus},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点日期:",prop:"checkDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"日期",disabled:"see"===e.dialogStatus},model:{value:e.temp.checkDate,callback:function(t){e.$set(e.temp,"checkDate",t)},expression:"temp.checkDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点原因:"}},[a("el-input",{staticStyle:{width:"170px"},attrs:{disabled:"see"===e.dialogStatus},model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1)],1)],1),e._v(" "),0!==e.temp.statue&&"see"==e.dialogStatus?a("div",{staticStyle:{position:"relative"}},[a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px",top:"-50px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownloadSee}},[e._v("导出")])],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.tempSolr,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[e.isAdd?a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum21-1)*e.pageSize21+1))])]}}],null,!1,4017616877)}):e._e(),e._v(" "),e.isLook?a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum22-1)*e.pageSize22+1))])]}}],null,!1,577545005)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当前库存","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repertory))])]}}])}),e._v(" "),"see"===e.dialogStatus&&1===e.temp.statue?a("el-table-column",{attrs:{label:"盘点库存","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkAmount))])]}}],null,!1,365468236)}):e._e(),e._v(" "),"see"===e.dialogStatus&&1===e.temp.statue?a("el-table-column",{attrs:{label:"差值","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s((parseFloat(t.row.checkAmount)-parseFloat(t.row.repertory)).toFixed(2)))])]}}],null,!1,727577712)}):e._e()],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tempSolrtotal>0&&e.isAdd,expression:"tempSolrtotal>0 && isAdd"}],attrs:{total:e.tempSolrtotal,page:e.gettempSolr.offset,limit:e.gettempSolr.pagecount},on:{"update:page":function(t){return e.$set(e.gettempSolr,"offset",t)},"update:limit":function(t){return e.$set(e.gettempSolr,"pagecount",t)},pagination:e.gettempSolrList}}),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tempSolrtotal2>0&&e.isLook,expression:"tempSolrtotal2>0 && isLook"}],attrs:{total:e.tempSolrtotal2,page:e.gettempSolr2.offset,limit:e.gettempSolr2.pagecount},on:{"update:page":function(t){return e.$set(e.gettempSolr2,"offset",t)},"update:limit":function(t){return e.$set(e.gettempSolr2,"pagecount",t)},pagination:e.gettempSolrList2}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add_dialog_save()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"盘点",visible:e.dialogFormVisible3,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible3=t}}},[a("el-form",{ref:"temp3",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.temp3,"label-position":"right","label-width":"180px"}},[a("el-row",[a("el-input",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{placeholder:"备件编号"},model:{value:e.gettempSolr3.parammaps.partCode,callback:function(t){e.$set(e.gettempSolr3.parammaps,"partCode",t)},expression:"gettempSolr3.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{placeholder:"备件名称"},model:{value:e.gettempSolr3.parammaps.partName,callback:function(t){e.$set(e.gettempSolr3.parammaps,"partName",t)},expression:"gettempSolr3.parammaps.partName"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"30%"},attrs:{"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelect},model:{value:e.gettempSolr3.parammaps.providerName,callback:function(t){e.$set(e.gettempSolr3.parammaps,"providerName",t)},expression:"gettempSolr3.parammaps.providerName"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block",top:"-3px"},attrs:{height:150,width:200,size:"small",clearable:"",data:e.parentDept,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"库存筛选",clearable:""},model:{value:e.gettempSolr3.parammaps.inventoryStatue,callback:function(t){e.$set(e.gettempSolr3.parammaps,"inventoryStatue",t)},expression:"gettempSolr3.parammaps.inventoryStatue"}},e._l(e.inventoryScreening,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.tempSolr3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum3-1)*e.pageSize3+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当前库存","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repertory))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"盘点库存","min-width":"130px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{ref:"checkAmount",attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"checkAmount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.checkAmount,callback:function(a){e.$set(t.row,"checkAmount",a)},expression:"scope.row.checkAmount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"差值","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s((parseFloat(t.row.checkAmount)-parseFloat(t.row.repertory)).toFixed(2)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.partSave(s)}}},[e._v("保存")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tempSolrtotal3>0,expression:"tempSolrtotal3>0"}],attrs:{total:e.tempSolrtotal3,page:e.gettempSolr3.offset,limit:e.gettempSolr3.pagecount},on:{"update:page":function(t){return e.$set(e.gettempSolr3,"offset",t)},"update:limit":function(t){return e.$set(e.gettempSolr3,"pagecount",t)},pagination:e.gettempSolrList3}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("完成盘点")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible3=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("5f87"),c=a("3de8"),d=a("a78e"),u=a.n(d),h={name:"Inventory",components:{Pagination:o["a"],TreeSelect:c["a"]},directives:{waves:n["a"]},data:function(){return{isCustomAdd:[],isCustomImport:[],isCustomUpdate:[],isCustomDelate:[],listType:[],placeholder:"请选择备件类别",isokDisable:!1,disabled:!1,getDeptListParm:{name:"getpart_classList"},parentDept:[],defaultProps:{children:"children",label:"partClassNameCode"},nodeKey:"id",defaultCheckedKeys:[],deptform:{id:"",tempPtypeCode:"",temptypeCode:"",typeName:"",typeCode:"",pid:"",sort:"",enable:""},createTemp:{partClass:"",partCode:"",tempPtypeCode:"",temptypeCode:"",partName:"",specification:"",unit:"",purpose:"",createPerson:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),note:""},tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getBigcheckpartList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{oddCode:"",statue:"",startTime:"",stopTime:"",inputDatetime:"",pastureName:u.a.get("pasturename")}},getdataProvider:{name:"getStockList",page:1,offset:1,pagecount:10,returntype:"Map",params:[]},isLook:!1,isAdd:!1,pageNum:1,pageSize:10,pageNum21:1,pageSize21:10,pageNum22:1,pageSize22:10,pageNum3:1,pageSize3:10,tempSolrtotal:0,gettempSolr:{name:"getPartRepertoryList",page:1,offset:1,pagecount:10,total:0,parammaps:{pastureId:this.$store.state.user.pastureid}},tempSolrtotal2:0,gettempSolr2:{name:"getcheckpartbyBig",page:1,offset:1,pagecount:10,parammaps:{id:"",partCode:"",partName:"",providerName:"",eqClass:""}},tempSolrtotal3:0,gettempSolr3:{name:"getcheckpartbyBig",page:1,offset:1,pagecount:10,parammaps:{id:"",partCode:"",partName:"",providerName:"",eqClass:"",inventoryStatue:""}},inventoryScreening:[{id:1,name:"全部"},{id:2,name:"库存为0"},{id:3,name:"库存不为0"}],tempSolr3:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllStatus:[{id:0,name:"盘点中"},{id:1,name:"已完成"}],findAllDepart:[],findAllEmploye:[],getDictByName:[],findAllCategory:[],requestParams:[{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:u.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid")}},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],temp:{checkDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid},tempSolr:[],dialogFormVisible:!1,dialogFormVisible3:!1,temp3:{employeId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid},dialogStatus:"",textMap:{update:"盘点",see:"查看",create:"新增"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"insertWatersMeasure",importParams:"编号,牧场,表名称,表编号,本次值,上次值,单价,录入人,备注,jwt_username",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:u.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getTypeList()},methods:{get_auto_buttons:function(){var e="customs:custom:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isCustomAdd=t;var a="customs:custom:import",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isCustomImport=s;var i="customs:custom:update",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isCustomUpdate=n;var l="customs:custom:delate",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isCustomDelate=o},popoverHide:function(e,t){console.log(e,t),null!==e?0==t.childrens?(this.deptform.pid=e,console.log(t),null!==e?(this.createTemp.partCode=t.partClassCode,this.createTemp.partClass=t.partClassCode,this.createTemp.partClassNameCode=t.partClassNameCode):this.createTemp.pid=-1,this.getMaxCode()):(this.defaultCheckedKeys=[],this.createTemp.tempPtypeCode="",this.createTemp.temptypeCode="",this.$message({type:"warning",message:"请选择详细备件类别"})):(this.defaultCheckedKeys=[],this.createTemp.partCode="",this.createTemp.partClass="",this.createTemp.partClassNameCode="")},getTypeList:function(){var e=this;this.getDeptListParm.parammaps=this.deptform,Object(r["e"])(this.getDeptListParm).then((function(t){e.listType=t.data,null!==t.data.list&&(e.listType=Object(r["E"])(t.data.list,"id","pid","children"),console.log(e.listType)),e.parentDept=e.listType}))},getMaxCode:function(){var e=this;this.requestParam.name="getPartCode",this.requestParam.parammaps={},this.requestParam.parammaps.partCode=this.createTemp.partCode,Object(r["e"])(this.requestParam).then((function(t){console.log("备件类别选中data",t.data.list),t.data.list.length>0&&(""===t.data.list[0].preCode?e.createTemp.tempPtypeCode=e.deptform.typeCode+".":e.createTemp.tempPtypeCode=t.data.list[0].preCode,e.createTemp.temptypeCode=t.data.list[0].maxcode,e.$nextTick((function(){e.createTemp.partCode=e.createTemp.tempPtypeCode+e.createTemp.temptypeCode,console.log(e.createTemp.partCode),e.$forceUpdate()})),-1===e.requestParam.parammaps.pid&&(e.createTemp.partCode=e.createTemp.tempPtypeCode+e.createTemp.temptypeCode))}))},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e),this.temp3.providerId=e.id,this.temp3.providerName=e.name},get_table_data:function(){var e=this;void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllProvider=t.data.findAllProvider.list,e.getDictByName=t.data.getDictByName.list,e.findAllCategory=t.data.findAllCategory.list}))},form_search:function(){this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},add_dialog_save:function(){var e=this,t={common:{returnmap:"0"},data:[{name:"insertBigcheckpart",type:"e",parammaps:{pastureId:this.$store.state.user.pastureid,oddCode:this.temp.oddCode,checkId:this.temp.employeId,checkDate:this.temp.checkDate,note:this.temp.note}},{name:"insertCheckparts",type:"e",parammaps:{id:"@insertBigcheckpart.LastInsertId",pastureId:this.$store.state.user.pastureid}}]};Object(r["c"])(t).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_reset:function(){this.pageNum21=1,this.pageSize21=10,this.pageNum22=1,this.pageSize22=10,this.pageNum3=1,this.pageSize3=10,this.temp={checkDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,Object(r["e"])({name:"autoCreatCode",parammaps:{pastureId:this.$store.state.user.pastureid,codeType:"PD"}}).then((function(t){console.log(t.data.list[0].orderCode),e.temp.oddCode=t.data.list[0].orderCode,e.$forceUpdate(),e.gettempSolrList()}))},gettempSolrList:function(){var e=this;Object(r["e"])(this.gettempSolr).then((function(t){e.tempSolr=t.data.list,t.data.total&&(e.tempSolrtotal=t.data.total,e.gettempSolr.pageNum=t.data.pageNum,e.gettempSolr.pageSize=t.data.pageSize,e.pageNum21=t.data.pageNum,e.pageSize21=t.data.pageSize),e.isLook=!1,e.isAdd=!0,setTimeout((function(){e.listLoading=!1}),100)})),this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},form_see:function(e){var t=this;this.form_reset(),console.log("row",e),this.temp=Object.assign({},e),this.temp.employeId=e.checkId,this.temp.employeName=e.checkName,this.temp.pastureId=e.pastureId,this.dialogStatus="see",this.dialogFormVisible=!0,this.gettempSolr2.parammaps["id"]=e.id,Object(r["e"])(this.gettempSolr2).then((function(e){t.tempSolr=e.data.list,e.data.total&&(t.tempSolrtotal2=e.data.total),t.isLook=!0,t.isAdd=!1,setTimeout((function(){t.listLoading=!1}),100)})),this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},gettempSolrList2:function(){var e=this;Object(r["e"])(this.gettempSolr2).then((function(t){e.tempSolr=t.data.list,t.data.total&&(e.tempSolrtotal2=t.data.total,e.gettempSolr2.pageNum=t.data.pageNum,e.gettempSolr2.pageSize=t.data.pageSize,e.pageNum22=t.data.pageNum,e.pageSize22=t.data.pageSize),setTimeout((function(){e.listLoading=!1}),100)})),this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},form_searchDelivery:function(){this.gettempSolrList3(),this.gettempSolr3.parammaps.eqClass=this.createTemp.partClass},gettempSolrList3:function(){var e=this;Object(r["e"])(this.gettempSolr3).then((function(t){e.tempSolr3=t.data.list,t.data.total&&(e.tempSolrtotal3=t.data.total,e.gettempSolr3.pageNum=t.data.pageNum,e.gettempSolr3.pageSize=t.data.pageSize,e.pageNum3=t.data.pageNum,e.pageSize3=t.data.pageSize),setTimeout((function(){e.listLoading=!1}),100)}))},form_edit:function(e){var t=this;this.temp3=Object.assign({},e),this.dialogFormVisible3=!0,this.gettempSolr3.parammaps["id"]=e.id,Object(r["e"])(this.gettempSolr3).then((function(e){t.tempSolr3=e.data.list,e.data.total&&(t.tempSolrtotal3=e.data.total),setTimeout((function(){t.listLoading=!1}),100)}))},edit_dialog_save:function(){var e=this;this.$refs["temp3"].validate((function(t){if(t){var a={name:"completeCheckpart",parammaps:{id:e.temp3.id}};Object(r["k"])(a).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible3=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))}))}}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"deleteBigCheckpart",type:"e",parammaps:{id:e.id}},{name:"deleteCheckpart",type:"e",parammaps:{id:e.id}}]};Object(r["c"])(a).then((function(e){"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDownload:function(){var e=this;this.requestParam.name="stockDown",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.stockName=this.getdataListParm.parammaps.stockName,this.requestParam.parammaps.stockNumber=this.getdataListParm.parammaps.stockNumber,Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","物料编号","名称","规格","用途","备件种类","供应商","单位","单价","库存","最低库存","最高库存"],r=["牧场","物料编号","名称","规格","用途","备件种类","供应商","单位","单价","库存","最低库存","最高库存"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件信息",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownloadSee:function(){var e=this;this.$alert("备件盘点正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getcheckpartbyBig",this.downLoadParm.parammaps=this.gettempSolr2.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){if(null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"pastureName",e.temp.pastureName),e.$set(t.data.list[a],"oddCode",e.temp.oddCode),e.$set(t.data.list[a],"employeName",e.temp.employeName),e.$set(t.data.list[a],"checkDate",e.temp.checkDate),e.$set(t.data.list[a],"note",e.temp.note)}var s=[{tHeader:["牧场","盘点单号","备件编号","备件名称","备件规格","品牌","供应商","库位","单价","当前库存","盘点库存","差值","盘点人","盘点日期","盘点原因"],filterVal:["pastureName","oddCode","partCode","partName","specification","brand","providerName","location","price","repertory","checkAmount","checkAmount","employeName","checkDate","note"],tableDatas:t.data.list,sheetName:"备件盘点"}];Object(l["d"])(s,"备件盘点",!0,"xlsx")}))},partSave:function(e){var t=this;console.log(e);var a={name:"updateCheckpart",parammaps:{id:e.id,checkAmount:e.checkAmount}};if(null!==e.checkAmount||""!==e.checkAmount){var s=/^\d+(\.\d{1,2})?$/;if(!s.test(parseFloat(e.checkAmount)))return this.$message({type:"warning",message:"盘点库存请输入非负数并保留2位小数!"}),!1;Object(r["k"])(a).then((function(e){console.log(e),"fail"===e.msg?t.$notify({title:"失败",message:"保存失败-"+e.data,type:"warning",duration:2e3}):t.$notify({title:"成功",message:"成功",type:"success",duration:2e3})}))}else this.$message({type:"warning",message:"请填写盘点库存"})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},9921:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52L52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76L14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol>'});n.a.add(l);t["default"]=l},9936:function(e,t,a){},9950:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备基础信息",use:"icon-设备基础信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备基础信息"><defs><style type="text/css"></style></defs><path d="M813.714286 1022.537143h-603.428572A137.508571 137.508571 0 0 1 73.142857 884.662857V209.554286a137.508571 137.508571 0 0 1 137.142857-137.874286H292.571429v73.142857h-82.285715A64.548571 64.548571 0 0 0 146.285714 209.554286v675.108571a64.548571 64.548571 0 0 0 64 64.731429h603.428572a64.548571 64.548571 0 0 0 64-64.731429V209.554286a64.548571 64.548571 0 0 0-64-64.731429h-85.577143v-73.142857h85.577143a137.508571 137.508571 0 0 1 137.142857 137.874286v675.108571a137.508571 137.508571 0 0 1-137.142857 137.874286z" p-id="3417" /><path d="M694.857143 74.605714v73.142857H329.142857v-73.142857h365.714286m0-73.142857H329.142857a73.142857 73.142857 0 0 0-73.142857 73.142857v73.142857a73.142857 73.142857 0 0 0 73.142857 73.142858h365.714286a73.142857 73.142857 0 0 0 73.142857-73.142858v-73.142857a73.142857 73.142857 0 0 0-73.142857-73.142857zM475.428571 402.285714H256a36.571429 36.571429 0 0 1 0-73.142857h219.428571a36.571429 36.571429 0 0 1 0 73.142857zM768 592.822857H256a36.571429 36.571429 0 0 1 0-73.142857h512a36.571429 36.571429 0 0 1 0 73.142857zM768 783.908571H256a36.571429 36.571429 0 0 1 0-73.142857h512a36.571429 36.571429 0 0 1 0 73.142857z" p-id="3418" /></symbol>'});n.a.add(l);t["default"]=l},9956:function(e,t,a){"use strict";a("d404")},"99aa":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.parammaps,"pastureName",t)},expression:"tableObj.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj.parammaps.departName,callback:function(t){e.$set(e.tableObj.parammaps,"departName",t)},expression:"tableObj.parammaps.departName"}},e._l(e.departList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tableObj.parammaps.date,callback:function(t){e.$set(e.tableObj.parammaps,"date",t)},expression:"tableObj.parammaps.date"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.form_export}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天汽油用量","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remarks))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.see_record(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.tableObj.offset,limit:e.tableObj.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules1,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.departList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.temp.departmentName,callback:function(t){e.$set(e.temp,"departmentName",t)},expression:"temp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前汽油用量:",prop:"dosage"}},[a("el-input",{ref:"dosage",model:{value:e.temp.dosage,callback:function(t){e.$set(e.temp,"dosage",t)},expression:"temp.dosage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.temp.price,callback:function(t){e.$set(e.temp,"price",t)},expression:"temp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前费用:",prop:"expense"}},[a("el-input",{ref:"expense",model:{value:e.temp.expense,callback:function(t){e.$set(e.temp,"expense",t)},expression:"temp.expense"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"记录人:",prop:"inputid"}},[a("el-select",{ref:"inputid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"记录人"},on:{change:e.change_emp},model:{value:e.temp.inputid,callback:function(t){e.$set(e.temp,"inputid",t)},expression:"temp.inputid "}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"记录人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.temp.empname,callback:function(t){e.$set(e.temp,"empname",t)},expression:"temp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[a("el-input",{ref:"remarks",model:{value:e.temp.remarks,callback:function(t){e.$set(e.temp,"remarks",t)},expression:"temp.remarks"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"用量记录",visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("牧场:"+e._s(e.dosageRecordTemp.pastureName))]),e._v(" "),a("span",[e._v("部门:"+e._s(e.dosageRecordTemp.departmentName))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",prop:"dosage","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"expense",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.get_record_list}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules2,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_delete_sure()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("ade3")),n=a("2934"),l=a("6724"),o=a("ed08"),p=a("333d"),m=(a("5c96"),a("5f87")),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"GasolineConsum",components:{Pagination:p["a"]},directives:{waves:l["a"]},data:function(){var e;return{isokDisable:!1,isElecAdd:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},tableObj:{name:"getGasoline",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadObj:{name:"getGasoline",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:d.a.get("pasturename"),departName:"",date:""}},downLoadList:[],useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],pastureList:[],departList1:[],departList2:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",departName:"",dosage:"",price:"",expense:"",remarks:"",empname:"",date:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputid:this.$store.state.user.employeid,departmentId:"",pastureId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getGasolineList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{departmentId:""}},dosageRecordTemp:{},rules1:(e={pastureId:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],dosage:[{required:!0,message:"必填",trigger:"blur"}],price:[{required:!0,message:"必填",trigger:"blur"}]},Object(r["a"])(e,"departmentId",[{required:!0,message:"必填",trigger:"blur"}]),Object(r["a"])(e,"expense",[{required:!0,message:"必填",trigger:"blur"}]),e),rules2:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importGasoline",importParams:"牧场,部门,当天汽油用量,单价,当天费用,记录人,日期,备注",sheetname:"汽油用量"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(o["f"])(e,this.list)},tableSort2:function(e){Object(o["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:gasoline:add",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="cost:gasoline:export",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isElecExport=s;var i="cost:gasoline:import",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isElecImport=r;var l="cost:gasoline:modify",o=Object(n["v"])(this.$store.state.user.buttons,l);this.isElecModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},form_export:function(){var e=this;this.downLoadObj.parammaps=this.tableObj.parammaps,Object(n["e"])(this.downLoadObj).then((function(t){null!==t.data.list?e.downLoadList=t.data.list:e.downLoadList=[];var a=[{tHeader:["牧场","部门","当天汽油用量","单价","当天费用","记录人","日期","备注"],filterVal:["pastureName","departmentName","dosage","price","expense","empname","date","remarks"],tableDatas:e.downLoadList,sheetName:"汽油用量"}];Object(o["d"])(a,"汽油用量",!0,"xlsx")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(o["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","部门","当天汽油用量","单价","当天费用","记录人","日期","备注","错误信息"],r=["牧场","部门","当天汽油用量","单价","当天费用","记录人","日期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;"现代牧业"==this.tableObj.parammaps.pastureName&&(this.tableObj.parammaps.pastureName=""),this.listLoading=!0,Object(n["e"])(this.tableObj).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.pastureList=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.get_departList1(),e.get_departList2()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureList.find((function(t){return t.name==e})).id,this.tableObj.parammaps.departName="",this.get_departList1()},get_departList1:function(){var e=this;Object(n["e"])(this.getDepartParam1).then((function(t){e.departList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.temp.departmentId="",this.get_departList2()},get_departList2:function(){var e=this;Object(n["e"])(this.getDepartParam2).then((function(t){e.departList2=t.data.list}))},form_search:function(){this.listLoading=!0,this.tableObj.offset=1,null==this.tableObj.parammaps.date&&(this.tableObj.parammaps.date=""),this.get_table_data()},change_emp:function(e){console.log("记录人",e),this.$set(this.temp,"inputid",e),this.$forceUpdate()},form_reset:function(){this.temp.pastureName="",this.temp.departName="",this.temp.dosage="",this.temp.price="",this.temp.expense="",this.temp.remarks="",this.temp.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.temp.empname="",this.temp.inputid=this.$store.state.user.employeid,this.temp.departmentId="",this.temp.pastureId=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log("this.temp=====>",this.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertGasoline",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertGasoline",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){var t=this;console.log("row=======",e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a={name:"updateGasoline",offset:0,pagecount:0,parammaps:e.temp};Object(n["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},form_delete_sure:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){if(t){var a={name:"delGasoline",offset:0,pagecount:0,parammaps:{date:e.deleteTemp.startTime}};Object(n["k"])(a).then((function(t){"fail"==t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())}))}}))},see_record:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),console.log("row=========see_record",e),this.get_record_list()},get_record_list:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.departmentId=this.dosageRecordTemp.departmentId,Object(n["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},"99c1":function(e,t,a){},"9a0f":function(e,t,a){"use strict";a("947b")},"9a92":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),e._v(" "),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),e._v(" "),a("label",{attrs:{for:"toggle-all"}}),e._v(" "),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,s){return a("todo",{key:s,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),e._v(" "),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v("\n "+e._s(e._f("pluralize")(e.remaining,"item"))+" left\n ")]),e._v(" "),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,s){return a("li",{key:s},[a("a",{class:{selected:e.visibility===s},on:{click:function(t){t.preventDefault(),e.visibility=s}}},[e._v(e._s(e._f("capitalize")(s)))])])})),0)])])},i=[],r=(a("ac6a"),a("b762")),n="todos",l={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},o=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],p={components:{Todo:r["default"]},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:l,todos:o}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return l[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(n,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},m=p,c=(a("d335"),a("2877")),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},"9aa1":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-shezhi",use:"icon-shezhi-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-shezhi"><defs><style type="text/css"></style></defs><path d="M933.888 512c0-59.904 37.376-110.592 90.112-131.072-12.8-49.152-31.744-95.744-57.344-138.752-51.712 23.04-114.176 13.824-156.16-28.672-42.496-42.496-51.712-104.96-28.672-156.16-43.008-25.6-89.6-45.056-138.752-57.344-20.48 52.736-71.168 90.112-131.072 90.112-59.904 0-110.592-37.376-131.072-90.112-49.152 12.8-95.744 31.744-138.752 57.344 23.04 51.712 13.824 114.176-28.672 156.16s-104.96 51.712-156.16 28.672C31.744 285.184 12.8 331.776 0 380.928c52.736 20.48 90.112 71.168 90.112 131.072 0 59.904-37.376 110.592-90.112 131.072 12.8 49.152 31.744 95.744 57.344 138.752 51.712-23.04 114.176-13.824 156.16 28.672 42.496 42.496 51.712 104.96 28.672 156.16 43.008 25.6 89.6 45.056 138.752 57.344 20.48-52.736 71.168-90.112 131.072-90.112 59.904 0 110.592 37.376 131.072 90.112 49.152-12.8 95.744-31.744 138.752-57.344-23.04-51.712-13.824-114.176 28.672-156.16s104.96-51.712 156.16-28.672c25.6-42.496 45.056-89.088 57.344-138.752-52.736-20.48-90.112-71.168-90.112-131.072zM512 652.8c-77.824 0-140.8-62.976-140.8-140.8S434.176 371.2 512 371.2s140.8 62.976 140.8 140.8-62.976 140.8-140.8 140.8z" fill="#2C2C2C" p-id="1981" /></symbol>'});n.a.add(l);t["default"]=l},"9ae9":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-系统管理",use:"icon-系统管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-系统管理"><defs><style type="text/css"></style></defs><path d="M977.92 394.24c20.48-20.48 25.6-51.2 15.36-76.8-20.48-40.96-40.96-81.92-71.68-117.76-15.36-20.48-46.08-30.72-76.8-25.6-40.96 10.24-87.04 5.12-122.88-20.48-35.84-20.48-66.56-56.32-76.8-97.28-10.24-25.6-30.72-46.08-61.44-51.2-46.08-5.12-97.28-5.12-143.36 0-30.72 5.12-51.2 25.6-61.44 51.2-10.24 40.96-40.96 76.8-76.8 97.28-35.84 20.48-81.92 25.6-122.88 20.48-30.72-10.24-56.32 0-76.8 25.6-30.72 35.84-51.2 76.8-71.68 117.76-10.24 25.6-5.12 56.32 15.36 76.8 61.44 66.56 61.44 163.84 0 230.4-20.48 20.48-25.6 51.2-15.36 76.8 20.48 46.08 40.96 87.04 71.68 122.88 15.36 20.48 46.08 30.72 76.8 25.6 87.04-20.48 174.08 30.72 204.8 117.76 10.24 25.6 30.72 46.08 61.44 51.2 20.48 5.12 40.96 5.12 66.56 5.12s46.08 0 71.68-5.12c30.72-5.12 51.2-25.6 61.44-51.2 15.36-40.96 40.96-76.8 76.8-97.28 35.84-20.48 81.92-25.6 122.88-20.48 25.6 5.12 56.32-5.12 76.8-25.6 30.72-35.84 51.2-76.8 71.68-122.88 10.24-25.6 5.12-56.32-15.36-76.8-61.44-61.44-61.44-163.84 0-230.4zM512 706.56c-107.52 0-199.68-87.04-199.68-194.56 0-107.52 87.04-194.56 199.68-194.56 107.52 0 199.68 87.04 199.68 194.56 0 107.52-92.16 194.56-199.68 194.56z" p-id="19949" /></symbol>'});n.a.add(l);t["default"]=l},"9b48":function(e,t,a){"use strict";a("139b")},"9b6c":function(e,t,a){"use strict";a("936c")},"9c0c":function(e,t,a){},"9c11":function(e,t,a){"use strict";var s=a("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_resizeHandler:function(){var e=this;return Object(s["a"])((function(){e.chart&&e.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"9c3a":function(e,t,a){"use strict";a("1072")},"9c53":function(e,t,a){"use strict";a("26c5")},"9c6a":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-员工",use:"icon-员工-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-员工"><defs><style type="text/css"></style></defs><path d="M592.724675 216.520008A216.803315 216.803315 0 0 1 375.466249 433.038879a216.860203 216.860203 0 0 1-217.258425-216.518871A216.860203 216.860203 0 0 1 375.580027 0.001138a216.803315 216.803315 0 0 1 217.144648 216.51887zM1023.998862 881.322825c0 45.226616-32.654186 81.806131-86.755459 80.782133-27.13597-0.170666-68.835479 3.640885-93.297674-0.96711-49.948389-9.443545-19.228423-81.919909-31.288854-142.165176-29.695967-146.716281-161.678043-242.346397-195.185561-262.371264 0 0 44.259506-46.762615 130.275411-30.321744-10.012433-1.93422 20.195533 4.607995 31.516409 7.566214 140.515399 40.789288 244.735728 207.644214 244.735728 347.533836z m-273.919695 61.04171c-0.284444 40.846177-15.928871 81.40791-77.482581 81.40791-138.694957-0.170666-527.814525 0.568888-594.88645 0C2.44622 1023.146668 0 981.504047 0 942.421424c0-188.586457 114.34654-357.489381 267.832591-406.015549 0 0 38.115513-13.482652 107.235437-13.653318 70.143922-0.113778 103.765218 13.653318 103.765218 13.653318 153.599829 48.526168 272.952586 219.192645 271.245921 405.95866z m-166.115371-488.675012c-84.707461-58.311046 26.62397-12.913763 58.140379-179.370468 8.078213-42.666619 8.533324-98.133224-2.161775-137.670958-8.24888-30.776855-14.677317-58.993712 37.262181-47.559058 103.19633 22.869308 172.373142 118.328757 152.974052 220.614866-12.174209 64.170595-81.294132 155.306494-175.786471 159.288712-18.090647 0.796444-55.182161-4.83555-70.428366-15.359983v0.056889z" p-id="16224" /></symbol>'});n.a.add(l);t["default"]=l},"9cac":function(e,t,a){"use strict";a("9d0d")},"9d0d":function(e,t,a){},"9d4b":function(e,t,a){},"9d64":function(e,t,a){e.exports=a.p+"static/img/logo.4a74cb8a.png"},"9d68":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-牧场管理",use:"icon-牧场管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牧场管理"><defs><style type="text/css"></style></defs><path d="M540.882051 496.246154H774.564103c30.457436 0 55.138462 24.681026 55.138461 55.138461v78.769231H932.102564a78.769231 78.769231 0 0 1 78.769231 78.769231v236.307692a78.769231 78.769231 0 0 1-78.769231 78.769231H669.538462a78.769231 78.769231 0 0 1-78.769231-78.769231v-236.307692a78.769231 78.769231 0 0 1 78.769231-78.769231h102.4v-76.14359H252.061538V630.153846H354.461538a78.769231 78.769231 0 0 1 78.769231 78.769231v236.307692a78.769231 78.769231 0 0 1-78.769231 78.769231H91.897436a78.769231 78.769231 0 0 1-78.769231-78.769231v-236.307692a78.769231 78.769231 0 0 1 78.769231-78.769231h102.4v-78.769231c0-30.457436 24.681026-55.138462 55.138461-55.138461h233.682052V393.846154H380.717949a78.769231 78.769231 0 0 1-78.769231-78.769231V78.769231a78.769231 78.769231 0 0 1 78.769231-78.769231h262.564102a78.769231 78.769231 0 0 1 78.769231 78.769231v236.307692a78.769231 78.769231 0 0 1-78.769231 78.769231h-102.4v102.4zM380.717949 57.764103a21.005128 21.005128 0 0 0-21.005128 21.005128v236.307692a21.005128 21.005128 0 0 0 21.005128 21.005128h262.564102a21.005128 21.005128 0 0 0 21.005128-21.005128V78.769231a21.005128 21.005128 0 0 0-21.005128-21.005128H380.717949z m-288.820513 630.153846a21.005128 21.005128 0 0 0-21.005128 21.005128v236.307692a21.005128 21.005128 0 0 0 21.005128 21.005128h262.564102a21.005128 21.005128 0 0 0 21.005129-21.005128v-236.307692a21.005128 21.005128 0 0 0-21.005129-21.005128H91.897436z m577.641026 0a21.005128 21.005128 0 0 0-21.005129 21.005128v236.307692a21.005128 21.005128 0 0 0 21.005129 21.005128h262.564102a21.005128 21.005128 0 0 0 21.005128-21.005128v-236.307692a21.005128 21.005128 0 0 0-21.005128-21.005128H669.538462z" p-id="3542" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},"9da1":function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-天然气表录入",use:"icon-天然气表录入-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-天然气表录入"><defs><style type="text/css"></style></defs><path d="M802.769116 842.216025c157.148304-175.007034-19.180021-336.630676-39.851822-468.759709-39.468221 21.566868-71.989011 66.575983-84.136357 110.306431-14.363704-181.229886-164.308845-205.055734-121.345599-352.059937-104.211446 60.949844-250.022227 159.535151-234.806077 403.334526-2.173736-57.369573-66.192383-43.346847-77.103683-127.39796-116.955505 158.725328-109.453985 301.38206-30.091322 434.576649h136.178148c-97.775484-184.980645 184.938023-242.861686 124.499646-370.046535 55.835172 32.606035 133.833923 85.372404 125.69307 215.924412 15.429261-30.304433 34.396171-37.678085 41.300978-68.238252 59.585931 80.897066 58.81873 154.036878 21.950468 222.360375h137.71255z" fill="" p-id="9648" /></symbol>'});n.a.add(l);t["default"]=l},"9dd7":function(e,t,a){"use strict";a("a3c4")},"9dde":function(e,t,a){"use strict";a("404d")},"9df0":function(e,t,a){"use strict";a("40b7")},"9ed6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-container"},[s("img",{staticClass:"logo",attrs:{src:a("9d64"),alt:""}}),e._v(" "),s("img",{staticClass:"bujian",attrs:{src:a("b1b3"),alt:""}}),e._v(" "),s("div",{staticClass:"login"},[s("div",{staticClass:"logo"}),e._v(" "),s("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[s("div",{staticClass:"title-container"},[s("h3",{staticClass:"title"},[e._v("设备管理系统")]),e._v(" "),s("b",[e._v("Equipment Management System")]),e._v(" "),s("hr")]),e._v(" "),s("el-form-item",{attrs:{prop:"username"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),s("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"password"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),s("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),s("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[s("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),s("el-button",{staticStyle:{width:"100%","margin-bottom":"30px",background:"#009688"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1)],1)])},i=[],r=a("61f7"),n={name:"Login",data:function(){var e=function(e,t,a){Object(r["c"])(t)?a():a(new Error("请输入正确的用户名"))},t=function(e,t,a){t.length<6?a(new Error("密码不能少于6个字符")):a()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},created:function(){var e=this;document.onkeydown=function(t){t=window.event||t,"/login"!=e.$route.path||"Enter"!=t.code&&"Num Enter"!=t.code||e.handleLogin("ruleForm2")}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/"}),e.loading=!1})).catch((function(){e.loading=!1}))}))}}},l=n,o=(a("7202"),a("8f83"),a("2877")),p=Object(o["a"])(l,s,i,!1,null,"6738518c",null);t["default"]=p.exports},"9ee3":function(e,t,a){"use strict";a("d6a1")},"9f53":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",{staticClass:"el-main"},[a("div",{staticClass:"module-item",attrs:{slot:"content"},slot:"content"},[a("el-item-group",{attrs:{item:e.view.item,label:e.view.label,value:e.view.value,extend:e.view.extend}},[a("el-button",{attrs:{slot:"btns",type:"primary"},on:{click:e.post},slot:"btns"},[e._v(e._s(e.view.item.submitLabel||"提交"))])],1)],1)])},i=[],r=a("5af4"),n=a("b11e"),l=a("a328"),o={components:{Pannel:r["default"],ElItemGroup:n["default"]},extends:l["default"],methods:{post:function(){console.log(this.view.value),this.$root.$HttpPost(this.view.url,this.view.value)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"9f84":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},"9f9f":function(e,t,a){},a02d:function(e,t,a){"use strict";a("e17f")},a04a:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"partCode",t)},expression:"getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.getdataListParm.parammaps,"partName",t)},expression:"getdataListParm.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"清单类型"},model:{value:e.getdataListParm.parammaps.listType,callback:function(t){e.$set(e.getdataListParm.parammaps,"listType",t)},expression:"getdataListParm.parammaps.listType"}},e._l(e.findAllListType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.findAllStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"清单编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"清单类型","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0==t.row.listType?"维修":"保养"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联设备名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量",sortable:"",prop:"amount","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.statue?a("span",[e._v("未处理")]):e._e(),e._v(" "),1==t.row.statue?a("span",[e._v("已卖掉")]):e._e(),e._v(" "),2==t.row.statue?a("span",[e._v("已销毁")]):e._e(),e._v(" "),3==t.row.statue?a("span",[e._v("已修复")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理价格",sortable:"",prop:"saleSum","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.saleSum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理日期",sortable:"",prop:"handleDate","min-width":"90px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),0==s.statue?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDestruction(s)}}},[e._v("处理")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:"旧品处理",visible:e.dialogFormVisibleDestruction,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisibleDestruction=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px"},attrs:{model:e.temp,"label-position":"right","label-width":"100px",rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{width:"400px"},attrs:{label:"处理方式:",prop:"radio"}},[a("el-radio-group",{model:{value:e.isOrNo,callback:function(t){e.isOrNo=t},expression:"isOrNo"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.isOrNo,callback:function(t){e.isOrNo=t},expression:"isOrNo"}},[e._v("销毁")]),e._v(" "),a("el-radio",{attrs:{label:"1"},model:{value:e.isOrNo,callback:function(t){e.isOrNo=t},expression:"isOrNo"}},[e._v("卖掉")]),e._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:e.isOrNo,callback:function(t){e.isOrNo=t},expression:"isOrNo"}},[e._v("修复")])],1)],1)],1)],1),e._v(" "),1==e.isOrNo?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"卖出总价:",prop:"saleSum"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"卖出总价"},model:{value:e.temp.saleSum,callback:function(t){e.$set(e.temp,"saleSum",t)},expression:"temp.saleSum"}})],1)],1)],1):e._e(),e._v(" "),2==e.isOrNo?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"修复价格:",prop:"saleSum"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"修复价格"},model:{value:e.temp.saleSum,callback:function(t){e.$set(e.temp,"saleSum",t)},expression:"temp.saleSum"}})],1)],1)],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"处理人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"处理人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"处理日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_saveDestruction()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleDestruction=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看详情",visible:e.dialogFormVisibleCard,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"rowSeeData",staticStyle:{width:"100%",margin:"0 auto"},attrs:{model:e.rowSeeData,"label-position":"right","label-width":"120px"}},[a("div",{staticClass:"filter-container"},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"清单编号:",prop:"repairCode"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.repairCode,callback:function(t){e.$set(e.rowSeeData,"repairCode",t)},expression:"rowSeeData.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"清单类型:",prop:"listType"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:0==e.rowSeeData.listType?"维修":"保养",callback:function(t){e.$set(e.rowSeeData,"listType == 0 ? '维修':'保养'",t)},expression:"rowSeeData.listType == 0 ? '维修':'保养' "}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.pastureName,callback:function(t){e.$set(e.rowSeeData,"pastureName",t)},expression:"rowSeeData.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"departName"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.departName,callback:function(t){e.$set(e.rowSeeData,"departName",t)},expression:"rowSeeData.departName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备件编号:",prop:"partCode"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.partCode,callback:function(t){e.$set(e.rowSeeData,"partCode",t)},expression:"rowSeeData.partCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备件名称:",prop:"partName"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.partName,callback:function(t){e.$set(e.rowSeeData,"partName",t)},expression:"rowSeeData.partName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备件规格:",prop:"specification"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.specification,callback:function(t){e.$set(e.rowSeeData,"specification",t)},expression:"rowSeeData.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"关联设备名称:",prop:"eqName"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.eqName,callback:function(t){e.$set(e.rowSeeData,"eqName",t)},expression:"rowSeeData.eqName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.eqCode,callback:function(t){e.$set(e.rowSeeData,"eqCode",t)},expression:"rowSeeData.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"数量:",prop:"amount"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.amount,callback:function(t){e.$set(e.rowSeeData,"amount",t)},expression:"rowSeeData.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"处理状态:",prop:"statue"}},[0==e.rowSeeData.statue?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{value:"未处理",placeholder:"",disabled:""}}):e._e(),e._v(" "),1==e.rowSeeData.statue?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{value:"已卖掉",placeholder:"",disabled:""}}):e._e(),e._v(" "),2==e.rowSeeData.statue?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{value:"已销毁",placeholder:"",disabled:""}}):e._e(),e._v(" "),3==e.rowSeeData.statue?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{value:"已修复",placeholder:"",disabled:""}}):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[1==e.rowSeeData.statue?a("el-form-item",{attrs:{label:"卖出总价:",prop:"saleSum"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.saleSum,callback:function(t){e.$set(e.rowSeeData,"saleSum",t)},expression:"rowSeeData.saleSum"}})],1):e._e(),e._v(" "),3==e.rowSeeData.statue?a("el-form-item",{attrs:{label:"修复总价:",prop:"saleSum"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.saleSum,callback:function(t){e.$set(e.rowSeeData,"saleSum",t)},expression:"rowSeeData.saleSum"}})],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"处理日期:",prop:"handleDate"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.handleDate,callback:function(t){e.$set(e.rowSeeData,"handleDate",t)},expression:"rowSeeData.handleDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"处理人:",prop:"handlerName"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.rowSeeData.handlerName,callback:function(t){e.$set(e.rowSeeData,"handlerName",t)},expression:"rowSeeData.handlerName"}})],1)],1)],1)],1)]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("a78e"),m=a.n(p),c={name:"Refuse",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isOld:[],isOrNo:"0",tableKey:0,list:null,total:0,listLoading:!0,state1:"",radio:"",requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getRefuseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:new Date,pastureName:m.a.get("pasturename"),partCode:"",partName:"",listType:"",statue:"",startTime:"",stopTime:""}},findAllListType:[{id:0,name:"维修"},{id:1,name:"保养"}],findAllStatus:[{id:0,name:"未处理"},{id:1,name:"已卖掉"},{id:2,name:"已销毁"},{id:3,name:"已修复"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["旧品状态"]}],temp:{date:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisibleDestruction:!1,dialogStatusDestruction:"",dialogPvVisible:!1,rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dialogFormVisibleCard:!1,rowSeeData:{},buttons:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},get_auto_buttons:function(){var e="customs:receive:old",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isOld=t},changeStorageType:function(e){console.log(e)},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}")}},form_see:function(e){console.log(e),this.rowSeeData=Object.assign({},e),this.dialogFormVisibleCard=!0},handleDestruction:function(e){this.temp.id=e.id,this.dialogFormVisibleDestruction=!0},edit_dialog_saveDestruction:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(console.log(e.temp),0==e.isOrNo?e.$confirm("是否销毁?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){var t={name:"handleRefuseXH",parammaps:{id:e.temp.id,empId:e.temp.employeId,handleDate:e.temp.date}};Object(r["k"])(t).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleDestruction=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}))}))})).catch((function(){e.$message({type:"info",message:"已取消"})})):1==e.isOrNo?(console.log(e.temp.saleSum),""==e.temp.saleSum||void 0==e.temp.saleSum?e.$message("未输入价格!"):e.$confirm("是否卖掉?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){var t={name:"handleRefuseMC",parammaps:{id:e.temp.id,saleSum:e.temp.saleSum,empId:e.temp.employeId,handleDate:e.temp.date}};Object(r["k"])(t).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleDestruction=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}))}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))):2==e.isOrNo&&(""==e.temp.saleSum||void 0==e.temp.saleSum?e.$message("未输入价格!"):e.$confirm("是否修复?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){var t={name:"handleRefuseXF",parammaps:{id:e.temp.id,saleSum:e.temp.saleSum,empId:e.temp.employeId,handleDate:e.temp.date}};Object(r["k"])(t).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisibleDestruction=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}))}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},a07a:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备调拨",use:"icon-设备调拨-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备调拨"><defs><style type="text/css"></style></defs><path d="M832 469.76a21.333333 21.333333 0 0 1-21.333333-21.333333V263.168A49.92 49.92 0 0 0 760.789333 213.333333h-78.592v63.530667c0 11.818667-9.514667 21.333333-21.333333 21.333333h-298.666667a21.333333 21.333333 0 0 1-21.333333-21.333333V213.333333H263.168A49.92 49.92 0 0 0 213.333333 263.168v497.621333A49.92 49.92 0 0 0 263.168 810.666667h497.621333A49.92 49.92 0 0 0 810.666667 760.789333V576.426667a21.333333 21.333333 0 1 1 42.666666 0v184.362666A92.629333 92.629333 0 0 1 760.789333 853.333333H263.168A92.629333 92.629333 0 0 1 170.666667 760.789333V263.168C170.666667 212.181333 212.181333 170.666667 263.168 170.666667h497.621333C811.818667 170.666667 853.333333 212.181333 853.333333 263.168v185.258667a21.333333 21.333333 0 0 1-21.333333 21.333333zM383.530667 255.530667h256V213.333333h-256v42.197334z" p-id="2875" fill="#ffffff" /><path d="M358.229333 533.717333a21.333333 21.333333 0 0 0 26.709334-14.037333 132.266667 132.266667 0 0 1 126.976-93.354667c58.453333 0 109.525333 37.461333 126.976 93.226667a20.864 20.864 0 0 0 5.674666 8.746667l0.810667 0.597333a19.968 19.968 0 0 0 5.248 3.584c1.28 0.597333 2.688 0.853333 4.053333 1.194667 1.109333 0.256 2.133333 0.597333 3.2 0.682666 0.682667 0 1.28 0.341333 1.877334 0.341334 2.090667 0 3.968-0.597333 5.802666-1.152h0.085334a21.034667 21.034667 0 0 0 15.445333-20.181334V401.322667a21.333333 21.333333 0 1 0-42.666667 0v36.181333A174.805333 174.805333 0 0 0 512 383.658667a174.805333 174.805333 0 0 0-167.765333 123.306666 21.333333 21.333333 0 0 0 14.08 26.752M340.906667 713.6a21.333333 21.333333 0 0 0 42.666666 0v-34.858667a176.042667 176.042667 0 0 0 128.341334 56.192 175.786667 175.786667 0 0 0 169.514666-129.621333 21.248 21.248 0 1 0-41.130666-11.178667 133.162667 133.162667 0 0 1-128.384 98.133334A133.546667 133.546667 0 0 1 384 595.84a21.077333 21.077333 0 0 0-13.482667-13.952 21.034667 21.034667 0 0 0-6.357333-1.28c-0.682667-0.042667-1.28-0.426667-1.962667-0.426667a21.333333 21.333333 0 0 0-21.333333 21.333334v112.085333z" p-id="2876" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},a18c:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return p}));var s=a("2b0e"),i=a("8c4f"),r=a("c1f7");s["default"].use(i["a"]);var n=[{path:"/login",component:function(){return Promise.resolve().then(a.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return Promise.resolve().then(a.bind(null,"8cdb"))},hidden:!0},{path:"/",component:r["a"],redirect:"/dashboard",children:[{path:"dashboard",name:"Dashboard",component:function(){return Promise.resolve().then(a.bind(null,"9406"))},meta:{title:"首页",icon:"首页",affix:!0}}]}],l=(r["a"],r["a"],function(){return new i["a"]({scrollBehavior:function(){return{y:0}},routes:n})}),o=l();function p(){var e=l();o.matcher=e.matcher}t["b"]=o},a230:function(e,t,a){"use strict";a("da7c")},a270:function(e,t,a){"use strict";a("aa2f")},a299:function(e,t,a){},a2b5:function(e,t,a){"use strict";a.r(t);var s=a("e03b"),i=a.n(s);for(var r in s)"default"!==r&&function(e){a.d(t,e,(function(){return s[e]}))}(r);t["default"]=i.a},a313:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),e.List1?a("div",[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-select",{ref:"statue",staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{clearable:"",multiple:""},model:{value:e.judgetypeARR,callback:function(t){e.judgetypeARR=t},expression:"judgetypeARR"}},e._l(e.getAssessmentList,(function(e){return a("el-option",{key:e.statue,attrs:{label:e.statue,value:e.statue}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"评估人",clearable:""},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("评估")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"warning"},on:{click:e.handleInspectionStandard}},[e._v("检查标准管理")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"评估时间","min-width":"130px",align:"center",sortable:"",prop:"batime"}}),e._v(" "),a("el-table-column",{attrs:{label:"评估人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}],null,!1,484002009)}),e._v(" "),a("el-table-column",{attrs:{label:"评估分数","min-width":"120px",align:"center",sortable:"",prop:"scores"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,159467832)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"===e.dialogStatus},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估日期:",prop:"batime"}},[a("el-date-picker",{staticStyle:{top:"-3px",width:"100%"},attrs:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.batime,callback:function(t){e.$set(e.createTemp,"batime",t)},expression:"createTemp.batime"}})],1)],1)],1),e._v(" "),"assessment"===e.dialogStatus?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检查类别:",prop:"createTemp.statue"}},[a("el-select",{ref:"statue",staticClass:"filter-item",staticStyle:{width:"100%"},on:{change:e.changeStatue},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}},e._l(e.list2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.statue,value:e.id}})})),1)],1)],1)],1):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAdd,expression:"listLoadingAdd"}],key:e.tableKeyAdd,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.judgetype))])]}}],null,!1,1593826471)}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"检查结果","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"检查结果"},model:{value:t.row.score,callback:function(a){e.$set(t.row,"score",a)},expression:"scope.row.score"}},e._l(e.inspectionResultsList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)]}}],null,!1,32981736)}),e._v(" "),a("el-table-column",{attrs:{label:"问题描述","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{staticStyle:{width:"90%",height:"25px"},attrs:{autosize:"",type:"textarea"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,3728575190)}),e._v(" "),a("el-table-column",{attrs:{label:"问题照片",width:"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-upload",{ref:"upload",class:{hide:s.showUpload},attrs:{id:"uploadPic",limit:3,"list-type":"picture-card","file-list":s.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a,s)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a,s)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])]}}],null,!1,3811197778)})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["assessment"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_saveAdd()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估人:",prop:"empName"}},[a("el-input",{ref:"empName",model:{value:e.seeTemp.empName,callback:function(t){e.$set(e.seeTemp,"empName",t)},expression:"seeTemp.empName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"评估日期:",prop:"batime"}},[a("el-input",{ref:"batime",model:{value:e.seeTemp.batime,callback:function(t){e.$set(e.seeTemp,"batime",t)},expression:"seeTemp.batime"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKeySee,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSee-1)*e.pageSizeSee+1))])]}}],null,!1,1273495597)}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.judgetype))])]}}],null,!1,1593826471)}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"检查结果","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score))])]}}],null,!1,4082093486)}),e._v(" "),a("el-table-column",{attrs:{label:"问题描述","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)}),e._v(" "),a("el-table-column",{attrs:{label:"问题照片","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-upload",{ref:"upload",class:{hide:s.showUpload},attrs:{id:"uploadPicSee","list-type":"picture-card","file-list":s.fileList,action:e.uploadImageUrl,"on-preview":e.handlePicPreview}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])]}}],null,!1,2140629950)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownloadSee}},[e._v("导出")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)])],1):e._e(),e._v(" "),e.List2?a("div",[a("div",{staticClass:"title2"},[a("b",{staticClass:"title2-l"},[e._v("检查标准管理")]),e._v(" "),a("a",{staticClass:"title2-r",on:{click:e.goBack}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add2}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp2}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers2,data:e.uploadData2,action:e.uploadExcelUrl2,"show-file-list":!1,"before-upload":e.beforeImportExcel2,"on-success":e.handleImportExcelSuccess2}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}],null,!1,1138521997)}),e._v(" "),a("el-table-column",{attrs:{label:"检查类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}],null,!1,4080412356)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_see2(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit2(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete2(s)}}},[e._v("删除")])]}}],null,!1,2845493957)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"检查类别:",prop:"statue"}},[a("el-input",{attrs:{placeholder:"请输入检查类别",disabled:"see"==e.dialogStatus},model:{value:e.createTemp.statue,callback:function(t){e.$set(e.createTemp,"statue",t)},expression:"createTemp.statue"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleAddStandard}},[e._v("添加标准")]):e._e()],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading3,expression:"listLoading3"}],key:e.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:e.list3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"检查标准","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"statue"}},[a("el-input",{staticStyle:{width:"90%",height:"25px"},attrs:{autosize:"",type:"textarea",disabled:"see"==e.dialogStatus},model:{value:t.row.statue,callback:function(a){e.$set(t.row,"statue",a)},expression:"scope.row.statue"}})],1)],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.statue))]):e._e()]}}],null,!1,1603489370)}),e._v(" "),"update"===e.dialogStatus||"create"===e.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete3(s)}}},[e._v("删除")])]}}],null,!1,1063117506)}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["update"===e.dialogStatus||"create"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save2():e.edit_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data2()}}},[e._v("取消并关闭")])],1)],1)])],1):e._e()])},i=[],r=(a("28a5"),a("7514"),a("2934")),n=a("6724"),l=a("a78e"),o=a.n(l),p=a("333d"),m=a("5c96"),c=a("ed08"),d=a("5f87"),u=a("6988"),h={name:"Assessment",components:{Pagination:p["a"]},directives:{waves:n["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],findAllEmploye:[],inspectionResultsList:[{id:1,name:1},{id:2,name:2},{id:3,name:3},{id:4,name:4},{id:5,name:5}],requestParams:[{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"getAssessmentList",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],isokDisable:!1,List1:!0,List2:!1,getAssessmentList:[],rules:{statue:[{required:!0,message:"必填",trigger:"blur"}]},dialogFormVisibleAdd:!1,getdataListParm:{name:"getbigjudgeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),judgetype:"",empName:"",startTime:"",stopTime:"",inputDatetime:""}},judgetypeARR:[],list:[],tableKey:0,total:0,listLoading:!0,dialogFormVisibleSee:!1,getdataListParmSee:{name:"getjudgeListBybig",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getDownloadSeeParm:{name:"getjudgeListBybig",returntype:"Map",parammaps:{}},listSee:[],listSee2:[],tableKeySee:0,totalSee:0,listLoadingSee:!0,seeTemp:{},listAdd:[],tableKeyAdd:0,listLoadingAdd:!1,dialogImageUrl:"",dialogVisible:!1,fileList:[],headers:{optname:"insertcustompic",id:1,token:Object(d["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",postDataPramas:{},getdataListParmUpdate:{name:"getjudgeListBybig",returntype:"Map",parammaps:{}},getdataListParm2:{name:"getAssessmentList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getdataListParm3:{name:"getAssessmentList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},list2:[],tableKey2:0,total2:0,listLoading2:!0,judgetype:"",dialogStatus:"",dialogFormVisible:!1,textMap:{update:"编辑",create:"新增",see:"查看",assessment:"评估"},tableKey3:0,listLoading3:!1,list3:[],getdataListParmSee2:{name:"getAssessmentListBybigid",returntype:"Map",parammaps:{}},createTemp:{statue:"",pastureId:this.$store.state.user.pastureid,batime:Object(c["e"])(new Date,"{y}-{m}-{d}"),empId:this.$store.state.user.employeid},postDataParam:{},isPercentage:!1,percentage:1}},computed:{headers2:function(){return{token:Object(d["a"])()}},uploadData2:function(){return{name:"uploadAssessment",importParams:"检查类别,检查标准",sheetname:"SheetJS"}},uploadExcelUrl2:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data(),console.log(this.uploadImageUrl)},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getAssessmentList=t.data.getAssessmentList.list}))},get_table_data:function(){var e=this;console.log(this.$refs["inputDatetime"],"------------------"),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,console.log(this.getdataListParm.parammaps,"------------------"),0!==this.judgetypeARR.length?this.getdataListParm.parammaps.judgetype=this.judgetypeARR.join(","):this.getdataListParm.parammaps.judgetype="",Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),300)}))},form_search:function(){console.log("点击了搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},form_see:function(e){console.log("查看"),this.seeTemp=Object.assign(e,{}),this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;this.listLoadingSee=!0,this.getdataListParmSee.parammaps.id=this.seeTemp.id,Object(r["e"])(this.getdataListParmSee).then((function(t){if(e.listSee=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++){console.log(t.data.list[a]);var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listSee[a],"fileList",i),console.log(e.listSee),e.listSee[a].showUpload=!0}e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))},handleDownloadSee:function(){var e=this;this.listLoadingSee=!0,this.$alert("评估验证正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.getDownloadSeeParm.parammaps.id=this.seeTemp.id,Object(r["d"])(this.getDownloadSeeParm).then((function(t){if(e.listSee=t.data.list,null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++){var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listSee[a],"fileList",i),console.log(e.listSee),e.listSee[a].showUpload=!0}console.log(e.listSee);for(var l=[],o=0;o<e.listSee.length;o++){var p={};e.$set(p,"pastureName",e.seeTemp.pastureName),e.$set(p,"empName",e.seeTemp.empName),e.$set(p,"batime",e.seeTemp.batime),e.$set(p,"judgetype",e.listSee[o].judgetype),e.$set(p,"statue",e.listSee[o].statue),e.$set(p,"score",e.listSee[o].score),e.$set(p,"note",e.listSee[o].note),e.$set(p,"mypic1","http://127.0.0.1:8082/"+e.listSee[o].picpath1),e.$set(p,"mypic2","http://127.0.0.1:8082/"+e.listSee[o].picpath2),e.$set(p,"mypic3","http://127.0.0.1:8082/"+e.listSee[o].picpath3),l.push(p)}console.log("downloadseeArray",l);var m=[{title:"牧场",key:"pastureName",type:"text"},{title:"评估人",key:"empName",type:"text"},{title:"评估日期",key:"batime",type:"text"},{title:"检查类别",key:"judgetype",type:"text"},{title:"检查标准",key:"statue",type:"text"},{title:"检查结果",key:"score",type:"text"},{title:"问题描述",key:"note",type:"text"},{title:"问题图片",key:"mypic1",type:"image",width:80,height:60},{title:"问题图片",key:"mypic2",type:"image",width:80,height:60},{title:"问题图片",key:"mypic3",type:"image",width:80,height:60}],c=l,d="评估验证";Object(u["a"])(m,c,d)}setTimeout((function(){e.listLoadingSee=!1}),300)}))},form_add:function(){console.log("点击了评估"),this.createTemp.statue="",this.createTemp.empId=this.$store.state.user.employeid,this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.batime=Object(c["e"])(new Date,"{y}-{m}-{d}"),this.dialogStatus="assessment",this.dialogFormVisibleAdd=!0,this.listAdd=[],this.get_table_data2()},changeStatue:function(e){this.listAdd=[],this.getdataListParmSee2.parammaps.id=e,this.get_table_dataSee2(),this.list2.find((function(t){return t.id==e}))&&(console.log(this.list2.find((function(t){return t.id==e})).statue),this.judgetype=this.list2.find((function(t){return t.id==e})).statue),console.log(this.listAdd)},handlePicChange:function(e,t,a){var s=this;console.log(e,"文件状态改变时的钩子file"),console.log(t,"文件状态改变时的钩子fileList------------"),console.log(a,"文件状态改变时的钩子row"),console.log(a.showUpload,"文件状态改变时的钩子row"),t.length>2?this.$nextTick((function(){s.$set(a,"showUpload",!0)})):this.$nextTick((function(){a.showUpload=!1})),console.log(a)},handlePicSuccess:function(e,t,a,s){a.length>2?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0===s.pic1||-1==s.pic1?this.$set(s,"pic1",e.execresult.LastInsertId):void 0===s.pic2||-1==s.pic2?this.$set(s,"pic2",e.execresult.LastInsertId):void 0!==s.pic3&&-1!=s.pic3||this.$set(s,"pic3",e.execresult.LastInsertId),console.log(s,"文件上传成功时的钩子row")},handlePicRemove:function(e,t,a){if(console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),console.log(a,"文件列表移除文件时的钩子row---"),"assessment"===this.dialogStatus)for(var s in t.length<3&&this.$set(a,"showUpload",!1),a)a[s]===e.response.execresult.LastInsertId&&this.$delete(a,s);else if("update"===this.dialogStatus){t.length<3&&(a.showUpload=!1);var i="uploads"+e.url.split("uploads")[1];for(var r in a)a[r]===i&&(console.log(r),"picpath1"===r?this.$delete(a,"pic1"):"picpath2"===r?this.$delete(a,"pic2"):"picpath3"===r&&this.$delete(a,"pic3"))}console.log(a,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;console.log(e.listAdd[a].pic1),void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",judgetype:"@insertSpotList.judgetype",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},form_edit:function(e){console.log("编辑",e),this.dialogStatus="update",this.dialogFormVisibleAdd=!0,this.createTemp=Object.assign(e,{}),this.get_table_dataUpdate(),this.get_table_data2()},get_table_dataUpdate:function(){var e=this;this.listLoadingAdd=!0,this.getdataListParmUpdate.parammaps.id=this.createTemp.id,Object(r["e"])(this.getdataListParmUpdate).then((function(t){if(e.listAdd=t.data.list,console.log(e.listAdd,"this,listAdd"),null!==t.data.list)for(var a=0;a<t.data.list.length;a++){console.log(t.data.list[a]);var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listAdd[a],"fileList",i),console.log(e.listAdd),e.listAdd[a].fileList.length>2?e.listAdd[a].showUpload=!0:e.listAdd[a].showUpload=!1}setTimeout((function(){e.listLoadingAdd=!1}),300)}))},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存",this.listAdd),console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;console.log(e.listAdd[a].pic1),void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatejudge",type:"e",parammaps:{bigId:e.createTemp.id,judgetype:"@insertSpotList.judgetype",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3",id:"@insertSpotList.id"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(e){var t=this;console.log("删除"),m["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigjudge",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletejudge",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){console.log("删除发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.getdataListParm.parammaps.inputDatetime="",t.get_table_data(),t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_table_data2:function(){var e=this;this.listLoading2=!0,Object(r["e"])(this.getdataListParm2).then((function(t){null!==t.data.list?e.list2=t.data.list:e.list2=[],e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("评估验证信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3),a={name:"getjudgeListByExcel",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{formType:"评估验证信息",pastureName:this.getdataListParm.parammaps.pastureName,judgetype:this.getdataListParm.parammaps.judgetype,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,empName:this.getdataListParm.parammaps.empName}};Object(r["d"])(a).then((function(t){if(e.listSee2=t.data.list,null!==t.data.list){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);for(var a=0;a<t.data.list.length;a++){var s=[],i=[];void 0==t.data.list[a].picpath1&&void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push():void 0==t.data.list[a].picpath1?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath2&&void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1):void 0==t.data.list[a].picpath2?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath3):void 0==t.data.list[a].picpath3?s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2):s.push("http://127.0.0.1:8082/"+t.data.list[a].picpath1,"http://127.0.0.1:8082/"+t.data.list[a].picpath2,"http://127.0.0.1:8082/"+t.data.list[a].picpath3);for(var r=0;r<s.length;r++){var n={};e.$set(n,"url",s[r]),i.push(n)}e.$set(e.listSee2[a],"fileList",i),console.log(e.listSee2),e.listSee2[a].showUpload=!0}console.log(e.listSee2);for(var l=[],o=0;o<e.listSee2.length;o++){var p={};e.$set(p,"pastureName",e.listSee2[o].pastureName),e.$set(p,"empName",e.listSee2[o].empName),e.$set(p,"batime",e.listSee2[o].batime),e.$set(p,"judgetype",e.listSee2[o].judgetype),e.$set(p,"statue",e.listSee2[o].statue),e.$set(p,"score",e.listSee2[o].score),e.$set(p,"note",e.listSee2[o].note),e.$set(p,"mypic1","http://127.0.0.1:8082/"+e.listSee2[o].picpath1),e.$set(p,"mypic2","http://127.0.0.1:8082/"+e.listSee2[o].picpath2),e.$set(p,"mypic3","http://127.0.0.1:8082/"+e.listSee2[o].picpath3),l.push(p)}console.log("downloadseeArray",l);var m=[{title:"牧场",key:"pastureName",type:"text"},{title:"评估人",key:"empName",type:"text"},{title:"评估日期",key:"batime",type:"text"},{title:"检查类别",key:"judgetype",type:"text"},{title:"检查标准",key:"statue",type:"text"},{title:"检查结果",key:"score",type:"text"},{title:"问题描述",key:"note",type:"text"},{title:"问题图片",key:"mypic1",type:"image",width:80,height:60},{title:"问题图片",key:"mypic2",type:"image",width:80,height:60},{title:"问题图片",key:"mypic3",type:"image",width:80,height:60}],c=l,d="评估验证";Object(u["a"])(m,c,d)}}))},handleInspectionStandard:function(){console.log("点击了检查标准管理"),this.List1=!1,this.List2=!0,this.get_table_data2()},goBack:function(){this.List1=!0,this.List2=!1,this.get_table_data()},form_add2:function(){console.log("点击了检查标准管理-新增"),this.createTemp.statue="",this.list3=[],this.dialogStatus="create",this.dialogFormVisible=!0},handleDownloadTemp2:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["检查类别","检查标准"],i=["检查类别","检查标准"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"评估验证模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel2:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess2:function(e,t){var s=this;this.get_table_data2(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["检查类别","检查标准","报错信息"],r=["检查类别","检查标准","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"评估验证报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},handleAddStandard:function(){console.log("点击了检查标准管理-新增-添加标准"),this.list3.push({myid:(new Date).valueOf(),statue:""})},form_delete3:function(e){var t=this;console.log(e),void 0!==e.id&&this.$set(e,"myid",e.id),m["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.list3.length;a++){if(console.log(t.list3[a]),t.list3[a].myid==e.myid)var s=t.list3.indexOf(t.list3[a]);if(s>-1)return void t.list3.splice(s,1)}}))},add_dialog_save2:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(0===e.list3.length)return e.$message({title:"",message:"请选择添加标准",type:"warning",duration:2e3}),!1;for(var a=0;a<e.list3.length;a++){if(""==e.list3[a].statue)return e.$message({type:"warning",message:"请检查检查标准是否未填写",duration:2e3}),!1;e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"inserBigAssessment",type:"e",parammaps:{statue:e.createTemp.statue}},e.postDataParam.data[1]={name:"insertSpotList",resultmaps:{list:e.list3}},e.postDataParam.data[1].children=[],e.postDataParam.data[1].children[0]={name:"insertAssessment",type:"e",parammaps:{statue:"@insertSpotList.statue",bigId:"@inserBigAssessment.LastInsertId"}}}Object(r["c"])(e.postDataParam).then((function(t){console.log("保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data2(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_see2:function(e){this.list3=[],this.createTemp=Object.assign(e,{}),this.dialogStatus="see",this.dialogFormVisible=!0,this.getdataListParmSee2.parammaps.id=e.id,this.get_table_dataSee2()},get_table_dataSee2:function(){var e=this;Object(r["e"])(this.getdataListParmSee2).then((function(t){if(null!==t.data.list){e.listAdd=t.data.list,e.list3=t.data.list;for(var a=0;a<e.listAdd.length;a++)e.$set(e.listAdd[a],"showUpload",!1),e.$set(e.listAdd[a],"judgetype",e.judgetype)}else e.list3=[],e.listAdd=[];setTimeout((function(){e.listLoading3=!1}),300)}))},form_edit2:function(e){this.createTemp.statue="",this.list3=[],this.createTemp=Object.assign(e,{}),this.dialogStatus="update",this.dialogFormVisible=!0,this.getdataListParmSee2.parammaps.id=e.id,this.get_table_dataSee2()},edit_dialog_save2:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(0===e.list3.length)return e.$message({title:"",message:"请选择添加标准",type:"warning",duration:2e3}),!1;for(var a=0;a<e.list3.length;a++){if(""==e.list3[a].statue)return e.$message({type:"warning",message:"请检查检查标准是否未填写",duration:2e3}),!1;e.postDataParam.common={returnmap:"0"},e.postDataParam.data=[],e.postDataParam.data[0]={name:"updateBigAssessment",type:"e",parammaps:{id:e.createTemp.id,statue:e.createTemp.statue}},e.postDataParam.data[1]={name:"deleteAssessmentListBybigid",type:"e",parammaps:{id:e.createTemp.id}},e.postDataParam.data[2]={name:"insertSpotList",resultmaps:{list:e.list3}},e.postDataParam.data[2].children=[],e.postDataParam.data[2].children[0]={name:"insertAssessment",type:"e",parammaps:{statue:"@insertSpotList.statue",bigId:e.createTemp.id}}}Object(r["c"])(e.postDataParam).then((function(t){console.log("保存发送参数",e.postDataParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data2(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete2:function(e){var t=this;console.log("检查标准管理-删除"),m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataParam.name="deleteAssessmentList",t.postDataParam.parammaps={},t.postDataParam.parammaps.id=e.id,Object(r["k"])(t.postDataParam).then((function(){t.get_table_data2(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},g=h,f=(a("9956"),a("2f36"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"c51450a2",null);t["default"]=b.exports},a328:function(e,t,a){"use strict";a.r(t);var s,i,r=a("15c9"),n={name:"View",props:{view:{type:Object,default:function(){return{name:"Simple",message:"什么情况"}}}},components:{Simple:r["default"]}},l=n,o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a3bd:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj1.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"pastureName",t)},expression:"tableObj1.getdataListParm.parammaps.pastureName"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj1.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"departmentId",t)},expression:"tableObj1.getdataListParm.parammaps.departmentId"}},e._l(e.departNameList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"委外维修单号"},model:{value:e.tableObj1.getdataListParm.parammaps.outsourcingCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"outsourcingCode",t)},expression:"tableObj1.getdataListParm.parammaps.outsourcingCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tableObj1.getdataListParm.parammaps.status,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"status",t)},expression:"tableObj1.getdataListParm.parammaps.status"}},e._l(e.statuesNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.tableObj1.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"eqName",t)},expression:"tableObj1.getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备内部编号"},model:{value:e.tableObj1.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"eqCode",t)},expression:"tableObj1.getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"合同编号"},model:{value:e.tableObj1.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"contractCode",t)},expression:"tableObj1.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tableObj1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"inputDatetime",t)},expression:"tableObj1.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.istab1Add?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1),e._v(" "),a("div",{staticClass:"elTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj1.listLoading,expression:"tableObj1.listLoading"}],key:e.tableObj1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj1.pageNum-1)*e.tableObj1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"委外单号","min-width":"120px",align:"center",prop:"outsourcingCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任部门 ","min-width":"120px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.contract?a("span",[e._v("有")]):a("span",[e._v("无")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请人","min-width":"120px",align:"center",prop:"applicantName"}}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"120px",align:"center",prop:"date"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.status?a("span",[e._v("审核中")]):1==t.row.status?a("span",[e._v("审核通过")]):a("span",[e._v("审核未通过")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),e.istab1Edit&&0!==s.status&&1!==s.status?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.istab1Del&&1!==s.status?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e(),e._v(" "),e.istab1Shenhe1&&1==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine(s)}}},[e._v("审核1")]),e._v(" "),e.istab1Shenhe2&&2==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine2(s)}}},[e._v("审核2")]),e._v(" "),e.istab1Shenhe3&&4==s.flowCompeleted&&1==s.isAudit?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine3(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine3(s)}}},[e._v("审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj1.total>0,expression:"tableObj1.total>0"}],attrs:{total:e.tableObj1.total,page:e.tableObj1.getdataListParm.offset,limit:e.tableObj1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj1.getdataListParm,"pagecount",t)},pagination:function(t){return e.get_table_data1()}}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",[a("el-form",{ref:"createTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"委外维修单号:",prop:"outsourcingCode"}},[a("el-input",{ref:"outsourcingCode",attrs:{disabled:""},model:{value:e.createTemp.outsourcingCode,callback:function(t){e.$set(e.createTemp,"outsourcingCode",t)},expression:"createTemp.outsourcingCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"see"===e.dialogStatus},on:{change:e.change_pasture2},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"责任部门",disabled:"see"===e.dialogStatus},on:{change:e.change_depart2},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.departNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同:",prop:"contract"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus},on:{change:e.change_contract},model:{value:e.createTemp.contract,callback:function(t){e.$set(e.createTemp,"contract",t)},expression:"createTemp.contract"}},[a("el-radio",{attrs:{label:0,checked:0==e.createTemp.contract}},[e._v("无合同")]),e._v(" "),a("el-radio",{attrs:{label:1,checked:1==e.createTemp.contract}},[e._v("有合同")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申请人:",prop:"applicant"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申请人",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.applicant,callback:function(t){e.$set(e.createTemp,"applicant",t)},expression:"createTemp.applicant"}},e._l(e.employeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.date,callback:function(t){e.$set(e.createTemp,"date",t)},expression:"createTemp.date"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"故障描述:",prop:"description"}},[a("el-input",{attrs:{type:"textarea",autosize:"",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.description,callback:function(t){e.$set(e.createTemp,"description",t)},expression:"createTemp.description"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"RUCode"}},[a("el-input",{ref:"RUCode",attrs:{disabled:""},model:{value:e.createTemp.RUCode,callback:function(t){e.$set(e.createTemp,"RUCode",t)},expression:"createTemp.RUCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAddCont,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"供应商"},model:{value:t.row.providerName,callback:function(a){e.$set(t.row,"providerName",a)},expression:"scope.row.providerName"}},e._l(e.providerNameList,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.providerName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"金额",prop:"amount",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.amount))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{disabled:"see"===e.dialogStatus,"fetch-suggestions":e.querySearchEqNameCont,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqNameCont(a,t.row)},blur:function(a){e.blurSelectEqNameCont(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{disabled:"see"===e.dialogStatus,"fetch-suggestions":e.querySearchCodeCont,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCodeCont(a,t.row)},blur:function(a){e.blurSelectEqCodeCont(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",prop:"typea",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"费用类型"},model:{value:t.row.typea,callback:function(a){e.$set(t.row,"typea",a)},expression:"scope.row.typea"}},e._l(e.costTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.typea))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"交付日期",prop:"date",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-date-picker",{staticStyle:{"margin-top":"10px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.row.date,callback:function(a){e.$set(t.row,"date",a)},expression:"scope.row.date"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.date))]):e._e()]}}])}),e._v(" "),1==e.createTemp.contract?a("el-table-column",{attrs:{label:"合同编号",prop:"contractCode",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.contractCode,callback:function(a){e.$set(t.row,"contractCode",a)},expression:"scope.row.contractCode"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.contractCode))]):e._e()]}}],null,!1,3063502122)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e()]}}])})],1),e._v(" "),"see"===e.dialogStatus?a("el-row",{attrs:{gutter:10}},[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data1()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.change_statue},model:{value:e.examineTemp.status,callback:function(t){e.$set(e.examineTemp,"status",t)},expression:"examineTemp.status"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.istab1Shenhe1&&1==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab1Shenhe2&&2==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save2()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab1Shenhe3&&4==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("313e"),a("2934")),n=a("a78e"),l=a.n(n),o=a("ed08"),p=a("5c96"),m=a("333d");a("817d");var c={name:"Tab1",components:{Pagination:m["a"]},inject:["reload"],data:function(){return{send_select_list:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:l.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid")}},{name:"findAllProviderByCt",offset:0,pagecount:0,parammaps:{id:l.a.get("pastureid")}}],pastureNameList:[],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid"),eId:l.a.get("employeid")}},employeNameList:[],departNameList1:[],getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:l.a.get("pastureid"),eId:l.a.get("employeid")}},departNameList2:[],statuesNameList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],isokDisable:!1,tableObj1:{getdataListParm:{name:"getBigoutsourcingList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:l.a.get("pasturename"),outsourcingCode:"",departmentName:"",status:"",eqName:"",eqCode:"",contractCode:"",inputDatetime:"",startdate:"",enddate:""}},tableKey:0,listLoading:!1,pageNum:"",pageSize:"",total:0,list:[]},getAddContListParam:{name:"getOutsourcingList",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{bigId:""}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},rules:{outsourcingCode:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],contract:[{required:!0,message:"必填",trigger:"blur"}],description:[{required:!0,message:"必填",trigger:"blur"}]},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,date:Object(o["e"])(new Date,"{y}-{m}-{d}"),outsourcingCode:"",applicant:"",RUCode:"",providerId:"",departmentName:"",description:"",contract:1},costTypeList:[{id:"保养",name:"保养"},{id:"维修",name:"维修"},{id:"物耗",name:"物耗"},{id:"土建",name:"土建"},{id:"安全",name:"安全"}],providerNameList:[],getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:l.a.get("pastureid"),codeType:"WW"}},listAddCont:[{providerName:"",providerId:"0",eqId:"0",contractId:"0"}],activeList:[],active:1,EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:l.a.get("pastureid")}},EqCodeList:[],dialogFormVisible_Examine:!1,examineTemp:{status:1,empid:"",flowCompeleted:"",workflowNote:"",id:""},statueReason:!1,rowStyle:{maxHeight:"50px",height:"35px"},cellStyle:{padding:"0px"},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine33:"审核4",examine3:"审核5"},istab1Add:[],istab1Edit:[],istab1Del:[],istab1Shenhe1:[],istab1Shenhe2:[],istab1Shenhe3:[]}},created:function(){this.get_select_list(),this.get_table_data1(),this.get_auto_buttons()},methods:{get_auto_buttons:function(){var e=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:add");this.istab1Add=e;var t=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:edit");this.istab1Edit=t;var a=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:del");this.istab1Del=a;var s=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe1");this.istab1Shenhe1=s;var i=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe2");this.istab1Shenhe2=i;var n=Object(r["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten:shenhe3");this.istab1Shenhe3=n},querySearchEqNameCont:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqNameCont:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCodeCont:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCodeCont:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqNameCont:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCodeCont:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},get_select_list:function(){var e=this;Object(r["f"])(this.send_select_list).then((function(t){e.pastureNameList=t.data.findAllPasture.list,console.log("牧场下拉框",e.pastureNameList),e.employeNameList=t.data.findAllEmploye.list,console.log("申请人下拉框",e.employeNameList),e.providerNameList=t.data.findAllProviderByCt.list,e.get_depart_list1()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureNameList.find((function(t){return t.name==e})).id,this.tableObj1.getdataListParm.parammaps.departmentId="",this.get_depart_list1()},get_depart_list1:function(){var e=this;Object(r["e"])(this.getDepartParam1).then((function(t){e.departNameList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.get_depart_list2()},get_depart_list2:function(){var e=this;Object(r["e"])(this.getDepartParam2).then((function(t){e.departNameList2=t.data.list}))},change_depart2:function(e){this.createTemp.departmentName=this.departNameList2.find((function(t){return t.id==e})).name},get_table_data1:function(){var e=this;this.tableObj1.listLoading=!1,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tableObj1.getdataListParm.parammaps.startdate=this.$refs["inputDatetime"].value[0],this.tableObj1.getdataListParm.parammaps.enddate=this.$refs["inputDatetime"].value[1]):(this.tableObj1.getdataListParm.parammaps.inputDatetime="",this.tableObj1.getdataListParm.parammaps.startdate="",this.tableObj1.getdataListParm.parammaps.enddate=""),Object(r["e"])(this.tableObj1.getdataListParm).then((function(t){null!==t.data.list?(e.tableObj1.list=t.data.list,e.tableObj1.pageNum=t.data.pageNum,e.tableObj1.pageSize=t.data.pageSize,e.tableObj1.total=t.data.total):e.tableObj1.list=[],setTimeout((function(){e.tableObj1.listLoading=!1}),100)}))},form_search:function(){console.log("查询"),this.get_table_data1()},change_contract:function(e){console.log(e),this.createTemp.contract=1==e?1:0},form_add:function(){var e=this;this.reset_create(),this.getDepartParam2.parammaps.pastureId=this.createTemp.pastureId,this.get_depart_list2(),this.dialogStatus="create",this.dialogFormVisible=!0,this.listLoading=!1,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.get_create_num()},reset_create:function(){this.createTemp.pastureId=parseInt(l.a.get("pastureid")),this.createTemp.departmentId=parseInt(l.a.get("departmentid")),18==parseInt(l.a.get("pastureid"))&&(this.createTemp.departmentId=""),this.createTemp.departmentName=l.a.get("departmentname"),this.createTemp.employeId=parseInt(l.a.get("employeid")),this.createTemp.date=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.outsourcingCode="",this.createTemp.applicant=parseInt(l.a.get("employeid")),this.createTemp.providerId="",this.createTemp.contract=1,this.createTemp.description="",this.listAddCont=[{providerName:"",providerId:"0",eqId:"0",contractId:"0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:""}]},get_create_num:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTemp.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAddCont),""==e.createTemp.outsourcingCode||null==e.createTemp.outsourcingCode||void 0==e.createTemp.outsourcingCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTemp.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||this.listAddCont[t].amount,1==this.createTemp.contract&&(null==this.listAddCont[t].contractCode||""===this.listAddCont[t].contractCode))return this.$message({type:"warning",message:"请检查合同编号是否未填写",duration:2e3}),!1;var a={common:{returnmap:"0"},data:[{name:"addBigoutsourcing",type:"e",parammaps:this.createTemp},{name:"insertSpotList",resultmaps:{list:this.listAddCont},children:[{name:"addOutsourcing",type:"e",parammaps:{bigId:"@addBigoutsourcing.LastInsertId",providerId:"@insertSpotList.providerId",amount:"@insertSpotList.amount",eqId:"@insertSpotList.eqId",eqCode:"@insertSpotList.eqCode",eqName:"@insertSpotList.eqName",typea:"@insertSpotList.typea",date:"@insertSpotList.date",contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",contractCode:"@insertSpotList.contractCode"}}]}]};return Object(r["c"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0},form_see:function(e){var t=this;console.log("查看======》",e),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),1==e.isAudit?1==e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.empname},{title:"设备处长"},{title:"场长"},{title:"高级设备工程师"}],this.active=1):2==e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长"},{title:"高级设备工程师"}],this.active=2):3===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName,status:"error",reason:e.workflowNote},{title:"场长"},{title:"高级设备工程师"}],this.active=2):4===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师"}],this.active=3):5===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName,status:"error",reason:e.workflowNote},{title:"高级设备工程师"}],this.active=3):6===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师",date:e.advanceddate,name:e.advancedName}],this.active=4):7===e.flowCompeleted&&(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName},{title:"高级设备工程师",date:e.advanceddate,name:e.advancedName,status:"error",reason:e.workflowNote}],this.active=4):1==e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.empname},{title:"设备处长"},{title:"场长"}],this.active=1):2==e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长"}],this.active=2):3===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName,status:"error",reason:e.workflowNote},{title:"场长"}],this.active=2):4===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName}],this.active=3):5===e.flowCompeleted?(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName,status:"error",reason:e.workflowNote}],this.active=3):(6===e.flowCompeleted||7===e.flowCompeleted)&&(this.activeList=[{title:"委外申请",date:e.createTime,name:e.applicantName},{title:"设备处长",date:e.equipmentdate,name:e.equipmentName},{title:"场长",date:e.fielddate,name:e.fieldName}],this.active=3),this.getAddContListParam.parammaps.bigId=e.id,this.getAddContList()},getAddContList:function(){var e=this;Object(r["e"])(this.getAddContListParam).then((function(t){e.listAddCont=t.data.list,e.listLoading=!1}))},form_edit:function(e){var t=this;this.reset_create(),console.log("编辑",e),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getAddContListParam.parammaps.bigId=e.id,this.getAddContList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||""===this.listAddCont[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;this.listAddCont[0].providerId="0",this.listAddCont[0].eqId="0",this.listAddCont[0].contractId="0";var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcing",type:"e",parammaps:this.createTemp},{name:"insertSpotList",resultmaps:{list:this.listAddCont},children:[{name:"editOutsourcing",type:"e",parammaps:{bigId:"@insertSpotList.LastInsertId",providerId:"@insertSpotList.providerId",amount:"@insertSpotList.amount",eqId:"@insertSpotList.eqId",eqCode:"@insertSpotList.eqCode",eqName:"@insertSpotList.eqName",typea:"@insertSpotList.typea",date:"@insertSpotList.date",contractId:"@insertSpotList.contractId",id:"@insertSpotList.id",providerName:"@insertSpotList.providerName",contractCode:"@insertSpotList.contractCode"}}]},{name:"updateBigoutsourcingFlowCompeleted",type:"e",parammaps:{id:this.createTemp.id}}]};Object(r["c"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_delete:function(e){var t=this;console.log("点击了删除",e),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"deleteBigoutsourcing",type:"e",parammaps:{id:e.id}}]};Object(r["c"])(a).then((function(e){t.get_table_data1(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},change_statue:function(e){this.statueReason=2==e},form_examine:function(e){console.log("点击了设备处长审核",e),void 0==e?(this.examineTemp=this.createTemp,this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save:function(){var e=this;console.log("点击了设备处长审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="3"):(e.examineTemp.status=0,e.examineTemp.flowCompeleted="2"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingEquipment",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine2:function(e){console.log("点击了场长审核",e),this.examineTemp=Object.assign({},e),void 0==e?(this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save2:function(){var e=this;console.log("点击了场长审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="5"):(1==e.examineTemp.isAudit?e.examineTemp.status=0:e.examineTemp.status=1,e.examineTemp.flowCompeleted="4"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingField",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine3:function(e){console.log("点击了高级工程师 审核",e),this.examineTemp=Object.assign({},e),void 0==e?(this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save3:function(){var e=this;console.log("点击了高级工程师审核",this.examineTemp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="7"):(e.examineTemp.status=1,e.examineTemp.flowCompeleted="6"),e.examineTemp.empid=l.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"editBigoutsourcingAdvanceddate",type:"e",parammaps:e.examineTemp}]};Object(r["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))}}},d=c,u=(a("1d6f"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"2e730d51",null);t["default"]=h.exports},a3c4:function(e,t,a){},a40e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.getdataListParm.parammaps,"stuteSH",t)},expression:"getdataListParm.parammaps.stuteSH"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"申购部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购人"},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSubscribeAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isSubscribeExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"filter-button"}),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期",sortable:"",prop:"inputTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSubscribeSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),4==s.statue||6==s.statue||8==s.statue||10==s.statue||12==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isSubscribeExamineKG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine22(s)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核3")]),e._v(" "),e.sdchangzhangshenhe&&5==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine33(s)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine33(s)}}},[e._v("审核5")]),e._v(" "),e.isSubscribeExamineCG&&11==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核5")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核5")]),e._v(" "),!e.isSubscribeDelete||4!=s.statue&&6!=s.statue&&8!=s.statue&&12!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.createTemp.orderNumber,callback:function(t){e.$set(e.createTemp,"orderNumber",t)},expression:"createTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购部门",disabled:"update"===e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购人",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),"create"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"线上采购",clearable:""},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.onlineSubscriptionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.providerName,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e(),e._v(" "),"update"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[""==e.createTemp.providerId?a("span",[e._v(e._s(t.row.price))]):a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"price"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.purpose,callback:function(a){e.$set(t.row,"purpose",a)},expression:"scope.row.purpose"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.seeTemp.orderNumber,callback:function(t){e.$set(e.seeTemp,"orderNumber",t)},expression:"seeTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:""},model:{value:e.seeTemp.pastureId,callback:function(t){e.$set(e.seeTemp,"pastureId",t)},expression:"seeTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.seeTemp.createTime,callback:function(t){e.$set(e.seeTemp,"createTime",t)},expression:"seeTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",sortable:"",prop:"storageAmount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",sortable:"",prop:"price",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量",sortable:"",prop:"amount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isSubscribeExamineKG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineSBZG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine22(e.row)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineZG&&9==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核3")]),e._v(" "),e.sdchangzhangshenhe&&5==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine33(e.row)}}},[e._v("审核4")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine33(e.row)}}},[e._v("审核5")]),e._v(" "),e.isSubscribeExamineCG&&11==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核5")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核5")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine22"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData22()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine33"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData33()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Subscribe",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isSubscribeAdd:[],isSubscribeExamineSBZG:[],isSubscribeTemplate:[],isSubscribeImport:[],isSubscribeExport:[],isSubscribeSee:[],isSubscribeDelete:[],isSubscribeExamineKG:[],isSubscribeExamineCG:[],isSubscribeExamineZG:[],sdchangzhangshenhe:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],onlineSubscriptionList:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getflexProviderList",offset:0,pagecount:0,parammaps:{}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine33:"审核4",examine3:"审核5"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getpartpurchaseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),empId:c.a.get("employeid"),orderNumber:"",stuteSH:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),providerId:""},requestSparePart:{name:"getPartsListSG",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"SG"}},getParmCreateAmount:{name:"getPartsListSGv2",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),pastureName:c.a.get("pasturename")}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isPercentage:!1,percentage:1,pending:{total:0,getdataListParm:{name:"getpartpurchaseWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")}}}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:subscribe:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSubscribeAdd=t;var a="customs:subscribe:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSubscribeTemplate=s;var i="customs:subscribe:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSubscribeImport=n;var l="customs:subscribe:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isSubscribeExport=o;var p="customs:subscribe:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isSubscribeSee=m;var c="customs:subscribe:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isSubscribeDelete=d;var u="customs:subscribe:examineKG",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isSubscribeExamineKG=h;var g="customs:subscribe:examineSBZG",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isSubscribeExamineSBZG=f;var b="customs:subscribe:examineZG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isSubscribeExamineZG=v;var y="changzhangshenhe",_=Object(r["v"])(this.$store.state.user.buttons,y);this.sdchangzhangshenhe=_;var w="customs:subscribe:examineCG",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isSubscribeExamineCG=S},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.orderNumber=this.getdataListParm.parammaps.orderNumber,this.pending.getdataListParm.parammaps.stuteSH=this.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getpartpurchaseList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),orderNumber:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getpartpurchaseWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getpartpurchaseWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue?"未通过":5==e.statue?"审核中":6==e.statue?"未通过":7==e.statue?"已通过":8==e.statue?"未通过":9==e.statue?"审核中":10==e.statue?"未通过":11==e.statue?"审核中":12==e.statue?"未通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.employeId=parseInt(c.a.get("employeid")),this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.orderNumber="",this.createTemp.providerId="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeProvider:function(e){""!==e&&(this.createTemp.providerName=this.onlineSubscriptionList.find((function(t){return t.id==e})).providerName),this.listAdd=[]},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""==this.createTemp.providerId?this.requestSparePart.name="getPartsListSG":(this.requestSparePart.name="getPartsListSGFlex",this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps.providerName=this.createTemp.providerName),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){var t=this;console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.partId),console.log(this.listAdd),""==this.createTemp.providerId?(this.listAdd.length>0&&this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["z"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0]),e=a.data.list[0],null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$set(e,"amount",""),t.$set(e,"purpose",""),t.listAdd.unshift(e),t.$forceUpdate()}))}))),this.$forceUpdate()):(this.listAdd.length>0?this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e),this.$forceUpdate()),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.orderNumber||null==e.createTemp.orderNumber||void 0==e.createTemp.orderNumber?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartpurchase",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,orderNumber:this.createTemp.orderNumber,useType:this.createTemp.useType,createTime:this.createTemp.createTime,employeId:this.createTemp.employeId,providerId:this.createTemp.providerId}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:"@insertBigPartpurchase.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.listSee=[],this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;2===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核"},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"设备主管审核"},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=2):9===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=3):10===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson,status:"error",reason:t},{title:"供应主管审核"},{title:"场长审核"},{title:"采购审核"}],this.active=3):5===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核"},{title:"采购审核"}],this.active=4):6===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"场长审核"},{title:"采购审核"}],this.active=4):11===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核"}],this.active=5):12===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson,status:"error",reason:t},{title:"采购审核"}],this.active=5):7===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=6):8===this.seeTemp.statue&&(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"设备主管审核",date:this.seeTemp.equipmentdate,name:this.seeTemp.equipmentPerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"场长审核",date:this.seeTemp.fielddate,name:this.seeTemp.fieldPerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=6)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(null!==t.data.list){console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath,"=======1"),e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath,e.listAdd[a].srcpath=e.listSee[a].srcpath,e.listAdd[a].picpath=e.listSee[a].picpath,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize):(e.listSee[a].srcpath="",e.listSee[a].picpath="",e.listAdd[a].srcpath="",e.listAdd[a].picpath=""),console.log("http://127.0.0.1:8082/"),console.log(e.listSee,"============")}t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListSee.parammaps.id=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartpurchaseCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.onlineSubscriptionList=t.data.getflexProviderList.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("备件申购正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadPartpurchaseList",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","申购单号","申购时间","备件编号","备件名称","规格型号","品牌","单位","申购数量","申购部门","申购人","备注"],filterVal:["pastureName","orderNumber","inputTime","partCode","partName","specification","brandName","unit","amount","departmentName","empname","purpose"],tableDatas:t.data.list,sheetName:"备件申购"}];Object(l["d"])(e,"备件申购",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartpurchase",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log("点击了库管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=3:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine22:function(e){console.log("点击了设备主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine22",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData22:function(){var e=this;console.log("点击了设备主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseEquipment",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=9:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=10),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了供应主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了供应主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=5:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=6),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine33:function(e){console.log("点击了场长审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine33",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData33:function(){var e=this;console.log("点击了场长审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseField",type:"e",parammaps:{id:e.examineTemp.id,statue:11,field:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseField",type:"e",parammaps:{id:e.examineTemp.id,statue:12,field:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:7,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:8,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))}}}),u=d,h=(a("6e55"),a("1ec6"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"1e7307e0",null);t["default"]=g.exports},a539:function(e,t,a){},a68f:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件安全库存",use:"icon-备件安全库存-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件安全库存"><defs><style type="text/css"></style></defs><path d="M491.329707 668.544c-45.824-7.68-91.306667-43.52-91.306667-98.816V476.16l90.325333-20.224 92.16 20.309333v103.808c-0.170667 0.810667-0.682667 1.493333-0.768 2.304-6.4 50.218667-50.773333 79.488-90.410666 86.186667m115.242666-230.698667l-110.72-24.405333c-0.768-0.170667-1.536 0-2.304 0-1.237333-0.256-2.56-0.042667-3.84-0.042667-0.810667 0-1.706667-0.128-2.517333 0-0.853333 0.128-1.621333-0.085333-2.474667 0.085334l-108.8 24.405333c-1.024 0.213333-1.792 0.853333-2.730666 1.194667a21.077333 21.077333 0 0 0-15.786667 20.224v114.474666c0 1.493333 0.512 2.773333 0.853333 4.181334 4.394667 75.861333 67.157333 124.501333 129.877334 133.461333a23.552 23.552 0 0 0 3.029333 0.213333l0.128-0.042666h0.128a24.106667 24.106667 0 0 0 3.029333-0.170667c53.930667-7.722667 115.285333-47.488 128-116.394667a20.949333 20.949333 0 0 0 2.730667-9.984v-125.738666a21.034667 21.034667 0 0 0-15.786667-20.224c-0.981333-0.426667-1.792-1.024-2.816-1.28" p-id="29928" fill="#ffffff" /><path d="M846.913707 452.181333L507.457707 133.589333a20.864 20.864 0 0 0-16.384-5.461333 20.992 20.992 0 0 0-16.64 5.461333L135.105707 452.181333a21.290667 21.290667 0 1 0 29.184 31.104l9.6-8.96v279.765334A100.138667 100.138667 0 0 0 274.028373 853.973333h433.877334a100.181333 100.181333 0 0 0 100.224-99.882666v-71.552a21.333333 21.333333 0 0 0-42.666667 0v71.552c0 31.530667-25.856 57.216-57.6 57.216H274.07104a57.429333 57.429333 0 0 1-57.514667-57.216V434.261333L490.988373 176.64l274.474667 257.578667v120.32a21.333333 21.333333 0 1 0 42.666667 0V474.282667l9.6 9.002666a21.12 21.12 0 0 0 30.122666-0.938666 21.290667 21.290667 0 0 0-0.938666-30.165334" p-id="29929" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},a78d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.isDistributionSheet?a("el-tab-pane",{attrs:{label:"采购配单",name:"first"}},[a("div",{staticClass:"purchaseDistributionSheet"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"部门"},on:{change:e.change_dept},model:{value:e.getdataListParm1.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm1.parammaps,"departmentId",t)},expression:"getdataListParm1.parammaps.departmentId"}},e._l(e.deptNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list1,border:"",fit:"","row-style":e.tableRowStyle,"cell-style":e.tableCellStyle,"highlight-current-row":""},on:{"cell-click":e.cellClick,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!1,3419157293)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)})],1),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-top":"10px"},attrs:{disabled:e.confirmationSheetDisabled,type:"primary"},on:{click:function(t){return e.confirmationSheet()}}},[e._v("确认配单")]),e._v(" "),a("el-dialog",{staticStyle:{width:"100%",margin:"0 auto",overflow:"auto"},attrs:{title:e.textMap[e.dialogStatusConfirmation],visible:e.dialogFormVisibleConfirmation,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleConfirmation=t}}},[a("div",{staticClass:"app-contentConfirmationSheet"},[a("el-form",{ref:"temp1",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{rules:e.rules,model:e.temp1,"label-position":"right","label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("el-input",{ref:"matchCode",attrs:{disabled:""},model:{value:e.temp1.matchCode,callback:function(t){e.$set(e.temp1,"matchCode",t)},expression:"temp1.matchCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"提交日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp1.buyerDate,callback:function(t){e.$set(e.temp1,"buyerDate",t)},expression:"temp1.buyerDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"buyerPerson"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"采购员"},model:{value:e.temp1.buyerPerson,callback:function(t){e.$set(e.temp1,"buyerPerson",t)},expression:"temp1.buyerPerson"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),e._l(e.listConfirmationSheet,(function(t,s){return a("div",{key:s,staticClass:"app-content"},[a("div",{staticClass:"title"},[a("div",[a("b",[e._v("采购单号:")]),e._v(" "),a("span",[e._v(e._s(t.orderNumber))])]),e._v(" "),a("div",[a("b",[e._v("供应商:")]),e._v(" "),a("span",[e._v(e._s(t.providerName))])])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"97%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"合计采购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.sumPrice=t.row.price*parseFloat(t.row.amount))))])]}}],null,!0)})],1),e._v(" "),a("div",{ref:"total",refInFor:!0,staticClass:"total"},[e._v("\n 合计:\n "),a("span",[e._v(e._s(t.Sum))])])],1)})),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.confirmationSheetData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleConfirmation=!1,e.get_table_data1()}}},[e._v("取消")])],1)],2)])],1)]):e._e(),e._v(" "),e.isDistributionManagement?a("el-tab-pane",{attrs:{label:"配单管理",name:"fouth"}},[a("div",{staticClass:"DistributionManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm4.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm4.parammaps,"pastureName",t)},expression:"getdataListParm4.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"配单号",clearable:""},model:{value:e.getdataListParm4.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm4.parammaps,"matchCode",t)},expression:"getdataListParm4.parammaps.matchCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm4.parammaps.statue,callback:function(t){e.$set(e.getdataListParm4.parammaps,"statue",t)},expression:"getdataListParm4.parammaps.statue"}},e._l(e.status2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime4",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm4.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm4.parammaps,"inputDatetime",t)},expression:"getdataListParm4.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search4}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading4,expression:"listLoading4"}],key:e.tableKey4,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}],null,!1,1138521997)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}],null,!1,3666326552)}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}],null,!1,3226262841)}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"dealTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"cou",label:"采购单数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cou))])]}}],null,!1,3322093407)}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see4(s)}}},[e._v("查看")]):e._e(),e._v(" "),0===parseFloat(s.statue)&&e.isExamineDM?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),2===parseFloat(s.statue)?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")])]}}],null,!1,3682640877)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total4>0,expression:"total4>0"}],attrs:{total:e.total4,page:e.getdataListParm4.offset,limit:e.getdataListParm4.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm4,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm4,"pagecount",t)},pagination:e.get_table_data4}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee4],visible:e.dialogFormVisibleSee4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee4=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp4",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.temp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.temp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee4,expression:"listLoadingSee4"}],key:e.tableKeySee4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"60px",align:"center"}})],1),e._v(" "),a("el-form",{ref:"temp4",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isExamineDM&&0==e.temp4.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusUpdate4],width:"90%",visible:e.dialogFormVisibleUpdate4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleUpdate4=t}}},[a("div",{staticClass:"app-contentUpdate"},[a("el-form",{ref:"updateTemp4",staticStyle:{width:"80%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.updateTemp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.updateTemp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.updateTemp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.updateTemp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpdate4,expression:"listLoadingUpdate4"}],key:e.tableKeyUpdate4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpdate4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum2")(parseFloat(t.row.price)*parseFloat(t.row.amount))))])]}}],null,!1,2498820582)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleUpdate4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus_Examine],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus_Examine,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)]):e._e(),e._v(" "),a("el-tab-pane",{attrs:{label:"采购单管理",name:"second"}},[a("div",{staticClass:"purchaseOrderManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"采购单号",clearable:""},model:{value:e.getdataListParm2.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"buyeCode",t)},expression:"getdataListParm2.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"单据状态"},model:{value:e.getdataListParm2.parammaps.statu,callback:function(t){e.$set(e.getdataListParm2.parammaps,"statu",t)},expression:"getdataListParm2.parammaps.statu"}},e._l(e.status,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm2.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerName",t)},expression:"getdataListParm2.parammaps.providerName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),e.isPurchaseSap?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e(),e._v(" "),e.isPurchaseSrm?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.srmUpload}},[e._v("SRM上传")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"selection-change":e.change_table_selection}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近到货日期",sortable:"",prop:"DoneDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"80px",align:"center",formatter:e.statu}}),e._v(" "),a("el-table-column",{attrs:{prop:"sapNumber",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sapNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sapstatus",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.sapstatus,expression:"scope.row.sapstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.sapstatus,expression:"scope.row.sapstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.sapstatus,expression:"scope.row.sapstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"srmstatus",label:"srm上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.srmstatus,expression:"scope.row.srmstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.srmstatus,expression:"scope.row.srmstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.srmstatus,expression:"scope.row.srmstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see2(s)}}},[e._v("查看")]):e._e(),e._v(" "),2!==s.statu&&4!==s.statu||!e.isPurchaseClose?e.isPurchaseClose?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")]):e._e():a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee2],visible:e.dialogFormVisibleSee2,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee2=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp2",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(e._s(e.temp2.providerName))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp2.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("span",[e._v(e._s(e.temp2.buyerDate))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee2,expression:"listLoadingSee2"}],key:e.tableKeySee2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.SGremark))])]}}])})],1),e._v(" "),a("div",{staticClass:"sum",staticStyle:{right:"30px",position:"absolute",bottom:"90px"}},[a("b",[e._v("总计:"+e._s(e.temp2.sumPrices)+"元")])]),e._v(" "),a("div",{staticClass:"stuts",staticStyle:{left:"30px",position:"absolute",bottom:"70px"}},[a("b",[e._v("单据状态:"+e._s(e.temp2.statu))]),e._v(" "),e.isStatu?a("b",[e._v("关闭原因:"+e._s(e.temp2.note))]):e._e(),e._v(" "),e.isExtensionDays?a("div",[e._v("延期天数:"+e._s(e.temp2.extensionDays))]):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee2=!1,e.get_table_data2()}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"70%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatusClose],visible:e.dialogFormVisibleClose,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleClose=t}}},[a("div",{staticClass:"app-contentClose"},[a("el-form",{ref:"temp2",staticStyle:{width:"300px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"orderNo"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"note"}},[a("el-input",{ref:"note",attrs:{type:"textarea",placeholder:"请输入关闭该采购单原因"},model:{value:e.temp2.note,callback:function(t){e.$set(e.temp2,"note",t)},expression:"temp2.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleClose=!1,e.get_table_data2()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.closeData()}}},[e._v("确认关闭")])],1)],1)])],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"采购明细",name:"third"}},[a("div",{staticClass:"procurementDetails"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm3.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"pastureName",t)},expression:"getdataListParm3.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm3.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partCode",t)},expression:"getdataListParm3.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm3.parammaps.partName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partName",t)},expression:"getdataListParm3.parammaps.partName"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm3.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"providerName",t)},expression:"getdataListParm3.parammaps.providerName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"配单号"},model:{value:e.getdataListParm3.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"matchCode",t)},expression:"getdataListParm3.parammaps.matchCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"采购单号"},model:{value:e.getdataListParm3.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"buyeCode",t)},expression:"getdataListParm3.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"到货情况"},model:{value:e.getdataListParm3.parammaps.isStorage,callback:function(t){e.$set(e.getdataListParm3.parammaps,"isStorage",t)},expression:"getdataListParm3.parammaps.isStorage"}},e._l(e.isStorages,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm3.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm3.parammaps,"inputDatetime",t)},expression:"getdataListParm3.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search3}},[e._v("搜索")]),e._v(" "),e.isPurchaseExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload3}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading3,expression:"listLoading3"}],key:e.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum3-1)*e.pageSize3+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total3>=0,expression:"total3>=0"}],attrs:{total:e.total3,page:e.getdataListParm3.offset,limit:e.getdataListParm3.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm3,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm3,"pagecount",t)},pagination:e.get_table_data3}})],1)])],1)],1)},i=[],r=(a("3b2b"),a("456d"),a("4f7f"),a("5df3"),a("1c4c"),a("ac6a"),a("7f7f"),a("c5f6"),a("2934")),n=a("6724"),l=a("333d"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"Purchase",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(3)},keepTwoNum2:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isPurchaseSap:[],isPurchaseSrm:[],isPurchaseSee:[],isPurchaseClose:[],isPurchaseExport:[],isDistributionSheet:[],isDistributionManagement:[],isExamineDM:[],stripe:!0,activeName:"first",listLoading1:!1,tableKey1:0,list1:[],confirmationSheetDisabled:!1,isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},temp:{},total:0,total1:0,listParmConfirmation:[],listConfirmationSheet:null,getParmPurchaseOrderNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid"),codeType:"CG"}},postDataPramas:{},requestProvider:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoading2:!1,tableKey2:0,list2:[],status2:[{id:"0",name:"审核中"},{id:"1",name:"审核通过"},{id:"2",name:"审核驳回"}],status:[{id:"0",name:"未到货"},{id:"1",name:"部分到货"},{id:"2",name:"按时到货"},{id:"3",name:"已延期"},{id:"4",name:"已关闭"},{id:"5",name:"部分到货-延期"},{id:"6",name:"全部到货-延期"}],isStorages:[{id:"0",name:"未入库"},{id:"1",name:"已入库"}],isStatu:!1,listLoadingSee2:!1,tableKeySee2:0,total2:0,total3:0,listLoading3:!1,tableKey3:0,list3:[],findAllEmploye:[],findAllPasture:[],requestParams:[{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:p.a.get("pastureid")}},{name:"getDepartmentNY",offset:0,pagecount:0,parammaps:{pastureId:p.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],getdataListParm1:{name:"getbuydetailParts",page:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid"),departmentId:0}},getdataListPart:{name:"getpartpurchasebg",page:1,returntype:"Map",parammaps:{id:p.a.get("pastureid"),departmentId:0}},partData:[],getParmCreateNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:p.a.get("pastureid"),codeType:"PD"}},pageNum1:0,pageSize1:0,temp1:{pastureId:p.a.get("pastureid"),buyerPerson:this.$store.state.user.employeid,buyerDate:Object(m["e"])(new Date,"{y}-{m}-{d}")},getdataListParm2:{name:"getBigbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{providerName:"",buyeCode:"",inputDatetime:"",pastureName:p.a.get("pasturename")}},dialogFormVisibleConfirmation:!1,dialogStatusConfirmation:"",pageNum2:0,pageSize2:0,temp2:{note:""},getdataListParm3:{name:"getbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),providerName:"",partCode:"",partName:"",matchCode:"",buyeCode:"",isStorage:"",startTime:"",stopTime:"",inputDatetime:""}},isExtensionDays:!1,listSee2:[],getdataListSee2:{name:"getbuydetailListbyBig",returntype:"Map",parammaps:{}},requestParamStute:{name:"updateBigbuydetailStatu",returntype:"Map",parammaps:{}},pageNum3:0,pageSize3:0,temp3:{},dialogFormVisibleSee2:!1,dialogStatusSee2:"",listLoading4:!1,tableKey4:0,list4:[],pageNum4:0,pageSize4:0,total4:0,getdataListParm4:{name:"getbigpartdeallist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),matchCode:"",statue:"",inputDatetime:"",startTime:"",stopTime:""}},dialogFormVisibleSee4:!1,dialogStatusSee4:"",temp4:{},listSee4:[],tableKeySee4:0,listLoadingSee4:!1,getdataListSee4:{name:"getbigpartdealdetiallist",returntype:"Map",parammaps:{}},activeList:[],deptNameList:[],active:3,currentRow:{},dialogStatusUpdate4:"",dialogFormVisibleUpdate4:!1,updateTemp4:{},listUpdate4:[],tableKeyUpdate4:0,listLoadingUpdate4:!1,dialogFormVisible_Examine:!1,dialogStatus_Examine:"",examineTemp:{SHstatue:1,workflowNote:""},statueReason:!1,dialogFormVisibleClose:!1,dialogStatusClose:"",textMap:{confirmation:"确认配单",see:"查看详情",close:"关闭提示",examine:"审核",update:"编辑"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}],note:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],downloadListParm3:{},downloadList3:[],isPercentage:!1,percentage:1}},created:function(){var e=this,t=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:p.a.get("name")}}).then((function(a){t.buttons=a.data.list,t.get_auto_buttons(),1==e.isDistributionSheet?(e.activeName="first",console.log(1,e.isDistributionSheet,e.isDistributionManagement)):1==e.isDistributionManagement?(e.activeName="fouth",console.log(2,e.isDistributionSheet,e.isDistributionManagement)):0==e.isDistributionSheet&&0==e.isDistributionManagement&&(e.activeName="second",console.log(3,e.isDistributionSheet,e.isDistributionManagement))})),this.get_select_list(),this.get_table_data1(),this.get_table_data2(),this.get_table_data3(),this.get_table_data4(),void 0!==this.$route.query.activeName&&(this.activeName=this.$route.query.activeName)},methods:{change_dept:function(e){console.log(e),this.getdataListParm1.parammaps.departmentId=e,this.getdataListPart.parammaps.departmentId=e,this.get_table_data1()},tableSort:function(e){"first"==this.activeName?Object(m["f"])(e,this.list1):"second"==this.activeName?Object(m["f"])(e,this.list2):"third"==this.activeName?Object(m["f"])(e,this.list3):"fouth"==this.activeName&&Object(m["f"])(e,this.list4)},tableSort2:function(e){Object(m["f"])(e,this.listSee2)},get_auto_buttons:function(){var e="customs:purchase:distributionSheet",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isDistributionSheet=t;var a="customs:purchase:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isPurchaseSee=s;var i="customs:purchase:close",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isPurchaseClose=n;var l="customs:purchase:sap",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isPurchaseSap=o;var p="customs:purchase:srm",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isPurchaseSrm=m;var c="customs:purchase:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isPurchaseExport=d;var u="customs:purchase:shenhe",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isExamineDM=h;var g="customs:purchase:peidanjiemian",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isDistributionManagement=f},cellClick:function(e,t,a,s){return console.log(a),console.log("column",t),console.log("行索引",e.id),console.log("列索引",t.id),{background:"#eceb3c"}},tableRowStyle:function(e){var t=e.row;e.rowIndex;return console.log(t,t),console.log(" row.isParity",t.isParity),console.log(parseInt(t.isParity)%2==0),parseInt(t.isParity)%2==0?{background:"#eee"}:{background:""}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"No"==t.isNo&&10===a?{background:"red"}:{background:""}},handleClick:function(e,t){console.log(e,t),"first"===e.name?this.get_table_data1():"fouth"===e.name?this.get_table_data4():"second"===e.name?this.get_table_data2():"third"===e.name&&this.get_table_data3()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllEmploye=t.data.findAllEmploye.list,e.findAllPasture=t.data.findAllPasture.list,e.deptNameList=t.data.getDepartmentNY.list,console.log(e.deptNameList)}))},providerSearch:function(e,t){console.log("供应商模糊查询输入值",e),this.requestProvider.parammaps["providerName"]=e,Object(r["e"])(this.requestProvider).then((function(e){console.log("供应商模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectProvider:function(e){console.log("供应商模糊查询选中值",e)},get_table_data1:function(){var e=this;this.listLoading1=!0,Object(r["e"])(this.getdataListPart).then((function(t){console.log(t),e.partData=t.data.list})),Object(r["e"])(this.getdataListParm1).then((function(t){if(console.log("this.list1",t.data.list),null===t.data.list)e.list1=[],e.confirmationSheetDisabled=!0;else{var a;a=t.data.list;var s=[];if(a.forEach((function(e,t){Array.from(new Set(a.map((function(e){return e.partCode})))).forEach((function(t,a){e.partCode===t&&s.push({amount:e.amount,amountPre:e.amountPre,bigId:e.bigId,brand:e.brand,brandId:e.brandId,contractCode:e.contractCode,count:e.count,enable:e.enable,id:e.id,inventoryType:e.inventoryType,isZeroStock:e.isZeroStock,orderNumber:e.orderNumber,partCode:e.partCode,partId:e.partId,partName:e.partName,pastureId:e.pastureId,pastureName:e.pastureName,planAmount:e.planAmount,price:e.price,providerId:e.providerId,providerName:e.providerName,purpose:e.purpose,remark:e.remark,specification:e.specification,sumAmount:e.sumAmount,unit:e.unit,isNo:e.isNo,srcpath:e.srcpath,picpath:e.picpath,departmentName:e.departmentName,isParity:a})}))})),console.log(s),null!==s)for(var i=0;i<s.length;i++)console.log(s[i].srcpath),null!==s[i].srcpath&&null!==s[i].picpath&&void 0!==s[i].srcpath&&void 0!==s[i].picpath?(s[i].srcpath="http://127.0.0.1:8082/"+s[i].srcpath,s[i].picpath="http://127.0.0.1:8082/"+s[i].picpath):(s[i].srcpath="",s[i].picpath="");e.list1=s,console.log("处理后table数",e.list1),e.confirmationSheetDisabled=!1}for(var r="",n=0;n<e.list1.length;n++)r!==e.list1[n].partCode?(e.list1[n].amount=e.list1[n].sumAmount,r=e.list1[n].partCode):e.list1[n].amount=0;t.data.total&&(e.total1=t.data.total),setTimeout((function(){e.listLoading1=!1}),300)}))},confirmationSheet:function(){var e=this;function t(e,t){var a={};return e.forEach((function(e){var s=JSON.stringify(t(e));console.log("group2",s),a[s]=a[s]||[],a[s].push(e)})),Object.keys(a).map((function(e){return a[e]}))}console.log("点击立确认配单"),this.temp1.matchCode="",console.log(this.list1);var a=t(this.list1,(function(e){return[e.partCode]}));console.log("表格数据根据供应商分划",a);for(var s=0;s<a.length;s++){for(var i=0,n=0,l=0;l<a[s].length;l++)if(a[s][l].partCode===a[s][l].partCode){var o=a[s][l];i+=parseInt(o.amount),n=parseInt(o.sumAmount)}if(i>n||i<n){console.log("No"),console.log(o.id);for(var m=0;m<this.list1.length;m++)if(o.id===this.list1[m].id){console.log(this.list1[m].partCode);for(i=0;i<this.list1.length;i++)this.list1[i].partCode===this.list1[m].partCode?(console.log(this.list1[i]),this.$set(this.list1[i],"isNo","No")):this.$set(this.list1[i],"isNo","Yes")}else this.$set(this.list1[m],"isNo","Yes");return console.log(i),void this.$message({type:"warning",message:"同一备件多个供应商合计采购数量总和等于申购数量"})}for(m=0;m<this.list1.length;m++){this.$set(this.list1[m],"isNo","Yes");var c=/^[0-9]\d*$/;if(!c.test(this.list1[m].amount))return this.$message({type:"error",message:"采购数量请输入正整数",duration:2e3}),!1}}this.getCreateNumber(),this.dialogStatusConfirmation="confirmation",this.dialogFormVisibleConfirmation=!0,console.log("确认配单data------",this.list1),console.log(this.list1),console.log("根据供应商分类",a),console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet);var d={},u=[];for(s=0;s<this.list1.length;s++){console.log(this.list1[s]);var h=this.list1[s],g=this.list1[s].price,f=this.list1[s].amount,b=0;if(b=parseFloat(g)*parseFloat(f),d[h.providerName])for(l=0;l<u.length;l++){console.log(u[l]);var v=u[l];if(v.providerName===h.providerName){v.sumPrice.push(b),v.price.push(g),v.amount.push(f),v.list.push(h);break}}else u.push({price:[g],amount:[f],sumPrice:[b],providerId:h.providerId,providerName:h.providerName,purpose:h.purpose,list:[h]}),d[h.providerName]=h,d[h.providerId]=h}var y=[];for(s=0;s<this.list1.length;s++)y.push(this.list1[s].providerName);function _(e){return Array.from(new Set(e))}var w=_(y);console.log("去重后供应商",w);var S=[];this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(s=0;s<w.length;s++)this.postDataPramas.data[s]={name:"autoCreatCode",type:"sm",parammaps:{pastureId:p.a.get("pastureid"),codeType:"CG"}};Object(r["c"])(this.postDataPramas).then((function(t){console.log("采购单请求发送参数",e.postDataPramas);for(var a=0;a<t.data.length;a++)S.push(t.data[a].resultmaps[0].orderCode);console.log(S),e.listConfirmationSheet.map((function(e,t){return e.orderNumber=S[t],e})),e.$forceUpdate()})),console.log(S),this.listConfirmationSheet=u,console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet);var P=[];this.listConfirmationSheet.forEach((function(e,t){console.log(e.sumPrice),P.push(e.sumPrice.reduce((function(e,t){return e+t}),0).toFixed(3))})),this.listConfirmationSheet.map((function(e,t){return e.Sum=P[t],e})),console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet)},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.show=!1,console.log("配单号",t.data.list[0].orderCode),e.temp1.matchCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},confirmationSheetData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击了确认配单提交"),this.$refs["temp1"].validate((function(t){if(t){""!=e.temp1.matchCode&&null!=e.temp1.matchCode&&void 0!=e.temp1.matchCode||e.getCreateNumber(),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],console.log(e.listConfirmationSheet);for(var a=0;a<e.listConfirmationSheet.length;a++)if(null==e.listConfirmationSheet[a].orderNumber||void 0==e.listConfirmationSheet[a].orderNumber)return e.$notify({title:"保存失败",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}),!1;var s=e.listConfirmationSheet.length;e.listConfirmationSheet.forEach((function(t,a){console.log(t),e.postDataPramas.data[a]={name:"insertBigbuydetail",resultname:"insertBigbuydetail"+a,type:"e",parammaps:{pastureId:p.a.get("pastureid"),buyeCode:t.orderNumber,providerId:t.providerId,buyerPerson:e.temp1.buyerPerson,buyerDate:e.temp1.buyerDate,matchCode:e.temp1.matchCode}},e.postDataPramas.data[s]={name:"insertSpotList",resultmaps:{list:t.list}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"insertbuydetail",type:"e",parammaps:{bigId:"@insertBigbuydetail"+a+".LastInsertId",pastureId:"@insertSpotList.pastureId",contractCode:"@insertSpotList.contractCode",amount:"@insertSpotList.amount",sumAmount:"@insertSpotList.sumAmount",contractId:"@insertSpotList.id",departmentName:"@insertSpotList.departmentName",remark:"@insertSpotList.purpose"}},s+=1})),e.postDataPramas.data[s]={name:"insertSpotListbpp",resultmaps:{list:e.partData}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"updateBigpartpurchaseStatu",type:"e",parammaps:{id:"@insertSpotListbpp.id",matchCode:e.temp1.matchCode}},e.postDataPramas.data.push({name:"insertbigpartdeal",type:"e",parammaps:{empId:e.temp1.buyerPerson,pastureId:p.a.get("pastureid"),matchCode:e.temp1.matchCode}}),Object(r["c"])(e.postDataPramas).then((function(t){if("fail"===t.msg){var a=new RegExp("buyeCode");a.test(t.data)?e.$notify({title:"",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.dialogFormVisibleConfirmation=!1,e.activeName="fouth",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}}))},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},form_search2:function(){this.listLoading=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},statu:function(e){return 0===e.statu?"未到货":1===e.statu?"部分到货":2===e.statu?"按时到货":3===e.statu?"已延期":4===e.statu?"已关闭":5===e.statu?"部分到货-延期":6===e.statu?"全部到货-延期":void 0},statue:function(e){return 0===e.statue?"审核中":1===e.statue?"审核通过":2===e.statue?"未通过":void 0},form_see2:function(e){this.temp2=Object.assign({},e),0===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="未到货",this.isExtensionDays=!1):1===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货",this.isExtensionDays=!1):2===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="按时到货",this.isExtensionDays=!1):3===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="已延期",this.isExtensionDays=!0):4===this.temp2.statu?(this.temp2.statu="已关闭",this.isStatu=!0,this.isExtensionDays=!1):5===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货-延期",this.isExtensionDays=!0):6===this.temp2.statu&&(this.isStatu=!1,this.temp2.statu="全部到货-延期",this.isExtensionDays=!0),this.dialogStatusSee2="see",this.dialogFormVisibleSee2=!0,this.getdataListSee2.parammaps.id=e.id,this.getSeeList2()},getSeeList2:function(){var e=this;Object(r["e"])(this.getdataListSee2).then((function(t){if(e.listSee2=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee2[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee2[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee2[a].srcpath="",e.listSee2[a].picpath="");console.log("查看下方table数据",t.data.list);for(var s=[],i=0;i<e.listSee2.length;i++)console.log(),s.push(e.listSee2[i].sumPrice);console.log("总价",s);var r=0;for(i=0;i<s.length;i++)console.log("table内总价每一个值",s[i]),r+=parseFloat(s[i]);e.temp2.sumPrices=r.toFixed(3),setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCloseTemp:function(){this.temp2.note=""},handleClose2:function(e){this.resetCloseTemp(),this.temp2=Object.assign({},e),this.dialogStatusClose="close",this.dialogFormVisibleClose=!0},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},sapUpload:function(){var e=this;console.log("currentRow",this.currentRow.sapstatus);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["n"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},checkboxInit:function(e,t){console.log(e);var a=new Date(e.buyerDate),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},srmUpload:function(){var e=this;console.log("currentRow",this.currentRow.srmstatus),console.log("勾选数据selectList",this.selectList);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSrm),1==e.isSrm?(e.isSrm=0,Object(r["s"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSrm=1}),3e3)},closeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击确认关闭",this.temp2),this.$refs["temp2"].validate((function(t){t&&(e.requestParamStute.parammaps.id=e.temp2.id,e.requestParamStute.parammaps.note=e.temp2.note,Object(r["k"])(e.requestParamStute).then((function(t){console.log("新增保存发送参数",e.requestParamStute),"fail"!==t.msg?(e.get_table_data2(),e.dialogFormVisibleClose=!1,e.$notify({title:"成功",message:"关闭成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},get_table_data3:function(){var e=this;this.listLoading3=!0,void 0!==this.$refs["inputDatetime3"]&&null!==this.$refs["inputDatetime3"].value?(this.getdataListParm3.parammaps.startTime=this.$refs["inputDatetime3"].value[0],this.getdataListParm3.parammaps.stopTime=this.$refs["inputDatetime3"].value[1]):(this.getdataListParm3.parammaps.startTime="",this.getdataListParm3.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm3).then((function(t){e.list3=t.data.list,e.pageNum3=t.data.pageNum,e.pageSize3=t.data.pageSize,t.data.total&&(e.total3=t.data.total),setTimeout((function(){e.listLoading3=!1}),300)}))},form_search3:function(){this.listLoading=!0,null===this.getdataListParm3.parammaps.inputDatetime&&(this.getdataListParm3.parammaps.inputDatetime=""),this.getdataListParm3.offset=1,this.get_table_data3()},handleDownload3:function(){var e=this;console.log("点击了采购明细导出"),this.$alert("采购明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadListParm3.name=this.getdataListParm3.name,this.downloadListParm3.parammaps=this.getdataListParm3.parammaps,Object(r["d"])(this.downloadListParm3).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.downloadList3=t.data.list;var a=[{tHeader:["配单号","采购单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","单价","申购数量","采购数量","入库数","申购部门","采购人","配单日期"],filterVal:["matchCode","buyeCode","partCode","partName","specification","brand","unit","providerName","price","sumAmount","amount","receiveAmount","departmentName","empname","buyerDate"],tableDatas:e.downloadList3,sheetName:"采购明细"}];Object(m["d"])(a,"采购明细",!0,"xlsx")}))},get_table_data4:function(){var e=this;this.listLoading4=!0,void 0!==this.$refs["inputDatetime4"]&&null!==this.$refs["inputDatetime4"].value?(this.getdataListParm4.parammaps.startTime=this.$refs["inputDatetime4"].value[0],this.getdataListParm4.parammaps.stopTime=this.$refs["inputDatetime4"].value[1]):(this.getdataListParm4.parammaps.startTime="",this.getdataListParm4.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm4).then((function(t){e.list4=t.data.list,e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize,t.data.total&&(e.total4=t.data.total),setTimeout((function(){e.listLoading4=!1}),300)}))},form_search4:function(){this.listLoading=!0,null===this.getdataListParm4.parammaps.inputDatetime&&(this.getdataListParm4.parammaps.inputDatetime=""),this.getdataListParm4.offset=1,this.get_table_data4()},form_see4:function(e){this.dialogStatusSee4="see",this.dialogFormVisibleSee4=!0,this.temp4=Object.assign({},e),this.getdataListSee4.parammaps.matchCode=e.matchCode,this.getSeeList4();var t="未通过原因:"+this.temp4.workflowNote;0===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核"}],this.active=1):1===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核",date:this.temp4.chargeDate,name:this.temp4.chargeName}],this.active=2):2===this.temp4.statue&&(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"办公室主任审核",date:this.temp4.chargeDate,name:this.temp4.chargeName,status:"error",reason:t}],this.active=2)},getSeeList4:function(){var e=this;Object(r["e"])(this.getdataListSee4).then((function(t){if(e.listSee4=t.data.list,e.listUpdate4=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)console.log(t.data.list[a].srcpath),console.log(t.data.list[a].picpath),console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?"see"==e.dialogStatusSee4?(e.listSee4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listUpdate4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listUpdate4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee4[a].srcpath="",e.listSee4[a].picpath="",e.listUpdate4[a].srcpath="",e.listUpdate4[a].picpath="");console.log("查看下方table数据",t.data.list),e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize}))},handleExamine:function(e){void 0==e?(this.examineTemp=this.temp4,this.$set(this.temp4,"SHstatue",1),this.$set(this.temp4,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus_Examine="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeSHStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log(this.examineTemp),this.$refs["examineTemp"].validate((function(t){t&&(1==e.examineTemp.SHstatue?(console.log("通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:p.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.postDataPramas.data[1]={name:"updatebigbuydetailenable",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},e.postDataPramas.data[2]={name:"updatebigbuydetailZero",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))):2==e.examineTemp.SHstatue&&(console.log("不通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:p.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))))}))},form_edit:function(e){this.dialogStatusUpdate4="update",this.dialogFormVisibleUpdate4=!0,this.getdataListSee4.parammaps.matchCode=e.matchCode,this.updateTemp4=Object.assign(e,{}),this.getSeeList4()},edit_dialog_save:function(){var e=this;this.$refs["updateTemp4"].validate((function(t){if(t){for(var a=0;a<e.listUpdate4.length;a++){console.log(e.listUpdate4[a].amount);var s=/^\d+$/;if((""==e.listUpdate4[a].amount||void 0==e.listUpdate4[a].amount)&&0!==parseFloat(e.listUpdate4[a].amount))return e.$message({type:"error",message:"采购数量不可为空",duration:2e3}),!1;if(!s.test(parseFloat(e.listUpdate4[a].amount)))return e.$message({type:"error",message:"采购数量请输入大于等于0的整数",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listUpdate4}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePDbuydetail",type:"e",parammaps:{amount:"@insertSpotList.amount",id:"@insertSpotList.id"}},e.postDataPramas.data[1]={name:"partdealCharge",type:"e",parammaps:{id:e.updateTemp4.id,statue:"0",empId:p.a.get("employeid")}}}return Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisibleUpdate4=!1,e.getdataListParm4.parammaps.inputDatetime="",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}}))}}},d=c,u=(a("43e4"),a("5103"),a("b666"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"1cd29b89",null);t["default"]=h.exports},a7d0:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件退货",use:"icon-备件退货-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件退货"><defs><style type="text/css"></style></defs><path d="M361.80384628 249.51153887h300.39230744a37.41923057 37.41923057 0 0 0 37.28076943-37.45384629V174.46538428c0-20.63076943-16.68461573-37.48846113-37.28076944-37.48846113H361.80384628c-20.45769258 0-37.31538427 16.75384628-37.31538514 37.48846112v37.55769258c0 20.63076943 16.71923057 37.48846113 37.31538515 37.48846202z m0.20769259-75.01153887h300.01153798v37.48846113H362.01153887V174.5z" p-id="11332" fill="#ffffff" /><path d="M811.90769258 174.5h-55.62692315v37.48846113h55.62692315c0.06923057 0.06923057 0.13846114 637.51153887 0.06923057 637.51153887H211.98846113V212.09230742a31987.38461573 31987.38461573 0 0 1 57.56538516-0.06923057V174.5H212.05769258c-20.76923057 0-37.55769258 16.82307685-37.55769258 37.55769258v637.30384628a37.52307685 37.52307685 0 0 0 37.41923057 37.62692227h600.05769258c20.83846113 0 37.52307685-16.85769258 37.52307685-37.62692227V212.09230742c0-20.80384628-16.82307685-37.59230742-37.59230742-37.59230742z" p-id="11333" fill="#ffffff" /><path d="M480.60384629 708.51153886c76.77692315 1.07307685 155.87307685 0.55384629 237.32307686-1.62692313-3.01153886 8.93076943-6.78461573 19.59230742-11.3538463 32.05384541-78.68076943 0.55384629-155.66538428 0-230.81538427-1.62692227-45.45-0.79615372-77.60769258-16.61538428-96.5423083-47.45769258-11.07692315 10.28076943-27.31153887 28.38461572-48.66923057 54.34615371l-16.61538428-33.68076943c23.81538427-22.98461572 41.12307685-39.49615371 51.92307685-49.5v-136.69615372H317.53076943v-30.01153798h79.51153799v173.21538428c16.78846114 26.23846113 44.61923057 39.91153886 83.56153886 40.98461572zM364.60769258 358.03076943c13.77692315 16.75384628 32.71153886 42.33461572 56.80384629 76.67307686l-28.83461572 20.28461485c-21.91153886-34.37307685-39.87692315-60.85384629-53.93076943-79.51153799l25.96153886-17.44615372z m210.15 257.1576917c0.24230742 11.07692315 0.9 21.77307685 2.04230742 32.05384629-25.71923057 9.72692315-51.68076943 20.94230742-77.88461572 33.68076943-7.61538427 4.05-15.16153887 8.79230742-22.74230743 14.19230743l-23.12307685-30.42692315c7.85769258-7.58076943 11.76923057-16.75384628 11.76923057-27.58846113V367.75769258h204.05769258v184.98461484h-30.42692315v-10.5576917h-142.78846113v105.88846113a2309.71153887 2309.71153887 0 0 0 79.09615371-32.88461572z m63.6576917-219.84230742h-142.78846113v46.24615371h142.78846113V395.34615371z m0 119.25v-46.24615371h-142.78846113v46.24615371h142.78846113zM685.07692315 550.7l20.7 28.00384628c-26.27307685 10.55769258-51.81923057 20.94230742-76.67307687 31.22307687 29.21538428 18.10384628 53.55 33.54230742 73.0038463 46.2461537l-20.28461573 28.38461573a3099.6 3099.6 0 0 0-157.3961537-105.88846201l16.61538427-22.32692315 60.8538463 36.9A1813.39615371 1813.39615371 0 0 0 685.07692315 550.7z" p-id="11334" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},a7dc:function(e,t,a){"use strict";var s=a("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_resizeHandler:function(){var e=this;return Object(s["a"])((function(){e.chart&&e.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},a7de:function(e,t,a){"use strict";a("0c69")},a921:function(e,t,a){"use strict";a("55e7")},a990:function(e,t,a){"use strict";a("1e68")},aa2f:function(e,t,a){},aa38:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"prev",staticClass:"dashboard-editor-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{style:{position:"fixed",height:"55px",top:"90px",zIndex:"999",marginBottom:"50px",background:"#f0f2f5",width:e.myWidth}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.changeTime},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140pxmargin-top:5px"},attrs:{placeholder:"快捷跳转方式"},on:{"visible-change":function(t){return e.changeJump(t,e.jump)}},model:{value:e.jump,callback:function(t){e.jump=t},expression:"jump"}},e._l(e.jumpList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px","margin-top":"5px"},attrs:{placeholder:"全部牧场"},on:{change:e.changePasture},model:{value:e.pastureId,callback:function(t){e.pastureId=t},expression:"pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"0","margin-top":"5px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("div",{staticStyle:{"margin-top":"50px"}},[a("div",[a("h3",{attrs:{id:"equipmentIndexCostTable"}},[e._v("设备指标")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipmentIndexCostTable.listLoading,expression:"equipmentIndexCostTable.listLoading"}],key:e.equipmentIndexCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipmentIndexCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentIndex(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"repairCostTable"}},[e._v("维修费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.repairCostTable.listLoading,expression:"repairCostTable.listLoading"}],key:e.repairCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.repairCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickRepairCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterCostTable"}},[e._v("水费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterCostTable.listLoading,expression:"waterCostTable.listLoading"}],key:e.waterCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecCostTable"}},[e._v("电费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecCostTable.listLoading,expression:"elecCostTable.listLoading"}],key:e.elecCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort4}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasCostTable"}},[e._v("柴油费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasCostTable.listLoading,expression:"gasCostTable.listLoading"}],key:e.gasCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort5}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterConsumptionTable"}},[e._v("水量(吨)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterConsumptionTable.listLoading,expression:"waterConsumptionTable.listLoading"}],key:e.waterConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort6}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecConsumptionTable"}},[e._v("电量(度)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecConsumptionTable.listLoading,expression:"elecConsumptionTable.listLoading"}],key:e.elecConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort7}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasConsumptionTable"}},[e._v("柴油用量(L)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasConsumptionTable.listLoading,expression:"gasConsumptionTable.listLoading"}],key:e.gasConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"bioConsumptionTable"}},[e._v("燃动用量")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.bioConsumptionTable.listLoading,expression:"bioConsumptionTable.listLoading"}],key:e.bioConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.bioConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickBioConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialog.listLoading,expression:"dialog.listLoading"}],key:e.dialog.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.dialog.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort9}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"70px",align:"center",prop:"deptname"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今预算",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}})],1)],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dialog.total>=0,expression:"dialog.total>=0"}],attrs:{total:e.dialog.total,page:e.dialog.getdataListParm.offset,limit:e.dialog.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.dialog.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.dialog.getdataListParm,"pagecount",t)},pagination:e.get_table_dataDialog}})],1)])],1)},i=[],r=(a("c5f6"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("a78e"),m=a.n(p),c=a("bc3a"),d=a.n(c),u=a("5f87");a("0fd4");var h={name:"EquipmentIndex",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{jump:"",jumpList:[{name:"设备指标",id:"0"},{name:"维修费用",id:"4"},{name:"水费",id:"1"},{name:"电费",id:"2"},{name:"柴油费",id:"3"},{name:"水量",id:"5"},{name:"电量",id:"6"},{name:"柴油量",id:"7"}],pastureId:"现代牧业",findAllPasture:[],getPastureParam:{name:"findAllPastureBySbzb",offset:0,pagecount:0,returntype:"Map",parammaps:{id:"18"}},getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:"18",eId:m.a.get("employeid")}},departmentId:"",findAllDept:[],yearDate:[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")],equipmentIndexCostTable:{listLoading:!0,list:[],tableKey:0,getdataListParm:{name:"getChooseEqMonthBudgetListSumAll",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},repairCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWX",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseWaterPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseElectricityPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthiolPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWater",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthElectricity",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthOilT",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},bioConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getLgnitionChargePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gaoilConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseGasolinePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},coalConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseCoalPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},dialog:{dialogFormVisible:!1,tableKey:0,listLoading:!0,list:null,total:0,getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:""}}},dialogStatus:"",textMap:{},requestParam:{name:"",offset:0,pagecount:0,parammaps:{}},downloadAll:{},isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},myWidth:""}},created:function(){this.getWindowWidth(),this.getPastureDownList(),this.getlistEquipmentIndex()},methods:{getWindowWidth:function(){var e=this;this.$nextTick((function(){e.myWidth=e.$refs.prev.clientWidth-30+"px",console.log(e.myWidth)}))},sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(o["f"])(e,this.equipmentIndexCostTable.list)},tableSort2:function(e){Object(o["f"])(e,this.repairCostTable.list)},tableSort3:function(e){Object(o["f"])(e,this.waterCostTable.list)},tableSort4:function(e){Object(o["f"])(e,this.elecCostTable.list)},tableSort5:function(e){Object(o["f"])(e,this.gasCostTable.list)},tableSort6:function(e){Object(o["f"])(e,this.waterConsumptionTable.list)},tableSort7:function(e){Object(o["f"])(e,this.elecConsumptionTable.list)},tableSort8:function(e){Object(o["f"])(e,this.gasConsumptionTable.list)},tableSort9:function(e){Object(o["f"])(e,this.dialog.list)},changeJump:function(e,t){e||""!==t&&(console.log(t),"维修费用"==t?window.scrollTo(0,document.getElementById("repairCostTable").offsetTop-150):"水费"==t?window.scrollTo(0,document.getElementById("waterCostTable").offsetTop-150):"电费"==t?window.scrollTo(0,document.getElementById("elecCostTable").offsetTop-150):"柴油费"==t?window.scrollTo(0,document.getElementById("gasCostTable").offsetTop-150):"水量"==t?window.scrollTo(0,document.getElementById("waterConsumptionTable").offsetTop-150):"电量"==t?window.scrollTo(0,document.getElementById("elecConsumptionTable").offsetTop-150):"柴油量"==t?window.scrollTo(0,document.getElementById("gasConsumptionTable").offsetTop-150):window.scrollTo(0,document.getElementById("equipmentIndexCostTable").offsetTop-150))},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="DownloadEquipment",this.requestParam.offset=0,this.requestParam.pagecount=0,this.requestParam.parammaps={},this.requestParam.parammaps.startTime=this.yearDate[0],this.requestParam.parammaps.endTime=this.yearDate[1],"现代牧业"==this.pastureId?this.requestParam.parammaps.pastureId="":this.requestParam.parammaps.pastureId=this.pastureId,this.requestParam.parammaps.departmentId=this.departmentId,this.requestParam.parammaps.deptId=this.requestParam.parammaps.departmentId,console.log(this.requestParam);var a=this.requestParam,s="http://127.0.0.1:8082/authdata/downloadmailreport";d()({method:"post",url:s,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream"}),s=window.URL.createObjectURL(a),i=document.createElement("a");i.style.display="none",i.href=s;var r="设备指标.xlsx";i.setAttribute("download",r),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(s)}}))},getPastureDownList:function(){var e=this;Object(r["e"])(this.getPastureParam).then((function(t){e.findAllPasture=t.data.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDept=t.data.list}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.getDepartDownList(),this.departmentId="",this.getlistEquipmentIndex()},changeTime:function(){this.getlistEquipmentIndex()},getlistEquipmentIndex:function(){var e=this;this.equipmentIndexCostTable.listLoading=!0,this.equipmentIndexCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.equipmentIndexCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.equipmentIndexCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.equipmentIndexCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.equipmentIndexCostTable.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a+1;e.equipmentIndexCostTable.list=t.data.list}else e.equipmentIndexCostTable.list=[];setTimeout((function(){e.equipmentIndexCostTable.listLoading=!1,e.get_table_dataRepair()}),100)}))},get_table_dataRepair:function(){var e=this;this.repairCostTable.listLoading=!0,this.repairCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.repairCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.repairCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.repairCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.repairCostTable.getdataListParm).then((function(t){null!==t.data.list?e.repairCostTable.list=t.data.list:e.repairCostTable.list=[],setTimeout((function(){e.get_table_dataWater(),e.repairCostTable.listLoading=!1}),100)}))},get_table_dataWater:function(){var e=this;this.waterCostTable.listLoading=!0,this.waterCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterCostTable.getdataListParm).then((function(t){null!==t.data.list?e.waterCostTable.list=t.data.list:e.waterCostTable.list=[],setTimeout((function(){e.waterCostTable.listLoading=!1,e.get_table_dataElec()}),100)}))},get_table_dataElec:function(){var e=this;this.elecCostTable.listLoading=!0,this.elecCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecCostTable.getdataListParm).then((function(t){null!==t.data.list?e.elecCostTable.list=t.data.list:e.elecCostTable.list=[],setTimeout((function(){e.get_table_dataGas(),e.elecCostTable.listLoading=!1}),100)}))},get_table_dataGas:function(){var e=this;this.gasCostTable.listLoading=!0,this.gasCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasCostTable.getdataListParm).then((function(t){null!==t.data.list?e.gasCostTable.list=t.data.list:e.gasCostTable.list=[],setTimeout((function(){e.gasCostTable.listLoading=!1,e.get_table_dataWaterConsumption()}),100)}))},get_table_dataWaterConsumption:function(){var e=this;this.waterConsumptionTable.listLoading=!0,this.waterConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.waterConsumptionTable.list=t.data.list:e.waterConsumptionTable.list=[],setTimeout((function(){e.get_table_dataElecConsumption(),e.waterConsumptionTable.listLoading=!1}),100)}))},get_table_dataElecConsumption:function(){var e=this;this.elecConsumptionTable.listLoading=!0,this.elecConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.elecConsumptionTable.list=t.data.list:e.elecConsumptionTable.list=[],setTimeout((function(){e.get_table_dataGasConsumption(),e.elecConsumptionTable.listLoading=!1}),100)}))},get_table_dataGasConsumption:function(){var e=this;this.gasConsumptionTable.listLoading=!0,this.gasConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.gasConsumptionTable.list=t.data.list:e.gasConsumptionTable.list=[],setTimeout((function(){e.get_table_dataBioConsumptionTable(),e.gasConsumptionTable.listLoading=!1}),100)}))},get_table_dataBioConsumptionTable:function(){var e=this;this.bioConsumptionTable.listLoading=!0,this.bioConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.bioConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.bioConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.bioConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.bioConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.bioConsumptionTable.list=t.data.list:e.bioConsumptionTable.list=[],setTimeout((function(){e.bioConsumptionTable.listLoading=!1}),100)}))},get_table_dataDialog:function(){var e=this;this.dialog.listLoading=!0,Object(r["e"])(this.dialog.getdataListParm).then((function(t){null==t.data.list?(e.dialog.list=t.data.list,e.dialog.pageNum=0,e.dialog.pageSize=0,e.dialog.total=0):(e.dialog.list=t.data.list,e.dialog.pageNum=t.data.pageNum,e.dialog.pageSize=t.data.pageSize,e.dialog.total=t.data.total),setTimeout((function(){e.dialog.listLoading=!1}),100)}))},clickEquipmentIndex:function(e){"现代牧业"!==e.pastureName&&(console.log(this.yearDate,"0000233"),console.log(this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-")),"0000233"),this.textMap.equipmentIndex=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"设备指标",this.dialogStatus="equipmentIndex",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseEqMonthBudgetListSumAllDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickRepairCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.repair=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"维修费",this.dialogStatus="repair",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWXDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.water=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水费",this.dialogStatus="water",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseWaterPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elec=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电费",this.dialogStatus="elec",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseElectricityPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gas=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油费",this.dialogStatus="gas",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthiolPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.waterConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水量",this.dialogStatus="waterConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWaterDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elecConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电量",this.dialogStatus="elecConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthElectricityDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gasConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="gasConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickBioConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.bioConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="bioConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 1===a?"现代牧业"==t.pastureName?{textDecoration:"none"}:{textDecoration:"underline"}:{textDecoration:"none"}}}},g=h,f=(a("5e0c"),a("63ef"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"236f973c",null);t["default"]=b.exports},aa3f:function(e,t,a){"use strict";a("599a")},ab02:function(e,t,a){"use strict";a("2655")},ab21:function(e,t,a){"use strict";a("88c3")},abdf:function(e,t,a){"use strict";a("f0bb")},ac15:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("98d6");a("ed08");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieDeptData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DeptData,a=e.text;this.chart.setOption({title:{text:a+"月部门统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){s.$emit("chartClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},ac99:function(e,t,a){"use strict";a("fca6")},acea:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件退货",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"退货单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"EAS同步状态"},model:{value:e.getdataListParm.parammaps.easStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"easStatus",t)},expression:"getdataListParm.parammaps.easStatus"}},e._l(e.easStatus.easStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isReturngoodsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e(),e._v(" "),e.isRetrunsap?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期",sortable:"",prop:"createTime1","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ProofCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ProofCode?a("span",[e._v("已上传")]):a("span",[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isReturngoodsSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),!e.isReturngoodsUpdate||4!=s.statue&&6!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isReturngoodsExamineZG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isReturngoodsExamineCG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]),e._v(" "),!e.isReturngoodsDelete||4!=s.statue&&6!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"退货记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"退货单号"},model:{value:e.getdataListParm2.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm2.parammaps,"useForm",t)},expression:"getdataListParm2.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),a("div",[e.isReturngoodsExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初库存",sortable:"",prop:"reportery","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量",sortable:"",prop:"refundNumber","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.refundNumber))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货原因",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime1))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.createTemp.useForm,callback:function(t){e.$set(e.createTemp,"useForm",t)},expression:"createTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,filterable:"",placeholder:"供应商"},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,placeholder:"牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,"picker-options":e.pickerOptions,type:"date",placeholder:"退货日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"退货原因",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货方式:",prop:"laidType"}},[a("el-radio-group",{on:{change:e.changeStorageType},model:{value:e.createTemp.laidType,callback:function(t){e.$set(e.createTemp,"laidType",t)},expression:"createTemp.laidType"}},[a("el-radio",{attrs:{label:0},model:{value:e.createTemp.laidType,callback:function(t){e.$set(e.createTemp,"laidType",t)},expression:"createTemp.laidType"}},[e._v("寄售退货")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.createTemp.laidType,callback:function(t){e.$set(e.createTemp,"laidType",t)},expression:"createTemp.laidType"}},[e._v("自购件退货")])],1)],1)],1)],1),e._v(" "),e.No1?a("el-row",[a("el-col",{attrs:{span:15}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1),e._v(" "),e.isBatchOperation?a("el-col",{staticStyle:{"margin-left":"20px"},attrs:{span:3}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleBatchOperation}},[e._v("批量添加")])],1):e._e()],1):e._e(),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:15}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("el-autocomplete",{ref:"buyeCode",staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name","fetch-suggestions":e.buyeCodeSearch,placeholder:"请输入采购单号"},on:{select:e.handleSelectBuyeCode},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(s.buyeCode))])]}}],null,!1,3437052226),model:{value:e.createTemp.buyeCode,callback:function(t){e.$set(e.createTemp,"buyeCode",t)},expression:"createTemp.buyeCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.No1,expression:"No1"}],attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"refundNumber"}},[a("el-input",{staticStyle:{"margin-top":"15px"},on:{blur:e.blurRefundNumber},model:{value:t.row.refundNumber,callback:function(a){e.$set(t.row,"refundNumber",a)},expression:"scope.row.refundNumber"}})],1)],1),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.No2,expression:"No2"}]},[e._v(e._s(t.row.refundNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.refundNumber))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.seeTemp.useForm,callback:function(t){e.$set(e.seeTemp,"useForm",t)},expression:"seeTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货日期:",prop:"createTime1"}},[a("el-input",{ref:"createTime1",attrs:{disabled:""},model:{value:e.seeTemp.createTime1,callback:function(t){e.$set(e.seeTemp,"createTime1",t)},expression:"seeTemp.createTime1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",sortable:"",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量",sortable:"",prop:"refundNumber","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.refundNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"dflag",label:"冲销状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.dflag?a("span",[e._v("已冲销")]):a("span",[e._v("未冲销")])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isReturngoodsExamineZG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isReturngoodsExamineCG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statueSH,callback:function(t){e.$set(e.examineTemp,"statueSH",t)},expression:"examineTemp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"examine"===e.dialogStatus?e.createExamineData():e.createExamineData2()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号","min-width":"110px",align:"center",prop:"useForm"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d={name:"Returngoods",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isRetrunsap:[],currentRow:{},isReturngoodsAdd:[],isReturngoodsTemplate:[],isReturngoodsImport:[],isReturngoodsExport:[],isReturngoodsSee:[],isReturngoodsDelete:[],isReturngoodsExamineZG:[],isReturngoodsExamineCG:[],isReturngoodsUpdate:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核",examine2:"审核",easStatus:"EAS同步—同步失败数据"},rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getBigPartrefundlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),pastureId:c.a.get("pastureid"),useForm:"",inputDatetime:"",startTime:"",stopTime:"",easStatus:""}},tableKey:0,listLoading:!0,total:0,list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartrefundDetaillist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",orderNumber:"",startTime:"",stopTime:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename")}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},listLoadingSee:!0,listSee:[],totalSee:0,dialogStatusSee:"",dialogFormVisibleSee:!1,seeTemp:{},getdataListSee:{name:"getPartrefundlist",returntype:"Map",parammaps:{}},dialogFormVisible:!1,dialogStatus:"",createTemp:{providerId:"",useForm:"",note:"",laidType:0,buyeCode:"",pastureId:this.$store.state.user.pastureid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}")},requestSparePart:{name:"getPartsListTH",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"TH"}},listAdd:[],postDataPramas:{},dialogFormVisible_Examine:!1,examineTemp:{statueSH:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isBatchOperation:!1,getParmBatchOperation:{name:"getStockPastureListBypv",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),providerId:""}},TotalAmount:0,isPercentage:!1,percentage:1,easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartrefundSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},pending:{total:0,getdataListParm:{name:"getBigPartrefundWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}}},orderCode:{},requestBuyeCode:{name:"getbigrefunddetailCode",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getBuyDetailListParm:{name:"getrefunddetailListbyBig",returntype:"Map",parammaps:{}},No1:!0,No2:!1}},computed:{},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.refundNumber)>parseInt(e.reportery)&&(e.refundNumber=e.reportery)}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{changeStorageType:function(e){console.log("入库方式",e),0===e?(this.No2=!1,this.No1=!0):1===e&&(this.No2=!0,this.No1=!1),this.listAdd=[]},buyeCodeSearch:function(e,t){var a=this;console.log("采购单号模糊查询输入值",e),console.log(this.$refs["providerId"]),""!==this.createTemp.providerId?(this.requestBuyeCode.parammaps["buyeCode"]=e,this.requestBuyeCode.parammaps["providerId"]=this.createTemp.providerId,Object(r["e"])(this.requestBuyeCode).then((function(e){console.log("采购单号模糊查询搜索data",e.data.list),null===e.data.list?a.buyeCodeList=[]:a.buyeCodeList=e.data.list,t(e.data.list)}))):(this.requestBuyeCode.parammaps["buyeCode"]=e,this.requestBuyeCode.parammaps["providerId"]="",Object(r["e"])(this.requestBuyeCode).then((function(e){console.log("采购单号模糊查询搜索data",e.data.list),null===e.data.list?a.buyeCodeList=[]:a.buyeCodeList=e.data.list,t(e.data.list)})))},handleSelectBuyeCode:function(e){console.log("采购单号模糊查询选中值",e),this.TotalAmount=0,this.createTemp.orderCode=e.buyeCode,this.createTemp.orderCodeId=e.id,this.getBuyDetailListParm.parammaps.id=e.id,this.getBuyDetailListParm.parammaps.pastureId=c.a.get("pastureid"),this.getBuyDetailList()},getBuyDetailList:function(){var e=this;Object(r["e"])(this.getBuyDetailListParm).then((function(t){if(console.log("采购入库table-data",t.data.list),e.listAdd=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.$set(e.listAdd[a],"warehoseCode",t.data.list[a].warehoseCode),e.$set(e.listAdd[a],"locationId",t.data.list[a].warehoseCodeId),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="");e.$forceUpdate()})),this.$forceUpdate()},tableSort:function(e){"first"==this.activeName?Object(l["f"])(e,this.listSee):"second"==this.activeName&&Object(l["f"])(e,this.list2)},get_auto_buttons:function(){var e="customs:returngoods:sap",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isRetrunsap=t;var a="customs:returngoods:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isReturngoodsAdd=s;var i="customs:Returngoods:update",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isReturngoodsUpdate=n;var l="customs:returngoods:template",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isReturngoodsTemplate=o;var p="customs:returngoods:import",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isReturngoodsImport=m;var c="customs:returngoods:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isReturngoodsExport=d;var u="customs:returngoods:see",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isReturngoodsSee=h;var g="customs:returngoods:delete",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isReturngoodsDelete=f;var b="customs:returngoods:examineZG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isReturngoodsExamineZG=v;var y="customs:returngoods:examineCG",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isReturngoodsExamineCG=_;var w="customs:returngoods:easSynchronization",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isEasSynchronization=S;var P="customs:returngoods:manualSynchronization",x=Object(r["v"])(this.$store.state.user.buttons,P);this.isManualSynchronization=x;var T="customs:returngoods:closeSynchronization",k=Object(r["v"])(this.$store.state.user.buttons,T);this.isCloseSynchronization=k;var C="customs:returngoods:ignoreSynchronization",L=Object(r["v"])(this.$store.state.user.buttons,C);this.isIgnoreSynchronization=L},changePastureName:function(e){this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.pending.getdataListParm.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.pending.getdataListParm.parammaps.empId=c.a.get("employeid"),this.pending.getdataListParm.parammaps.pastureId=this.getdataListParm.parammaps.pastureId,this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){console.log("table数据",t.data.list),e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigPartrefundlist",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),useForm:"",inputDatetime:"",startTime:"",stopTime:""},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigPartrefundWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,useForm:this.getdataListParm.parammaps.useForm,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigPartrefundWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,useForm:this.getdataListParm.parammaps.useForm,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue||6==e.statue?"未通过":5==e.statue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.providerId="",this.createTemp.note="",this.createTemp.employeId=this.$store.state.user.employeid,this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.useForm="",this.listAdd=[],this.TotalAmount=0},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){if(e.ProofCode)return 0;var a=new Date(e.createTime1),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["p"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},form_add:function(){this.resetCreateTemp(),this.createTemp.useForm="",this.dialogStatus="create",this.dialogFormVisible=!0,this.getCreateNumber()},changeProvider:function(e){console.log(e,"供应商change"),this.listAdd=[],this.getParmBatchOperation.parammaps.providerId=e,this.isBatchOperation=!0},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增退货单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""!==this.createTemp.providerId?(this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))):this.$message({title:"",message:"请选择供应商",type:"warning",duration:2e3})},handleSelectSparePart:function(e){if(console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.id),this.TotalAmount=0,this.listAdd.length>0){if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}),console.log(this.listAdd),console.log(this.listAdd.length),this.TotalAmount=0;for(var t=0;t<this.listAdd.length;t++)console.log(this.TotalAmount),this.TotalAmount+=parseFloat(this.listAdd[t].refundNumber)*parseFloat(this.listAdd[t].price),this.TotalAmount=this.TotalAmount,console.log(this.TotalAmount);return console.log(this.TotalAmount),!1}this.listAdd.unshift(e),this.$set(e,"refundNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="")}else this.listAdd.unshift(e),this.$set(e,"refundNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="");this.$forceUpdate(),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].refundNumber)*parseFloat(this.listAdd[a].price);this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))},handleBatchOperation:function(){var e=this;Object(r["e"])(this.getParmBatchOperation).then((function(t){e.$nextTick((function(){if(console.log("批量添加",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"refundNumber",t.data.list[a].reportery),e.TotalAmount+=parseFloat(t.data.list[a].refundNumber)*parseFloat(t.data.list[a].price),e.TotalAmount=parseFloat(e.TotalAmount.toFixed(2)),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.$set(t.data.list[a],"srcpath","http://127.0.0.1:8082/"+t.data.list[a].srcpath),e.$set(t.data.list[a],"picpath","http://127.0.0.1:8082/"+t.data.list[a].picpath)):(t.data.list[a].srcpath="",t.data.list[a].picpath="");e.listAdd=t.data.list}else e.listAdd=[]}))}))},blurRefundNumber:function(){this.TotalAmount=0;for(var e=0;e<this.listAdd.length;e++)this.TotalAmount+=parseFloat(this.listAdd[e].refundNumber)*parseFloat(this.listAdd[e].price);this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),console.log(e.createTemp.useForm),""==e.createTemp.useForm||null==e.createTemp.useForm||void 0==e.createTemp.useForm?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("退库单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].refundNumber),null==this.listAdd[t].refundNumber||""===this.listAdd[t].refundNumber)return this.$message({type:"warning",message:"请检查退货数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(this.listAdd[t].refundNumber))return this.$message({type:"error",message:"退货数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].refundNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"退货数量不可大于库存数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartrefund",type:"e",parammaps:{pastureId:this.createTemp.pastureId,providerId:this.createTemp.providerId,buyeCode:this.createTemp.orderCode,useForm:this.createTemp.useForm,employeId:this.createTemp.employeId,createTime:this.createTemp.createTime,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartrefund",type:"e",parammaps:{bigId:"@insertBigPartrefund.LastInsertId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brand:"@insertSpotList.brand",reportery:"@insertSpotList.reportery",refundNumber:"@insertSpotList.refundNumber",contractId:"@insertSpotList.contractId",location:"@insertSpotList.location"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data(),e.getPendingList()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(e),console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0;for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1);t.TotalAmount+=parseFloat(t.listAdd[a].refundNumber)*parseFloat(t.listAdd[a].price)}t.TotalAmount=parseFloat(t.TotalAmount.toFixed(2))}))},form_see:function(e){this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.TotalAmount=0,this.getdataListSee.parammaps.bigId=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;2===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"采购审核"}],this.active=2):5===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=3):6===this.seeTemp.statue&&(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=3)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){e.createTime=e.createTime1,this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.TotalAmount=0,this.listAdd=[],this.getdataListSee.parammaps.bigId=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].refundNumber),null==this.listAdd[t].refundNumber||""===this.listAdd[t].refundNumber)return this.$message({type:"warning",message:"请检查退货数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(this.listAdd[t].refundNumber))return this.$message({type:"error",message:"退货数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].refundNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"退货数量不可大于库存数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartrefundCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartrefund",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartrefund",type:"e",parammaps:{bigId:this.createTemp.id,partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brand:"@insertSpotList.brand",reportery:"@insertSpotList.reportery",refundNumber:"@insertSpotList.refundNumber",contractId:"@insertSpotList.contractId",location:"@insertSpotList.location"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("退货记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="getPartrefundDetaillist",this.downloadParam.parammaps=this.getdataListParm2.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","退货单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","期初库存","退货数量","单价","总价","退货原因","录入人","退货日期"],filterVal:["pastureName","useForm","partCode","partName","specification","brand","unit","providerName","reportery","refundNumber","price","sumPrice","note","empname","createTime1"],tableDatas:t.data.list,sheetName:"退货记录"}];Object(l["d"])(e,"退货记录",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartrefund",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartrefund",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},changeStatue:function(e){this.statueReason=2==e},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData:function(){var e=this;console.log("点击了主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partrefundCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statueSH?e.requestParam.parammaps.statue=3:2==e.examineTemp.statueSH&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("主管审核确认发送参数",e.requestParam),"fail"!==t.msg?(setTimeout((function(){e.get_table_data()}),1e3),e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,e.statueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(1==e.examineTemp.statueSH?(e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"partrefundCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:5,empId:c.a.get("employeid")}},e.requestParam.data[1]={name:"updatePartRepertoryTHS",type:"e",parammaps:{id:e.examineTemp.id}},Object(r["c"])(e.requestParam).then((function(t){console.log("采购审核保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,setTimeout((function(){e.get_table_data()}),1e3),e.getPendingList(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}))}))):2==e.examineTemp.statueSH&&(e.requestParam.name="partrefundCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("采购审核确认发送参数",e.requestParam),"fail"!==t.msg?(setTimeout((function(){e.get_table_data()}),1e3),e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,e.statueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartrefundSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="2",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartrefundSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},u=d,h=(a("ef85"),a("4f63"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"45aa57d4",null);t["default"]=g.exports},ad08:function(e,t,a){"use strict";a("99c1")},ae0f:function(e,t,a){},aedd:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"编号"},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表结构"},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isGasExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isGasExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isGasImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"90px",align:"center",prop:"departName"}}),e._v(" "),a("el-table-column",{attrs:{label:"编号",width:"90px",align:"center",prop:"gasNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"90px",align:"center",prop:"gasName"}}),e._v(" "),a("el-table-column",{attrs:{label:"表结构",width:"90px",align:"center",prop:"useType"}}),e._v(" "),a("el-table-column",{attrs:{label:"当天用气量",width:"90px",align:"center",sortable:"",prop:"gasConsumption"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",width:"90px",align:"center",sortable:"",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"倍率",width:"90px",align:"center",sortable:"",prop:"rate"}}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用",width:"90px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"90px",align:"center",prop:"putName"}}),e._v(" "),a("el-table-column",{attrs:{label:"日期",width:"90px",align:"center",sortable:"",prop:"dateFormat"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注",width:"90px",align:"center",prop:"note"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isGasModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDosageRecord(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"天然气表编号:",prop:"formNumber"}},[a("el-autocomplete",{ref:"formNumber",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formNumber","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurSelect},model:{value:e.temp.formNumber,callback:function(t){e.$set(e.temp,"formNumber",t)},expression:"temp.formNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"天然气表名称:",prop:"formName"}},[a("el-autocomplete",{ref:"formName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurSelect},model:{value:e.temp.formName,callback:function(t){e.$set(e.temp,"formName",t)},expression:"temp.formName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"天然气类型:"}},[a("span",[e._v(e._s(e.temp.useType))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("span",[e._v(e._s(e.temp.pastureName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:"}},[a("span",[e._v(e._s(e.temp.departName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:"}},[a("span",[e._v(e._s(e.temp.employeName1))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用量:",prop:"consumption"}},[a("el-input",{ref:"consumption",on:{blur:e.handleBlurConsumption},model:{value:e.temp.consumption,callback:function(t){e.$set(e.temp,"consumption",t)},expression:"temp.consumption"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price1"}},[a("el-input",{ref:"price",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.price1,callback:function(t){e.$set(e.temp,"price1",t)},expression:"temp.price1"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:",prop:"rate"}},[a("el-input",{ref:"rate",attrs:{disabled:""},model:{value:e.temp.rate,callback:function(t){e.$set(e.temp,"rate",t)},expression:"temp.rate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.DATE,callback:function(t){e.$set(e.temp,"DATE",t)},expression:"temp.DATE"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("表名称:"+e._s(e.dosageRecordTemp.formName))]),e._v(" "),a("span",[e._v("表编号:"+e._s(e.dosageRecordTemp.formNumber))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量","min-width":"110px",align:"center",sortable:"",prop:"waterConsumption"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",sortable:"",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",sortable:"",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center",prop:"empname"}}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.getDosageRecordList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.deleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=(a("5c96"),a("5f87")),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"Gas",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isGasAdd:[],isGasExport:[],isGasImport:[],isGasModify:[],formNumberSearchList:[],formNameSearchList:[],requestParam:{name:"insertGas",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getGasList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:""}},tableKey:0,list:null,total:0,listLoading:!0,useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["天然气表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},requestFilterParams:{name:"getWaterList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",consumption:"",measureId:"",useType:"",departName:"",aAmount:"",employeName1:"",endAmount:"",employeName:"",price1:"",note:"",formName:"",formNumber:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getAllMeasureTypeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dosageRecordTemp:{},rules:{endAmount:[{type:"number",required:!0,validator:function(t,a,s){a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],consumption:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"insertGassMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:gas:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isGasAdd=t;var a="cost:gas:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isGasExport=s;var i="cost:gas:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isGasImport=n;var l="cost:gas:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isGasModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},handleDownload:function(){var e=this;this.$alert("天然气表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfit",this.requestParam.parammaps.formType="天然气表",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.formName=this.getdataListParm.parammaps.formName,this.requestParam.parammaps.formNumber=this.getdataListParm.parammaps.formNumber,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.formType,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注"],r=["编号","牧场","表名称","表编号","抄表日期2","用量","单价2","录入人","备注2"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","错误信息"],r=["牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"天然气导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="天然气表",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]=e,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.formNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="天然气表",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.formName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNumberSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureGas",this.requestFilterParams.parammaps["formNumber"]=this.temp.formNumber,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formName=t.data.list[0].formName,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.rate=t.data.list[0].rate)}))}))},handleformNameSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureGas",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=this.temp.formName,Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formNumber=t.data.list[0].formNumber,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.rate=t.data.list[0].rate)}))}))},blurSelect:function(e){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId=""},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null==t.data.list?e.list=[]:(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.consumption="",this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.endAmount="",this.temp.price1="",this.temp.note="",this.temp.employeId="",this.temp.employeName="",this.temp.DATE=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.employeId=this.$store.state.user.employeid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},handleBlurConsumption:function(){"create"==this.dialogStatus?""!==this.temp.aAmount&&void 0!==this.temp.consumption&&""!==this.temp.consumption&&null!==this.temp.consumption&&(this.temp.endAmount=parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)):(this.$set(this.temp,"endAmount",parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)),this.$forceUpdate())},handleBlurEndAmount:function(){"create"==this.dialogStatus?"undefined"!==this.temp.endAmount&&""!==this.temp.endAmount&&null!==this.temp.endAmount&&""!==this.temp.aAmount&&(this.temp.consumption=parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)):(this.$set(this.temp,"consumption",parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertGasExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertGasExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertGasExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertGasExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;console.log(e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasureUpdate",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.date,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"updateGas",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,rate:e.temp.rate,id:e.temp.id,note:e.temp.note,employeId:e.temp.employeId,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureGas",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.date,lastRecodeId:e.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},deleteData:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){t&&(e.requestParam.name="deletedatastem",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.codeType=5,e.requestParam.parammaps.startTime=e.deleteTemp.startTime,e.requestParam.parammaps.stopTime=e.deleteTemp.startTime,Object(r["k"])(e.requestParam).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())})))}))},hanosageRecord:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),this.getDosageRecordList()},getDosageRecordList:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.id=this.dosageRecordTemp.measureId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},aee3:function(e,t,a){},aee8:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件退货",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"退货单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"EAS同步状态"},model:{value:e.getdataListParm.parammaps.easStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"easStatus",t)},expression:"getdataListParm.parammaps.easStatus"}},e._l(e.easStatus.easStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isReturngoodsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e(),e._v(" "),e.isRetrunsap?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.change_table_selection,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期",sortable:"",prop:"createTime1","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ProofCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ProofCode",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ProofCode?a("span",[e._v("已上传")]):a("span",[e._v("未上传")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isReturngoodsSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),!e.isReturngoodsUpdate||4!=s.statue&&6!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isReturngoodsExamineZG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isReturngoodsExamineCG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]),e._v(" "),!e.isReturngoodsDelete||4!=s.statue&&6!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"退货记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"退货单号"},model:{value:e.getdataListParm2.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm2.parammaps,"useForm",t)},expression:"getdataListParm2.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),a("div",[e.isReturngoodsExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初库存",sortable:"",prop:"reportery","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量",sortable:"",prop:"refundNumber","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.refundNumber))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货原因",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime1))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.createTemp.useForm,callback:function(t){e.$set(e.createTemp,"useForm",t)},expression:"createTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,filterable:"",placeholder:"供应商"},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,placeholder:"牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==e.dialogStatus,"picker-options":e.pickerOptions,type:"date",placeholder:"退货日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"退货原因",disabled:"update"==e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:15}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1),e._v(" "),e.isBatchOperation?a("el-col",{staticStyle:{"margin-left":"20px"},attrs:{span:3}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleBatchOperation}},[e._v("批量添加")])],1):e._e()],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"refundNumber"}},[a("el-input",{staticStyle:{"margin-top":"15px"},on:{blur:e.blurRefundNumber},model:{value:t.row.refundNumber,callback:function(a){e.$set(t.row,"refundNumber",a)},expression:"scope.row.refundNumber"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.refundNumber))))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.seeTemp.useForm,callback:function(t){e.$set(e.seeTemp,"useForm",t)},expression:"seeTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货日期:",prop:"createTime1"}},[a("el-input",{ref:"createTime1",attrs:{disabled:""},model:{value:e.seeTemp.createTime1,callback:function(t){e.$set(e.seeTemp,"createTime1",t)},expression:"seeTemp.createTime1"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"退货原因:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1)],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",sortable:"",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量",sortable:"",prop:"refundNumber","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.refundNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isReturngoodsExamineZG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isReturngoodsExamineCG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statueSH,callback:function(t){e.$set(e.examineTemp,"statueSH",t)},expression:"examineTemp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"examine"===e.dialogStatus?e.createExamineData():e.createExamineData2()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货单号","min-width":"110px",align:"center",prop:"useForm"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"退货日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("ac6a"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d={name:"Returngoods",components:{Pagination:o["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isRetrunsap:[],currentRow:{},isReturngoodsAdd:[],isReturngoodsTemplate:[],isReturngoodsImport:[],isReturngoodsExport:[],isReturngoodsSee:[],isReturngoodsDelete:[],isReturngoodsExamineZG:[],isReturngoodsExamineCG:[],isReturngoodsUpdate:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核",examine2:"审核",easStatus:"EAS同步—同步失败数据"},rules:{providerId:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getBigPartrefundlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),pastureId:c.a.get("pastureid"),useForm:"",inputDatetime:"",startTime:"",stopTime:"",easStatus:""}},tableKey:0,listLoading:!0,total:0,list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartrefundDetaillist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",orderNumber:"",startTime:"",stopTime:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename")}},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},listLoadingSee:!0,listSee:[],totalSee:0,dialogStatusSee:"",dialogFormVisibleSee:!1,seeTemp:{},getdataListSee:{name:"getPartrefundlist",returntype:"Map",parammaps:{}},dialogFormVisible:!1,dialogStatus:"",createTemp:{providerId:"",useForm:"",note:"",pastureId:this.$store.state.user.pastureid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}")},requestSparePart:{name:"getPartsListTH",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"TH"}},listAdd:[],postDataPramas:{},dialogFormVisible_Examine:!1,examineTemp:{statueSH:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isBatchOperation:!1,getParmBatchOperation:{name:"getStockPastureListBypv",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),providerId:""}},TotalAmount:0,isPercentage:!1,percentage:1,easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartrefundSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},pending:{total:0,getdataListParm:{name:"getBigPartrefundWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}}}}},computed:{},watch:{listAdd:{deep:!0,handler:function(e){this.listAdd.forEach((function(e){parseInt(e.refundNumber)>parseInt(e.reportery)&&(e.refundNumber=e.reportery)}))}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"first"==this.activeName?Object(l["f"])(e,this.listSee):"second"==this.activeName&&Object(l["f"])(e,this.list2)},get_auto_buttons:function(){var e="customs:returngoods:sap",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isRetrunsap=t;var a="customs:returngoods:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isReturngoodsAdd=s;var i="customs:Returngoods:update",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isReturngoodsUpdate=n;var l="customs:returngoods:template",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isReturngoodsTemplate=o;var p="customs:returngoods:import",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isReturngoodsImport=m;var c="customs:returngoods:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isReturngoodsExport=d;var u="customs:returngoods:see",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isReturngoodsSee=h;var g="customs:returngoods:delete",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isReturngoodsDelete=f;var b="customs:returngoods:examineZG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isReturngoodsExamineZG=v;var y="customs:returngoods:examineCG",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isReturngoodsExamineCG=_;var w="customs:returngoods:easSynchronization",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isEasSynchronization=S;var P="customs:returngoods:manualSynchronization",x=Object(r["v"])(this.$store.state.user.buttons,P);this.isManualSynchronization=x;var T="customs:returngoods:closeSynchronization",k=Object(r["v"])(this.$store.state.user.buttons,T);this.isCloseSynchronization=k;var C="customs:returngoods:ignoreSynchronization",L=Object(r["v"])(this.$store.state.user.buttons,C);this.isIgnoreSynchronization=L},changePastureName:function(e){this.getdataListParm.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.pending.getdataListParm.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.pending.getdataListParm.parammaps.empId=c.a.get("employeid"),this.pending.getdataListParm.parammaps.pastureId=this.getdataListParm.parammaps.pastureId,this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){console.log("table数据",t.data.list),e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigPartrefundlist",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),useForm:"",inputDatetime:"",startTime:"",stopTime:""},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigPartrefundWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,useForm:this.getdataListParm.parammaps.useForm,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigPartrefundWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,useForm:this.getdataListParm.parammaps.useForm,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue||6==e.statue?"未通过":5==e.statue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.providerId="",this.createTemp.note="",this.createTemp.employeId=this.$store.state.user.employeid,this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.useForm="",this.listAdd=[],this.TotalAmount=0},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},checkboxInit:function(e,t){if(e.ProofCode)return 0;var a=new Date(e.createTime1),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},sapUpload:function(){var e=this;console.log("currentRow ProofCode",this.currentRow.ProofCode);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(r["p"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},form_add:function(){this.resetCreateTemp(),this.createTemp.useForm="",this.dialogStatus="create",this.dialogFormVisible=!0,this.getCreateNumber()},changeProvider:function(e){console.log(e,"供应商change"),this.listAdd=[],this.getParmBatchOperation.parammaps.providerId=e,this.isBatchOperation=!0},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增退货单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""!==this.createTemp.providerId?(this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))):this.$message({title:"",message:"请选择供应商",type:"warning",duration:2e3})},handleSelectSparePart:function(e){if(console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.id),this.TotalAmount=0,this.listAdd.length>0){if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}),console.log(this.listAdd),console.log(this.listAdd.length),this.TotalAmount=0;for(var t=0;t<this.listAdd.length;t++)console.log(this.TotalAmount),this.TotalAmount+=parseFloat(this.listAdd[t].refundNumber)*parseFloat(this.listAdd[t].price),this.TotalAmount=this.TotalAmount,console.log(this.TotalAmount);return console.log(this.TotalAmount),!1}this.listAdd.unshift(e),this.$set(e,"refundNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="")}else this.listAdd.unshift(e),this.$set(e,"refundNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="");this.$forceUpdate(),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].refundNumber)*parseFloat(this.listAdd[a].price);this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))},handleBatchOperation:function(){var e=this;Object(r["e"])(this.getParmBatchOperation).then((function(t){e.$nextTick((function(){if(console.log("批量添加",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"refundNumber",t.data.list[a].reportery),e.TotalAmount+=parseFloat(t.data.list[a].refundNumber)*parseFloat(t.data.list[a].price),e.TotalAmount=parseFloat(e.TotalAmount.toFixed(2)),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.$set(t.data.list[a],"srcpath","http://127.0.0.1:8082/"+t.data.list[a].srcpath),e.$set(t.data.list[a],"picpath","http://127.0.0.1:8082/"+t.data.list[a].picpath)):(t.data.list[a].srcpath="",t.data.list[a].picpath="");e.listAdd=t.data.list}else e.listAdd=[]}))}))},blurRefundNumber:function(){this.TotalAmount=0;for(var e=0;e<this.listAdd.length;e++)this.TotalAmount+=parseFloat(this.listAdd[e].refundNumber)*parseFloat(this.listAdd[e].price);this.TotalAmount=parseFloat(this.TotalAmount.toFixed(2))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),console.log(e.createTemp.useForm),""==e.createTemp.useForm||null==e.createTemp.useForm||void 0==e.createTemp.useForm?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("退库单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].refundNumber),null==this.listAdd[t].refundNumber||""===this.listAdd[t].refundNumber)return this.$message({type:"warning",message:"请检查退货数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(this.listAdd[t].refundNumber))return this.$message({type:"error",message:"退货数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].refundNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"退货数量不可大于库存数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartrefund",type:"e",parammaps:{pastureId:this.createTemp.pastureId,providerId:this.createTemp.providerId,useForm:this.createTemp.useForm,employeId:this.createTemp.employeId,createTime:this.createTemp.createTime,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartrefund",type:"e",parammaps:{bigId:"@insertBigPartrefund.LastInsertId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brand:"@insertSpotList.brand",reportery:"@insertSpotList.reportery",refundNumber:"@insertSpotList.refundNumber",contractId:"@insertSpotList.contractId",location:"@insertSpotList.location"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data(),e.getPendingList()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(e),console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0;for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1);t.TotalAmount+=parseFloat(t.listAdd[a].refundNumber)*parseFloat(t.listAdd[a].price)}t.TotalAmount=parseFloat(t.TotalAmount.toFixed(2))}))},form_see:function(e){this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.TotalAmount=0,this.getdataListSee.parammaps.bigId=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;2===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"采购审核"}],this.active=2):5===this.seeTemp.statue?(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=3):6===this.seeTemp.statue&&(this.activeList=[{title:"退货申请",date:this.seeTemp.createTime1,name:this.seeTemp.empname},{title:"技术助理审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=3)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){e.createTime=e.createTime1,this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.TotalAmount=0,this.listAdd=[],this.getdataListSee.parammaps.bigId=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].refundNumber),null==this.listAdd[t].refundNumber||""===this.listAdd[t].refundNumber)return this.$message({type:"warning",message:"请检查退货数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(this.listAdd[t].refundNumber))return this.$message({type:"error",message:"退货数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].refundNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"error",message:"退货数量不可大于库存数",duration:2e3}),!1}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartrefundCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartrefund",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartrefund",type:"e",parammaps:{bigId:this.createTemp.id,partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brand:"@insertSpotList.brand",reportery:"@insertSpotList.reportery",refundNumber:"@insertSpotList.refundNumber",contractId:"@insertSpotList.contractId",location:"@insertSpotList.location"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("退货记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="getPartrefundDetaillist",this.downloadParam.parammaps=this.getdataListParm2.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","退货单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","期初库存","退货数量","单价","总价","退货原因","录入人","退货日期"],filterVal:["pastureName","useForm","partCode","partName","specification","brand","unit","providerName","reportery","refundNumber","price","sumPrice","note","empname","createTime1"],tableDatas:t.data.list,sheetName:"退货记录"}];Object(l["d"])(e,"退货记录",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartrefund",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartrefund",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},changeStatue:function(e){this.statueReason=2==e},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData:function(){var e=this;console.log("点击了主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="partrefundCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statueSH?e.requestParam.parammaps.statue=3:2==e.examineTemp.statueSH&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("主管审核确认发送参数",e.requestParam),"fail"!==t.msg?(setTimeout((function(){e.get_table_data()}),1e3),e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,e.statueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statueSH",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statueSH",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(1==e.examineTemp.statueSH?(e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"partrefundCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:5,empId:c.a.get("employeid")}},e.requestParam.data[1]={name:"updatePartRepertoryTHS",type:"e",parammaps:{id:e.examineTemp.id}},Object(r["c"])(e.requestParam).then((function(t){console.log("采购审核保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,setTimeout((function(){e.get_table_data()}),1e3),e.getPendingList(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}))}))):2==e.examineTemp.statueSH&&(e.requestParam.name="partrefundCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("采购审核确认发送参数",e.requestParam),"fail"!==t.msg?(setTimeout((function(){e.get_table_data()}),1e3),e.dialogFormVisible_Examine=!1,e.dialogFormVisibleSee=!1,e.statueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartrefundSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="2",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartrefundSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data(),t.getPendingList())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},u=d,h=(a("c04d"),a("eb5c"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"495a9609",null);t["default"]=g.exports},af5e:function(e,t,a){"use strict";a("b7ed")},afb3:function(e,t,a){"use strict";a("2c7e")},afd5:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:5}},[a("el-col",{attrs:{span:5}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("字典分类 ")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.jump}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"component-item"},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.parent,props:e.defaultProps,"default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)])],1),e._v(" "),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"名称","header-align":"center",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.label))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"值","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.value))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderby))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"label"}},[a("el-input",{ref:"label",model:{value:e.deptform.label,callback:function(t){e.$set(e.deptform,"label",t)},expression:"deptform.label"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"值",prop:"value"}},[a("el-input",{ref:"value",model:{value:e.deptform.value,callback:function(t){e.$set(e.deptform,"value",t)},expression:"deptform.value"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"orderby"}},[a("el-input",{ref:"orderby",model:{value:e.deptform.orderby,callback:function(t){e.$set(e.deptform,"orderby",t)},expression:"deptform.orderby"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("\n 确认新增\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("\n 确认\n ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("\n 关闭\n ")])],1)],1)],1)])],1)},i=[],r=a("6724"),n=a("6041"),l=a("2934"),o=a("61f7"),p=a("333d"),m=a("5c96"),c={name:"Dict",components:{Pagination:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},data:function(){return{defaultProps:{children:"children",label:"name"},dictid:0,list:[],total:0,listLoading:!0,requestParam:{name:"",params:[]},deptform:{label:"",value:"",orderby:"",enable:"",pid:""},getdataListParm:{name:"getDictList",offset:1,pagecount:8,params:[]},getRecuListParm:{name:"getDictclass",idname:"id",params:[-1]},rules:{label:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],value:[{type:"string",required:!0,message:"只必填",trigger:"change"}],orderby:[{validator:o["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.get_table_data()},methods:{jump:function(){this.$router.push("/console/menu")},handleNodeClick:function(e){var t=this;0===e.children.length&&(this.listLoading=!0,this.dictid=e.id,this.getdataListParm.params=[e.id,e.id],Object(l["e"])(this.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)})))},get_select_list:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parent=t.data}))},get_table_data:function(){var e=this;this.listLoading=!0,this.get_select_list(),Object(l["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.deptform.id="",this.deptform.pid="",this.deptform.label="",this.deptform.value="",this.deptform.orderby="0",this.deptform.enable="1"},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.deptform.orderby="0",this.deptform.enable=1,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["label"].focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(l["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["label"].focus()})),e.get_table_data(),e.resetRequestParam(),e.deptform.orderby="0",e.deptform.enable=1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.deptform.id=e.id,this.deptform.label=e.label,this.deptform.value=e.value,this.deptform.orderby=e.orderby,this.deptform.enable=e.enable,this.deptform.pid=e.pid,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["label"].focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,e.requestParam.params[5]=e.deptform.id,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateDictList",this.requestParam.params=[],this.requestParam.params[0]=t.label,this.requestParam.params[1]=t.value,this.requestParam.params[2]=t.orderby,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=this.dictid,this.requestParam.params[5]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;m["MessageBox"].confirm("名称:"+e.label,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteDictList",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},b04b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"el-verify-box"},[a("div",[a("el-input",{attrs:{type:"verify",placeholder:e.placeholder},model:{value:e.v,callback:function(t){e.v=t},expression:"v"}})],1),e._v(" "),a("div",{staticClass:"el-verify-img"},[a("img",{attrs:{alt:"点击切换",src:e.src},on:{click:e.reload}})])])},i=[],r=(a("c5f6"),{props:{url:String,value:{type:[String,Number]},placeholder:{type:String,default:"验证码"}},data:function(){var e=this.$HttpUrl(this.url);return{src:e}},computed:{v:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{reload:function(){this.src="".concat(this.src,"/?random=").concat(Math.random())}}}),n=r,l=(a("1342"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"8903917a",null);t["default"]=o.exports},b050:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center",prop:"totaluk"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"100px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"100px",align:"center",prop:"doneuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"100px",align:"center",prop:"donerateuk"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期","min-width":"100px",align:"center",prop:"totalmt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"配单日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库单号","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库日期","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"天数","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号","min-width":"100px",align:"center",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期","min-width":"100px",align:"center",prop:"donemt"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p={name:"PurchaseRateStatistics",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"UkdoneRatePasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetime:[]}}},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.getTimeFn(),this.getDownClassList()},methods:{getTimeFn:function(){var e=this,t=new Date,a=new Date;t.setTime(t.getTime()-6048e5),e.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(t,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(a,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.startTime=e.table.getdataListParm.parammaps.inputDatetime[0],e.table.getdataListParm.parammaps.stopTime=e.table.getdataListParm.parammaps.inputDatetime[1],e.get_table_data()},get_table_data:function(){var e=this;this.table.listLoading=!0,Object(l["e"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total,setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.inputDatetime[0],this.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.inputDatetime[1],this.get_table_data()},handleDownload:function(){var e=this;console.log("设备导出"),this.$alert("申购入库效率统计报表-设备正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="UkdoneRateEqclass",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","备件名称","备件编号","申购单号","申购日期","天数","配单号","配单日期","天数","采购单号","采购日期","天数","入库单号","天数","出库单号","出库日期"],filterVal:["","","","","","","","","","","","","","","",""],tableDatas:e.downLoadParm.list,sheetName:"Sheet"}];Object(o["d"])(a,"申购入库效率统计",!0,"xlsx")}))}))}}},m=p,c=a("2877"),d=Object(c["a"])(m,s,i,!1,null,null,null);t["default"]=d.exports},b0a6:function(e,t,a){},b11e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"el-item-group",style:e.style},[a("el-card",{staticClass:"el-item-group-card"},[a("div",{staticStyle:{height:"36px"},attrs:{slot:"header",dbclickfunc:e.handleShow},slot:"header"},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(e.label))]),e._v(" "),a("span",{staticStyle:{float:"right"}},[e.extend?a("el-item-insert",{attrs:{schema:e.extend},on:{extend:e.addItem}},[e._v("新增")]):e._e(),e._v(" "),e._t("btns")],2)]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"el-item-group-content"},[e._l(e.local,(function(t,s){return a("div",{key:s,staticClass:"el-item-group-value"},[a("div",{staticClass:"el-item-group-contant"},[e._l(e.items,(function(i){return a("div",{directives:[{name:"show",rawName:"v-show",value:!i.on||e.local[s][i.on.name]===i.on.value,expression:"!(ele.on) || local[index][ele.on.name] === ele.on.value"}],key:i.name,staticClass:"el-item-group-line"},["item-group"!==i.holder?a("el-item",{attrs:{item:i,label:i.label||i.name,value:t[i.name],index:s},on:{input:e.input,remove:e.removeItem}}):a("el-item-group",{attrs:{item:i,label:i.label||i.name,value:t[i.name],index:s,extend:e.extend},on:{input:e.input,remove:e.removeItem}})],1)})),e._v(" "),e.item.asArray?a("div",{staticClass:"el-item-remove"},[a("el-button",{attrs:{icon:e.btnIcon,type:e.btnType,round:"",size:"mini"},on:{click:function(t){return e.change(s)}}})],1):e._e()],2)])})),e._v(" "),e.item.asArray?a("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!disabled"}],staticClass:"el-item-add"},[a("el-button",{attrs:{type:"info"},on:{click:e.add}},[e._v("+")])],1):e._e()],2)])],1)},i=[],r=(a("7f7f"),a("6a7a")),n=a("3738"),l={name:"ElItemGroup",components:{ElItem:r["default"]},mixins:[n["default"]],props:["extend"],data:function(){var e=this.item.items?JSON.parse(JSON.stringify(this.item.items)):[];return{show:!0,items:e}},computed:{btnShow:function(){return this.show?"收起":"展开"},style:function(){return{paddingLeft:"20px"}},itemShow:function(e,t){return!e.on||this.local[t][e.on.name]===e.on.value}},beforeCreate:function(){this.$options.components.ElItemInsert=function(){return Promise.resolve().then(a.bind(null,"3e56"))}},methods:{handleShow:function(){this.show=!this.show},removeItem:function(e,t){this.$delete(this.local[t],e)},addItem:function(e){console.log("add",this.item.name,e),this.items||this.$set(this,"items",[]),this.items.push(e)},input:function(e,t,a){this.$set(this.local[e],t,a);var s=this.item.asArray?this.local:this.local[0];this.$emit("input",this.index,this.item.name,s)}}},o=l,p=(a("b840"),a("2877")),m=Object(p["a"])(o,s,i,!1,null,"70ddeb42",null);t["default"]=m.exports},b14e:function(e,t,a){"use strict";a("2b3a")},b189:function(e,t,a){e.exports=a.p+"static/img/logo1.d2343c0f.png"},b18d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getdataListParm.parammaps.type,callback:function(t){e.$set(e.getdataListParm.parammaps,"type",t)},expression:"getdataListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),e.isTable1?a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,3845269539)}),e._v(" "),e.isProvider?a("el-table-column",{attrs:{label:"供应商","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{attrs:{label:"备件类别","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partClass))])]}}],null,!1,3728162719)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"备件总数量","min-width":"140px",align:"center",sortable:"",prop:"psCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"总金额","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDetailed(s)}}},[e._v("明细")])]}}],null,!1,4042836480)})],1),e._v(" "),e.isProvider?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}):e._e(),e._v(" "),e.isPartClass?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalEquipmentType,page:e.getEquipmentParm.offset,limit:e.getEquipmentParm.pagecount},on:{"update:page":function(t){return e.$set(e.getEquipmentParm,"offset",t)},"update:limit":function(t){return e.$set(e.getEquipmentParm,"pagecount",t)},pagination:e.getEquipmentTypeList}}):e._e()],1):e._e(),e._v(" "),e.isTable2?a("div",[a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:function(t){return e.goAll()}}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(e.table2.title))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table2.pageNum-1)*e.table2.pageSize+1))])]}}],null,!1,1485743277)}),e._v(" "),a("el-table-column",{attrs:{label:"备件类别","min-width":"140px",align:"center",prop:"psCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"标准库存","min-width":"140px",align:"center",sortable:"",prop:"psCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件总库存","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"标准库存差异","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"总金额","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"库存周转率","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDetailed2(s)}}},[e._v("明细")])]}}],null,!1,3002096402)})],1)],1):e._e()])},i=[],r=(a("7f7f"),a("6724")),n=a("2934"),l=a("333d"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"InventorySummary",components:{Pagination:l["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},types:[{id:0,name:"按供应商"},{id:1,name:"按备件类别"}],findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],tableKey:0,list:[],total:0,listLoading:!0,isProvider:!0,getdataListParm:{name:"getPrGbyprovider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),type:0}},isPartClass:!1,totalEquipmentType:0,getEquipmentParm:{name:"getPrGbypartclass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename")}},Type:0,pastureName:p.a.get("pasturename"),downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,isTable1:!0,isTable2:!1,table2:{title:"",tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getPrGbyprovider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),type:0}}}}},created:function(){this.get_select_list(),this.get_table_data()},mounted:function(){},methods:{tableSort:function(e){Object(m["f"])(e,this.list)},tableSort2:function(e){Object(m["f"])(e,this.table2.list)},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;Object(n["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list):e.list=[],e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getEquipmentTypeList:function(){var e=this;Object(n["e"])(this.getEquipmentParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNumEquipmentType=t.data.pageNum,e.pageSizeEquipmentType=t.data.pageSize,t.data.total&&(e.totalEquipmentType=t.data.total),console.log(t.data.total),console.log(e.totalEquipmentType),setTimeout((function(){e.listLoading=!1}),100)}))},changePasture:function(e){this.pastureName=e,0==this.Type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.get_table_data(),this.isProvider=!0,this.isPartClass=!1):(this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentTypeList())},changeType:function(e){this.Type=e,0==this.Type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data()):(this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList())},handleDetailed:function(e){this.$router.push({path:"/customs/custom",query:{providerName:e.providerName}}),this.getdataListParm.parammaps.providerName=e.providerName},handleDownload:function(){var e=this;console.log("点击了导出"),console.log(this.Type),this.$alert("库存汇总正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);0==this.Type?(this.downLoadParm.name="getPrGbyprovider",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","供应商","备件总数量","总金额"],filterVal:["pastureName","providerName","psCount","psSum"],tableDatas:e.downLoadList,sheetName:"库存汇总"}];Object(m["d"])(a,"库存汇总",!0,"xlsx")}))}))):1==this.Type&&(this.downLoadParm.name="getPrGbypartclass",this.downLoadParm.parammaps=this.getEquipmentParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","备件类别","备件总数量","总金额"],filterVal:["pastureName","partClass","psCount","psSum"],tableDatas:e.downLoadList,sheetName:"库存汇总"}];Object(m["d"])(a,"库存汇总",!0,"xlsx")}))})))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.pastureName&&1===a?{textDecoration:"underline"}:{textDecoration:"none"}},tableCellClick:function(e){"现代牧业"!==e.name?(this.get_table_data2(),this.isTable1=!1,this.isTable2=!0,this.table2.title=e.pastureName+"库存汇总"):(0==this.getdataListParm.parammaps.type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data()):(this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList()),this.isTable1=!0,this.isTable2=!1)},get_table_data2:function(){var e=this;Object(n["e"])(this.table2.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.table2.list=t.data.list):e.table2.list=[],e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total,setTimeout((function(){e.table2.listLoading=!1}),100)}))},goAll:function(){0==this.getdataListParm.parammaps.type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data()):(this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList()),this.isTable1=!0,this.isTable2=!1},handleDetailed2:function(e){this.$router.push({path:"/customs/custom",query:{providerName:e.providerName}}),this.getdataListParm.parammaps.providerName=e.providerName}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},b19c:function(e,t,a){},b1b3:function(e,t,a){e.exports=a.p+"static/img/login-bujian.8695940d.png"},b20f:function(e,t,a){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b310:function(e,t,a){"use strict";a("241a")},b34f:function(e,t,a){},b35e:function(e,t,a){},b35f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,"span-method":e.objectSpanMethod}},[a("el-table-column",{attrs:{label:"牧场",prop:"pastureName","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick(s)}}},[e._v(e._s(s.project))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"迄今汇总设备",prop:"sumEq","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-01",prop:"m1","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-02",prop:"m2","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-03",prop:"m3","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-04",prop:"m4","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-05",prop:"m5","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-06",prop:"m6","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-07",prop:"m7","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-08",prop:"m8","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-09",prop:"m9","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-10",prop:"m10","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-11",prop:"m11","min-width":"70px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.year+"-12",prop:"m12","min-width":"70px",align:"center"}})],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("333d")),n=a("2934"),l=a("ed08"),o=a("a78e"),p=a.n(o),m={name:"PurchaseScrap",components:{Pagination:r["a"]},data:function(){return{table:{listLoading:!0,tableKey:0,getdataListParm:{name:"equipmentStatistical",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{}},list:[],pageNum:"",pageSize:"",total:""},year:Object(l["e"])(new Date,"{y}"),spanObj:{},mergekeys:["pastureName","i"],isPercentage:!1,percentage:1,downLoadParm:{},downLoadList:[],rowStyle:{maxHeight:"50px",height:"45px"}}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.table.listLoading=!0,Object(n["e"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){console.log("table数据",t.data.list);for(var a=[],s=0;s<t.data.list.length;s++){for(var i=s+1;i<t.data.list.length;i++)t.data.list[s].pastureName==t.data.list[i].pastureName&&(a.push(t.data.list[s]),a.push(t.data.list[i]));t.data.list[s].sumEq=parseFloat(t.data.list[s].m1)+parseFloat(t.data.list[s].m2)+parseFloat(t.data.list[s].m3)+parseFloat(t.data.list[s].m4)+parseFloat(t.data.list[s].m5)+parseFloat(t.data.list[s].m6)+parseFloat(t.data.list[s].m7)+parseFloat(t.data.list[s].m8)+parseFloat(t.data.list[s].m9)+parseFloat(t.data.list[s].m10)+parseFloat(t.data.list[s].m11)+parseFloat(t.data.list[s].m12)}console.log(a),e.table.list=a,e.handleSpan(),e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSpan:function(){var e=this;this.mergekeys.forEach((function(t){e.spanObj[t]=[];var a=0;e.table.list.forEach((function(s,i){0===i?(e.spanObj[t].push(1),a=0):"i"==t?e.table.list[i][t]===e.table.list[i-1][t]&&e.table.list[i]["pastureName"]===e.table.list[i-1]["pastureName"]?(e.spanObj[t][a]+=1,e.spanObj[t].push(0)):(e.spanObj[t].push(1),a=i):e.table.list[i][t]===e.table.list[i-1][t]?(e.spanObj[t][a]+=1,e.spanObj[t].push(0)):(e.spanObj[t].push(1),a=i)}))}))},objectSpanMethod:function(e){e.row;for(var t=e.column,a=e.rowIndex,s=(e.columnIndex,0);s<this.mergekeys.length;s++)if(t.property===this.mergekeys[s]){var i=this.spanObj[this.mergekeys[s]][a],r=i>0?1:0;return{rowspan:i,colspan:r}}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"新购设备数"===t.project&&"报废设备数"===t.project||1!=a?{textDecoration:"none"}:{textDecoration:"underline"}},tableCellClick:function(e){"现代牧业"==p.a.get("pasturename")||e.name==p.a.get("pasturename")?this.$router.push({path:"/asset/basics",query:{myPath:"PurchaseScrap",pastureName:e.pastureName,pastureId:e.pastureId,project:e.project}}):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},handleDownload:function(){var e=this;this.$alert("设备购置报废统计正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="equipmentStatistical",this.downLoadParm.parammaps=this.table.getdataListParm.parammaps,Object(n["e"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);for(var a=["牧场","项目","迄今设备"],s=1;s<=12;s++)s<10?a.push(e.year+"-0"+s):a.push(e.year+"-"+s);console.log(a);var i=[{tHeader:a,filterVal:["pastureName","project","sumEq","m1","m2","m3","m4","m5","m6","m7","m8","m9","m10","m11","m12"],tableDatas:e.downLoadList,sheetName:"SheetJS"}];Object(l["d"])(i,"设备购置报废统计",!0,"xlsx")}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},b398:function(e,t,a){"use strict";a("5a61")},b3b5:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="#979797" /></symbol>'});n.a.add(l);t["default"]=l},b3f5:function(e,t,a){"use strict";a.r(t);var s,i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"报修单号",clearable:""},model:{value:e.getdataListParm.parammaps.repairCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"repairCode",t)},expression:"getdataListParm.parammaps.repairCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.orderStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderStatue",t)},expression:"getdataListParm.parammaps.orderStatue"}},e._l(e.orderStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isRepair?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("报修")]):e._e(),e._v(" "),e.isRepairExport?a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障情况","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.requesterName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repairDeptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.orderStatue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"100px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"400","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isMaintenanceSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),2==s.SHStatue&&e.isMaintenanceAudit&&s.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("维修审核")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("维修审核")]),e._v(" "),3==s.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("维修审核2")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("主管审核")]),e._v(" "),0==s.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDistributeLeaflets(s)}}},[e._v("派单")]):1==s.orderStatue||2==s.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDistributeLeaflets(s)}}},[e._v("派单")]):e._e(),e._v(" "),e.roleSet1(s)?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceipt(s)}}},[e._v("接单")]):1==s.orderStatue||2==s.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceipt(s)}}},[e._v("接单")]):e._e(),e._v(" "),e.roleSet2(s)?a("el-button",{staticClass:"successRequisition",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleMaintenanceRequisition(s)}}},[e._v("维修及领用")]):a("el-button",{staticClass:"successRequisition",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleMaintenanceRequisition(s)}}},[e._v("维修及领用")]),e._v(" "),e.roleSet3(s)?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRepairComplete(s)}}},[e._v("完成维修")]):a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRepairComplete(s)}}},[e._v("完成维修")]),e._v(" "),0!=s.orderStatue&&1!=s.orderStatue||5===s.SHStatue||!e.isDelete?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]),e._v(" "),0==s.orderStatue&&e.isRejectRepair?a("el-button",{staticClass:"successMaintenanceAudit",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleRejectRepair(s)}}},[e._v("报修驳回")]):e._e(),e._v(" "),e.isshengweiwaidan&&1==s.outsourcing?a("el-button",{staticClass:"successRequisition",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_add_cont(s)}}},[e._v("生成委外单")]):e._e(),e._v(" "),e.roleSet1(s)&&0==s.outsourcing?a("el-button",{staticClass:"successRequisition",staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_add_cont_sure(s)}}},[e._v("委外维修")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:"新增委外维修单",visible:e.dialogFormVisibleCont,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleCont=t}}},[a("div",[a("el-form",{ref:"createTempCont",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTempCont,"label-position":"right","label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"委外维修单号:",prop:"outsourcingCode"}},[a("el-input",{ref:"outsourcingCode",attrs:{disabled:""},model:{value:e.createTempCont.outsourcingCode,callback:function(t){e.$set(e.createTempCont,"outsourcingCode",t)},expression:"createTempCont.outsourcingCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.createTempCont.pastureId,callback:function(t){e.$set(e.createTempCont,"pastureId",t)},expression:"createTempCont.pastureId"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"责任部门"},on:{change:e.change_depart2},model:{value:e.createTempCont.departmentId,callback:function(t){e.$set(e.createTempCont,"departmentId",t)},expression:"createTempCont.departmentId"}},e._l(e.departNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同:",prop:"contract"}},[a("el-radio-group",{on:{change:e.change_contract},model:{value:e.createTempCont.contract,callback:function(t){e.$set(e.createTempCont,"contract",t)},expression:"createTempCont.contract"}},[a("el-radio",{attrs:{label:0}},[e._v("无合同")]),e._v(" "),a("el-radio",{attrs:{label:1,checked:""}},[e._v("有合同")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申请人:",prop:"applicant"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申请人",disabled:"see"===e.dialogStatus},model:{value:e.createTempCont.applicant,callback:function(t){e.$set(e.createTempCont,"applicant",t)},expression:"createTempCont.applicant"}},e._l(e.employeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTempCont.date,callback:function(t){e.$set(e.createTempCont,"date",t)},expression:"createTempCont.date"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"RUCode"}},[a("el-input",{ref:"RUCode",attrs:{disabled:""},model:{value:e.createTempCont.RUCode,callback:function(t){e.$set(e.createTempCont,"RUCode",t)},expression:"createTempCont.RUCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAddCont,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"供应商"},model:{value:t.row.providerName,callback:function(a){e.$set(t.row,"providerName",a)},expression:"scope.row.providerName"}},e._l(e.providerNameList,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"金额",prop:"amount",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{"fetch-suggestions":e.querySearchEqNameCont,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqNameCont(a,t.row)},blur:function(a){e.blurSelectEqNameCont(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{"margin-top":"10px"},attrs:{"fetch-suggestions":e.querySearchCodeCont,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCodeCont(a,t.row)},blur:function(a){e.blurSelectEqCodeCont(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",prop:"typea",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px","margin-top":"10px"},attrs:{placeholder:"费用类型"},model:{value:t.row.typea,callback:function(a){e.$set(t.row,"typea",a)},expression:"scope.row.typea"}},e._l(e.costTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"交付日期",prop:"date",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{attrs:{v:""}},[a("el-date-picker",{staticStyle:{"margin-top":"10px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.row.date,callback:function(a){e.$set(t.row,"date",a)},expression:"scope.row.date"}})],1)]}}])}),e._v(" "),1==e.createTempCont.contract?a("el-table-column",{attrs:{label:"合同编号",prop:"contractCode",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.contractCode,callback:function(a){e.$set(t.row,"contractCode",a)},expression:"scope.row.contractCode"}})],1)]}}],null,!1,3591537828)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})],1)]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_cont()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCont=!1,e.get_table_data()}}},[e._v("取消")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Create,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_Create=t}}},[a("div",{staticClass:"app-create"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.createTemp.repairCode,callback:function(t){e.$set(e.createTemp,"repairCode",t)},expression:"createTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:e.handleSelectEqName},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("名称:")]),a("span",[e._v(e._s(s.eqName))]),e._v(" \n | "),a("b",[e._v("规格:")]),a("span",[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:e.handleSelectEqCode},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickId"}},[a("el-input",{attrs:{disabled:""},model:{value:e.pickNameArr,callback:function(t){e.pickNameArr=t},expression:"pickNameArr"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"故障情况",filterable:""},on:{change:e.changeDetails},model:{value:e.createTemp.details,callback:function(t){e.$set(e.createTemp,"details",t)},expression:"createTemp.details"}},e._l(e.DetailList,(function(e){return a("el-option",{key:e.describe,attrs:{label:e.describe,value:e.describe}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{disabled:""},model:{value:e.createTemp.deptName,callback:function(t){e.$set(e.createTemp,"deptName",t)},expression:"createTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterId"}},[a("el-select",{ref:"requesterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"报修人"},model:{value:e.createTemp.requesterId,callback:function(t){e.$set(e.createTemp,"requesterId",t)},expression:"createTemp.requesterId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"datetime",placeholder:"报修日期",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",disabled:""},model:{value:e.createTemp.requestTime,callback:function(t){e.$set(e.createTemp,"requestTime",t)},expression:"createTemp.requestTime"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Create=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.orderStatue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.seeTemp.repairCode,callback:function(t){e.$set(e.seeTemp,"repairCode",t)},expression:"seeTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickName"}},[a("el-input",{ref:"pickName",attrs:{disabled:""},model:{value:e.seeTemp.pickName,callback:function(t){e.$set(e.seeTemp,"pickName",t)},expression:"seeTemp.pickName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-input",{ref:"details",attrs:{disabled:""},model:{value:e.seeTemp.details,callback:function(t){e.$set(e.seeTemp,"details",t)},expression:"seeTemp.details"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterName"}},[a("el-input",{ref:"requesterName",attrs:{disabled:""},model:{value:e.seeTemp.requesterName,callback:function(t){e.$set(e.seeTemp,"requesterName",t)},expression:"seeTemp.requesterName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-input",{ref:"requestTime",attrs:{disabled:""},model:{value:e.seeTemp.requestTime,callback:function(t){e.$set(e.seeTemp,"requestTime",t)},expression:"seeTemp.requestTime"}})],1)],1)],1),e._v(" "),a("el-row",[3==e.seeTemp.orderStatue?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"驳回日期:",prop:"shutdownDate"}},[a("el-input",{ref:"shutdownDate",attrs:{disabled:""},model:{value:e.seeTemp.shutdownDate,callback:function(t){e.$set(e.seeTemp,"shutdownDate",t)},expression:"seeTemp.shutdownDate"}})],1)],1):e._e(),e._v(" "),3==e.seeTemp.orderStatue?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"驳回原因:",prop:"shutdownReason"}},[a("el-input",{ref:"shutdownReason",attrs:{disabled:""},model:{value:e.seeTemp.shutdownReason,callback:function(t){e.$set(e.seeTemp,"shutdownReason",t)},expression:"seeTemp.shutdownReason"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[2==e.seeTemp.SHStatue&&e.isMaintenanceAudit&&e.seeTemp.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("维修审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("主管审核")]),e._v(" "),0==e.seeTemp.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):e._e(),e._v(" "),0==e.seeTemp.orderStatue&&e.isReceipt&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):e._e(),e._v(" "),(1==e.seeTemp.orderStatue&&1==e.seeTemp.SHStatue||4==e.seeTemp.SHStatue||6==e.seeTemp.SHStatue)&&e.isMaintenanceRequisition&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]):a("el-button",{staticStyle:{display:"none"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]),e._v(" "),1!=e.seeTemp.orderStatue||1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue||!e.isRepairComplete||e.seeTemp.pickId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.orderStatue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("报修信息")])])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修单号:",prop:"repairCode"}},[a("el-input",{ref:"repairCode",attrs:{disabled:""},model:{value:e.seeTemp.repairCode,callback:function(t){e.$set(e.seeTemp,"repairCode",t)},expression:"seeTemp.repairCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickName"}},[a("el-input",{ref:"pickName",attrs:{disabled:""},model:{value:e.seeTemp.pickName,callback:function(t){e.$set(e.seeTemp,"pickName",t)},expression:"seeTemp.pickName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障情况:",prop:"details"}},[a("el-input",{ref:"details",attrs:{disabled:""},model:{value:e.seeTemp.details,callback:function(t){e.$set(e.seeTemp,"details",t)},expression:"seeTemp.details"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修人:",prop:"requesterName"}},[a("el-input",{ref:"requesterName",attrs:{disabled:""},model:{value:e.seeTemp.requesterName,callback:function(t){e.$set(e.seeTemp,"requesterName",t)},expression:"seeTemp.requesterName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"报修日期:",prop:"requestTime"}},[a("el-input",{ref:"requestTime",attrs:{disabled:""},model:{value:e.seeTemp.requestTime,callback:function(t){e.$set(e.seeTemp,"requestTime",t)},expression:"seeTemp.requestTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("维修信息")])])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修日期:",prop:"stopTime"}},[a("el-input",{ref:"stopTime",attrs:{disabled:""},model:{value:e.seeTemp.stopTime,callback:function(t){e.$set(e.seeTemp,"stopTime",t)},expression:"seeTemp.stopTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("h3",[e._v("故障诊断")])])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingFault,expression:"listLoadingFault"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listFault,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情",prop:"appearanceName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appearanceName))])]}}],null,!1,2925555007)}),e._v(" "),a("el-table-column",{attrs:{label:"故障原因","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.failureCause))])]}}],null,!1,3309387047)}),e._v(" "),a("el-table-column",{attrs:{label:"处理方式",prop:"treatmentMethod",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.treatmentMethod))])]}}],null,!1,1693461789)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{staticStyle:{"font-size":"18px"},slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name))]),e._v(" "),a("div",[e._v(e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("h3",{staticStyle:{display:"inline"}},[e._v("操作")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isMaintenanceAudit&&e.seeTemp.requesterId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("维修审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isMaintenanceAudit2?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("维修审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("主管审核")]),e._v(" "),0==e.seeTemp.orderStatue&&e.isDistributeLeaflets?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleDistributeLeaflets()}}},[e._v("派单")]):e._e(),e._v(" "),0==e.seeTemp.orderStatue&&e.isReceipt&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):1==e.seeTemp.orderStatue||2==e.seeTemp.orderStatue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceipt()}}},[e._v("接单")]):e._e(),e._v(" "),(1==e.seeTemp.orderStatue&&1==e.seeTemp.SHStatue||4==e.seeTemp.SHStatue||6==e.seeTemp.SHStatue)&&e.isMaintenanceRequisition&&e.seeTemp.pickId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleMaintenanceRequisition()}}},[e._v("维修及领用")]),e._v(" "),1!=e.seeTemp.orderStatue||1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue||!e.isRepairComplete||e.seeTemp.pickId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleRepairComplete()}}},[e._v("完成维修")])],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}],null,!1,3010583487)}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",sortable:"",prop:"createDate",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate))])]}}],null,!1,1294251094)}),e._v(" "),a("el-table-column",{attrs:{label:"领用明细",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}],null,!1,1991972868)}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"110px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,0)}}},[e._v("查看")])]}}],null,!1,1307857253)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",sortable:"",prop:"acturalAmount","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_DistributeLeaflets,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_DistributeLeaflets=t}}},[a("div",{staticClass:"distributeLeaflets"},[a("el-form",{ref:"distributeLeafletsTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.distributeLeafletsTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"维修人:",prop:"pickId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"维修人"},on:{change:e.changePickId},model:{value:e.distributeLeafletsTemp.pickId,callback:function(t){e.$set(e.distributeLeafletsTemp,"pickId",t)},expression:"distributeLeafletsTemp.pickId"}},e._l(e.maintainers,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empNameAndmt,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"派单人:",prop:"chargeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"派单人"},model:{value:e.distributeLeafletsTemp.chargeId,callback:function(t){e.$set(e.distributeLeafletsTemp,"chargeId",t)},expression:"distributeLeafletsTemp.chargeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"派单日期:",prop:"chargeDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"派单日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.distributeLeafletsTemp.chargeDate,callback:function(t){e.$set(e.distributeLeafletsTemp,"chargeDate",t)},expression:"distributeLeafletsTemp.chargeDate"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createDistributeLeafletsData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_DistributeLeaflets=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_MaintenanceAudit,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_MaintenanceAudit=t}}},[a("div",{staticClass:"maintenanceAudit"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认维修审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:3,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.statue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"maintenanceAudit"===e.dialogStatus?e.createExamineData():e.createExamineData2()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_MaintenanceAudit=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_RepairComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_RepairComplete=t}}},[a("div",{staticClass:"repairComplete"},[a("el-form",{ref:"repairCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.repairCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.repairCompleteTemp.isOldProducts,callback:function(t){e.$set(e.repairCompleteTemp,"isOldProducts",t)},expression:"repairCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,2923556019),model:{value:e.repairCompleteTemp.partCode,callback:function(t){e.$set(e.repairCompleteTemp,"partCode",t)},expression:"repairCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createRepairCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_RepairComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_MaintenanceRequisition,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_MaintenanceRequisition=t}}},[a("div",{staticStyle:{position:"absolute",top:"12px",left:"120px",font:"18px/40px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.maintenanceRequisitionTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.maintenanceRequisitionTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"maintenanceRequisition",staticStyle:{width:"90%",margin:"0 auto"}},[a("el-tabs",{on:{"tab-click":e.tabMaintenance},model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"维修",name:"first"}},[a("el-form",{ref:"maintenanceRequisitionTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintenanceRequisitionTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"维修日期",prop:"repirsTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"维修日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},model:{value:e.maintenanceRequisitionTemp.repirsTime,callback:function(t){e.$set(e.maintenanceRequisitionTemp,"repirsTime",t)},expression:"maintenanceRequisitionTemp.repirsTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"newFault"},[a("el-form",{ref:"newFaultTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.newFaultTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"故障诊断:",prop:"positionId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"故障部位"},on:{change:e.changePosition},model:{value:e.newFaultTemp.positionId,callback:function(t){e.$set(e.newFaultTemp,"positionId",t)},expression:"newFaultTemp.positionId"}},e._l(e.positions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.positionName,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"故障详情"},on:{change:e.changeAppearance},model:{value:e.newFaultTemp.appearanceName,callback:function(t){e.$set(e.newFaultTemp,"appearanceName",t)},expression:"newFaultTemp.appearanceName"}},e._l(e.appearances,(function(e){return a("el-option",{key:e.id,attrs:{label:e.appearanceName,value:e.appearanceName}})})),1)],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listNewFault,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"90px",prop:"positionName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情","min-width":"60px",align:"center",prop:"appearanceName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"appearanceName",model:{value:t.row.appearanceName,callback:function(a){e.$set(t.row,"appearanceName",a)},expression:"scope.row.appearanceName"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"故障原因","min-width":"60px",align:"center",prop:"failureCause"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"failureCause",model:{value:t.row.failureCause,callback:function(a){e.$set(t.row,"failureCause",a)},expression:"scope.row.failureCause"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处理方式","min-width":"60px",align:"center",prop:"treatmentMethod"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{ref:"treatmentMethod",model:{value:t.row.treatmentMethod,callback:function(a){e.$set(t.row,"treatmentMethod",a)},expression:"scope.row.treatmentMethod"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.newFaultDelete(s)}}},[e._v("删除")])]}}])})],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleCollectionSparePartsCreate}},[e._v("添加领用单")]),e._v(" "),a("h4",[e._v("有库存领用")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",sortable:"",prop:"createDate","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用备件",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,0)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("h4",[e._v("无库存领用")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollectionSpareParts2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最新领用日期",sortable:"",prop:"createDate","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用备件",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s,1)}}},[e._v("查看")])]}}])})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[e.rapairBtn?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintenanceRequisitionteData()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_MaintenanceRequisition=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_CollectionSparePartsSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_CollectionSparePartsSee=t}}},[a("div",{staticClass:"collectionSparePartsSee"},[a("el-form",{ref:"collectionSparePartsSeeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collectionSparePartsSeeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[1!==e.collectionSparePartsSeeTemp.isStock?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.applyCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"applyCode",t)},expression:"collectionSparePartsSeeTemp.applyCode"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.departmentName,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"departmentName",t)},expression:"collectionSparePartsSeeTemp.departmentName"}})],1)],1),e._v(" "),1!==e.collectionSparePartsSeeTemp.isStock?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("el-input",{ref:"createDate",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.createDate,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"createDate",t)},expression:"collectionSparePartsSeeTemp.createDate"}})],1)],1):e._e()],1),e._v(" "),e.isPartCode?a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"98%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),e._v("\n |  "),a("b",[e._v("库存:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.reportery))]),e._v("\n |  "),a("b",[e._v("是否零库存:")]),1==s.isZeroStock?a("span",{staticClass:"addr"},[e._v("是")]):a("span",{staticClass:"addr"},[e._v("否")])]}}],null,!1,3593575805),model:{value:e.collectionSparePartsSeeTemp.partCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"partCode",t)},expression:"collectionSparePartsSeeTemp.partCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"primary"},on:{click:e.handleAddSparePartsToBeCollected}},[e._v("添加待领用备件")])],1)],1):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listCreateCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",prop:"amount",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),1==e.collectionSparePartsSeeTemp.isStock?a("el-table-column",{attrs:{label:"领用时间",prop:"date",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}],null,!1,1531225394)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"90px",prop:"price",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),1==e.collectionSparePartsSeeTemp.isStock?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"primary",on:{click:function(t){return e.handleViewProgress(s)}}},[e._v("查看进度")])]}}],null,!1,2379334314)}):e._e(),e._v(" "),e.isCreatePartDelete?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.createPartDelete(s)}}},[e._v("删除")])]}}],null,!1,39760972)}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[e.isPartCode?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createCollectionSparePartsData()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_CollectionSparePartsSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ViewProgress,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ViewProgress=t}}},[a("div",{staticClass:"viewProgress"},[a("el-form",{ref:"viewProgressTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.viewProgressTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"本次领用数量:",prop:"amountY"}},[a("span",[e._v(" "+e._s(e.numbersList.amountY)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"其他领用数量:",prop:"amountQT"}},[a("span",[e._v(" "+e._s(e.numbersList.amountQT)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"未出库数量:",prop:"amountLY"}},[a("span",[e._v(" "+e._s(e.numbersList.amountLY)+" ")])])],1)],1)],1),e._v(" "),a("h4",[e._v("申购情况:")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.purchaseapplicationList,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"90px",prop:"orderNumber",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"申购数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购时间",sortable:"",prop:"createTime",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门",prop:"deptName",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人",prop:"amount",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否配单",prop:"buyStatu",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyStatu))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号",prop:"matchCode",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])})],1),e._v(" "),a("h4",[e._v("采购情况:")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.procurementList,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"90px",prop:"buyeCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间",prop:"buyerDate",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyerDate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数量",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_ViewProgress=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.rejectRepair.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.rejectRepair,"dialogFormVisible",t)}}},[a("div",{staticClass:"maintenanceAudit"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请输入报修驳回原因:")]),e._v(" "),a("el-form",{ref:"rejectRepair",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.rejectRepair.temp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{prop:"shutdownReason"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入报修驳回原因"},model:{value:e.rejectRepair.temp.shutdownReason,callback:function(t){e.$set(e.rejectRepair.temp,"shutdownReason",t)},expression:"rejectRepair.temp.shutdownReason"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.rejectRepairData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.rejectRepair.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},r=[],n=(a("6b54"),a("ac6a"),a("7514"),a("7f7f"),a("28a5"),a("6762"),a("2fdb"),a("ade3")),l=a("2934"),o=(a("2f62"),a("6724")),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("a78e"),u=a.n(d),h={name:"Repair",components:{Pagination:m["a"]},directives:{waves:o["a"]},data:function(){var e;return e={dialogFormVisibleCont:!1,createTempCont:{RUCode:"",pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,date:Object(p["e"])(new Date,"{y}-{m}-{d}"),outsourcingCode:"",applicant:"",providerId:"",departmentName:"",description:"",contract:1},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid"),eId:u.a.get("employeid")}},departNameList2:[],isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:u.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid"),eId:u.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid")}},{name:"findAllProviderByCt",offset:0,pagecount:0,parammaps:{id:u.a.get("pastureid")}}],orderStatues:[{id:"0",name:"待接单"},{id:"1",name:"维修中"},{id:"2",name:"维修完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},rules:{repairDept:[{required:!0,message:"必填",trigger:"blur"}],pickId:[{required:!0,message:"必填",trigger:"blur"}],chargeDate:[{required:!0,message:"必填",trigger:"blur"}],chargeId:[{required:!0,message:"必填",trigger:"blur"}],repirsTime:[{required:!0,message:"必填",trigger:"blur"}],positionId:[{required:!0,message:"必填",trigger:"blur"}],repairCode:[{required:!0,message:"必填",trigger:"blur"}],eqName:[{required:!0,message:"必填",trigger:"blur"}],eqCode:[{required:!0,message:"必填",trigger:"blur"}],deptName:[{required:!0,message:"必填",trigger:"blur"}],details:[{required:!0,message:"必填",trigger:"blur"}],shutdownReason:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getRepirsList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:u.a.get("pasturename"),repairCode:"",eqName:"",eqCode:"",orderStatue:"",SHStatue:"",inputDatetime:"",loginId:u.a.get("employeid"),menu:"Repair",logindeptId:u.a.get("departmentid"),loginpastureId:u.a.get("pastureid")}},isshengweiwaidan:[],isCanSubmit:!1,total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_Create:!1,createTemp:{pastureId:"",departmentId:"",eqId:"",eqCode:"",eqName:"",repairDept:"",details:"",requesterId:"",requestTime:Object(p["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),pickId:"",repairCode:"",deptName:"",eqClassId:""},requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureId:u.a.get("pastureid")}},getdataListParmDetail:{name:"getFaultdescription",parammaps:{eqClassId:""}},DetailList:[],EqNameList:[],EqCodeList:[],getRepairNumberParm:{name:"autoCreatCode",parammaps:{pastureId:u.a.get("pastureid"),codeType:"BX"}},radioAll:"全部",dialogFormVisible_See:!1,dialogStatus:"",textMap:{create:"报修",see:"查看详情",distributeLeaflets:"派单",maintenanceAudit:"维修审核",maintenanceAudit2:"维修审核",repairComplete:"完成维修",maintenanceRequisition:"维修及领用",collectionSparePartsSee:"查看领用",collectionSparePartsCreate:"添加领用",ViewProgress:"查看进度",rejectRepair:"报修驳回",update:"修改报修"},activeList:[],active:3,seeTemp:{},activeName:"first",orderStatue1:!1,orderStatue2:!1,listLoadingFault:!1,listFault:[],getFaultListParm:{name:"getmaintainappearance",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,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:!1,listOldProducts:[],getOldProductsListParm:{name:"getMaintainRefuse",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid"),eId:u.a.get("employeid")}},pastureNameList:[],employeNameList:[],departNameList1:[]},Object(n["a"])(e,"getDepartParam2",{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:u.a.get("pastureid"),eId:u.a.get("employeid")}}),Object(n["a"])(e,"departNameList2",[]),Object(n["a"])(e,"listAddCont",[{providerName:"",providerId:"0",eqId:"0",contractId:"0"}]),Object(n["a"])(e,"dialogFormVisible_DistributeLeaflets",!1),Object(n["a"])(e,"distributeLeafletsTemp",{repairDept:"",pickId:"",chargeId:this.$store.state.user.employeid,chargeDate:Object(p["e"])(new Date,"{y}-{m}-{d}")}),Object(n["a"])(e,"pickerOptions1",{disabledDate:function(e){return e.getTime()>Date.now()}}),Object(n["a"])(e,"receiptTemp",{}),Object(n["a"])(e,"requestParam",{}),Object(n["a"])(e,"maintainers",[]),Object(n["a"])(e,"getRepirsEmpParm",{name:"getRepirsEmp",returntype:"Map",parammaps:{pastureId:u.a.get("pastureid"),empid:""}}),Object(n["a"])(e,"examineTemp",{statue:3}),Object(n["a"])(e,"statueReason",!1),Object(n["a"])(e,"dialogFormVisible_MaintenanceAudit",!1),Object(n["a"])(e,"dialogFormVisible_RepairComplete",!1),Object(n["a"])(e,"repairCompleteTemp",{isOldProducts:0}),Object(n["a"])(e,"requestOldProducts",{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}),Object(n["a"])(e,"No2",!1),Object(n["a"])(e,"listAdd",[]),Object(n["a"])(e,"postDataPramas",{}),Object(n["a"])(e,"maintenanceRequisitionTemp",{repirsTime:""}),Object(n["a"])(e,"dialogFormVisible_MaintenanceRequisition",!1),Object(n["a"])(e,"activeName2","first"),Object(n["a"])(e,"rowId",0),Object(n["a"])(e,"listNewFault",[]),Object(n["a"])(e,"newFaultTemp",{}),Object(n["a"])(e,"appearances",[]),Object(n["a"])(e,"positions",[]),Object(n["a"])(e,"getPositionsParm",{name:"geteqPosition",parammaps:{}}),Object(n["a"])(e,"getAppearanceParm",{name:"getAppearancebyPid",parammaps:{}}),Object(n["a"])(e,"rapairBtn",!0),Object(n["a"])(e,"listCollectionSpareParts",[]),Object(n["a"])(e,"tableKey2",1),Object(n["a"])(e,"listCollectionSpareParts2",[]),Object(n["a"])(e,"collectionSparePartsSeeTemp",{isStock:0}),Object(n["a"])(e,"depTiDArr",[]),Object(n["a"])(e,"pickidArr",[]),Object(n["a"])(e,"pickNameArr",[]),Object(n["a"])(e,"getParmCreateNumber",{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:u.a.get("pastureid"),codeType:"LY"}}),Object(n["a"])(e,"requestSparePart",{name:"getPartsListLY_m",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:u.a.get("pastureid")}}),Object(n["a"])(e,"addSparePartsToBeCollectedParam",{name:"getPartapply_mr",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}}),Object(n["a"])(e,"dialogFormVisible_CollectionSparePartsSee",!1),Object(n["a"])(e,"listCreateCollectionSpareParts",[]),Object(n["a"])(e,"isCreatePartDelete",!1),Object(n["a"])(e,"isPartCode",!0),Object(n["a"])(e,"getCollarUseSeeParm",{name:"getpartapplyListBybig",parammaps:{}}),Object(n["a"])(e,"getCollarUseSeeParm2",{name:"getpartapplyListBybig_m",parammaps:{}}),Object(n["a"])(e,"dialogFormVisible_ViewProgress",!1),Object(n["a"])(e,"viewProgressTemp",{}),Object(n["a"])(e,"getNumbersParm",{name:"getpartApply_mstatue",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}}),Object(n["a"])(e,"numbersList",[]),Object(n["a"])(e,"getPurchaseapplicationParm",{name:"getpartApply_mstatueSG",page:1,offset:1,returntype:"Map",parammaps:{}}),Object(n["a"])(e,"purchaseapplicationList",[]),Object(n["a"])(e,"getProcurementParm",{name:"getpartApply_mstatueCG",page:1,offset:1,returntype:"Map",parammaps:{}}),Object(n["a"])(e,"procurementList",[]),Object(n["a"])(e,"rejectRepair",{dialogFormVisible:!1,temp:{}}),Object(n["a"])(e,"costTypeList",[{id:"保养",name:"保养"},{id:"维修",name:"维修"},{id:"物耗",name:"物耗"},{id:"土建",name:"土建"},{id:"安全",name:"安全"}]),Object(n["a"])(e,"providerNameList",[]),Object(n["a"])(e,"isRepair",[]),Object(n["a"])(e,"isMaintenanceSee",[]),Object(n["a"])(e,"isDistributeLeaflets",[]),Object(n["a"])(e,"isReceipt",[]),Object(n["a"])(e,"isMaintenanceRequisition",[]),Object(n["a"])(e,"isRepairComplete",[]),Object(n["a"])(e,"isDelete",[]),Object(n["a"])(e,"isMaintenanceAudit",[]),Object(n["a"])(e,"isMaintenanceAudit2",[]),Object(n["a"])(e,"isRejectRepair",[]),Object(n["a"])(e,"isRepairExport",[]),Object(n["a"])(e,"buttons",[]),Object(n["a"])(e,"pending",{total:0,getdataListParm:{name:"getRepirsWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}}),Object(n["a"])(e,"isPercentage",!1),Object(n["a"])(e,"percentage",1),Object(n["a"])(e,"downLoadParm",{}),Object(n["a"])(e,"downLoadList",[]),Object(n["a"])(e,"resubmit",{}),e},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:u.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},methods:(s={roleSet1:function(e){var t=!0;return t=!(0!=e.orderStatue||!this.isReceipt)&&(!!e.pickId&&!!e.pickId.split(",").includes(this.getdataListParm.parammaps.loginId)),t},roleSet2:function(e){console.log("isMaintenanceRequisition",this.isMaintenanceRequisition),console.log("roleSet2",(1==e.orderStatue&&1==e.SHStatue||4==e.SHStatue||6==e.SHStatue)&&this.isMaintenanceRequisition);var t=!0;return(1==e.orderStatue&&1==e.SHStatue||4==e.SHStatue||6==e.SHStatue)&&this.isMaintenanceRequisition?(console.log("roleSet2"),t=!!e.pickId&&!!e.pickId.split(",").includes(this.getdataListParm.parammaps.loginId)):t=!1,t},roleSet3:function(e){console.log("roleSet3",1==e.orderStatue&&(1==e.SHStatue||4==e.SHStatue||6==e.SHStatue)&&this.isRepairComplete);var t=!0;return 1!=e.orderStatue||1!=e.SHStatue&&4!=e.SHStatue&&6!=e.SHStatue||!this.isRepairComplete?t=!1:(console.log("roleSet3"),t=!!e.pickId&&!!e.pickId.split(",").includes(this.getdataListParm.parammaps.loginId)),t},tableSort1:function(e){Object(p["f"])(e,this.listOldProducts)},tableSort2:function(e){Object(p["f"])(e,this.purchaseapplicationList)},tableSort3:function(e){Object(p["f"])(e,this.procurementList)},get_auto_buttons:function(){var e="shengweiwaidan",t=Object(l["v"])(this.buttons,e);this.isshengweiwaidan=t;var a="maintenance:repair:baoxiu",s=Object(l["v"])(this.buttons,a);this.isRepair=s;var i="maintenance:repair:paidan",r=Object(l["v"])(this.buttons,i);this.isDistributeLeaflets=r;var n="maintenance:repair:jiedan",o=Object(l["v"])(this.buttons,n);this.isReceipt=o;var p="maintenance:repair:lingyong",m=Object(l["v"])(this.buttons,p);this.isMaintenanceRequisition=m;var c="maintenance:repair:weixiuwancheng",d=Object(l["v"])(this.buttons,c);this.isRepairComplete=d;var u="maintenance:repair:delete",h=Object(l["v"])(this.buttons,u);this.isDelete=h;var g="maintenance:repair:seeMaintenanceAudit",f=Object(l["v"])(this.buttons,g);this.isMaintenanceAudit=f;var b="maintenance:repair:see",v=Object(l["v"])(this.buttons,b);this.isMaintenanceSee=v;var y="maintenance:repair:shenhe2",_=Object(l["v"])(this.buttons,y);this.isMaintenanceAudit2=_;var w="maintenance:repair:rejectRepair",S=Object(l["v"])(this.buttons,w);this.isRejectRepair=S;var P="maintenance:repair:rejectExport",x=Object(l["v"])(this.buttons,P);this.isRepairExport=x,this.get_select_list(),this.get_table_data(),this.getPendingList()},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart1.list,e.findAllEmploye=t.data.findAllEmploye.list,e.pastureNameList=t.data.findAllPasture.list,console.log("牧场下拉框",e.pastureNameList),e.employeNameList=t.data.findAllEmploye.list,console.log("申请人下拉框",e.employeNameList),e.providerNameList=t.data.findAllProviderByCt.list,e.get_depart_list1()}))},get_depart_list1:function(){var e=this;Object(l["e"])(this.getDepartParam1).then((function(t){e.departNameList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.get_depart_list2()},get_depart_list2:function(){var e=this;Object(l["e"])(this.getDepartParam2).then((function(t){e.departNameList2=t.data.list}))},change_depart2:function(e){this.createTemp.departmentName=this.departNameList2.find((function(t){return t.id==e})).name},getPendingList:function(){var e=this;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=u.a.get("employeid"),this.pending.getdataListParm.parammaps.pastureId=u.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=u.a.get("departmentid"),Object(l["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getRepirsList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:u.a.get("pasturename"),inputDatetime:"",loginId:u.a.get("employeid"),menu:"Repair",logindeptId:u.a.get("departmentid"),loginpastureId:u.a.get("pastureid")},this.get_table_data()):"待处理"===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:u.a.get("employeid"),menu:"Repair",logindeptId:u.a.get("departmentid"),loginpastureId:u.a.get("pastureid"),empId:u.a.get("employeid"),pastureId:u.a.get("pastureid"),deptId:u.a.get("departmentid")},this.get_table_data()):"已处理"===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:u.a.get("employeid"),menu:"Repair",logindeptId:u.a.get("departmentid"),loginpastureId:u.a.get("pastureid"),empId:u.a.get("employeid"),pastureId:u.a.get("pastureid"),deptId:u.a.get("departmentid")},this.get_table_data())},orderStatue:function(e){return 0==e.orderStatue?"待接单":1==e.orderStatue?"维修中":2==e.orderStatue?"维修完成":3==e.orderStatue?"已驳回":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||6==e.SHStatue?"未通过":5==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){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=Object(p["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),this.createTemp.pickId="",this.createTemp.repairCode="",this.createTemp.deptName="",this.createTemp.departmentId="",this.createTemp.eqClassId=""},changePickId:function(e){if("create"==this.dialogStatus){var t=[];this.maintainers.forEach((function(a){e.forEach((function(e){a.id==e&&t.push(a.deptid)}))})),console.log(t),this.createTemp.repairDept=t[0],console.log(e)}else this.distributeLeafletsTemp.repairDept=this.maintainers.find((function(t){return t.id==e})).deptid},add_dialog_save_cont:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTempCont"].validate((function(t){t&&(console.log(e.listAddCont),""==e.createTempCont.outsourcingCode||null==e.createTempCont.outsourcingCode||void 0==e.createTempCont.outsourcingCode?Object(l["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTempCont.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_cont_saveSave()}))})):e.add_dialog_cont_saveSave())}))},add_dialog_cont_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||this.listAddCont[t].amount,1==this.createTempCont.contract&&(null==this.listAddCont[t].contractCode||""===this.listAddCont[t].contractCode))return this.$message({type:"warning",message:"请检查合同编号是否未填写",duration:2e3}),!1;var a={common:{returnmap:"0"},data:[{name:"addBigoutsourcing",type:"e",parammaps:this.createTempCont},{name:"insertSpotList",resultmaps:{list:this.listAddCont},children:[{name:"addOutsourcing",type:"e",parammaps:{bigId:"@addBigoutsourcing.LastInsertId",providerId:"@insertSpotList.providerId",amount:"@insertSpotList.amount",eqId:"@insertSpotList.eqId",eqCode:"@insertSpotList.eqCode",eqName:"@insertSpotList.eqName",typea:"@insertSpotList.typea",date:"@insertSpotList.date",contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",RUCode:"@insertSpotList.RUCode",contractCode:"@insertSpotList.contractCode"}}]},{name:"takeOutsourcing",type:"e",parammaps:{departmentId:this.createTempCont.departmentId,id:this.createTempCont.id}}]};return Object(l["c"])(a).then((function(t){console.log("新增保存发送参数",a),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisibleCont=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0},change_contract:function(e){console.log(e),this.$forceUpdate()},form_add_cont_sure:function(e){var t=this;console.log("点击了是否确认委外维修?",e),c["MessageBox"].confirm("是否确认委外维修?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"editMaintainoutsourcing",type:"e",parammaps:{outsourcing:1,id:e.id}}]};Object(l["c"])(a).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))},form_add_cont:function(e){var t=this;this.createTempCont=Object.assign({},e),this.reset_create_cont(),this.getDepartParam2.parammaps.pastureId=this.createTempCont.pastureId,this.get_depart_list2(),this.createTempCont.RUCode=e.repairCode,this.dialogFormVisibleCont=!0,this.listLoading=!1,this.$nextTick((function(){t.$refs["createTempCont"].clearValidate()})),this.get_create_num()},get_create_num:function(){var e=this;Object(l["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTempCont.outsourcingCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},reset_create_cont:function(){this.createTempCont.pastureId=parseInt(u.a.get("pastureid")),this.createTempCont.departmentId=parseInt(u.a.get("departmentid")),18==parseInt(u.a.get("pastureid"))&&(this.createTempCont.departmentId=""),this.createTempCont.departmentName=u.a.get("departmentname"),this.createTempCont.employeId=parseInt(u.a.get("employeid")),this.createTempCont.date=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTempCont.outsourcingCode="",this.createTempCont.applicant=parseInt(u.a.get("employeid")),this.createTempCont.providerId="",this.createTempCont.contract=1,this.createTempCont.repairCode="",this.createTempCont.description="",this.listAddCont=[{providerName:"",providerId:"0",eqId:"0",contractId:"0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:""}]}},Object(n["a"])(s,"change_pasture2",(function(e){this.getDepartParam2.parammaps.pastureId=e,this.get_depart_list2()})),Object(n["a"])(s,"get_depart_list2",(function(){var e=this;Object(l["e"])(this.getDepartParam2).then((function(t){e.departNameList2=t.data.list}))})),Object(n["a"])(s,"change_depart2",(function(e){this.createTemp.departmentName=this.departNameList2.find((function(t){return t.id==e})).name})),Object(n["a"])(s,"form_add",(function(){this.dialogStatus="create",this.dialogFormVisible_Create=!0,this.resetCreateTemp(),this.getRepairNumber()})),Object(n["a"])(s,"isToDayrResubmit",(function(){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:Object(p["e"])(new Date,"{y}-{m}-{d}")}})),Object(n["a"])(s,"getRepairNumber",(function(){var e=this;Object(l["e"])(this.getRepairNumberParm).then((function(t){e.$nextTick((function(){console.log("新增报修单号",t.data.list[0].orderCode),e.createTemp.repairCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))})),Object(n["a"])(s,"add_dialog_save",(function(){var e=this;this.isToDayrResubmit(),Object(l["e"])(this.resubmit).then((function(t){if(console.log("该设备已报修未完成修复,请勿重复提交",e.requestParam,e.resubmit,t),"fail"!==t.msg){if(t.data.total>0)return e.$notify({title:"提交失败",message:"该设备已报修未完成修复",type:"warning",duration:2e3}),e.isCanSubmit=!1,!1;e.isCanSubmit=!0,e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.$refs["createTemp"].validate((function(t){t&&(""==e.createTemp.repairCode||null==e.createTemp.repairCode||void 0==e.createTemp.repairCode?Object(l["e"])(e.getRepairNumberParm).then((function(t){e.$nextTick((function(){console.log("新增报修单号",t.data.list[0].orderCode),e.createTemp.repairCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))}else e.$notify({title:"请检查接口",message:"name: checkMaintain",type:"warning",duration:2e3})}))})),Object(n["a"])(s,"add_dialog_saveSave",(function(){var e=this;this.requestParam.name="insertmaintain",this.requestParam.parammaps=this.createTemp;var t=this.requestParam.parammaps.details.toString();this.requestParam.parammaps.details=t,0!=this.requestParam.parammaps.pickId.length&&this.requestParam.parammaps.pickId&&(this.requestParam.parammaps.pickId=this.requestParam.parammaps.pickId.toString()),Object(l["k"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_Create=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))})),Object(n["a"])(s,"querySearchEqName",(function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(l["e"])(this.requestEqName).then((function(e){null!==e.data.list?(console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list):a.EqNameList=[],t(a.EqNameList)}))})),Object(n["a"])(s,"handleSelectEqName",(function(e){console.log("备件名称/设备内部编号模糊查询选中值",e),this.$set(this.createTemp,"eqCode",e.eqCode),this.$set(this.createTemp,"eqId",e.eqId),this.$set(this.createTemp,"eqClassId",e.eqClassId),this.$set(this.createTemp,"pickId",""),void 0!==e.deptName&&void 0!==e.departmentId?(this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"departmentId",e.departmentId)):(this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"departmentId","")),this.getdataListParmDetail.parammaps.eqClassId=e.eqClassId,this.getDetail(),this.getRepirsEmpParm.parammaps.empid=e.maintenance,this.getRepirsEmp(),this.$forceUpdate()})),Object(n["a"])(s,"querySearchCode",(function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(l["e"])(this.requestEqName).then((function(e){null!==e.data.list?(console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list):a.EqNameList=[],t(a.EqNameList)}))})),Object(n["a"])(s,"handleSelectEqCode",(function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(this.createTemp,"eqName",e.eqName),this.$set(this.createTemp,"eqId",e.eqId),this.$set(this.createTemp,"eqClassId",e.eqClassId),this.$set(this.createTemp,"pickId",""),void 0!==e.deptName&&void 0!==e.departmentId?(this.$set(this.createTemp,"deptName",e.deptName),this.$set(this.createTemp,"departmentId",e.departmentId)):(this.$set(this.createTemp,"deptName",""),this.$set(this.createTemp,"departmentId","")),this.getdataListParmDetail.parammaps.eqClassId=e.eqClassId,this.getDetail(),this.$forceUpdate(),this.getRepirsEmpParm.parammaps.empid=e.maintenance,this.getRepirsEmp()})),Object(n["a"])(s,"getDetail",(function(){var e=this;Object(l["e"])(this.getdataListParmDetail).then((function(t){null!==t.data.list?(console.log("DetailList数据",t.data.list),e.DetailList=t.data.list):e.DetailList=[]}))})),Object(n["a"])(s,"changeDetails",(function(e){console.log(e)})),Object(n["a"])(s,"form_see",(function(e){console.log(e),this.seeTemp=Object.assign({},e);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";0===this.seeTemp.orderStatue?(this.activeList=[{title:"报修",date:this.seeTemp.requestTime,name:this.seeTemp.requesterName},{title:"维修接单"},{title:"完成维修"},{title:"使用人审核"},{title:"设备主管审核"}],this.active=1):3==this.seeTemp.orderStatue?(this.activeList=[{title:"报修",date:this.seeTemp.requestTime,name:this.seeTemp.requesterName},{title:"报修驳回",date:this.seeTemp.shutdownDate,name:this.seeTemp.shutdownPerson}],this.active=1):1===this.seeTemp.orderStatue&&1===this.seeTemp.SHStatue?(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):2===this.seeTemp.SHStatue?(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):3===this.seeTemp.SHStatue?(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:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(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,status:"error",reason:t},{title:"设备主管审核"}]):5===this.seeTemp.SHStatue?(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:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=5):6===this.seeTemp.SHStatue&&(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:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=5),this.seeTemp.requestTime=Object(p["e"])(this.seeTemp.requestTime,"{y}-{m}-{d}"),this.seeTemp.shutdownDate=Object(p["e"])(this.seeTemp.shutdownDate,"{y}-{m}-{d}"),this.seeTemp.orderTime=Object(p["e"])(this.seeTemp.orderTime,"{y}-{m}-{d}"),this.dialogStatus="see",this.dialogFormVisible_See=!0,0==e.orderStatue||3==e.orderStatue?(this.orderStatue1=!0,this.orderStatue2=!1):(this.orderStatue1=!1,this.orderStatue2=!0,this.getFaultList(),this.getOldProductsList(),this.getCollarUseList())})),Object(n["a"])(s,"resetDistributeLeafletsTemp",(function(){this.distributeLeafletsTemp.repairDept="",this.distributeLeafletsTemp.pickId="",this.distributeLeafletsTemp.chargeDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.distributeLeafletsTemp.chargeId=this.$store.state.user.employeid})),Object(n["a"])(s,"handleDistributeLeaflets",(function(e){this.distributeLeafletsTemp=void 0==e?this.seeTemp:Object.assign({},e),console.log("点击了派单"),this.dialogStatus="distributeLeaflets",this.dialogFormVisible_DistributeLeaflets=!0,this.resetDistributeLeafletsTemp(),this.getRepirsEmpParm.parammaps.empid="",this.getRepirsEmp()})),Object(n["a"])(s,"changeMaintenanceTeam",(function(e){console.log(e),this.getRepirsEmpParm.parammaps.deptid=e,this.createTemp.pickId="",this.distributeLeafletsTemp.pickId="",this.getRepirsEmpParm.parammaps.empid="",this.getRepirsEmp()})),Object(n["a"])(s,"getRepirsEmp",(function(){var e=this;Object(l["e"])(this.getRepirsEmpParm).then((function(t){console.log("维修人数据",t.data.list),e.maintainers=t.data.list;var a=[],s=[],i=[];e.maintainers.forEach((function(e){a.push(e.empNameAndmt),s.push(e.id),i.push(e.deptid)})),e.pickNameArr=a,e.pickidArr=s,e.depTiDArr=i,e.createTemp.pickId=s,e.createTemp.repairDept=i[0],console.log(a,s,i)}))})),Object(n["a"])(s,"createDistributeLeafletsData",(function(){var e=this;console.log("点击了派单确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["distributeLeafletsTemp"].validate((function(t){t&&(e.requestParam.name="setRepirsEmp",e.requestParam.parammaps=e.distributeLeafletsTemp,e.requestParam.parammaps.id=e.distributeLeafletsTemp.id,Object(l["k"])(e.requestParam).then((function(t){console.log("派单确认发送参数",e.requestParam),"fail"!==t.msg?(e.listLoading=!0,e.get_table_data(),e.dialogFormVisible_DistributeLeaflets=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"派单成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))})),Object(n["a"])(s,"getFaultList",(function(){var e=this;this.listLoadingFault=!0,"repairComplete"==this.dialogStatus?this.getFaultListParm.parammaps.maintainId=this.repairCompleteTemp.id:this.getFaultListParm.parammaps.maintainId=this.seeTemp.id,Object(l["e"])(this.getFaultListParm).then((function(t){null!==t.data.list?(console.log("故障table数据",t.data.list),e.listFault=t.data.list):e.listFault=[],setTimeout((function(){e.listLoadingFault=!1}),100)}))})),Object(n["a"])(s,"getCollarUseList",(function(){var e=this;this.listLoadingCollarUse=!0,this.getCollarUseListParm.parammaps.RUCode=this.seeTemp.repairCode,Object(l["e"])(this.getCollarUseListParm).then((function(t){console.log("领用记录table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))})),Object(n["a"])(s,"statue",(function(e){return 0==e.statue?"未领用":1==e.statue?"已领用":void 0})),Object(n["a"])(s,"getOldProductsList",(function(){var e=this;this.listLoadingOldProducts=!0,this.getOldProductsListParm.parammaps.repairCode=this.seeTemp.repairCode,Object(l["e"])(this.getOldProductsListParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))})),Object(n["a"])(s,"handleExamine",(function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.seeTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),console.log("点击了维修审核"),this.dialogStatus="maintenanceAudit",this.dialogFormVisible_MaintenanceAudit=!0})),Object(n["a"])(s,"changeStatue",(function(e){this.statueReason=4==e})),Object(n["a"])(s,"createExamineData",(function(){var e=this;console.log("点击了维修审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.statue,e.requestParam.parammaps.empId=u.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(l["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))})),Object(n["a"])(s,"handleExamine2",(function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",3),this.$set(this.examineTemp,"workflowNote","")),console.log("点击了维修审核"),this.dialogStatus="maintenanceAudit2",this.dialogFormVisible_MaintenanceAudit=!0})),Object(n["a"])(s,"createExamineData2",(function(){var e=this;3==this.examineTemp.statue?(console.log("点击了维修审核确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=u.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))):(console.log("点击了维修审核确认-未通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="maintainCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=u.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("维修审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceAudit=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))})))})),Object(n["a"])(s,"handleReceipt",(function(e){var t=this;this.receiptTemp=void 0==e?this.seeTemp:Object.assign({},e),c["MessageBox"].confirm("是否确认接单",{title:"接单",confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="takeRepirsEmp",t.requestParam.parammaps={},t.requestParam.parammaps.id=t.receiptTemp.id,t.requestParam.parammaps.empid=u.a.get("employeid"),Object(l["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.getPendingList(),t.dialogFormVisible_See=!1,t.$notify({title:"成功",message:"接单成功",type:"success",duration:2e3})):Object(l["w"])(e,t.$notify)}))}))})),Object(n["a"])(s,"handleRepairComplete",(function(e){var t=this;console.log("点击了完成维修",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.repairCompleteTemp=this.seeTemp):(this.repairCompleteTemp=Object.assign({},e),this.$set(this.repairCompleteTemp,"isOldProducts",0)),this.No2=!1,this.dialogStatus="repairComplete",this.dialogFormVisible_RepairComplete=!0,this.getFaultList();var a={name:"getpartapplyListBybig",parammaps:{RUCode:e.repairCode}};Object(l["e"])(a).then((function(e){console.log("自动带出旧品内容数据",e.data.list),null!==e.data.list?t.listAdd=e.data.list:t.listAdd=[],setTimeout((function(){t.listLoading=!1}),100)}))})),Object(n["a"])(s,"changeIsOldProducts",(function(e){console.log(e),this.No2=1==e})),Object(n["a"])(s,"querySearchEqNameCont",(function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(l["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))})),Object(n["a"])(s,"handleSelectEqNameCont",(function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()})),Object(n["a"])(s,"querySearchCodeCont",(function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(l["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))})),Object(n["a"])(s,"handleSelectEqCodeCont",(function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()})),Object(n["a"])(s,"blurSelectEqNameCont",(function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")})),Object(n["a"])(s,"blurSelectEqCodeCont",(function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")})),Object(n["a"])(s,"createRepairCompleteData",(function(){var e=this;console.log("点击了完成维修确认"),this.listFault.length>0?0==this.repairCompleteTemp.laidcou?0==this.repairCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeRepirs",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.repairCompleteTemp.id,Object(l["k"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_RepairComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["repairCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;if(e.listAdd[a].acturalAmount>e.listAdd[a].amount)return e.$message({type:"warning",message:"录入数量不可大于领用数量",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:e.repairCompleteTemp.pastureId,deptId:e.repairCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.repairCompleteTemp.eqId,eqCode:e.repairCompleteTemp.eqCode,eqName:e.repairCompleteTemp.eqName,repairCode:e.repairCompleteTemp.repairCode,listType:0}},e.postDataPramas.data[1]={name:"completeRepirs",type:"e",parammaps:{id:e.repairCompleteTemp.id}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.listAdd=[],e.dialogFormVisible_RepairComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成维修",type:"warning",duration:2e3}):this.$message({type:"warning",message:"请完善故障信息!"})})),Object(n["a"])(s,"oldProductsSearch",(function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps["partCode"]=e,this.requestOldProducts.parammaps["RUCode"]=this.repairCompleteTemp.repairCode,Object(l["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))})),Object(n["a"])(s,"handleSelectOldProducts",(function(e){this.repairCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))})),Object(n["a"])(s,"partDelete",(function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))})),Object(n["a"])(s,"handleMaintenanceRequisition",(function(e){console.log("点击了维修及领用"),void 0==e?(this.maintenanceRequisitionTemp=this.seeTemp,this.$set(this.maintenanceRequisitionTemp,"repirsTime",Object(p["e"])(new Date,"{y}-{m}-{d}"))):(this.maintenanceRequisitionTemp=Object.assign({},e),this.$set(this.maintenanceRequisitionTemp,"repirsTime",Object(p["e"])(new Date,"{y}-{m}-{d}"))),this.dialogStatus="maintenanceRequisition",this.dialogFormVisible_MaintenanceRequisition=!0,this.getNewFaultList(),this.getPosition(),this.getCollectionSpareParts(),this.getCollectionSpareParts2()})),Object(n["a"])(s,"getNewFaultList",(function(){var e=this;this.listLoadingFault=!0,this.getFaultListParm.parammaps.maintainId=this.maintenanceRequisitionTemp.id,Object(l["e"])(this.getFaultListParm).then((function(t){console.log("故障table数据",t.data.list),null!==t.data.list?e.listNewFault=t.data.list:e.listNewFault=[],setTimeout((function(){e.listLoadingFault=!1}),100)}))})),Object(n["a"])(s,"getNewCollarUseList",(function(){var e=this;this.listLoadingCollarUse=!0,this.getCollarUseListParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.getCollarUseListParm).then((function(t){console.log("领用记录table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))})),Object(n["a"])(s,"tabMaintenance",(function(e,t){console.log(e.name),"first"==e.name?this.rapairBtn=!0:this.rapairBtn=!1})),Object(n["a"])(s,"getPosition",(function(){var e=this;this.getPositionsParm.parammaps.eqId=this.maintenanceRequisitionTemp.eqId,Object(l["e"])(this.getPositionsParm).then((function(t){console.log("故障部位数据",t.data.list),e.positions=t.data.list}))})),Object(n["a"])(s,"changePosition",(function(e){console.log("故障部位输入值",e),console.log(this.positions.find((function(t){return t.id==e})).positionName),this.newFaultTemp.positionName=this.positions.find((function(t){return t.id==e})).positionName,this.getAppearanceParm.parammaps.id=e,this.getAppearance()})),Object(n["a"])(s,"getAppearance",(function(){var e=this;Object(l["e"])(this.getAppearanceParm).then((function(t){console.log("故障详情数据",t.data.list),e.appearances=t.data.list}))})),Object(n["a"])(s,"changeAppearance",(function(e){console.log("故障详情输入值",e),""==this.newFaultTemp.positionId&&this.$message({type:"warning",message:"请选择故障部位"}),null==this.listNewFault?(this.listNewFault=[],this.listNewFault.push({rowId:this.rowId++,positionId:this.newFaultTemp.positionId,positionName:this.newFaultTemp.positionName,appearanceName:e,failureCause:this.newFaultTemp.failureCause,treatmentMethod:this.newFaultTemp.treatmentMethod}),this.newFaultTemp={},this.appearances=[]):(this.listNewFault.push({rowId:this.rowId++,positionId:this.newFaultTemp.positionId,positionName:this.newFaultTemp.positionName,appearanceName:e,failureCause:this.newFaultTemp.failureCause,treatmentMethod:this.newFaultTemp.treatmentMethod}),this.newFaultTemp={},this.appearances=[])})),Object(n["a"])(s,"newFaultDelete",(function(e){var t=this;console.log(e),c["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listNewFault.length;a++){if(console.log(t.listNewFault[a]),t.listNewFault[a].rowId===e.rowId)var s=t.listNewFault.indexOf(t.listNewFault[a]);if(s>-1)return void t.listNewFault.splice(s,1)}}))})),Object(n["a"])(s,"createMaintenanceRequisitionteData",(function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintenanceRequisitionTemp"].validate((function(t){if(t){if(console.log(e.newFaultTemp.positionId),0==e.listNewFault.length)return e.$notify({title:"",message:"请输入故障诊断",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listNewFault.length;a++)if(""==e.listNewFault[a].failureCause||void 0==e.listNewFault[a].failureCause)return e.$notify({title:"",message:"请输入故障原因",type:"warning",duration:2e3}),!1;if(0===e.listNewFault.length)return e.$notify({title:"",message:"请选择故障",type:"warning",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"deleteMaintainAppearance",type:"e",parammaps:{maintainId:e.maintenanceRequisitionTemp.id}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listNewFault}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertMaintainAppearance",type:"e",parammaps:{appearanceName:"@insertSpotList.appearanceName",positionId:"@insertSpotList.positionId",positionName:"@insertSpotList.positionName",repirsTime:e.maintenanceRequisitionTemp.repirsTime,maintainId:e.maintenanceRequisitionTemp.id,failureCause:"@insertSpotList.failureCause",treatmentMethod:"@insertSpotList.treatmentMethod"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("维修及领用-维修确认保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.getPendingList(),e.dialogFormVisible_MaintenanceRequisition=!1,e.dialogFormVisible_See=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))})),Object(n["a"])(s,"getCollectionSpareParts",(function(){var e=this;this.getCollarUseListParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.getCollarUseListParm).then((function(t){console.log("备件领用table数据",t.data.list),e.listCollectionSpareParts=t.data.list}))})),Object(n["a"])(s,"getCollectionSpareParts2",(function(){var e=this;this.getCollarUseListParm2.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.getCollarUseListParm2).then((function(t){console.log("备件领用无库存table数据",t.data.list),e.listCollectionSpareParts2=t.data.list}))})),Object(n["a"])(s,"openDetails",(function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:e.applyCode}})})),Object(n["a"])(s,"handleCollarUseSee",(function(e,t){this.collectionSparePartsSeeTemp=Object.assign({},e),this.dialogStatus="collectionSparePartsSee",this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!1,this.isPartCode=!1,0==t?(this.collectionSparePartsSeeTemp.isStock=0,this.getCollarUseSeeList()):1==t&&(this.collectionSparePartsSeeTemp.isStock=1,this.getCollarUseSeeList2())})),Object(n["a"])(s,"getCollarUseSeeList",(function(){var e=this;this.getCollarUseSeeParm.parammaps.id=this.collectionSparePartsSeeTemp.id,Object(l["e"])(this.getCollarUseSeeParm).then((function(t){e.listCreateCollectionSpareParts=t.data.list}))})),Object(n["a"])(s,"getCollarUseSeeList2",(function(){var e=this;this.getCollarUseSeeParm2.parammaps.bigId=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.getCollarUseSeeParm2).then((function(t){e.listCreateCollectionSpareParts=t.data.list}))})),Object(n["a"])(s,"handleCollectionSparePartsCreate",(function(){this.collectionSparePartsSeeTemp=this.maintenanceRequisitionTemp,this.collectionSparePartsSeeTemp.createDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.dialogStatus="collectionSparePartsCreate",this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!0,this.listCreateCollectionSpareParts=[],this.isPartCode=!0,this.getCreateNumber()})),Object(n["a"])(s,"getCreateNumber",(function(){var e=this;Object(l["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.collectionSparePartsSeeTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))})),Object(n["a"])(s,"sparePartSearch",(function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(l["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))})),Object(n["a"])(s,"handleSelectSparePart",(function(e){console.log("备件模糊查询选中值",e),this.listCreateCollectionSpareParts.length>0&&this.listCreateCollectionSpareParts.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCreateCollectionSpareParts.unshift(e)})),Object(n["a"])(s,"handleAddSparePartsToBeCollected",(function(){var e=this;console.log("添加待领用备件"),this.addSparePartsToBeCollectedParam.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.addSparePartsToBeCollectedParam).then((function(t){null==t.data.list?e.$message({type:"warning",message:"无可添加待领用备件"}):e.listCreateCollectionSpareParts.length>0?(console.log(e.filtersArr(e.listCreateCollectionSpareParts,t.data.list)),e.listCreateCollectionSpareParts=e.filtersArr(e.listCreateCollectionSpareParts,t.data.list)):e.listCreateCollectionSpareParts=t.data.list}))})),Object(n["a"])(s,"filtersArr",(function(e,t){for(var a=0;a<e.length;a++)for(var s=0;s<t.length;s++)e[a].partId==t[s].partId&&(e[a]=t[s],t.splice(s,1));return e.concat(t)})),Object(n["a"])(s,"createPartDelete",(function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCreateCollectionSpareParts.length;a++){if(console.log(t.listCreateCollectionSpareParts[a]),t.listCreateCollectionSpareParts[a].id===e.id)var s=t.listCreateCollectionSpareParts.indexOf(t.listCreateCollectionSpareParts[a]);if(s>-1)return void t.listCreateCollectionSpareParts.splice(s,1)}}))})),Object(n["a"])(s,"handleViewProgress",(function(e){console.log("查看进度",e),console.log(this.maintenanceRequisitionTemp),this.viewProgressTemp=Object.assign({},e),this.dialogStatus="ViewProgress",this.dialogFormVisible_ViewProgress=!0,this.getNumbers(),this.getPurchaseapplicationList(),this.getProcurementList()})),Object(n["a"])(s,"getNumbers",(function(){var e=this;this.getNumbersParm.parammaps.contractId=this.viewProgressTemp.contractId,this.getNumbersParm.parammaps.RUCode=this.maintenanceRequisitionTemp.repairCode,Object(l["e"])(this.getNumbersParm).then((function(t){e.numbersList=t.data.list[0]}))})),Object(n["a"])(s,"getPurchaseapplicationList",(function(){var e=this;this.getPurchaseapplicationParm.parammaps.createDate=this.viewProgressTemp.date,this.getPurchaseapplicationParm.parammaps.partCode=this.viewProgressTemp.partCode,this.getPurchaseapplicationParm.parammaps.pastureId=this.viewProgressTemp.pastureId,Object(l["e"])(this.getPurchaseapplicationParm).then((function(t){null!==t.data.list?e.purchaseapplicationList=t.data.list:e.purchaseapplicationList=[]}))})),Object(n["a"])(s,"getProcurementList",(function(){var e=this;this.getProcurementParm.parammaps.createDate=this.viewProgressTemp.date,this.getProcurementParm.parammaps.partCode=this.viewProgressTemp.partCode,this.getProcurementParm.parammaps.pastureId=this.viewProgressTemp.pastureId,Object(l["e"])(this.getProcurementParm).then((function(t){null!==t.data.list?e.procurementList=t.data.list:e.procurementList=[]}))})),Object(n["a"])(s,"createCollectionSparePartsData",(function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["collectionSparePartsSeeTemp"].validate((function(t){if(t){if(0===e.listCreateCollectionSpareParts.length)return e.$notify({title:"",type:"warning",message:"请选择备件",duration:2e3}),!1;for(var a=0;a<e.listCreateCollectionSpareParts.length;a++){if(console.log(e.listCreateCollectionSpareParts[a].amount),void 0!==e.listCreateCollectionSpareParts[a].amount&&""!==e.listCreateCollectionSpareParts[a].amount){var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(s.test(e.listCreateCollectionSpareParts[a].amount)){for(var i=[],r=[],n=[],o=[],p=0;p<e.listCreateCollectionSpareParts.length;p++){var m={},c={};m.amount=e.listCreateCollectionSpareParts[p].amount,m.bigId=e.listCreateCollectionSpareParts[p].bigId,m.brand=e.listCreateCollectionSpareParts[p].brand,m.brandId=e.listCreateCollectionSpareParts[p].brandId,m.contractId=e.listCreateCollectionSpareParts[p].contractId,m.enable=e.listCreateCollectionSpareParts[p].enable,m.id=e.listCreateCollectionSpareParts[p].id,m.inventoryType=e.listCreateCollectionSpareParts[p].inventoryType,m.isZeroStock=e.listCreateCollectionSpareParts[p].isZeroStock,m.partCode=e.listCreateCollectionSpareParts[p].partCode,m.partId=e.listCreateCollectionSpareParts[p].partId,m.partName=e.listCreateCollectionSpareParts[p].partName,m.partRepId=e.listCreateCollectionSpareParts[p].partRepId,m.pastureId=e.listCreateCollectionSpareParts[p].pastureId,m.pastureName=e.listCreateCollectionSpareParts[p].pastureName,m.planAmount=e.listCreateCollectionSpareParts[p].planAmount,m.price=e.listCreateCollectionSpareParts[p].price,m.providerId=e.listCreateCollectionSpareParts[p].providerId,m.providerName=e.listCreateCollectionSpareParts[p].providerName,m.remark=e.listCreateCollectionSpareParts[p].remark,m.reportery=e.listCreateCollectionSpareParts[p].reportery,m.specification=e.listCreateCollectionSpareParts[p].specification,m.unit=e.listCreateCollectionSpareParts[p].unit,m.prid=e.listCreateCollectionSpareParts[p].prid,m.mr=e.listCreateCollectionSpareParts[p].mr,m.locationId=e.listCreateCollectionSpareParts[p].locationId,n.push(m),c.amount=e.listCreateCollectionSpareParts[p].amount,c.bigId=e.listCreateCollectionSpareParts[p].bigId,c.brand=e.listCreateCollectionSpareParts[p].brand,c.brandId=e.listCreateCollectionSpareParts[p].brandId,c.contractId=e.listCreateCollectionSpareParts[p].contractId,c.enable=e.listCreateCollectionSpareParts[p].enable,c.id=e.listCreateCollectionSpareParts[p].id,c.inventoryType=e.listCreateCollectionSpareParts[p].inventoryType,c.isZeroStock=e.listCreateCollectionSpareParts[p].isZeroStock,c.partCode=e.listCreateCollectionSpareParts[p].partCode,c.partId=e.listCreateCollectionSpareParts[p].partId,c.partName=e.listCreateCollectionSpareParts[p].partName,c.partRepId=e.listCreateCollectionSpareParts[p].partRepId,c.pastureId=e.listCreateCollectionSpareParts[p].pastureId,c.pastureName=e.listCreateCollectionSpareParts[p].pastureName,c.planAmount=e.listCreateCollectionSpareParts[p].planAmount,c.price=e.listCreateCollectionSpareParts[p].price,c.providerId=e.listCreateCollectionSpareParts[p].providerId,c.providerName=e.listCreateCollectionSpareParts[p].providerName,c.remark=e.listCreateCollectionSpareParts[p].remark,c.reportery=e.listCreateCollectionSpareParts[p].reportery,c.specification=e.listCreateCollectionSpareParts[p].specification,c.unit=e.listCreateCollectionSpareParts[p].unit,c.prid=e.listCreateCollectionSpareParts[p].prid,m.mr=e.listCreateCollectionSpareParts[p].mr,c.locationId=e.listCreateCollectionSpareParts[p].locationId,o.push(c)}for(var d=0;d<n.length;d++)if(parseFloat(n[d].amount)>parseFloat(n[d].reportery)){var u=String(parseFloat(n[d].amount)-parseFloat(n[d].reportery));n[d].amount=u,i.push(n[d]),parseFloat(n[d].reportery)>0&&(o[d].amount=String(o[d].reportery),r.push(o[d]))}else r.push(n[d]);console.log(e.listCreateCollectionSpareParts,"this.listCreateCollectionSpareParts"),console.log(i,">库存listCreateCollectionSpareParts1"),console.log(r,"<=库存listCreateCollectionSpareParts2");for(var h=0,g=0;g<r.length;g++)h+=parseFloat(r[g].price)*parseFloat(r[g].amount);return e.collectionSparePartsSeeTemp.SHStatus=h>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList3",resultmaps:{list:e.listCreateCollectionSpareParts}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePartapplyuseAmount_m",type:"e",parammaps:{amount:"@insertSpotList3.amount",paid:"@insertSpotList3.contractId",RUCode:e.collectionSparePartsSeeTemp.repairCode}},e.postDataPramas.data[1]={name:"insertBigpartapply_m",type:"e",parammaps:{pastureId:e.collectionSparePartsSeeTemp.pastureId,applyCode:e.collectionSparePartsSeeTemp.applyCode,applyType:1,departmentId:e.collectionSparePartsSeeTemp.departmentId,empId:e.collectionSparePartsSeeTemp.pickId,applyDate:e.collectionSparePartsSeeTemp.createDate,RUCode:e.collectionSparePartsSeeTemp.repairCode}},e.postDataPramas.data[2]={name:"insertSpotList2",resultmaps:{list:i}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertpartapply_m",type:"e",parammaps:{bigId:e.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:e.collectionSparePartsSeeTemp.eqName,eqCode:e.collectionSparePartsSeeTemp.eqCode,providerId:"@insertSpotList2.providerId",note:"@insertSpotList2.note",reportery:"@insertSpotList2.reportery",contractId:"@insertSpotList2.contractId"}},r.length>0&&(e.postDataPramas.data[3]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.collectionSparePartsSeeTemp.pastureId,applyCode:e.collectionSparePartsSeeTemp.applyCode,applyType:1,departmentId:e.collectionSparePartsSeeTemp.departmentId,empId:e.collectionSparePartsSeeTemp.pickId,applyDate:e.collectionSparePartsSeeTemp.createDate,RUCode:e.collectionSparePartsSeeTemp.repairCode,SHStatus:e.collectionSparePartsSeeTemp.SHStatus}},e.postDataPramas.data[4]={name:"insertSpotList",resultmaps:{list:r}},e.postDataPramas.data[4].children=[],e.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:e.collectionSparePartsSeeTemp.eqName,eqCode:e.collectionSparePartsSeeTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}}),Object(l["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_CollectionSparePartsSee=!1,e.getCollectionSpareParts(),e.getCollectionSpareParts(),e.getCollectionSpareParts2(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1}return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1}}}))})),Object(n["a"])(s,"form_delete",(function(e){var t=this;c["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMaintain",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.getPendingList(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(l["w"])(e,t.$notify)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))})),Object(n["a"])(s,"handleRejectRepair",(function(e){console.log("报修驳回"),this.rejectRepair.temp=Object.assign({},e),this.dialogStatus="rejectRepair",this.rejectRepair.dialogFormVisible=!0})),Object(n["a"])(s,"rejectRepairData",(function(){var e=this;console.log("报修驳回确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["rejectRepair"].validate((function(t){t&&(e.requestParam.name="updateMaintain",e.requestParam.parammaps={},e.requestParam.parammaps.shutdownPerson=u.a.get("employeid"),e.requestParam.parammaps.id=e.rejectRepair.temp.id,e.requestParam.parammaps.shutdownReason=e.rejectRepair.temp.shutdownReason,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.getPendingList(),e.rejectRepair.dialogFormVisible=!1,e.$notify({title:"成功",message:"驳回成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})))}))})),Object(n["a"])(s,"handleDownload",(function(){var e=this;this.$alert("设备维修正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm={},this.downLoadParm.name="loadRepirsList",this.downLoadParm.offset=0,this.downLoadParm.page=1,this.downLoadParm.returntype="Map",void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){if(null!==t.data.list&&""!==t.data.list)for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","待接单"):1==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","维修中"):2==t.data.list[a].orderStatue?e.$set(t.data.list[a],"orderStatue","维修完成"):3==t.data.list[a].orderStatue&&e.$set(t.data.list[a],"orderStatue","已驳回"),1==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue",""):2==t.data.list[a].SHStatue||3==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue","审核中"):4==t.data.list[a].SHStatue||6==t.data.list[a].SHStatue?e.$set(t.data.list[a],"SHStatue","未通过"):5==t.data.list[a].SHStatue&&e.$set(t.data.list[a],"SHStatue","已通过");else t.data.list=[];e.downLoadList=t.data.list,console.log(e.downLoadList),""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var s=[{tHeader:["报修单号","牧场","设备内部编号","设备名称","规格型号","部门","故障情况","报修人","报修时间","维修日期","维修部门","处理状态","领用单状态","旧品录入状态","审核状态","故障部位","故障详情","故障原因","处理方式"],filterVal:["repairCode","pastureName","eqCode","eqName","specification","departmentName","details","requesterName","requestTime","stopTime","repairDeptName","orderStatue","LYStatue","LRStatue","SHStatue","positionName","appearanceName","failureCause","treatmentMethod"],tableDatas:e.downLoadList,sheetName:"设备维修"}];Object(p["d"])(s,"设备维修",!0,"xlsx")}))})),s)},g=h,f=(a("c81c"),a("5f54"),a("2877")),b=Object(f["a"])(g,i,r,!1,null,"38a62eb8",null);t["default"]=b.exports},b462:function(e,t,a){"use strict";a("fccd")},b4ef:function(e,t,a){"use strict";a("b35e")},b5d2:function(e,t,a){},b618:function(e,t,a){},b644:function(e,t,a){},b65b:function(e,t,a){"use strict";a("15bc")},b666:function(e,t,a){"use strict";a("e57d")},b6fb:function(e,t,a){"use strict";a.r(t);var s=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-2",type:"warning"}})],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!0,null,null,null);t["default"]=l.exports},b735:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-安全库存",use:"icon-安全库存-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-安全库存"><defs><style type="text/css"></style></defs><path d="M807.424 986.624H225.28c-30.208 0-53.76-23.552-53.76-53.76V363.008h51.2v569.856c0 1.536 1.024 2.56 2.56 2.56h582.144c1.536 0 2.56-1.024 2.56-2.56V363.008h51.2v569.856c0 30.208-23.552 53.76-53.76 53.76z" p-id="18392" fill="#ffffff" /><path d="M993.28 542.72c-6.656 0-13.312-2.56-17.92-7.68l-455.68-455.68-455.68 455.68c-10.24 10.24-26.112 10.24-36.352 0s-10.24-26.112 0-36.352L501.76 25.6c10.24-10.24 26.112-10.24 36.352 0l473.6 473.6c10.24 10.24 10.24 26.112 0 36.352-5.12 4.608-11.776 7.168-18.432 7.168z" p-id="18393" fill="#ffffff" /><path d="M517.12 720.896c-13.824 0-26.112-10.24-27.648-24.576l-39.424-276.992c-6.144-40.96 26.112-77.824 67.072-77.824 41.472 0 73.216 36.864 67.072 77.824l-39.424 276.992c-2.048 14.336-13.824 24.576-27.648 24.576z" p-id="18394" fill="#ffffff" /><path d="M517.12 788.48m-37.888 0a37.888 37.888 0 1 0 75.776 0 37.888 37.888 0 1 0-75.776 0Z" p-id="18395" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},b762:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),e._v(" "),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),e._v(" "),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),e._v(" "),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])},i=[],r={name:"Todo",directives:{focus:function(e,t,a){var s=t.value,i=a.context;s&&i.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},b775:function(e,t,a){"use strict";var s=a("bc3a"),i=a.n(s),r=a("5c96"),n=a("4360"),l=a("5f87"),o="http://127.0.0.1:8082/";0==o.indexOf("/")&&1==o.length&&(o=window.location.protocol+"//"+window.location.host+o);var p=i.a.create({baseURL:o,withCredentials:!0,timeout:6e4});p.interceptors.request.use((function(e){return e.headers["Content-Type"]="application/json;charset=UTF-8",e.withCredentials=!1,n["a"].getters.token&&(e.headers["token"]=Object(l["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),p.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?(Object(r["Message"])({message:"请求超时",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||r["MessageBox"].confirm("你已经注销登陆,你可以取消或重新登陆","确认注销",{confirmButtonText:"重新登陆",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),20002===t.code&&n["a"].dispatch("user/resetToken").then((function(){location.reload()})),void 0===t.code?t:Promise.reject(new Error(t.message||"Error"))):t}),(function(e){console.log("err"+e),console.log("err"+e);var t=e.config;if(!t)return Object(r["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e);if(console.log("config==>11111",t),console.log("config.__retryCount==>111111",t.__retryCount),t.__retryCount=t.__retryCount||0,t.__retryCount>=3)return Object(r["Message"])({message:"请求超时",type:"error",duration:5e3}),Promise.reject(e);t.__retryCount+=1;var a=new Promise((function(e){setTimeout((function(){e()}),t.retryDelay||14e3)}));return a.then((function(){return p(t)}))})),t["a"]=p},b79c:function(e,t,a){},b7ed:function(e,t,a){},b840:function(e,t,a){"use strict";a("a539")},b8dc:function(e,t,a){},ba11:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.deptId,callback:function(t){e.$set(e.getdataListParm.parammaps,"deptId",t)},expression:"getdataListParm.parammaps.deptId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getdataListParm.parammaps.feeType,callback:function(t){e.$set(e.getdataListParm.parammaps,"feeType",t)},expression:"getdataListParm.parammaps.feeType"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.label}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",label:"月份",prop:"budgetMonth","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.budgetMonth))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feeType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预算",sortable:"custom",prop:"mymonthBudget","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.monthBudget))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"",prop:"mymonthLimit","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.monthLimit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"230","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:function(t){e.get_table_data(),e.tableSort()}}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"createTemp",attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部门",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"类型:",prop:"feeType"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"类型",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},on:{change:e.changeFeeType},model:{value:e.createTemp.feeType,callback:function(t){e.$set(e.createTemp,"feeType",t)},expression:"createTemp.feeType"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.label}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"月份:",prop:"budgetMonth"}},[a("div",{staticClass:"block"},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"month",placeholder:"月份",format:"yyyy-MM","value-format":"yyyy-MM",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},model:{value:e.createTemp.budgetMonth,callback:function(t){e.$set(e.createTemp,"budgetMonth",t)},expression:"createTemp.budgetMonth"}})],1)])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"monthBudget"}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.createTemp.unit))]),e._v(" "),a("el-input",{ref:"monthBudget",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.createTemp.monthBudget,callback:function(t){e.$set(e.createTemp,"monthBudget",t)},expression:"createTemp.monthBudget"}})],1)],1),e._v(" "),"饲养头数月预算"!==e.createTemp.feeType?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"monthLimit"}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.createTemp.unit2))]),e._v(" "),a("el-input",{ref:"monthLimit",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.createTemp.monthLimit,callback:function(t){e.$set(e.createTemp,"monthLimit",t)},expression:"createTemp.monthLimit"}})],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),"create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("28a5"),a("3b2b"),a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"Budget",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],feeType:[{required:!0,message:"必填",trigger:"blur"}],budgetMonth:[{required:!0,message:"必填",trigger:"blur"}],deptId:[{required:!0,message:"必填",trigger:"blur"}],monthBudget:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/(^[1-9](\d+)?(\.\d{1,3})?$)|(^\d\.\d{1,2}$)/,s=e.test(t);s?a():a(new Error("请输入正数,且最多保留两位小数"))}),0)},trigger:"blur"}],monthLimit:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/(^[1-9](\d+)?(\.\d{1,3})?$)|(^\d\.\d{1,2}$)/,s=e.test(t);s?a():a(new Error("请输入正数,且最多保留两位小数"))}),0)},trigger:"blur"}],cowSumBudgetMonth:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入正数"))}),0)},trigger:"blur"}]},textMap:{update:"编辑",create:"新增",see:"查看详情"},edit:0,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},getDictByName:[],findAllPasture:[],findAllDepart:[],createDepartList:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["其它成本"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getMonthbudgetlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename"),feeType:"",deptId:""}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureId:this.$store.state.user.pastureid,budgetMonth:"",feeType:"",monthBudget:"",monthLimit:"",cowSumBudgetMonth:"",deptId:"",unit:"预算:",unit2:"内控:"},requestParam:{},downloadParam:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"uploadmonthbudget",importParams:"月份, 牧场,部门, 类型, 预算, 内控",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list()},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllPasture=t.data.findAllPasture.list,e.getDepartDownList(),e.get_table_data()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=function(a){console.log(e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType}))),void 0!==e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType}))?(void 0!==t.data.list[a].monthBudget&&e.$set(t.data.list[a],"mymonthBudget",parseFloat(t.data.list[a].monthBudget)),void 0!==t.data.list[a].monthLimit&&e.$set(t.data.list[a],"mymonthLimit",parseFloat(t.data.list[a].monthLimit)),"万元"!==e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value&&e.$set(t.data.list[a],"monthBudget",t.data.list[a].monthBudget+"("+e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value+")"),e.$set(t.data.list[a],"monthLimit",t.data.list[a].monthLimit+"("+e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value+")")):(e.$set(t.data.list[a],"mymonthBudget",parseFloat(t.data.list[a].monthBudget)),e.$set(t.data.list[a],"mymonthLimit",parseFloat(t.data.list[a].monthLimit)),e.$set(t.data.list[a],"monthBudget",t.data.list[a].monthBudget),e.$set(t.data.list[a],"monthLimit",t.data.list[a].monthLimit))},s=0;s<t.data.list.length;s++)a(s);e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)}else e.list=[];setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.budgetMonth="",this.createTemp.feeType="",this.createTemp.monthBudget="",this.createTemp.monthLimit="",this.createTemp.cowSumBudgetMonth="",this.createTemp.deptId="",this.createTemp.unit="预算:",this.createTemp.unit2="内控:"},form_add:function(){var e=this;this.resetCreateTemp(),console.log(this.createTemp),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeFeeType:function(e){this.createTemp.unit="预算("+this.getDictByName.find((function(t){return t.label===e})).value+"):",this.createTemp.unit2="内控("+this.getDictByName.find((function(t){return t.label===e})).value+"):"},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertMonthbudget",e.createTemp.cowSumBudgetMonth=parseInt(e.createTemp.cowSumBudgetMonth),"饲养头数月预算"==e.createTemp.feeType&&(e.createTemp.monthLimit=0),e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"该类型当前月份已存在",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},add_dialog_save_again:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertMonthbudget",e.createTemp.cowSumBudgetMonth=parseInt(e.createTemp.cowSumBudgetMonth),"饲养头数月预算"==e.createTemp.feeType&&(e.createTemp.monthLimit=0),e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"该类型当前月份已存在",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList();var a="预算("+e.monthBudget.split("(")[1],s="内控("+e.monthLimit.split("(")[1];e.monthBudget=e.monthBudget.split("(")[0],e.monthLimit=e.monthLimit.split("(")[0],this.$set(e,"unit",a),this.$set(e,"unit2",s),this.createTemp=Object.assign({},e),console.log(this.createTemp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="updateMonthbudget",e.createTemp.cowSumBudgetMonth=parseInt(e.createTemp.cowSumBudgetMonth),"饲养头数月预算"==e.createTemp.feeType&&(e.createTemp.monthLimit=0),e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"该类型当前月份已存在",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list}))},form_see:function(e){var t="预算("+e.monthBudget.split("(")[1],a="内控("+e.monthLimit.split("(")[1];e.monthBudget=e.monthBudget.split("(")[0],e.monthLimit=e.monthLimit.split("(")[0],this.$set(e,"unit",t),this.$set(e,"unit2",a),this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["月份","牧场","部门","类型","预算","内控"],r=["月份","牧场","部门","类型","预算","内控"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"月预算模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["月份","牧场","部门","类型","预算","内控","报错信息"],r=["月份","牧场","部门","类型","预算","内控","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"月预算报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("月预算正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="getMonthbudgetlist",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){if(""!==t.data.list){for(var a=function(a){void 0==e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType}))?(e.$set(t.data.list[a],"monthBudget",t.data.list[a].monthBudget),e.$set(t.data.list[a],"monthLimit",t.data.list[a].monthLimit)):("万元"!==e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value&&e.$set(t.data.list[a],"monthBudget",t.data.list[a].monthBudget+"("+e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value+")"),e.$set(t.data.list[a],"monthLimit",t.data.list[a].monthLimit+"("+e.getDictByName.find((function(e){return e.label==t.data.list[a].feeType})).value+")"))},s=0;s<t.data.list.length;s++)a(s);e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)}e.$nextTick((function(){var e=[{tHeader:["月份","牧场","部门","类型","预算","内控"],filterVal:["budgetMonth","pastureName","deptName","feeType","monthBudget","monthLimit"],tableDatas:t.data.list,sheetName:"月预算"}];Object(l["d"])(e,"月预算",!0,"xlsx")}))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("是否删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMonthbudget",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},h=u,g=(a("4e2d"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"ac8cf1b8",null);t["default"]=f.exports},ba1d:function(e,t,a){"use strict";a("7f4e")},ba59:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[e.isPasture?a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}):e._e(),e._v(" "),e.isType?a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentClass,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}):e._e(),e._v(" "),e.isType2?a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备名称"},model:{value:e.eqName,callback:function(t){e.eqName=t},expression:"eqName"}},e._l(e.eqNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1):e._e(),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),e.isTitle?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goFirst}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(this.pastureName))])]):e._e(),e._v(" "),e.isTitle2?a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:e.goFirst}},[e._v("所有牧场")]),e._v(">"),a("span",{on:{click:e.goSecond}},[e._v(e._s(this.pastureName))]),e._v(">"),a("span",[e._v(e._s(this.typename))])]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),e._v(" "),e.isPasture?a("el-table-column",{key:1,attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick(s)}}},[e._v(e._s(s.name))])]}}],null,!1,2452032439)}):e._e(),e._v(" "),e.isType?a("el-table-column",{key:2,attrs:{label:"设备分类","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick2(s)}}},[e._v(e._s(s.typename))])]}}],null,!1,1742499581)}):e._e(),e._v(" "),e.isType2?a("el-table-column",{key:3,attrs:{label:"设备名称","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick3(s)}}},[e._v(e._s(s.eqName))])]}}],null,!1,528388080)}):e._e(),e._v(" "),e.isType2?a("el-table-column",{key:4,attrs:{label:"设备编号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("span",[e._v(e._s(s.eqCode))])]}}],null,!1,4147381757)}):e._e(),e._v(" "),a("el-table-column",{key:5,attrs:{label:"保养计划数","min-width":"100px",align:"center",sortable:"",prop:"totaluk"}}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"完成数","min-width":"100px",align:"center",sortable:"",prop:"doneuk"}}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"保养完成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"donerateuk")},"min-width":"90px",align:"center",prop:"donerateuk"}}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"报修数量","min-width":"100px",align:"center",sortable:"",prop:"totalmt"}}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"完成数","min-width":"100px",align:"center",sortable:"",prop:"donemt"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修完成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"doneratemt")},"min-width":"90px",align:"center",prop:"doneratemt"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=(a("7f7f"),a("6724")),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("3de8"),m=a("a78e"),c=a.n(m),d={name:"CompletionRateMaintenance",components:{Pagination:n["a"],TreeSelect:p["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(e){return e.getTime()>(new Date).getTime()-864e5}},isTitle:!1,isTitle2:!1,isPasture:!0,isType:!1,isType2:!1,pastureName:"",eqName:"",eqNameList:[],table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"UkdoneRatePasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetime:[]}}},disabled:!1,placeholder:"请选择设备类别",nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},dataform:{eqClassId:"",typeCode:""},types:[{id:0,name:"设备类别1"},{id:1,name:"设备类别2"}],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.getTimeFn(),this.getDownClassList()},methods:{sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(o["f"])(e,this.table.list)},getTimeFn:function(){var e=this,t=new Date,a=new Date;t.setTime(t.getTime()-6048e5),e.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(t,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(a,"{y}-{m}-{d}"),e.table.getdataListParm.parammaps.startTime=e.table.getdataListParm.parammaps.inputDatetime[0],e.table.getdataListParm.parammaps.stopTime=e.table.getdataListParm.parammaps.inputDatetime[1],e.get_table_data()},get_table_data:function(){var e=this;this.table.listLoading=!0,18==c.a.get("pastureid")?this.table.getdataListParm.parammaps.pastureId="":this.table.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),Object(l["e"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total,setTimeout((function(){e.table.listLoading=!1}),100)}))},form_search:function(){this.table.listLoading=!0,this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.inputDatetime[0],this.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.inputDatetime[1],0==this.isPasture?(this.table.getdataListParm.name="UkdoneRateEqclass",console.log(this.dataform.eqClassId),null==this.dataform.eqClassId?this.table.getdataListParm.parammaps.typecode="":this.table.getdataListParm.parammaps.typecode=this.dataform.typeCode):(this.table.getdataListParm.parammaps.typecode="",this.table.getdataListParm.name="UkdoneRatePasture"),this.get_table_data()},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.name&&null==t.typename&&1===a?{textDecoration:"underline"}:1!=this.isType&&1!=this.isType2||null===t.typename||1!=a?{textDecoration:"none"}:{textDecoration:"underline"}},tableCellClick:function(e){"现代牧业"!==e.name&&(this.table.getdataListParm.name="UkdoneRateEqclass",this.pastureName=e.name,this.table.getdataListParm.parammaps.pastureid=e.id,this.get_table_data(),this.isPasture=!1,this.isType=!0,this.isType2=!1,this.isTitle=!0,this.isTitle2=!1)},tableCellClick2:function(e){this.table.getdataListParm.offset=1,this.table.getdataListParm.name="UkdoneRateEq",this.typename=e.typename,this.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.inputDatetime[0],this.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.inputDatetime[1],this.table.getdataListParm.parammaps.pastureId=e.pastureId,this.table.getdataListParm.parammaps.eqClassId=e.id,this.get_table_data(),this.isPasture=!1,this.isType=!1,this.isType2=!0,this.isTitle=!1,this.isTitle2=!0},tableCellClick3:function(e){"现代牧业"==c.a.get("pasturename")||this.pastureName==c.a.get("pasturename")?this.$router.push({path:"/maintenance/MaintenancePlan",query:{myPath:"CompletionRateMaintenance",eqCode:e.eqCode,pastureName:this.pastureName}}):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"})},goFirst:function(){this.table.getdataListParm.offset=1,this.table.getdataListParm.name="UkdoneRatePasture",this.table.getdataListParm.parammaps.typecode="",this.table.getdataListParm.parammaps.eqClassId="",this.dataform.eqClassId="",this.dataform.typeCode="",this.get_table_data(),this.isType=!1,this.isType2=!1,this.isTitle=!1,this.isTitle2=!1,this.isPasture=!0},goSecond:function(){this.isType=!0,this.isType2=!1,this.isTitle=!0,this.isTitle2=!1,this.table.getdataListParm.name="UkdoneRateEqclass",this.table.getdataListParm.parammaps.pastureid=this.table.getdataListParm.parammaps.pastureid,this.get_table_data()},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},popoverHide:function(e,t){console.log(e,t),null==t?(this.dataform.eqClassId=e,this.dataform.typeCode=""):void 0!==t.children?(this.defaultCheckedKeys=[],this.$message({type:"warning",message:"请选择具体设备类型"})):(this.dataform.eqClassId=e,this.dataform.typeCode=t.typeCode)},handleDownload:function(){var e=this;if(1==this.isTitle){console.log("设备导出"),this.$alert("维修保养完成率报表-设备正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="UkdoneRateEqclass",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["设备分类","保养计划数","完成数","保养完成率","报修数量","完成数","维修完成率"],filterVal:["typename","totaluk","doneuk","donerateuk","totalmt","donemt","doneratemt"],tableDatas:e.downLoadParm.list,sheetName:"设备"}];Object(o["d"])(a,"维修保养完成率报表-设备",!0,"xlsx")}))}))}else{console.log("牧场导出"),this.$alert("维修保养完成率报表-设备正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.getdataListParm={},this.downLoadParm.getdataListParm.name="UkdoneRatePasture",this.downLoadParm.getdataListParm.pagecount=0,this.downLoadParm.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["e"])(this.downLoadParm.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadParm.list=t.data.list;var a=[{tHeader:["牧场","保养计划数","完成数","保养完成率","报修数量","完成数","维修完成率"],filterVal:["name","totaluk","doneuk","donerateuk","totalmt","donemt","doneratemt"],tableDatas:e.downLoadParm.list,sheetName:"设备"}];Object(o["d"])(a,"维修保养完成率报表-牧场",!0,"xlsx")}))}))}}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},bab4:function(e,t,a){"use strict";a("f89a")},bac5:function(e,t,a){"use strict";a("4b62")},bafe:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},bb81:function(e,t,a){},bbba:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-电表分析",use:"icon-电表分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-电表分析"><defs><style type="text/css"></style></defs><path d="M24.381 24.381v975.238h975.238V24.381H24.381z m877.714 877.714h-780.19v-97.524h780.19v97.524z m0-170.666H580.267c2.438-7.315 4.876-14.629 4.876-24.381 0-21.943-9.753-41.448-24.381-53.638L536.38 390.095h-48.762l-24.38 263.315c-14.63 12.19-24.382 31.695-24.382 53.638 0 9.752 2.438 17.066 4.876 24.38H121.905V121.906h780.19v609.524z" p-id="4899" /><path d="M487.619 219.429h48.762v97.523h-48.762z m-118.955 22.576l47.104-12.629 25.235 94.208-47.08 12.605z m-109.129 52.151l42.228-24.38 48.762 84.455-42.228 24.38z m-91.623 78.214l34.474-34.499 68.974 68.974-34.499 34.45z m585.46 35.182l68.949-68.95 34.474 34.475-68.973 68.95z m-79.166-53.54l48.762-84.432 42.228 24.381-48.762 84.456z m-90.624-30.77l25.235-94.207 47.104 12.629-25.235 94.208z" p-id="4900" /></symbol>'});n.a.add(l);t["default"]=l},bbbf:function(e,t,a){"use strict";a("30d6")},bc9c:function(e,t,a){},bcbd:function(e,t,a){},bd38:function(e,t,a){"use strict";a("0a8c")},bd50:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}})],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团用电量:"+e._s(e.total)+"万千瓦\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("333d"),m=a("2934"),c=(a("ed08"),a("a78e")),d=a.n(c);a("817d");var u={name:"QueryElec",directives:{waves:o["a"]},components:{Pagination:p["a"]},data:function(){var e;return e={yearDate:new Date,pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",total:"",getBarChart1Parm:{name:"getpSumNowElec",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(m["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryElec:pastures",t=Object(m["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(m["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(m["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(m["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(m["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(m["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"月每日用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40,x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"用电量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["用电量"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"电表名称",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"用电量",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}}}},h=u,g=(a("1f7e"),a("580b"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"2b8c13b4",null);t["default"]=f.exports},bd9e1:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"部门",clearable:""},model:{value:e.getdataListParm.parammaps.departName,callback:function(t){e.$set(e.getdataListParm.parammaps,"departName",t)},expression:"getdataListParm.parammaps.departName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"编号",clearable:""},model:{value:e.getdataListParm.parammaps.formNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"formNumber",t)},expression:"getdataListParm.parammaps.formNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"表名称"},model:{value:e.getdataListParm.parammaps.formName,callback:function(t){e.$set(e.getdataListParm.parammaps,"formName",t)},expression:"getdataListParm.parammaps.formName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"表结构"},model:{value:e.getdataListParm.parammaps.formType,callback:function(t){e.$set(e.getdataListParm.parammaps,"formType",t)},expression:"getdataListParm.parammaps.formType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isWaterAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isWaterExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isWaterImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编号",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"表结构",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天用水量",sortable:"",prop:"waterConsumption",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"倍率",sortable:"",prop:"rate",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用",sortable:"",prop:"sumPrice",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.putName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",sortable:"",prop:"dateFormat"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isWaterModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDosageRecord(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"水表编号:",prop:"formNumber"}},[a("el-autocomplete",{ref:"formNumber",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formNumber","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect,blur:e.blurSelect},model:{value:e.temp.formNumber,callback:function(t){e.$set(e.temp,"formNumber",t)},expression:"temp.formNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"水表名称:",prop:"formName"}},[a("el-autocomplete",{ref:"formName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"formName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurSelect},model:{value:e.temp.formName,callback:function(t){e.$set(e.temp,"formName",t)},expression:"temp.formName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"水类型:"}},[a("span",[e._v(e._s(e.temp.useType))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("span",[e._v(e._s(e.temp.pastureName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:"}},[a("span",[e._v(e._s(e.temp.departName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:"}},[a("span",[e._v(e._s(e.temp.employeName1))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用量:",prop:"consumption"}},[a("el-input",{ref:"consumption",on:{blur:e.handleBlurConsumption},model:{value:e.temp.consumption,callback:function(t){e.$set(e.temp,"consumption",t)},expression:"temp.consumption"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price1"}},[a("el-input",{ref:"price1",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.price1,callback:function(t){e.$set(e.temp,"price1",t)},expression:"temp.price1"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"倍率:",prop:"rate"}},[a("el-input",{ref:"rate",attrs:{disabled:""},model:{value:e.temp.rate,callback:function(t){e.$set(e.temp,"rate",t)},expression:"temp.rate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前时间:",prop:"DATE"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.DATE,callback:function(t){e.$set(e.temp,"DATE",t)},expression:"temp.DATE"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"负责人"},model:{value:e.temp.employeId,callback:function(t){e.$set(e.temp,"employeId",t)},expression:"temp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("表名称:"+e._s(e.dosageRecordTemp.formName))]),e._v(" "),a("span",[e._v("表编号:"+e._s(e.dosageRecordTemp.formNumber))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",sortable:"",prop:"waterConsumption","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.getDosageRecordList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.deleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=(a("5c96"),a("5f87")),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"Water",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isWaterAdd:[],isWaterExport:[],isWaterImport:[],isWaterModify:[],formNumberSearchList:[],formNameSearchList:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertWater",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getWaterList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:""}},useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["水表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},requestFilterParams:{name:"getWaterList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{measureId:"",pastureName:"",useType:"",departName:"",aAmount:"",endAmount:"",employeName:"",price1:"",note:"",employeName1:"",formName:"",formNumber:"",inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",consumption:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getAllMeasureTypeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dosageRecordTemp:{},rules:{endAmount:[{type:"number",required:!0,validator:function(t,a,s){console.log(t,a,s),a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],price1:[{required:!0,message:"必填",trigger:"blur"}],consumption:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"insertWatersMeasure",importParams:"牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:water:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isWaterAdd=t;var a="cost:water:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isWaterExport=s;var i="cost:water:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isWaterImport=n;var l="cost:water:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isWaterModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},handleDownload:function(){var e=this;this.$alert("水表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfit",this.requestParam.parammaps.formType="水表",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.formName=this.getdataListParm.parammaps.formName,this.requestParam.parammaps.formNumber=this.getdataListParm.parammaps.formNumber,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.formType,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["编号","牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注"],r=["编号","牧场","表名称","表编号","抄表日期2","用量","单价2","录入人","备注2"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","错误信息"],r=["牧场","表名称","表编号","抄表日期","用量","单价","录入人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"水表导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formType"]="水表",this.requestFilterParams.parammaps["formNumber"]=e,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNumberSearchList=[]:a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.formNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="getMeasureListbyfilter",this.requestFilterParams.parammaps["formType"]="水表",this.requestFilterParams.parammaps["pastureId"]=c.a.get("pastureid"),this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=e,Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.formName.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNumberSelect:function(e){var t=this;this.requestFilterParams.name="findByNMeasureWater",this.requestFilterParams.parammaps["formNumber"]=this.temp.formNumber,this.requestFilterParams.parammaps["formName"]="",Object(r["e"])(this.requestFilterParams).then((function(e){console.log(e),t.$nextTick((function(){e.data.list.length>0&&(t.temp.pastureName=e.data.list[0].pastureName,t.temp.useType=e.data.list[0].useType,t.temp.departName=e.data.list[0].departName,t.temp.aAmount=e.data.list[0].aAmount,t.temp.employeName1=e.data.list[0].employeName,t.temp.formName=e.data.list[0].formName,t.temp.measureId=e.data.list[0].measureId,t.temp.pastureId=e.data.list[0].pastureId,t.temp.price1=e.data.list[0].price,t.temp.rate=e.data.list[0].rate,t.$forceUpdate())}))}))},handleformNameSelect:function(){var e=this;this.requestFilterParams.name="findByNMeasureWater",this.requestFilterParams.parammaps["formNumber"]="",this.requestFilterParams.parammaps["formName"]=this.temp.formName,Object(r["e"])(this.requestFilterParams).then((function(t){e.$nextTick((function(){t.data.list.length>0&&(e.temp.pastureName=t.data.list[0].pastureName,e.temp.useType=t.data.list[0].useType,e.temp.departName=t.data.list[0].departName,e.temp.aAmount=t.data.list[0].aAmount,e.temp.employeName1=t.data.list[0].employeName,e.temp.formNumber=t.data.list[0].formNumber,e.temp.measureId=t.data.list[0].measureId,e.temp.pastureId=t.data.list[0].pastureId,e.temp.price1=t.data.list[0].price,e.temp.rate=t.data.list[0].rate,e.$forceUpdate())}))}))},blurSelect:function(e){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId=""},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null==t.data.list?e.list=[]:(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departName="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.pastureName="",this.temp.useType="",this.temp.departName="",this.temp.aAmount="",this.temp.employeName1="",this.temp.formName="",this.temp.formNumber="",this.temp.measureId="",this.temp.pastureId="",this.temp.endAmount="",this.temp.price1="",this.temp.note="",this.temp.consumption="",this.temp.employeName="",this.temp.DATE=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.typeName="",this.temp.assTypeId="",this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.employeId=this.$store.state.user.employeid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},handleBlurConsumption:function(){"create"==this.dialogStatus?""!==this.temp.aAmount&&void 0!==this.temp.consumption&&""!==this.temp.consumption&&null!==this.temp.consumption&&(this.temp.endAmount=parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)):(this.$set(this.temp,"endAmount",parseFloat(this.temp.aAmount)+parseFloat(this.temp.consumption)),this.$forceUpdate())},handleBlurEndAmount:function(){"create"==this.dialogStatus?"undefined"!==this.temp.endAmount&&""!==this.temp.endAmount&&null!==this.temp.endAmount&&""!==this.temp.aAmount&&(this.temp.consumption=parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)):(this.$set(this.temp,"consumption",parseFloat(this.temp.endAmount)-parseFloat(this.temp.aAmount)),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertWaterExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertWaterExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasure",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.inputDatetime,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"insertWaterExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,id:e.temp.id,employeId:e.temp.employeId,formNumber:e.temp.formNumber,formName:e.temp.formName,price:e.temp.price1,rate:e.temp.rate,pastureId:e.temp.pastureId,note:e.temp.note,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureExecData",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.inputDatetime,lastRecodeId:"@insertWaterExecData.LastInsertId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkMeasureUpdate",type:"v",parammaps:{endAmount:e.temp.endAmount,checkdate:e.temp.date,measureId:e.temp.measureId}},e.postDataPramas.data[1]={name:"updateWater",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,rate:e.temp.rate,id:e.temp.id,note:e.temp.note,employeId:e.temp.employeId,consumption:e.temp.consumption}},e.postDataPramas.data[2]={name:"updateMeasureWater",type:"e",parammaps:{endAmount:e.temp.endAmount,measureId:e.temp.measureId,endDate:e.temp.date,lastRecodeId:e.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},deleteData:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){t&&(e.requestParam.name="deletedatastem",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.codeType=1,e.requestParam.parammaps.startTime=e.deleteTemp.startTime,e.requestParam.parammaps.stopTime=e.deleteTemp.startTime,Object(r["k"])(e.requestParam).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())})))}))},handleDosageRecord:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),this.getDosageRecordList()},getDosageRecordList:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.id=this.dosageRecordTemp.measureId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},be1a:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"合同管理",name:"first"}},[e.isContractManagement?a("div",{staticClass:"contractManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"pastureName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"statue",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"providerName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime1",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1"}}),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批日期","end-placeholder":"审批日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime2",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter}},[e._v("搜索")]),e._v(" "),a("div",[e.tab1.contractManagement.isContractAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Create}},[e._v("新增")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeContractManagementAll()}},model:{value:e.tab1.contractManagement.radioAll,callback:function(t){e.$set(e.tab1.contractManagement,"radioAll",t)},expression:"tab1.contractManagement.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.contractManagement.listLoading,expression:"tab1.contractManagement.listLoading"}],key:e.tab1.contractManagement.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.contractManagement.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.contractManagement.pageNum-1)*e.tab1.contractManagement.pageSize+1))])]}}],null,!1,1244293581)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"110px",align:"center",prop:"statued"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center",prop:"providerName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"","min-width":"120px",align:"center",prop:"startTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"","min-width":"120px",align:"center",prop:"stopTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}],null,!1,2232091448)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批时间",sortable:"","min-width":"120px",align:"center",prop:"SHdateTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.tab1.contractManagement.isContractSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1DetailsSpareParts(s)}}},[e._v("备件明细")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1ChangeRecord(s)}}},[e._v("变更记录")]):e._e(),e._v(" "),!e.tab1.contractManagement.isContractChange||"正常"!=s.statued&&"已过期"!=s.statued?e._e():a("el-button",{attrs:{disabled:18==parseInt(s.pastureId)&&18!==parseInt(e.isGroupAdministrator),type:"warning",size:"mini"},on:{click:function(t){return e.handleTab1Change(s)}}},[e._v("变更")])]}}],null,!1,3555687819)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.contractManagement.total>0,expression:"tab1.contractManagement.total>0"}],attrs:{total:e.tab1.contractManagement.total,page:e.tab1.contractManagement.getdataListParm.offset,limit:e.tab1.contractManagement.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"pagecount",t)},pagination:e.getTab1List}})],1):e._e(),e._v(" "),e.isDetailsSpareParts?a("div",{staticClass:"DetailsSpareParts"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("备件明细")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partCode",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partName",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件规格"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.specification,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"specification",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.specification"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter2}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[e.tab1.contractManagement.isContractAdd&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Create2}},[e._v("新增")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractChange&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Change2}},[e._v("变更")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Export2}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoading,expression:"tab1.detailsSpareParts.listLoading"}],key:e.tab1.detailsSpareParts.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.detailsSpareParts.pageNum-1)*e.tab1.detailsSpareParts.pageSize+1))])]}}],null,!1,3360292269)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"120px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"120px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"120px",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center",prop:"brand"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"120px",align:"center",prop:"unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"","min-width":"120px",align:"center",prop:"planAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"","min-width":"120px",align:"center",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"120px",align:"center",prop:"remark"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.detailsSpareParts.total>0,expression:"tab1.detailsSpareParts.total>0"}],attrs:{total:e.tab1.detailsSpareParts.total,page:e.tab1.detailsSpareParts.getdataListParm.offset,limit:e.tab1.detailsSpareParts.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"pagecount",t)},pagination:e.getTab1List2}})],1):e._e(),e._v(" "),e.isChangeRecord?a("div",{staticClass:"ChangeRecord"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("变更记录")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack2()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"流水编号"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更类型"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.SHtype,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"SHtype",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.SHtype"}},e._l(e.changeTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"stuteSH",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.stuteSH"}},e._l(e.auditStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"tab1InputDatetime3",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter3}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeChangeRecordAll()}},model:{value:e.tab1.changeRecord.radioAll,callback:function(t){e.$set(e.tab1.changeRecord,"radioAll",t)},expression:"tab1.changeRecord.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-radio-button",{attrs:{label:"待处理"}}),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.changeRecord.listLoading,expression:"tab1.changeRecord.listLoading"}],key:e.tab1.changeRecord.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.pageNum-1)*e.tab1.changeRecord.pageSize+1))])]}}],null,!1,3286316621)}),e._v(" "),a("el-table-column",{attrs:{label:"流水编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.SHtype?a("span",[e._v("新增合同")]):e._e(),e._v(" "),1==t.row.SHtype?a("span",[e._v("新增备件")]):e._e(),e._v(" "),2==t.row.SHtype?a("span",[e._v("变更备件")]):e._e(),e._v(" "),3==t.row.SHtype?a("span",[e._v("合同变更")]):e._e()]}}],null,!1,1395037520)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.SHStatus||3==t.row.SHStatus||5==t.row.SHStatus?a("span",[e._v("审核中")]):e._e(),e._v(" "),4==t.row.SHStatus||6==t.row.SHStatus||8==t.row.SHStatus?a("span",[e._v("未通过")]):e._e(),e._v(" "),7==t.row.SHStatus?a("span",[e._v("通过")]):e._e()]}}],null,!1,950457820)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1See3(s)}}},[e._v("查看")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?e._e():a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Update3(s)}}},[e._v("编辑")]),e._v(" "),e.tab1.changeRecord.isContractExamineZG&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")]):a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")])]}}],null,!1,2852534092)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.total>0,expression:"tab1.changeRecord.total>0"}],attrs:{total:e.tab1.changeRecord.total,page:e.tab1.changeRecord.getdataListParm.offset,limit:e.tab1.changeRecord.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"pagecount",t)},pagination:e.getTab1List3}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"合同明细",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab2.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"pastureName",t)},expression:"tab2.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPastureList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab2.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"contractCode",t)},expression:"tab2.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab2.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"statue",t)},expression:"tab2.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab2.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab2.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab2.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partCode",t)},expression:"tab2.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab2.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partName",t)},expression:"tab2.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab2.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"providerName",t)},expression:"tab2.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab2.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab2.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab2Filter}},[e._v("搜索")]),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab2Export}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.listLoading,expression:"tab2.listLoading"}],key:e.tab2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab2.pageNum-1)*e.tab2.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"",prop:"startTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"",prop:"planAmount","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatorMan))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",prop:"creatorTime","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab2.total>0,expression:"tab2.total>0"}],attrs:{total:e.tab2.total,page:e.tab2.getdataListParm.offset,limit:e.tab2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab2.getdataListParm,"pagecount",t)},pagination:e.getTab2List}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.contractManagement.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.contractManagement.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.contractManagement.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{disabled:""},model:{value:e.tab1.contractManagement.create.temp.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"contractCode",t)},expression:"tab1.contractManagement.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:e.disabled},model:{value:e.tab1.contractManagement.create.temp.pastureId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureId",t)},expression:"tab1.contractManagement.create.temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入供应商名称或供应商编号"},on:{focus:e.handleFocusProvider,blur:e.handleBlurProvider,select:e.handleSelectProvider},model:{value:e.tab1.contractManagement.create.temp.providerName,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"providerName",t)},expression:"tab1.contractManagement.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.startTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"startTime",t)},expression:"tab1.contractManagement.create.temp.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled,type:"date",clearable:!1,placeholder:"截止日期","picker-options":e.pickerOptions2,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.stopTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"stopTime",t)},expression:"tab1.contractManagement.create.temp.stopTime"}})],1)],1),e._v(" "),"create"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statue,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statue",t)},expression:"tab1.contractManagement.create.temp.statue"}},e._l(e.contractStatus2List,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"change"==e.dialogStatus||"see"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statued,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statued",t)},expression:"tab1.contractManagement.create.temp.statued"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus},on:{change:e.changeIsZero},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorId"}},[a("el-select",{ref:"creatorId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus,placeholder:"录入人"},on:{change:e.changeCreatorMan},model:{value:e.tab1.contractManagement.create.temp.creatorId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorId",t)},expression:"tab1.contractManagement.create.temp.creatorId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:"date","picker-options":e.pickerOptions3,placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.contractManagement.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorTime",t)},expression:"tab1.contractManagement.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注",disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.remark,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"remark",t)},expression:"tab1.contractManagement.create.temp.remark"}})],1)],1),e._v(" "),"see"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"synchronousPasture"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",placeholder:"同步牧场",disabled:"18"!==e.isGroupAdministrator},model:{value:e.tab1.contractManagement.create.temp.synchronousPasture,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"synchronousPasture",t)},expression:"tab1.contractManagement.create.temp.synchronousPasture"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"pastureName2"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"同步牧场",disabled:"see"==e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.pastureName2,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureName2",t)},expression:"tab1.contractManagement.create.temp.pastureName2"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["change"==e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.terminationData()}}},[e._v("终止合同")]):e._e(),e._v(" "),"see"!==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.changeData()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.contractManagement.create.dialogFormVisible=!1,e.getTab1List(),e.tab1.contractManagement.create.temp.providerName=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.detailsSpareParts.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.detailsSpareParts.create,"dialogFormVisible",t)}}},[0!==e.tab1.detailsSpareParts.updateList.SHtype&&3!==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name1","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.tab1.detailsSpareParts.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts,"partCode",t)},expression:"tab1.detailsSpareParts.partCode"}})],1)],1)],1)],1),e._v(" "),"tab1create2"==e.dialogStatus?a("div",{staticClass:"filter-container",staticStyle:{float:"right"}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleTab1DownloadTemp2}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{disabled:e.tab1.detailsSpareParts.isDisabledImport,type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoadingAdd,expression:"tab1.detailsSpareParts.listLoadingAdd"}],key:e.tab1.detailsSpareParts.tableKeyAdd,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{focus:function(a){return e.handleFocusBrand(t.row)},blur:function(a){return e.handleBlurBrand(t.row)},select:function(a){e.handleSelectBrand(a,t.row)}},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})]}}],null,!1,317411465)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"70px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"planAmount"}},[a("el-input",{ref:"planAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.planAmount,callback:function(a){e.$set(t.row,"planAmount",a)},expression:"scope.row.planAmount"}})],1)],1)]}}],null,!1,2115901298)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}],null,!1,875317540)}),e._v(" "),a("el-table-column",{attrs:{label:"税码","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.taxcode,callback:function(a){e.$set(t.row,"taxcode",a)},expression:"scope.row.taxcode"}})]}}],null,!1,2208511593)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:"",maxlength:"100","show-word-limit":""},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}],null,!1,892001844)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,2490411768)})],1)],1):e._e(),e._v(" "),0==e.tab1.detailsSpareParts.updateList.SHtype||3==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"牧场",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.pastureName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"pastureName",t)},expression:"tab1.detailsSpareParts.create.temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.contractCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"contractCode",t)},expression:"tab1.detailsSpareParts.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.providerName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"providerName",t)},expression:"tab1.detailsSpareParts.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.startTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"startTime",t)},expression:"tab1.detailsSpareParts.create.temp.startTime"}})],1)],1),e._v(" "),"tab1Update2"==e.dialogStatus&&0==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.stopTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTime",t)},expression:"tab1.detailsSpareParts.create.temp.stopTime"}})],1)],1):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus&&0!==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期后:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.detailsSpareParts.create.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("el-input",{ref:"creatorMan",attrs:{placeholder:"录入人",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.creatorMan,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorMan",t)},expression:"tab1.detailsSpareParts.create.temp.creatorMan"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype||"tab1Update2"==e.dialogStatus,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorTime",t)},expression:"tab1.detailsSpareParts.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注"},model:{value:e.tab1.detailsSpareParts.create.temp.remark,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"remark",t)},expression:"tab1.detailsSpareParts.create.temp.remark"}})],1)],1),e._v(" "),0!==e.tab1.detailsSpareParts.create.temp.SHtype&&"tab1Update2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3!==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e()],1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["tab1create2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1change2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.detailsSpareParts.create.dialogFormVisible=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-see"},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"128px"}},[0==e.tab1.changeRecord.see.temp.SHtype||3==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureName)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.providerName)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.startTime)+" ")])])],1),e._v(" "),"tab1See2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3!==e.tab1.changeRecord.see.temp.SHtype&&0!==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&0==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.changeRecord.see.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:""},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.remark)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"共享牧场:",prop:"pastureNamesOld"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesOld)+" ")])])],1),e._v(" "),3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后共享牧场:",prop:"pastureNamesNow"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesNow)+" ")])])],1)],1)],1):e._e(),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype||2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"流水编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1)],1):e._e()]),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandhis))])]}}],null,!1,1279656175)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmounthis))])]}}],null,!1,2535967211)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pricehis))])]}}],null,!1,2997895897)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.tab1.changeRecord.see.active,"align-center":"","finish-status":"success"}},e._l(e.tab1.changeRecord.see.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.tab1.changeRecord.isContractExamineZG&&2==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.tab1.changeRecord.see.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.examine.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.examine,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.examine.temp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeExamineStatue},model:{value:e.tab1.changeRecord.examine.temp.statueSH,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"statueSH",t)},expression:"tab1.changeRecord.examine.temp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.tab1.changeRecord.examine.isReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.tab1.changeRecord.examine.temp.workflowNote,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"workflowNote",t)},expression:"tab1.changeRecord.examine.temp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["tab1examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"tab1examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.changeRecord.examine.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("6b54"),a("7514"),a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5f87"),d=a("5c96"),u={inject:["reload"],name:"ContractManagement",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isGroupAdministrator:m.a.get("pastureid"),isEmployeid:m.a.get("employeid"),isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],activeName:"first",contractStatusList:[{id:"0",name:"正常"},{id:"1",name:"已过期"},{id:"2",name:"终止"},{id:"3",name:"新增未通过"}],contractStatus2List:[{id:"1",name:"正常"},{id:"0",name:"终止"}],auditStatusList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],changeTypeList:[{id:"0",name:"新增合同"},{id:"1",name:"新增备件"},{id:"2",name:"变更备件"},{id:"3",name:"合同变更"}],isZeroInventoryList:[{id:"0",name:"否"},{id:"1",name:"是"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllPastureList2:[],findAllDepart:[],findAllEmploye:[],findAllCategory:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllPastureForContract",offset:0,pagecount:0,returntype:"Map",parammaps:{id:18}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:18}},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],isokDisable:!1,disabled:!0,rules:{},textMap:{create:"新增合同",see:"查看详情",change:"变更合同",tab1create2:"新增备件",tab1change2:"变更备件",tab1examine:"审核",tab1examine2:"审核2",tab1examine3:"审核2",tab1See2:"查看",tab1Update2:"编辑"},dialogStatus:"",isContractManagement:!0,isDetailsSpareParts:!1,isChangeRecord:!1,tab1:{contractManagement:{radioAll:"全部",isContractAdd:[],isContractExport:[],isContractSee:[],isContractChange:[],isDisabled:!1,tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),pastureName:m.a.get("pasturename"),contractCode:"",statue:"",stuteSH:"",providerName:"",tab1InputDatetime1:"",startTime:"",stopTime:"",tab1InputDatetime2:"",SHdateTimeF:"",SHdateTimeE:"",SHnums:2}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"HT"}},create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:"",synchronousPasture:[],synchronousPastureList:[]},changeEchoParm:{name:"getBigcontractPId",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{}}}},detailsSpareParts:{tableKey:1,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{specification:"",partName:"",partCode:"",pastureId:"",providerId:"",stopTime:"",flag:"",isZeroStock:"",statue:""}},partCode:"",requestSparePart:{name:"",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},detailsList:[],updateList:[],tableKeyAdd:0,listLoadingAdd:!1,listAdd:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:""}},isDisabledImport:!0,clearImportExcelParm:{name:"deletecontract_upload",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}},importExcelParm:{name:"getcontract_uploadlist",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}}},changeRecord:{isContractExamineZG:[],isContractExamineZX:[],isContractDelete:[],isStatueReason:!1,isReason:!1,radioAll:"全部",tableKey:2,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),contractCode:"",tab1InputDatetime3:"",startTime:"",stopTime:"",SHStatus:"",SHtype:"",pastureId:"",providerId:"",stopTime1:"",flag:"",isZeroStock:"",statue:"",SHnums:2,stuteSH:""}},see:{dialogFormVisible:!1,activeList:[],active:3,temp:{},tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigSH",returntype:"Map",page:0,offset:0,pagecount:10,parammaps:{}}},examine:{dialogFormVisible:!1,temp:{statueSH:1},isReason:!1}}},postDataPramas:{},pickerOptions2:{disabledDate:function(t){return Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<=e.tab1.contractManagement.create.temp.startTime||Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<Object(l["e"])(Date.now(),"{y}-{m}-{d}")}},pickerOptions3:{disabledDate:function(e){return e.getTime()>Date.now()}},tab2:{tableKey:0,listLoading:!1,total:0,getdataListParm:{name:"contractDetailV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",providerName:"",contractCode:"",stopTime:"",startTime:"",statue:"",partCode:"",partName:"",isZeroStock:"",pastureName:""}},list:[]},UpdateDataParam:{},UpdateDataParam2:{},pending:{total:0,getdataListParm:{name:"providerPactListV2",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}}}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"insertcontract_upload",importParams:"备件编号,备件名称,规格型号,计量单位,品牌,计划量,单价,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){console.log(this.$route.query.contractCode),this.get_select_list();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.getTab1List(),this.getPendingList(),void 0==this.$route.query.contractCode?this.tab1.contractManagement.getdataListParm.parammaps.contractCode="":this.tab1.contractManagement.getdataListParm.parammaps.contractCode=this.$route.query.contractCode},methods:{tableSort1:function(e){Object(l["f"])(e,this.tab1.detailsSpareParts.list)},tableSort2:function(e){Object(l["f"])(e,this.tab2.list)},get_auto_buttons:function(){var e="customs:contract:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.tab1.contractManagement.isContractAdd=t;var a="customs:contract:see",s=Object(r["v"])(this.$store.state.user.buttons,a);this.tab1.contractManagement.isContractSee=s;var i="customs:contract:examineZG",n=Object(r["v"])(this.$store.state.user.buttons,i);this.tab1.changeRecord.isContractExamineZG=n;var l="customs:contract:examineZX",o=Object(r["v"])(this.$store.state.user.buttons,l);this.tab1.changeRecord.isContractExamineZX=o;var p="customs:contract:delete",m=Object(r["v"])(this.$store.state.user.buttons,p);this.tab1.changeRecord.isContractDelete=m;var c="customs:contract:export",d=Object(r["v"])(this.$store.state.user.buttons,c);this.tab1.contractManagement.isContractExport=d;var u="customs:contract:change",h=Object(r["v"])(this.$store.state.user.buttons,u);this.tab1.contractManagement.isContractChange=h},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPastureList2=t.data.findAllPastureForContract.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},handleClick:function(){"first"==this.tab1.contractManagement.create.temp.activeName?(console.log("点击了合同管理"),this.getTab1List()):(console.log("点击了合同明细"),this.getTab2List())},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.loginid=this.tab1.contractManagement.getdataListParm.parammaps.loginid,this.pending.getdataListParm.parammaps.pastureName=this.tab1.contractManagement.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.contractCode=this.tab1.contractManagement.getdataListParm.parammaps.contractCode,this.pending.getdataListParm.parammaps.statue=this.tab1.contractManagement.getdataListParm.parammaps.statue,this.pending.getdataListParm.parammaps.stuteSH=this.tab1.contractManagement.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.providerName=this.tab1.contractManagement.getdataListParm.parammaps.providerName,this.pending.getdataListParm.parammaps.tab1InputDatetime1=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,this.pending.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.startTime,this.pending.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.stopTime,this.pending.getdataListParm.parammaps.tab1InputDatetime2=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,this.pending.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF,this.pending.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE,this.pending.getdataListParm.parammaps.SHnums=0,Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},getTab1List:function(){var e=this;this.tab1.contractManagement.listLoading=!0,""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1?(this.tab1.contractManagement.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[0],this.tab1.contractManagement.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[1]):(this.tab1.contractManagement.getdataListParm.parammaps.startTime="",this.tab1.contractManagement.getdataListParm.parammaps.stopTime=""),""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2?(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[0],this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[1]):(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF="",this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=""),Object(r["e"])(this.tab1.contractManagement.getdataListParm).then((function(t){null!==t.data.list?(e.tab1.contractManagement.list=t.data.list,e.tab1.contractManagement.pageNum=t.data.pageNum,e.tab1.contractManagement.pageSize=t.data.pageSize):e.tab1.contractManagement.list=[],e.tab1.contractManagement.total=t.data.total,setTimeout((function(){e.tab1.contractManagement.listLoading=!1}),300)}))},handleTab1Filter:function(){this.tab1.contractManagement.listLoading=!0,null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1=""),null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2=""),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List(),this.getPendingList(),"全部"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2,this.getTab1List()):"待处理"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0,this.getTab1List()):"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1,this.getTab1List())},changeContractManagementAll:function(){"全部"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2:"待处理"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0:"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List()},changeTime:function(e){""!==this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.stopTime<=this.tab1.contractManagement.create.temp.startTime?(this.tab1.contractManagement.create.temp.stopTime="",this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId=""):Object(l["e"])(new Date,"{y}-{m}-{d}")<=this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.statue="1":this.tab1.contractManagement.create.temp.statue="0":(this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId="")},changeIsZero:function(e){console.log(e)},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelectProvider:function(e){this.$set(this.tab1.contractManagement.create.temp,"providerId",e.id),this.$set(this.tab1.contractManagement.create.temp,"providerName",e.name)},handleFocusProvider:function(){this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName=""},handleBlurProvider:function(){""==this.tab1.contractManagement.create.temp.providerId&&(this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName="")},changeCreatorMan:function(e){this.tab1.contractManagement.create.temp.creatorMan=this.findAllEmploye.find((function(t){return t.id==e})).name},resetCreateTemp:function(){if(this.tab1.contractManagement.create.temp.synchronousPastureList=[],18==m.a.get("pastureid"))for(var e=0;e<this.findAllPasture.length;e++)this.tab1.contractManagement.create.temp.synchronousPastureList.push(this.findAllPasture[e].id);else this.tab1.contractManagement.create.temp.synchronousPastureList.push(parseInt(m.a.get("pastureid")));this.tab1.contractManagement.create.temp={contractCode:"",pastureId:parseFloat(m.a.get("pastureid")),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:parseFloat(m.a.get("employeid")),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),synchronousPasture:this.tab1.contractManagement.create.temp.synchronousPastureList,synchronousPasture2:[]}},handleTab1Create:function(){this.resetCreateTemp(),this.dialogStatus="create",this.tab1.contractManagement.create.dialogFormVisible=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.tab1.contractManagement.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("合同编号",t.data.list[0].orderCode),e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.tab1.contractManagement.create.temp.contractCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate(),e.saveCreateData()}))})):e.saveCreateData())}))},saveCreateData:function(){var e=this;if(this.postDataPramas={},18==m.a.get("pastureid")&&-1==this.tab1.contractManagement.create.temp.synchronousPasture.indexOf(18))return this.$message({type:"error",message:"当前合同归属于现代牧业,未选中,共享牧场请选中现代牧业!",duration:2e3}),!1;this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontract",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId}},this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.stopTime,contractCode:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:1,remark:this.tab1.contractManagement.create.temp.remark,SHtype:0}};for(var t=[],a=0;a<this.tab1.contractManagement.create.temp.synchronousPasture.length;a++){var s={};s.pastureId=this.tab1.contractManagement.create.temp.synchronousPasture[a],t.push(s)}18==m.a.get("pastureid")&&(this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPastureBigcontract",type:"e",parammaps:{bigcontractId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId"}}),Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_see:function(e){var t=this;console.log("查看",e),e.statue=String(e.statue),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.dialogStatus="see",this.tab1.contractManagement.create.dialogFormVisible=!0;var a="未通过原因:"+this.tab1.contractManagement.create.temp.workflowNote;2==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=1):3==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):4==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson,status:"error",reason:a},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):5==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):6==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=3):7==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson}],this.tab1.contractManagement.create.temp.active=4):8==this.tab1.contractManagement.create.temp.SHStatus&&(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson,status:"error",reason:a}],this.tab1.contractManagement.create.temp.active=4),this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},handleTab1Change:function(e){var t=this;console.log("变更",e),this.$set(e,"mystopTime",e.stopTime),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.tab1.contractManagement.create.temp.statue=String(this.tab1.contractManagement.create.temp.statue),this.dialogStatus="change",this.tab1.contractManagement.create.dialogFormVisible=!0,this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},terminationData:function(){var e=this,t="确认终止合同?";t=1==this.tab1.contractManagement.create.temp.isZeroStock?"若此合同库存中有剩余库存,建议先进行退货操作。":"确认终止合同?",d["MessageBox"].confirm(t,{confirmButtonText:"确认终止",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDataPramas={},e.postDataPramas.name="updatecontractstatuV2",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.tab1.contractManagement.create.temp,e.postDataPramas.parammaps.creatorId=m.a.get("employeid"),e.postDataPramas.parammaps.creatorMan=m.a.get("employename"),e.postDataPramas.parammaps.creatorTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),Object(r["k"])(e.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},changeData:function(){var e=this;if(18==m.a.get("pastureid")&&(this.UpdateDataParam={},this.UpdateDataParam.name="pasture_bigcontract",this.UpdateDataParam.dataname="bigcontract_id",this.UpdateDataParam.datavalue=this.tab1.contractManagement.create.temp.id,this.UpdateDataParam.valuename="pasture_id",this.UpdateDataParam.values=this.tab1.contractManagement.create.temp.synchronousPasture,Object(r["u"])(this.UpdateDataParam).then((function(t){"fail"!==t.msg&&(e.UpdateDataParam2.name="updateBigcontractPId",e.UpdateDataParam2.parammaps={},e.UpdateDataParam2.parammaps.bigcontract_id=e.tab1.contractManagement.create.temp.id,e.UpdateDataParam2.parammaps.enable=0,Object(r["k"])(e.UpdateDataParam2).then((function(e){})))}))),this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontractSH",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,stopTime:this.tab1.contractManagement.create.temp.mystopTime,flag:this.tab1.contractManagement.create.temp.flag,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue}},18==m.a.get("pastureid")){for(var t=[],a=function(a){t.push(e.findAllPasture.find((function(t){return t.id==e.tab1.contractManagement.create.temp.synchronousPasture[a]})).name)},s=0;s<this.tab1.contractManagement.create.temp.synchronousPasture.length;s++)a(s);this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3,pastureNamesOld:this.tab1.contractManagement.create.temp.synchronousPastureName2.toString(),pastureNamesNow:t.toString()}}}else this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3}};Object(r["c"])(this.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1DetailsSpareParts:function(e){console.log("备件明细",e),this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.isContractManagement=!1,this.isDetailsSpareParts=!0,this.tab1.detailsSpareParts.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.detailsSpareParts.getdataListParm.parammaps.providerId=e.providerId,this.tab1.detailsSpareParts.getdataListParm.parammaps.stopTime=e.stopTime,this.tab1.detailsSpareParts.getdataListParm.parammaps.flag=e.flag,this.tab1.detailsSpareParts.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.detailsSpareParts.getdataListParm.parammaps.statue=e.statue,this.tab1.detailsSpareParts.getdataListParm.parammaps.partCode="",this.tab1.detailsSpareParts.getdataListParm.parammaps.partName="",this.tab1.detailsSpareParts.getdataListParm.parammaps.specification="",this.getTab1List2()},handleTab1goBack:function(){this.isContractManagement=!0,this.isDetailsSpareParts=!1,this.tab1.detailsSpareParts.total=0,this.getTab1List()},getTab1List2:function(){var e=this;this.tab1.detailsSpareParts.listLoading=!0,Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)if(null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.detailsSpareParts.list=t.data.list,e.tab1.detailsSpareParts.pageNum=t.data.pageNum,e.tab1.detailsSpareParts.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.detailsSpareParts.total=t.data.total:e.tab1.detailsSpareParts.total=0}else e.tab1.detailsSpareParts.list=[];setTimeout((function(){e.tab1.detailsSpareParts.listLoading=!1}),300)}))},handleTab1Filter2:function(){this.tab1.detailsSpareParts.listLoading=!0,this.tab1.detailsSpareParts.getdataListParm.offset=1,this.getTab1List2()},sparePartSearch:function(e,t){this.tab1.detailsSpareParts.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestSparePart).then((function(e){null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.tab1.detailsSpareParts.listAdd.length>0?this.tab1.detailsSpareParts.listAdd.find((function(t){return t.partCode==e.partCode}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.$set(e,"taxcode",""),this.tab1.detailsSpareParts.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.tab1.detailsSpareParts.listAdd.unshift(e))},brandSearch:function(e,t){var a=this;this.tab1.detailsSpareParts.requestBrand.parammaps["brandName"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestBrand).then((function(e){a.tab1.detailsSpareParts.BrandList=e.data.list,t(a.tab1.detailsSpareParts.BrandList)}))},handleSelectBrand:function(e,t){this.$set(t,"brandName",e.brandName),this.$set(t,"brandId",e.brandId),this.$forceUpdate()},handleFocusBrand:function(e){this.$set(e,"brandName",""),this.$set(e,"brandId","")},handleBlurBrand:function(e){""==e.brandId&&(this.$set(e,"brand",""),this.$set(e,"brandName",""),this.$set(e,"brandId",""))},partDelete:function(e){var t=this;console.log("备件明细-备件删除",e),d["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.tab1.detailsSpareParts.listAdd.length;a++){if(console.log(t.tab1.detailsSpareParts.listAdd[a]),t.tab1.detailsSpareParts.listAdd[a].myid===e.myid)var s=t.tab1.detailsSpareParts.listAdd.indexOf(t.tab1.detailsSpareParts.listAdd[a]);if(s>-1)return void t.tab1.detailsSpareParts.listAdd.splice(s,1)}}))},handleTab1DownloadTemp2:function(){var e=this;console.log("备件明细-备件模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],r=e.formatJsonTemp(i,a);t.export_json_to_excel({header:s,data:r,filename:"备件明细模板",autoWidth:!0,bookType:"xlsx"})}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;console.log(e),"ok"==e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","报错信息"],r=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"合同报错信息",autoWidth:!0,bookType:"xlsx"})}))),this.getImportExcelList()):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"==e?Object(l["e"])(t[e]):t[e]}))}))},getClearImportExcelList:function(){var e=this;Object(r["k"])(this.tab1.detailsSpareParts.clearImportExcelParm).then((function(t){console.log(t.msg),"ok"==t.msg&&(e.tab1.detailsSpareParts.isDisabledImport=!1)}))},getImportExcelList:function(){var e=this;Object(r["e"])(this.tab1.detailsSpareParts.importExcelParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0==t.data.list[a].picpath?(t.data.list[a].picpath="",t.data.list[a].srcpath=""):(e.$set(t.data.list[a],"srcpath","http://127.0.0.1:8082/"+t.data.list[a].srcpath),e.$set(t.data.list[a],"picpath","http://127.0.0.1:8082/"+t.data.list[a].picpath)),t.data.list[a].myid=(new Date).getTime()+a;e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.detailsSpareParts.list=[]}))},handleTab1Create2:function(){console.log("备件明细-新增/变更"),this.dialogStatus="tab1create2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.partCode="",this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={},this.getClearImportExcelList()},add_dialog_save2:function(){var e=this;if(console.log("备件明细-新增保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:1}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Change2:function(){console.log("备件明细-变更"),this.dialogStatus="tab1change2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts"},changeData2:function(){var e=this;if(console.log("备件明细-变更保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:2}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId",pastureName:"@insertSpotList.pastureName",partId:"@insertSpotList.partId",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Export2:function(){var e=this;console.log("备件明细-导出"),this.$alert("备件明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t),e.tab1.detailsSpareParts.getdataListParm.pagecount=10),e.percentage=e.percentage}),1e3);this.tab1.detailsSpareParts.getdataListParm.pagecount="",Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),null!==t.data.list&&e.$nextTick((function(){var e=[{tHeader:["备件编号","备件名称","备件规格","备件品牌","计量单位","计划量","单价","备注"],filterVal:["partCode","partName","specification","brand","unit","planAmount","price","remark"],tableDatas:t.data.list,sheetName:"合同管理-备件明细"}];Object(l["d"])(e,"合同管理-备件明细",!0,"xlsx")}))}))},handleTab1ChangeRecord:function(e){console.log("变更记录"),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.isContractManagement=!1,this.isChangeRecord=!0,this.tab1.changeRecord.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.changeRecord.getdataListParm.parammaps.providerId=e.providerId,this.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.stopTime,this.tab1.changeRecord.getdataListParm.parammaps.flag=e.flag,this.tab1.changeRecord.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.changeRecord.getdataListParm.parammaps.statue=e.statue,this.tab1.changeRecord.getdataListParm.parammaps.contractCode="",this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3="",this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime="",this.tab1.changeRecord.getdataListParm.parammaps.SHtype="",this.tab1.changeRecord.getdataListParm.parammaps.stuteSH="",this.getTab1List3()},handleTab1goBack2:function(){this.isContractManagement=!0,this.isChangeRecord=!1,this.tab1.changeRecord.total=0,this.getTab1List()},getTab1List3:function(){var e=this;this.tab1.changeRecord.listLoading=!0,void 0!==this.$refs["tab1InputDatetime3"]&&null!==this.$refs["tab1InputDatetime3"].value?(this.tab1.changeRecord.getdataListParm.parammaps.startTime=this.$refs["tab1InputDatetime3"].value[0],this.tab1.changeRecord.getdataListParm.parammaps.stopTime=this.$refs["tab1InputDatetime3"].value[1]):(this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab1.changeRecord.getdataListParm).then((function(t){e.tab1.changeRecord.list=t.data.list,e.tab1.changeRecord.pageNum=t.data.pageNum,e.tab1.changeRecord.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.changeRecord.total=t.data.total:e.tab1.changeRecord.total=0,setTimeout((function(){e.tab1.changeRecord.listLoading=!1}),300)}))},handleTab1Filter3:function(){this.tab1.changeRecord.listLoading=!0,null==this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3&&(this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3=""),this.tab1.changeRecord.getdataListParm.offset=1,"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},changeChangeRecordAll:function(){"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},handleTab1See3:function(e){console.log("变更记录-查看"),this.tab1.changeRecord.see.temp=Object.assign({},e),this.dialogStatus="tab1See2",this.tab1.changeRecord.see.dialogFormVisible=!0,0!=e.SHtype&&1!=e.SHtype&&2!=e.SHtype||(this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See());var t="未通过原因:"+this.tab1.changeRecord.see.temp.workflowNote;2==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=1):3==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):4==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson,status:"error",reason:t},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):5==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):6==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=3):7==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson}],this.tab1.changeRecord.see.active=4):8==this.tab1.changeRecord.see.temp.SHStatus&&(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson,status:"error",reason:t}],this.tab1.changeRecord.see.active=4)},getTab1List3See:function(){var e=this;Object(r["e"])(this.tab1.changeRecord.see.getdataListParm).then((function(t){if(null!==t.data.list){e.tab1.changeRecord.see.pageNum=t.data.pageNum,e.tab1.changeRecord.see.pageSize=t.data.pageSize,t.data.total&&(e.tab1.changeRecord.see.total=t.data.total);for(var a=0;a<t.data.list.length;a++)if(t.data.list[a].myid=(new Date).getTime()+a,null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.changeRecord.see.list=t.data.list,e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.changeRecord.see.list=[],e.tab1.detailsSpareParts.listAdd=[];setTimeout((function(){e.tab1.changeRecord.see.listLoading=!1}),300)}))},handleTab1Update3:function(e){console.log("变更记录-编辑",e),this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.create.temp=Object.assign({},e),this.dialogStatus="tab1Update2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See(),1==e.SHtype?(this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={}):(this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts")},edit_dialog_save2:function(){var e=this;if(console.log("编辑保存"),0==this.tab1.detailsSpareParts.updateList.SHtype||3==this.tab1.detailsSpareParts.updateList.SHtype)this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updateBigcontractV2",type:"e",parammaps:{id:this.tab1.detailsSpareParts.create.temp.id,startTime:this.tab1.detailsSpareParts.create.temp.startTime,stopTime:this.tab1.detailsSpareParts.create.temp.stopTime,isZeroStock:this.tab1.detailsSpareParts.create.temp.isZeroStock,remark:this.tab1.detailsSpareParts.create.temp.remark,stopTimeHis:this.tab1.detailsSpareParts.create.temp.stopTimeHis}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(0==e.tab1.detailsSpareParts.updateList.SHtype&&(e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.create.temp.stopTime),e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}));else{if(0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""==this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return console.log(this.tab1.detailsSpareParts.listAdd[t]),this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deleteContract",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],2==this.tab1.detailsSpareParts.updateList.SHtype?this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}}:(this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}}),this.postDataPramas.data[2]={name:"updateBigcontract",type:"e",parammaps:{id:this.tab1.detailsSpareParts.updateList.id}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}},changeExamineStatue:function(e){this.tab1.changeRecord.examine.isReason=2==e},handleTab1Examine:function(e){console.log("变更记录-审核"),this.dialogStatus="tab1examine",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.temp=Object.assign({},e),this.tab1.changeRecord.examine.isReason=!1,void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.keyupSubmit()},keyupSubmit:function(){var e=this;"tab1examine"!=this.dialogStatus&&"tab1examine2"!=this.dialogStatus&&"tab1examine3"!=this.dialogStatus||(document.onkeydown=function(t){var a=window.event.keyCode;13===a&&("tab1examine"==e.dialogStatus?e.createExamineData():e.createExamineData3())})},createExamineData:function(){var e=this;console.log("点击了设备主管审核确认1"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.name="contractCharge",e.postDataPramas.parammaps={},e.postDataPramas.parammaps.id=e.tab1.changeRecord.examine.temp.id,1===e.tab1.changeRecord.examine.temp.statueSH?e.postDataPramas.parammaps.statue=5:e.postDataPramas.parammaps.statue=4,e.postDataPramas.parammaps.empId=m.a.get("employeid"),e.postDataPramas.parammaps.workflowNote=e.tab1.changeRecord.examine.temp.workflowNote,Object(r["k"])(e.postDataPramas).then((function(t){console.log("设备主管审核确认发送参数",e.postDataPramas),"fail"!==t.msg?(e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList()):Object(r["w"])(t,e.$notify)})))}))},handleTab1Examine3:function(e){console.log(" 变更记录-审核3"),void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.dialogStatus="tab1examine3",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.isReason=!1,this.keyupSubmit()},createExamineData3:function(){var e=this;console.log("点击了设备中心审核确认3"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],1==e.tab1.changeRecord.examine.temp.statueSH?(e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:7,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},1==e.tab1.changeRecord.examine.temp.SHtype||2==e.tab1.changeRecord.examine.temp.SHtype?e.postDataPramas.data[1]={name:"updateContractEnable",type:"e",parammaps:{id:e.tab1.changeRecord.examine.temp.id}}:3==e.tab1.changeRecord.examine.temp.SHtype&&(e.postDataPramas.data[1]={name:"updatecontractdate",type:"e",parammaps:{pastureId:e.tab1.changeRecord.examine.temp.pastureId,providerId:e.tab1.changeRecord.examine.temp.providerId,stopTimeHis:e.tab1.changeRecord.examine.temp.stopTimeHis,flag:e.tab1.changeRecord.examine.temp.flag,isZeroStock:e.tab1.changeRecord.examine.temp.isZeroStock,statue:e.tab1.changeRecord.examine.temp.statue,startTime:e.tab1.changeRecord.examine.temp.startTime,stopTime:e.tab1.changeRecord.examine.temp.stopTime,id:e.tab1.changeRecord.examine.temp.id}})):e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:8,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(7==e.postDataPramas.data[0].parammaps.statue?3==e.tab1.changeRecord.examine.temp.SHtype?e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTimeHis:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTime:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.detailsList.stopTime,e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.examine.isStatueReason=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList())})))}))},handleTab1Delete3:function(e){var t=this;console.log("变更记录-删除"),console.log("点击了删除"),d["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas={},t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigContract",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deleteContract",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getTab1List3(),t.getPendingList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getTab2List:function(){var e=this;this.tab2.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab2.getdataListParm).then((function(t){null!==t.data.list?(e.tab2.list=t.data.list,e.tab2.pageNum=t.data.pageNum,e.tab2.pageSize=t.data.pageSize,t.data.total&&(e.tab2.total=t.data.total)):e.tab2.list=[],setTimeout((function(){e.tab2.listLoading=!1}),300)}))},handleTab2Filter:function(){this.listLoading2=!0,null===this.tab2.getdataListParm.parammaps.inputDatetime&&(this.tab2.getdataListParm.parammaps.inputDatetime=""),this.tab2.getdataListParm.offset=1,this.getTab2List()},handleTab2Export:function(){var e=this;this.$alert("合同明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),this.tab2.getdataListParm.pagecount="",Object(r["e"])(this.tab2.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].isZeroStock?t.data.list[a].isZeroStock="否":t.data.list[a].isZeroStock="是";e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)}else e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);e.tab2.getdataListParm.pagecount=10,e.$nextTick((function(){var e=[{tHeader:["牧场","合同编号","合同状态","供应商","合同开始日期","合同截止日期","零库存","备件编号","备件名称","规格","备件品牌","计量单位","计划量","单价","备注","录入人","录入日期"],filterVal:["pastureName","contractCode","statue","providerName","startTime","stopTime","isZeroStock","partCode","partName","specification","brand","unit","planAmount","price","remark","creatorMan","creatorTime"],tableDatas:t.data.list,sheetName:"合同明细"}];Object(l["d"])(e,"合同明细",!0,"xlsx")}))}))}}},h=u,g=(a("1879"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"99007b12",null);t["default"]=f.exports},bf4d:function(e,t,a){},bfab:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj.parammaps.pastureName,callback:function(t){e.$set(e.tableObj.parammaps,"pastureName",t)},expression:"tableObj.parammaps.pastureName"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj.parammaps.departName,callback:function(t){e.$set(e.tableObj.parammaps,"departName",t)},expression:"tableObj.parammaps.departName"}},e._l(e.departList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tableObj.parammaps.date,callback:function(t){e.$set(e.tableObj.parammaps,"date",t)},expression:"tableObj.parammaps.date"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isElecAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isElecExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.form_export}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isElecImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天煤炭用量","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"当天费用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remarks))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isElecModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.see_record(s)}}},[e._v("用量记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.tableObj.offset,limit:e.tableObj.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture2},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}},e._l(e.pastureList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"牧场:",prop:"pastureId"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}},e._l(e.departList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"部门:",prop:"departmentId"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.temp.departmentName,callback:function(t){e.$set(e.temp,"departmentName",t)},expression:"temp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前煤炭用量:",prop:"dosage"}},[a("el-input",{ref:"dosage",model:{value:e.temp.dosage,callback:function(t){e.$set(e.temp,"dosage",t)},expression:"temp.dosage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.temp.price,callback:function(t){e.$set(e.temp,"price",t)},expression:"temp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"当前费用:",prop:"expense"}},[a("el-input",{ref:"expense",model:{value:e.temp.expense,callback:function(t){e.$set(e.temp,"expense",t)},expression:"temp.expense"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"create"===e.dialogStatus,expression:"dialogStatus==='create'"}],attrs:{label:"记录人:",prop:"inputid"}},[a("el-select",{ref:"inputid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"记录人"},on:{change:e.change_emp},model:{value:e.temp.inputid,callback:function(t){e.$set(e.temp,"inputid",t)},expression:"temp.inputid "}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"update"===e.dialogStatus,expression:"dialogStatus==='update'"}],attrs:{label:"记录人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.temp.empname,callback:function(t){e.$set(e.temp,"empname",t)},expression:"temp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"当前时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.temp.date,callback:function(t){e.$set(e.temp,"date",t)},expression:"temp.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[a("el-input",{ref:"remarks",model:{value:e.temp.remarks,callback:function(t){e.$set(e.temp,"remarks",t)},expression:"temp.remarks"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"用量记录",visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",prop:"dosage","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dosage))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"expense",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expense))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.get_record_list}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_delete_sure()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=(a("5c96"),a("5f87")),m=a("a78e"),c=a.n(m);a("0fd4");var d={name:"CoalConsum",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isokDisable:!1,isElecAdd:[],isElecExport:[],isElecImport:[],isElecModify:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertElectricity",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},tableObj:{name:"getCoal",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:"",date:""}},downLoadObj:{name:"getCoal",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{formName:"",formNumber:"",formType:"",pastureName:c.a.get("pasturename"),departName:"",date:""}},downLoadList:[],useTypes:[{id:0,name:"1级表"},{id:1,name:"2级表"},{id:2,name:"3级表"}],getDictByName:[],findAllAssetType:[],pastureList:[],departList1:[],departList2:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["电表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}}],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},requestFilterParams:{name:"getElecList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{pastureName:"",departName:"",dosage:"",price:"",expense:"",remarks:"",empname:"",date:Object(l["e"])(new Date,"{y}-{m}-{d}"),inputid:this.$store.state.user.employeid,departmentId:"",pastureId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getCoalList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{departmentId:""}},dosageRecordTemp:{},rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"importCoal",importParams:"牧场,部门,当天煤炭用量,单价,当天费用,记录人,日期,备注",sheetname:"煤炭用量"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:elec:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isElecAdd=t;var a="cost:elec:export",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isElecExport=s;var i="cost:elec:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isElecImport=n;var l="cost:elec:modify",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isElecModify=o},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},form_export:function(){var e=this;this.downLoadObj.parammaps=this.tableObj.parammaps,Object(r["e"])(this.downLoadObj).then((function(t){null!==t.data.list?e.downLoadList=t.data.list:e.downLoadList=[];var a=[{tHeader:["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注"],filterVal:["pastureName","departmentName","dosage","price","expense","empname","date","remarks"],tableDatas:e.downLoadList,sheetName:"煤炭用量"}];Object(l["d"])(a,"煤炭用量",!0,"xlsx")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注","错误信息"],r=["牧场","部门","当天煤炭用量","单价","当天费用","记录人","日期","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;"现代牧业"==this.tableObj.parammaps.pastureName&&(this.tableObj.parammaps.pastureName=""),this.listLoading=!0,Object(r["e"])(this.tableObj).then((function(t){null==t.data.list?(e.list=[],e.total=0):(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.pastureList=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.get_departList1(),e.get_departList2()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureList.find((function(t){return t.name==e})).id,this.tableObj.parammaps.departName="",this.get_departList1()},get_departList1:function(){var e=this;Object(r["e"])(this.getDepartParam1).then((function(t){e.departList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.temp.departmentId="",this.get_departList2()},get_departList2:function(){var e=this;Object(r["e"])(this.getDepartParam2).then((function(t){e.departList2=t.data.list}))},form_search:function(){this.listLoading=!0,this.tableObj.offset=1,null==this.tableObj.parammaps.date&&(this.tableObj.parammaps.date=""),this.get_table_data()},change_emp:function(e){console.log("记录人",e),this.$set(this.temp,"inputid",e),this.$forceUpdate()},form_reset:function(){this.temp.pastureName="",this.temp.departName="",this.temp.dosage="",this.temp.price="",this.temp.expense="",this.temp.remarks="",this.temp.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.empname="",this.temp.inputid=this.$store.state.user.employeid,this.temp.departmentId="",this.temp.pastureId=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log("this.temp=====>",this.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertCoal",offset:0,pagecount:0,parammaps:e.temp};Object(r["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a={name:"insertCoal",offset:0,pagecount:0,parammaps:e.temp};Object(r["k"])(a).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.form_reset(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_edit:function(e){var t=this;console.log("row=======",e),this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){if(t){var a={name:"updateCoal",offset:0,pagecount:0,parammaps:e.temp};Object(r["k"])(a).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},form_delete_sure:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){if(t){var a={name:"delCoal",offset:0,pagecount:0,parammaps:{date:e.deleteTemp.startTime}};Object(r["k"])(a).then((function(t){"fail"==t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())}))}}))},see_record:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),console.log("row=========see_record",e),this.get_record_list()},get_record_list:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.departmentId=this.dosageRecordTemp.departmentId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},bfd4:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",e._l(e.view.items,(function(e){return a(e.name,{key:e.index,tag:"component",attrs:{slot:e.slot,view:e},slot:e.slot})})),1)},i=[],r=a("5af4"),n=a("a328"),l={components:[r["default"]],extends:n["default"]},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,null,null);t["default"]=m.exports},bfe5:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("4c19");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieTypeData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieTypeData:{deep:!0,handler:function(e){this.setOptions(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieTypeData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TypeData,a=e.text;this.chart.setOption({title:{text:a+"月类型统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){console.log(e),s.$emit("chartClickType",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},c01c:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-icon-news",use:"icon-icon-news-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-icon-news"><defs><style type="text/css"></style></defs><path d="M845.452427 313.583082c-18.324797-43.143443-44.517803-78.487395-77.880385-111.827071a363.060033 363.060033 0 0 0-115.262971-77.880386q-8.784449-3.722224-17.694882-6.986329A357.654218 357.654218 0 0 0 559.390899 98.495782q-3.332822-0.446667-6.688551-0.824616h-82.644832c-1.843933 0.206154-3.687865 0.435214-5.531798 0.675727a357.333534 357.333534 0 0 0-76.402949 18.622574q-8.910432 3.264104-17.694882 6.986329a363.060033 363.060033 0 0 0-115.262971 77.880386c-33.339677 33.339677-59.555589 68.717987-77.880385 111.827071a358.478834 358.478834 0 0 0-28.632495 140.952045V760.47906h13.308384l69.336449-69.33645V454.535127c0-123.337334 80.170985-224.868161 191.070363-262.147669a280.472465 280.472465 0 0 1 178.0254 0c110.933738 37.279508 191.070364 138.810334 191.070363 262.147669v235.462184L861.944744 760.47906h12.163084V454.535127a358.478834 358.478834 0 0 0-28.655401-140.952045z" p-id="2709" /><path d="M512.525232 0a123.761095 123.761095 0 0 0-122.547078 140.642814 426.498188 426.498188 0 0 1 76.150983-14.751461A47.529941 47.529941 0 1 1 560.627823 118.538528a46.544983 46.544983 0 0 1-0.68718 8.017099 425.284171 425.284171 0 0 1 74.914059 15.564624A125.731011 125.731011 0 0 0 636.217609 123.692377 123.692377 123.692377 0 0 0 512.525232 0zM603.267334 850.385093a93.605352 93.605352 0 0 1-1.1453 14.316247h-182.675316a93.605352 93.605352 0 0 1-1.1453-14.316247A92.18518 92.18518 0 0 1 448.388444 782.239756h124.952207a92.18518 92.18518 0 0 1 29.926683 68.145337z" p-id="2710" /><path d="M448.388444 782.239756a92.18518 92.18518 0 0 0-29.983949 68.145337 93.605352 93.605352 0 0 0 1.1453 14.316247H103.080557a66.656448 66.656448 0 0 1-35.355404-10.078638 63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.526838-0.950599-1.03077-1.912651-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A66.736619 66.736619 0 0 1 37.87864 782.239756zM987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061c-0.217607 0.526838-0.435214 1.042223-0.664274 1.557608-0.664274 1.557608-1.408719 3.080856-2.210428 4.581199-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188A66.656448 66.656448 0 0 1 920.824606 864.70134H602.167846a93.605352 93.605352 0 0 0 1.1453-14.316247 92.18518 92.18518 0 0 0-30.02976-68.145337h412.743137a66.736619 66.736619 0 0 1 1.798121 15.461547zM148.652036 657.173019v91.406376a67.022944 67.022944 0 0 0-90.375606-0.698633h-0.332137z" p-id="2711" /><path d="M231.296869 611.017437v80.170985L140.199724 782.239756l-70.802433 70.802433c-0.549744 0.538291-1.1453 1.065129-1.672138 1.580513a63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.515385-0.950599-1.019317-1.924104-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744a67.000038 67.000038 0 0 1 112.571516-49.121908V657.173019l37.359679-37.359679a41.230792 41.230792 0 0 1 45.159171-8.795903zM970.645147 752.565038v0.34359a67.000038 67.000038 0 0 0-96.537319-3.241198V656.027719z" p-id="2712" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061a73.284298 73.284298 0 0 1-2.874702 6.138807c-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188c-0.57265-0.515385-1.1453-1.042223-1.672138-1.580513L883.70544 782.239756l-92.242445-92.242445v-78.475942a41.230792 41.230792 0 0 1 46.430454 8.291971l36.214379 36.214379v93.639711A66.988585 66.988585 0 0 1 987.824644 797.701303zM170.080595 797.701303a67.011491 67.011491 0 0 1-102.355442 56.921399 63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.515385-0.950599-1.019317-1.924104-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A67.011491 67.011491 0 0 1 158.799392 760.47906q0.629915 0.939146 1.236924 1.924103L140.199724 782.239756h28.08275a66.736619 66.736619 0 0 1 1.798121 15.461547z" p-id="2713" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061a73.284298 73.284298 0 0 1-2.874702 6.138807c-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188a67.022944 67.022944 0 0 1-100.557322-72.382946h28.082751l-19.836592-19.836593q0.607009-0.973505 1.236924-1.924103a67.939183 67.939183 0 0 1 9.002056-10.81163A66.988585 66.988585 0 0 1 987.824644 797.701303zM61.277115 747.880762v97.350482h-5.405815c-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.37436c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.526838-0.950599-1.03077-1.912651-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A66.885508 66.885508 0 0 1 58.27643 747.880762z" p-id="2714" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061c-0.217607 0.526838-0.435214 1.042223-0.664274 1.557608H970.645147v-71.684314a66.81679 66.81679 0 0 1 17.179497 44.792675zM670.427714 782.239756h-97.144328a92.18518 92.18518 0 0 1 29.983948 68.145337 93.605352 93.605352 0 0 1-1.1453 14.316247 92.482958 92.482958 0 0 1-182.721128 0 93.605352 93.605352 0 0 1-1.1453-14.316247A92.18518 92.18518 0 0 1 448.388444 782.239756h-97.201593A172.940268 172.940268 0 0 0 337.294364 850.385093q0 7.238295 0.584103 14.316247a173.524371 173.524371 0 0 0 345.880536 0q0.584103-7.077953 0.584103-14.316247a172.940268 172.940268 0 0 0-13.915392-68.145337z" p-id="2715" /></symbol>'});n.a.add(l);t["default"]=l},c02e:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-点检",use:"icon-点检-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-点检"><defs><style type="text/css"></style></defs><path d="M692.7 512.4L760 445c31.7 5.6 64.4 4.4 95.7-3.6 38.6-10 73.9-30.2 102.2-58.5 28-28 48.2-63 58.2-101.2 9.7-37 9.8-76.1 0.3-113.2-2.9-11.4-11.9-20.5-23.2-23.6-11.4-3.1-23.7 0.1-32.1 8.5L890 224.5c-12.1 12.1-28.2 18.7-45.3 18.7s-33.2-6.7-45.3-18.7c-12.1-12.1-18.7-28.2-18.7-45.3s6.7-33.2 18.7-45.3l71.1-71.1c8.3-8.4 11.6-20.6 8.5-32-3-11.4-12-20.3-23.5-23.2-37.1-9.6-76.3-9.5-113.3 0.3C704 18 669 38.2 640.9 66.3c-28.3 28.4-48.5 63.7-58.4 102.2-8.1 31.2-9.2 63.9-3.6 95.5L443.8 399.2 307.9 263.3c-0.3-2.3-0.9-4.7-1.6-7-0.2-0.5-0.3-1-0.5-1.4l-51.6-133.5c-1.6-4.2-4.1-7.9-7.2-11.1l-99.2-99.2c-12.5-12.5-32.8-12.5-45.3 0l-90.6 90.6c-12.5 12.5-12.5 32.8 0 45.3l99.2 99.2c3.1 3.1 6.7 5.5 10.7 7.1l132.1 53c0.6 0.2 1.2 0.5 1.8 0.7 2.3 0.8 4.7 1.3 7 1.7l135.9 135.9L38 805C13.8 829.2 0.5 861.3 0.5 895.5S13.8 961.8 38 986c25 25 57.7 37.4 90.5 37.4s65.6-12.5 90.5-37.4l292.7-292.7 291.5 291.5c25 25 57.7 37.4 90.5 37.4s65.6-12.5 90.5-37.4c49.9-49.9 49.9-131.1 0-181L692.7 512.4z m-541-316.1l-72-72L125 79l71.8 71.8 29.1 75.3-74.2-29.8z m22 744.5c-25 25-65.6 25-90.5 0-25-25-25-65.6 0-90.5l566.4-566.4-4.8-17.9c-7.2-26.6-7.3-54.8-0.4-81.5 7.1-27.5 21.5-52.7 41.8-73 20-20.1 45-34.5 72.3-41.7 6.1-1.6 12.2-2.8 18.4-3.7l-22.6 22.6c-24.2 24.2-37.5 56.3-37.5 90.5s13.3 66.3 37.5 90.5c25 25 57.7 37.4 90.5 37.4s65.6-12.5 90.5-37.4l22.6-22.6c-0.9 6.1-2.1 12.3-3.7 18.3-7.2 27.2-21.5 52.2-41.6 72.2-20.2 20.2-45.4 34.7-72.9 41.8-26.7 6.9-55 6.8-81.7-0.3l-17.8-4.8-566.5 566.5z m765.2-1.2c-12.5 12.5-28.9 18.7-45.3 18.7s-32.8-6.2-45.3-18.7L556.9 648.1l90.5-90.5 291.5 291.5c24.9 24.9 24.9 65.5 0 90.5z" p-id="3493" /></symbol>'});n.a.add(l);t["default"]=l},c04d:function(e,t,a){"use strict";a("00cc")},c0f4:function(e,t,a){"use strict";a("6493")},c154:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]),e._v(" "),a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"warning",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v(" 复制 ")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"故障部位","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"常见故障数量",sortable:"",prop:"cou","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cou))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleAddFault(s)}}},[e._v("添加故障")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")])]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"故障部位:",prop:"positionId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"故障部位",disabled:"addFault"===e.dialogStatus},model:{value:e.createTemp.positionId,callback:function(t){e.$set(e.createTemp,"positionId",t)},expression:"createTemp.positionId"}},e._l(e.listPart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.positionName,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"故障详情:",prop:"appearanceName"}},[a("el-input",{ref:"appearanceName",attrs:{type:"text"},model:{value:e.createTemp.appearanceName,callback:function(t){e.$set(e.createTemp,"appearanceName",t)},expression:"createTemp.appearanceName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{type:"text"},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.addFaultData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"content-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部位名称:",prop:"positionName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"部位名称",disabled:""},model:{value:e.seeTemp.positionName,callback:function(t){e.$set(e.seeTemp,"positionName",t)},expression:"seeTemp.positionName"}},e._l(e.listPart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.positionName,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"故障详情","header-align":"center","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.update?a("el-input",{ref:"appearanceName",model:{value:t.row.appearanceName,callback:function(a){e.$set(t.row,"appearanceName",a)},expression:"scope.row.appearanceName"}}):e._e(),e._v(" "),e.see?a("span",[e._v(e._s(t.row.appearanceName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.update?a("el-input",{ref:"note",model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}}):e._e(),e._v(" "),e.see?a("span",[e._v(e._s(t.row.note))]):e._e()]}}])}),e._v(" "),e.isDisplay?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"primary",on:{click:function(t){return e.updateSave(s)}}},[e._v("保存")]),e._v(" "),a("a",{staticClass:"del",on:{click:function(t){return e.updateDelete(s)}}},[e._v("删除")])]}}],null,!1,2089494638)}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCopy],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"content-copy"},[a("el-form",{staticStyle:{width:"90%px",margin:"0 auto"},attrs:{"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"NewName"}},[a("tree-select",{attrs:{disabled:e.disabled,width:300,size:"small",multiple:"",data:e.parentType,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=(a("a78e"),a("5f87")),c=a("ed08"),d={name:"Guzhang",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0},assetTypename:{type:String,default:"1"},assetAction:{type:String,default:"1"}},data:function(){return{textMap:{create:"新增",update:"编辑",copy:"复制",see:"查看详情",addFault:"添加故障"},dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getAppearancePosList",parammaps:{id:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{positionId:"",appearanceName:"",note:""},listPart:[],getPartListParam:{name:"getPartList",parammaps:{}},tableKey:0,isokDisable:!1,postDataPramas:{},seeTemp:{},dialogStatusSee:"",isDisplay:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,totalSee:0,listSee:[],getdataListParmSee:{name:"getAppearancebyPid",returntype:"Map",parammaps:{}},postUpdatePramas:{},requestParam:{},update:!1,see:!1,rules:{positionId:[{required:!0,message:"必填",trigger:"blur"}],appearanceName:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"updateUpKeepAppearance",importParams:"设备类别名称,部位,故障详情,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParm.parammaps.id=this.assetTypeid,this.getPartListParam.parammaps.id=this.assetTypeid,this.get_table_data(),this.getTypeList(),this.getPartList())},assetTypename:function(e){console.log(e)},assetAction:function(e){console.log(e),this.get_table_data()}},created:function(){this.get_table_data()},methods:{tableSort:function(e){Object(c["f"])(e,this.list)},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetCreateTemp:function(){this.createTemp.appearanceName="",this.createTemp.note=""},getPartList:function(){var e=this;Object(l["e"])(this.getPartListParam).then((function(t){e.listPart=t.data.list,e.$forceUpdate()}))},form_add:function(){""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.positionId="",console.log(this.assetTypeid),console.log(this.assetTypename),console.log(this.assetLable),this.getPartListParam.parammaps.id=this.assetTypeid,this.getPartList(),console.log(this.listPart))},partDelete:function(e){var t=this;console.log(this.listAdd),o["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.resetCreateTemp(),console.log(e.dialogStatus),"addFault"==e.dialogStatus?e.createTemp.positionId=e.createTemp.positionId:e.createTemp.positionId="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},handleCopy:function(){""!=this.assetTypeid&&(this.dialogFormVisibleCopy=!0,this.dialogStatusCopy="copy",this.defaultCheckedKeys=[])},createCopyData:function(){var e=this;if(console.log(this.dataform.selectType),0===this.dataform.selectType.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.dataform.selectType.length;a++){var s={};s["newEqclassId"]=this.dataform.selectType[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"CopyAppearance",type:"e",parammaps:{newEqclassId:"@insertSpotList.newEqclassId",eqclassid:this.assetTypeid}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}},popoverHide:function(e,t){console.log("选中值",e,t),this.dataform.selectType=e,this.UpdateDataRelationParam.values=e},getTypeList:function(){var e=this;Object(l["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(l["E"])(t.data.list,"id","pid","children"))}))},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.isDisplay=!1,this.see=!0,this.update=!1,this.getdataListParmSee.parammaps.id=e.id,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;Object(l["e"])(this.getdataListParmSee).then((function(t){console.log("部位table数据",t.data.list),e.listSee=t.data.list,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="update",this.isDisplay=!0,this.update=!0,this.see=!1,this.dialogFormVisibleSee=!0,this.getdataListParmSee.parammaps.id=e.id,this.get_table_dataSee()},updateSave:function(e){var t=this;""!==e.appearanceName&&null!==e.appearanceName&&void 0!==e.appearanceName?(this.postUpdatePramas.name="updateAppearance",this.postUpdatePramas.parammaps=e,Object(l["k"])(this.postUpdatePramas).then((function(e){console.log("新增保存发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):t.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))):this.$message({message:"请完善保养内容",type:"warning",duration:2e3})},updateDelete:function(e){var t=this;console.log(e),o["MessageBox"].confirm("确认是否删除当前信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postUpdatePramas.name="deleteAppearance",t.postUpdatePramas.parammaps={},t.postUpdatePramas.parammaps.id=e.id,Object(l["k"])(t.postUpdatePramas).then((function(e){console.log("新增保存发送参数",t.postDataPramas),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.get_table_data(),t.get_table_dataSee(),t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},handleAddFault:function(e){var t=this;this.dialogStatus="addFault",this.dialogFormVisible=!0,this.resetCreateTemp(),this.createTemp.positionId=e.id,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},addFaultData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertAppearance",e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.eqClassId=e.assetTypeid,e.postDataPramas.parammaps.eqClassName=e.assetTypename,Object(l["k"])(e.postDataPramas).then((function(t){console.log("添加故障保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["设备类别名称","部位","故障详情","备注","报错信息"],r=["设备类别名称","部位","故障详情","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"故障模板报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(l["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["设备类别名称","部位","故障详情","备注"],r=["设备类别名称","部位","故障详情","备注"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"故障模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(c["e"])(t[e]):t[e]}))}))},jump:function(){this.$router.push("/console/menu")}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},c174:function(e,t,a){},c1c5:function(e,t,a){e.exports=a.p+"static/img/1.1ddf085a.png"},c1ca:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",style:e.view.style,attrs:{rules:e.rules,model:e.formdata,inline:e.view.inline,"label-width":e.view.labelWidth||"80px",size:e.view.size}},[e._l(e.view.fields,(function(t){return a("el-form-item",{key:t.index,attrs:{label:t.label,prop:t.name}},[a("el-form-field",{attrs:{item:t,value:e.formdata[t.name],index:t.name},on:{input:e.input}})],1)})),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(e._s(e.btnLabel))]),e._v(" "),e.view.inline?e._e():a("el-button",{on:{click:e.handleReset}},[e._v("取消")])],1)],2)},i=[],r=(a("7f7f"),a("ac6a"),a("180e")),n={components:{ElFormField:r["default"]},props:{view:Object,value:Object,beforeSubmit:{type:Function,default:null},afterSubmit:{type:Function,default:null}},data:function(){var e=this,t={},a=this.value||{},s=this;return this.view.fields.forEach((function(i){if(e.$set(a,i.name,void 0===a[i.name]?"":a[i.name]),i.rule){var r=i.rule;r.forEach((function(e){e.validator&&(e.validator=s[e.validator])})),e.$set(t,i.name,r)}})),{rules:t,formdata:a}},computed:{btnLabel:function(){return this.view.inline?"搜索":"提交"}},created:function(){},methods:{handleReset:function(){this.$refs.form.resetFields()},handleSubmit:function(){var e=this;this.$refs.form.validate((function(t){return t?e.view.inline?e.$emit("search",e.formdata):(e.beforeSubmit&&(e.formdata=e.beforeSubmit(e.formdata)),e.$HttpPost(e.view.url,e.formdata).then((function(t){if(e.afterSubmit)e.afterSubmit(t);else{var a=t&&t.next||e.view.next||void 0;a&&e.$root.$EventBus.stack("redirect",a)}}))):e.$notify.error({title:"消息",message:"数据验证未通过"})}))},validatePassword:function(e,t,a){t!==e.name?a(new Error(e.message||"两次输入密码不一致!")):a()},validateAsync:function(e,t,a){this.$HttpGet(e.url,{rule:e,value:t}).then((function(t){t.status?a():a(new Error(e.message))}),(function(){return a(new Error(e.message))}))},input:function(e,t){this.$set(this.formdata,e,t)}}},l=n,o=a("2877"),p=Object(o["a"])(l,s,i,!1,null,null,null);t["default"]=p.exports},c1f7:function(e,t,a){"use strict";var s,i,r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?a("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),a("sidebar",{staticClass:"sidebar-container"}),e._v(" "),a("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[a("div",{class:{"fixed-header":e.fixedHeader}},[a("navbar"),e._v(" "),a("tags-view")],1),e._v(" "),a("app-main")],1)],1)},n=[],l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"navbar"},[s("div",{staticClass:"left-menu"},[s("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}})],1),e._v(" "),s("div",{staticClass:"right-menu"},[s("el-dropdown",{staticClass:"avatar-container",attrs:{id:"news",trigger:"click"}},[s("span",{staticClass:"right-menu-news"},[s("svg-icon",{staticClass:"right-menu-news-icon",attrs:{"icon-class":"icon-news"}}),e._v(" "),s("i",{staticClass:"right-menu-news-right"},[e._v(e._s(e.sumAmount))])],1),e._v(" "),s("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[s("div",{staticClass:"newsTitle",staticStyle:{"padding-left":"10px"}},[e._v("\n 消息通知\n ")]),e._v(" "),e._l(e.meslist,(function(t,a){return s("el-dropdown-item",{key:a,attrs:{divided:""}},[s("span",{staticStyle:{display:"block"},on:{click:function(a){return e.clickList(t)}}},[s("span",{staticStyle:{"margin-right":"30px"}},[e._v(e._s(t.remark))]),s("span",{staticStyle:{float:"right"}},[e._v(e._s(t.mesTime))])])])})),e._v(" "),s("router-link",{attrs:{to:"/console/News"}},[s("el-dropdown-item",{staticStyle:{"text-align":"center","margin-top":"10px"}},[e._v("\n 查看全部\n ")])],1)],2)],1),e._v(" "),s("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[s("div",{staticClass:"avatar-wrapper"},[s("img",{staticClass:"user-avatar",attrs:{src:a("c666")}}),e._v(" "),s("span",{staticStyle:{"font-size":"12px"}},[e._v("欢迎您,"+e._s(e.employename))]),e._v(" "),s("i",{staticClass:"el-icon-caret-bottom"})]),e._v(" "),s("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[s("router-link",{attrs:{to:"/"}},[s("el-dropdown-item",[e._v("\n 主页\n ")])],1),e._v(" "),s("el-dropdown-item",{attrs:{divided:""}},[s("span",{staticStyle:{display:"block"},on:{click:e.logout}},[e._v("注销")])]),e._v(" "),s("router-link",{attrs:{to:"/console/Changpwd"}},[s("el-dropdown-item",[e._v("\n 修改密码\n ")])],1)],1)],1)],1)])},o=[],p=(a("4917"),a("c7eb")),m=(a("96cf"),a("1da1")),c=a("5530"),d=a("2f62"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[a("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[a("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},h=[],g={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},f=g,b=(a("d49d"),a("2877")),v=Object(b["a"])(f,u,h,!1,null,"49e15297",null),y=v.exports,_={components:{Hamburger:y},data:function(){return{sumAmount:"",meslist:""}},computed:Object(c["a"])({},Object(d["b"])(["sidebar","avatar","employename","employeid","pastureid","departmentid","sumamount"])),created:function(){var e=this;window.setInterval((function(){setTimeout((function(){e.sumAmount=JSON.parse(sessionStorage.sumamount),e.meslist=JSON.parse(sessionStorage.meslist)}),0)}),100)},methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=Object(m["a"])(Object(p["a"])().mark((function e(){var t=this;return Object(p["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("user/logout");case 2:this.$store.dispatch("tagsView/delAllViews").then((function(e){e.visitedViews;t.$router.push("/login}")}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),clickList:function(e){var t=/\【(.+?)\】/g,a=e.remark.match(t)[0],s=a.substring(1,a.length-1);if("合同审核"===s){var i=/\:(.*)/,r=e.repairCode.match(i)[1],n=r.substring(0,12);this.$router.push({path:"/customs/ContractManagement",query:{contractCode:n}})}else"申购审核"===s?this.$router.push("/customs/Subscribe"):"采购配单"===s?this.$router.push("/customs/Purchase"):"领用审核"===s?this.$router.push("/customs/Receive"):"退货审核"===s?this.$router.push("/customs/Returngoods"):"设备审核"===s?this.$router.push({path:"/asset/Basics",query:{tabName:"second"}}):"设备保养"===s||"保养审核"===s?this.$router.push("/maintenance/Maintain"):"维修接单"===s||"维修派单"===s||"维修审核"===s?this.$router.push("/maintenance/Repair"):"备件审核"===s?this.$router.push({path:"/customs/Basic",query:{tabName:"second"}}):"配单审核"===s&&this.$router.push({path:"/customs/Purchase",query:{activeName:"fouth"}})}}},w=_,S=(a("9ee3"),a("609f"),Object(b["a"])(w,l,o,!1,null,"32d25b50",null)),P=S.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"has-logo":e.showLogo}},[e.showLogo?a("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),a("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[a("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return a("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},T=[],k=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[s("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?s("router-link",{key:"collapse",staticClass:"sidebar-logo-link",staticStyle:{background:"#fff"},attrs:{to:"/"}},[s("img",{staticClass:"sidebar-logo",attrs:{src:a("b189")}})]):s("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[s("img",{attrs:{src:a("6c5b")}})])],1)],1)},C=[],L={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{}}},N=L,D=(a("6d39"),Object(b["a"])(N,k,C,!1,null,"3f7519f8",null)),$=D.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.item.hidden?e._e():a("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?a("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[a("template",{slot:"title"},[e.item.meta?a("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return["Changpwd"!=t.path&&"News"!=t.path?a("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}}):e._e()]}))],2):[e.onlyOneChild.meta?a("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[a("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)},on:{click:function(t){return e.acconut(e.onlyOneChild)}}},[a("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},q=[],A=a("df7c"),M=a.n(A),O=a("61f7"),j={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var a=t.props,s=a.icon,i=a.title,r=[];return s&&r.push(e("svg-icon",{attrs:{"icon-class":s}})),i&&r.push(e("span",{slot:"title"},[i])),r}},F=j,E=Object(b["a"])(F,s,i,!1,null,null,null),R=E.exports,B=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},V=[],z={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Object(O["a"])(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},H=z,U=Object(b["a"])(H,B,V,!1,null,null,null),K=U.exports,G={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var a=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&a(t)}}}}},W=a("2934"),Z={name:"SidebarItem",components:{Item:R,AppLink:K},mixins:[G],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{acconut:function(e){console.log("统计点击量");var t=e.id;console.log(t);var a={name:"addMenuClick",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{menuId:t}};Object(W["k"])(a).then((function(e){e.msg}))},hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,s=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===s.length||0===s.length&&(this.onlyOneChild=Object(c["a"])(Object(c["a"])({},a),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(O["a"])(e)?e:Object(O["a"])(this.basePath)?this.basePath:M.a.resolve(this.basePath,e)}}},Y=Z,J=Object(b["a"])(Y,I,q,!1,null,null,null),Q=J.exports,X=a("cf1e"),ee=a.n(X),te={components:{SidebarItem:Q,Logo:$},computed:Object(c["a"])(Object(c["a"])({},Object(d["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,a=e.path;return t.activeMenu?t.activeMenu:a},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ee.a},isCollapse:function(){return!this.sidebar.opened}})},ae=te,se=Object(b["a"])(ae,x,T,!1,null,null,null),ie=se.exports,re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"app-main"},[a("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[a("keep-alive",{attrs:{include:e.cachedViews}},[a("router-view",{key:e.key})],1)],1)],1)},ne=[],le={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},oe=le,pe=(a("afb3"),a("4581"),Object(b["a"])(oe,re,ne,!1,null,"0cdfcc60",null)),me=pe.exports,ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[a("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper"},e._l(e.visitedViews,(function(t){return a("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(a){return"button"in a&&1!==a.button?null:e.closeSelectedTag(t)},contextmenu:function(a){return a.preventDefault(),e.openMenu(t,a)}}},[e._v("\n "+e._s(t.title)+"\n "),t.meta.affix?e._e():a("span",{staticClass:"el-icon-close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),e._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[e.selectedTag.meta&&e.selectedTag.meta.affix?e._e():a("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("关闭")]),e._v(" "),a("li",{on:{click:e.closeOthersTags}},[e._v("关闭其他")]),e._v(" "),a("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("关闭所有")])])],1)},de=[],ue=(a("a481"),a("b85c")),he=a("2909"),ge=(a("7f7f"),a("ac6a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)}),fe=[],be=(a("20d6"),4),ve={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,a=this.scrollWrapper;a.scrollLeft=a.scrollLeft+t/4},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,a=t.offsetWidth,s=this.scrollWrapper,i=this.$parent.$refs.tag,r=null,n=null;if(i.length>0&&(r=i[0],n=i[i.length-1]),r===e)s.scrollLeft=0;else if(n===e)s.scrollLeft=s.scrollWidth-a;else{var l=i.findIndex((function(t){return t===e})),o=i[l-1],p=i[l+1],m=p.$el.offsetLeft+p.$el.offsetWidth+be,c=o.$el.offsetLeft-be;m>s.scrollLeft+a?s.scrollLeft=m-a:c<s.scrollLeft&&(s.scrollLeft=c)}}}},ye=ve,_e=(a("e625"),Object(b["a"])(ye,ge,fe,!1,null,"5fc65f09",null)),we=_e.exports,Se={components:{ScrollPane:we},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(e){return e.path===this.$route.path},filterAffixTags:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",s=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var i=M.a.resolve(a,e.path);s.push({fullPath:i,path:i,name:e.name,meta:Object(c["a"])({},e.meta)})}if(e.children){var r=t.filterAffixTags(e.children,e.path);r.length>=1&&(s=[].concat(Object(he["a"])(s),Object(he["a"])(r)))}})),s},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),a=Object(ue["a"])(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;s.name&&this.$store.dispatch("tagsView/addVisitedView",s)}}catch(i){a.e(i)}finally{a.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var a,s=Object(ue["a"])(t);try{for(s.s();!(a=s.n()).done;){var i=a.value;if(i.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(r){s.e(r)}finally{s.f()}}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(a){var s=a.visitedViews;t.isActive(e)&&t.toLastView(s,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(a){var s=a.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(s,e)}))},toLastView:function(e,t){var a=e.slice(-1)[0];a?this.$router.push(a):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var a=105,s=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,r=i-a,n=t.clientX-s+15;this.left=n>r?r:n,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1}}},Pe=Se,xe=(a("e1de"),a("d702"),Object(b["a"])(Pe,ce,de,!1,null,"6b63be7c",null)),Te=xe.exports,ke=a("4360"),Ce=document,Le=Ce.body,Ne=992,De={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ke["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(ke["a"].dispatch("app/toggleDevice","mobile"),ke["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Le.getBoundingClientRect();return e.width-1<Ne},$_resizeHandler:function(){if(!document.hidden){var e=this.$_isMobile();ke["a"].dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&ke["a"].dispatch("app/closeSideBar",{withoutAnimation:!0})}}}},$e={name:"Layout",components:{Navbar:P,Sidebar:ie,AppMain:me,TagsView:Te},mixins:[De],computed:{sidebar:function(){return this.$store.state.app.sidebar},device:function(){return this.$store.state.app.device},needTagsView:function(){return this.$store.state.settings.tagsView},fixedHeader:function(){return this.$store.state.settings.fixedHeader},classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}},methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},Ie=$e,qe=(a("89ff"),Object(b["a"])(Ie,r,n,!1,null,"49412305",null));t["a"]=qe.exports},c217:function(e,t,a){},c245:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-特种设备信息",use:"icon-特种设备信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-特种设备信息"><defs><style type="text/css"></style></defs><path d="M540.44547 796.048675A227.951325 227.951325 0 1 1 768.396795 1024a227.951325 227.951325 0 0 1-227.951325-227.951325z m37.99018 0a189.961145 189.961145 0 1 0 189.961145-189.964558 189.961145 189.961145 0 0 0-189.961145 189.964558z m-475.406325 165.228273A74.785702 74.785702 0 0 1 27.646293 887.467454V110.740626a74.451197 74.451197 0 0 1 75.383032-73.823147h150.766064A37.287038 37.287038 0 0 1 291.74461 0.005905h320.766151a37.614716 37.614716 0 0 1 37.949221 36.911574h132.050865a74.785702 74.785702 0 0 1 75.383032 73.826561V450.221975l-75.383032 76.942917L781.98861 147.6522a37.287038 37.287038 0 0 0-37.952635-36.911574h-94.09823v36.911574a37.287038 37.287038 0 0 1-37.949221 36.911574H291.222373A37.61813 37.61813 0 0 1 253.266326 147.6522V110.740626H140.459723a37.61813 37.61813 0 0 0-37.952635 36.911574v702.890027A37.287038 37.287038 0 0 0 140.459723 887.467454h302.050951l75.379619 73.826561z m534.292813-43.349083c-4.041363-4.044777-4.041363-6.007432-4.041364-13.762481a23.804449 23.804449 0 0 1 7.850622-17.585392l82.148219-82.137979a3.682965 3.682965 0 0 1 5.898206 0l31.351286 31.347872a3.686379 3.686379 0 0 1 0 5.898206l-82.141393 82.141393a26.774032 26.774032 0 0 1-18.954131 8.369445 24.736284 24.736284 0 0 1-22.111445-14.264237z m168.102283-31.347873a66.218285 66.218285 0 0 1 1.966069-19.554873c1.966069-3.932137 0-3.932137-1.966069-5.898206-33.208128-35.157131-66.52207-68.484725-99.726784-101.692854-1.966069-1.966069-3.932137-1.966069-7.850622-1.966069a52.291965 52.291965 0 0 1-64.556001-39.106334 91.381233 91.381233 0 0 1 3.932137-31.347873c1.966069 0 1.966069 1.966069 3.932138 1.966069l29.381804 29.381804a18.390934 18.390934 0 0 0 25.449666 1.966069c7.850621-7.850621 5.898206-17.585392-1.966068-25.449667-9.830343-9.830343-19.554874-21.503876-31.351286-31.347873 15.619323-5.898206 31.351286-7.850621 45.00454 0a51.261144 51.261144 0 0 1 25.449667 58.657795c-1.966069 3.932137 0 5.898206 1.966068 7.850622l97.869943 97.873355c1.966069 1.966069 3.932137 1.966069 7.850621 1.966069 19.554874-3.932137 37.140266 0 50.899333 15.619323 13.653255 13.653255 17.585392 31.347873 9.830344 50.899334-1.966069 3.932137-1.966069 5.898206-5.898206 1.966068l-29.381804-29.381804c-5.898206-5.898206-11.687186-7.850621-19.551461-3.932137a20.418442 20.418442 0 0 0-11.690599 13.653255 22.067073 22.067073 0 0 0 5.898206 15.619323 201.064654 201.064654 0 0 1 36.9184 31.347872 48.864998 48.864998 0 0 1-21.896407 5.195064 51.162158 51.162158 0 0 1-50.513629-44.280918z m0-113.492678a84.650179 84.650179 0 0 1-13.653254-11.687186c-3.932137-1.966069-1.966069-3.932137 0-5.898206l29.381804-29.381804c7.850621-7.850621 15.619323-15.619323 19.55146-25.45308a55.763305 55.763305 0 0 1 33.208129-33.204715c5.898206-3.932137 9.830343-9.833757 15.619323-9.833757 5.898206 0 7.850621 7.850621 11.687186 9.833757 5.898206 5.894793 5.898206 9.830343 1.966069 15.619323a152.035817 152.035817 0 0 0-13.653255 25.45308q-2.94569 5.894793-5.898206 5.894793a143.601519 143.601519 0 0 0-58.654382 43.038471c-3.932137 5.898206-9.830343 9.830343-15.619323 15.619324l-1.966069 1.969482zM265.22999 572.920361a19.64362 19.64362 0 0 1-19.756259-19.237436v-19.234022a19.640207 19.640207 0 0 1 19.756259-19.237436h354.035718a19.640207 19.640207 0 0 1 19.75626 19.237436v19.234022a19.64362 19.64362 0 0 1-19.75626 19.237436z m0-164.805023a19.640207 19.640207 0 0 1-19.756259-19.234022v-19.237436a19.64362 19.64362 0 0 1 19.756259-19.237436h354.035718a19.64362 19.64362 0 0 1 19.75626 19.237436v19.237436a19.640207 19.640207 0 0 1-19.75626 19.234022z" p-id="2367" /></symbol>'});n.a.add(l);t["default"]=l},c2a7:function(e,t,a){"use strict";a("07e39")},c2d8:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"prev",staticClass:"dashboard-editor-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{style:{position:"fixed",height:"55px",top:"90px",zIndex:"999",marginBottom:"50px",background:"#f0f2f5",width:e.myWidth}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份",format:"yyyy-MM","value-format":"yyyy-MM",clearable:!1},on:{change:e.changeTime},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140pxmargin-top:5px"},attrs:{placeholder:"快捷跳转方式"},on:{"visible-change":function(t){return e.changeJump(t,e.jump)}},model:{value:e.jump,callback:function(t){e.jump=t},expression:"jump"}},e._l(e.jumpList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px","margin-top":"5px"},attrs:{placeholder:"全部牧场"},on:{change:e.changePasture},model:{value:e.pastureId,callback:function(t){e.pastureId=t},expression:"pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"0","margin-top":"5px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("div",{staticStyle:{"margin-top":"50px"}},[a("div",[a("h3",{attrs:{id:"equipmentIndexCostTable"}},[e._v("设备指标")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.equipmentIndexCostTable.listLoading,expression:"equipmentIndexCostTable.listLoading"}],key:e.equipmentIndexCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.equipmentIndexCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickEquipmentIndex(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今内控",sortable:"","min-width":"80px",align:"center",prop:"oneCowQmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"repairCostTable"}},[e._v("维修费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.repairCostTable.listLoading,expression:"repairCostTable.listLoading"}],key:e.repairCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.repairCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickRepairCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterCostTable"}},[e._v("水费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterCostTable.listLoading,expression:"waterCostTable.listLoading"}],key:e.waterCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort3}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecCostTable"}},[e._v("电费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecCostTable.listLoading,expression:"elecCostTable.listLoading"}],key:e.elecCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort4}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasCostTable"}},[e._v("柴油费")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasCostTable.listLoading,expression:"gasCostTable.listLoading"}],key:e.gasCostTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasCostTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort5}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasCost(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标(万元)",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标(元)",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"waterConsumptionTable"}},[e._v("水量(吨)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waterConsumptionTable.listLoading,expression:"waterConsumptionTable.listLoading"}],key:e.waterConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.waterConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort6}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickWaterConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"elecConsumptionTable"}},[e._v("电量(度)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.elecConsumptionTable.listLoading,expression:"elecConsumptionTable.listLoading"}],key:e.elecConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.elecConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort7}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickElecConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"gasConsumptionTable"}},[e._v("柴油用量(L)")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.gasConsumptionTable.listLoading,expression:"gasConsumptionTable.listLoading"}],key:e.gasConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.gasConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickGasConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1),e._v(" "),a("div",[a("h3",{attrs:{id:"bioConsumptionTable"}},[e._v("燃动用量")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.bioConsumptionTable.listLoading,expression:"bioConsumptionTable.listLoading"}],key:e.bioConsumptionTable.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.bioConsumptionTable.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle,height:"650"},on:{"sort-change":e.tableSort8}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickBioConsumption(s)}}},[e._v(e._s(s.pastureName))])]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialog.listLoading,expression:"dialog.listLoading"}],key:e.dialog.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.dialog.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort9}},[a("el-table-column",{attrs:{label:"设备指标",align:"center"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"70px",align:"center",prop:"deptname"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"总指标",align:"center"}},[a("el-table-column",{attrs:{label:"预算",sortable:"","min-width":"80px",align:"center",prop:"monthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"内控",sortable:"","min-width":"80px",align:"center",prop:"monthLimit"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今内控",sortable:"","min-width":"80px",align:"center",prop:"qmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"迄今实际",sortable:"","min-width":"80px",align:"center",prop:"sumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际节约",sortable:"","min-width":"80px",align:"center",prop:"asave"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际达成率",sortable:!0,"sort-method":function(t,a){return e.sortMethod(t,a,"realReason")},"min-width":"90px",align:"center",prop:"realReason"}})],1),e._v(" "),a("el-table-column",{attrs:{label:"单头牛指标",align:"center"}},[a("el-table-column",{attrs:{label:"单头牛预算",sortable:"","min-width":"80px",align:"center",prop:"oneCowBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今内控",sortable:"","min-width":"80px",align:"center",prop:"oneCowQmonthBudget"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛迄今实际",sortable:"","min-width":"80px",align:"center",prop:"oneCowSumPrice"}}),e._v(" "),a("el-table-column",{attrs:{label:"单头牛实际节约",sortable:"","min-width":"80px",align:"center",prop:"oneCowAsave"}})],1)],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.dialog.total>=0,expression:"dialog.total>=0"}],attrs:{total:e.dialog.total,page:e.dialog.getdataListParm.offset,limit:e.dialog.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.dialog.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.dialog.getdataListParm,"pagecount",t)},pagination:e.get_table_dataDialog}})],1)])],1)},i=[],r=(a("c5f6"),a("2934")),n=a("6724"),l=a("333d"),o=a("ed08"),p=a("a78e"),m=a.n(p),c=a("bc3a"),d=a.n(c),u=a("5f87");a("0fd4");var h={name:"EquipmentIndex",components:{Pagination:l["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{jump:"",jumpList:[{name:"设备指标",id:"0"},{name:"维修费用",id:"4"},{name:"水费",id:"1"},{name:"电费",id:"2"},{name:"柴油费",id:"3"},{name:"水量",id:"5"},{name:"电量",id:"6"},{name:"柴油量",id:"7"}],pastureId:m.a.get("pasturename"),findAllPasture:[],getPastureParam:{name:"findAllPastureBySbzb",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},departmentId:"",findAllDept:[],yearDate:[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")],equipmentIndexCostTable:{listLoading:!0,list:[],tableKey:0,getdataListParm:{name:"getChooseEqMonthBudgetListSumAll",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},repairCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWX",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseWaterPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseElectricityPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasCostTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthiolPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},waterConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthWater",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},elecConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthElectricity",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gasConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseMonthOilT",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},bioConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getLgnitionChargePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},gaoilConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseGasolinePrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},coalConsumptionTable:{listLoading:!0,list:null,tableKey:0,getdataListParm:{name:"getChooseCoalPrice",page:1,offset:1,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:"",departmentId:""}}},dialog:{dialogFormVisible:!1,tableKey:0,listLoading:!0,list:null,total:0,getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",endTime:"",pastureId:""}}},dialogStatus:"",textMap:{},requestParam:{name:"",offset:0,pagecount:0,parammaps:{}},downloadAll:{},isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},myWidth:""}},created:function(){this.getWindowWidth(),this.getPastureDownList(),this.getlistEquipmentIndex()},methods:{getWindowWidth:function(){var e=this;this.$nextTick((function(){e.myWidth=e.$refs.prev.clientWidth-30+"px",console.log(e.myWidth)}))},sortMethod:function(e,t,a){var s=0,i=0;return i=parseFloat(e[a].substring(0,e[a].length-1)),s=parseFloat(t[a].substring(0,t[a].length-1)),i-s},tableSort1:function(e){Object(o["f"])(e,this.equipmentIndexCostTable.list)},tableSort2:function(e){Object(o["f"])(e,this.repairCostTable.list)},tableSort3:function(e){Object(o["f"])(e,this.waterCostTable.list)},tableSort4:function(e){Object(o["f"])(e,this.elecCostTable.list)},tableSort5:function(e){Object(o["f"])(e,this.gasCostTable.list)},tableSort6:function(e){Object(o["f"])(e,this.waterConsumptionTable.list)},tableSort7:function(e){Object(o["f"])(e,this.elecConsumptionTable.list)},tableSort8:function(e){Object(o["f"])(e,this.gasConsumptionTable.list)},tableSort9:function(e){Object(o["f"])(e,this.dialog.list)},changeJump:function(e,t){e||""!==t&&(console.log(t),"维修费用"==t?window.scrollTo(0,document.getElementById("repairCostTable").offsetTop-150):"水费"==t?window.scrollTo(0,document.getElementById("waterCostTable").offsetTop-150):"电费"==t?window.scrollTo(0,document.getElementById("elecCostTable").offsetTop-150):"柴油费"==t?window.scrollTo(0,document.getElementById("gasCostTable").offsetTop-150):"水量"==t?window.scrollTo(0,document.getElementById("waterConsumptionTable").offsetTop-150):"电量"==t?window.scrollTo(0,document.getElementById("elecConsumptionTable").offsetTop-150):"柴油量"==t?window.scrollTo(0,document.getElementById("gasConsumptionTable").offsetTop-150):window.scrollTo(0,document.getElementById("equipmentIndexCostTable").offsetTop-150))},handleDownload:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="DownloadEquipment",this.requestParam.offset=0,this.requestParam.pagecount=0,this.requestParam.parammaps={},this.requestParam.parammaps.startTime=this.yearDate[0],this.requestParam.parammaps.endTime=this.yearDate[1],"现代牧业"==this.pastureId?this.requestParam.parammaps.pastureId="":this.requestParam.parammaps.pastureId=this.pastureId,this.requestParam.parammaps.departmentId=this.departmentId,this.requestParam.parammaps.deptId=this.requestParam.parammaps.departmentId,console.log(this.requestParam);var a=this.requestParam,s="http://127.0.0.1:8082/authdata/downloadmailreport";d()({method:"post",url:s,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream"}),s=window.URL.createObjectURL(a),i=document.createElement("a");i.style.display="none",i.href=s;var r="设备指标.xlsx";i.setAttribute("download",r),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(s)}}))},getPastureDownList:function(){var e=this;Object(r["e"])(this.getPastureParam).then((function(t){e.findAllPasture=t.data.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDept=t.data.list}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.getDepartDownList(),this.departmentId="",this.getlistEquipmentIndex()},changeTime:function(){Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(new Date,"{y}-{m}-{d}")]:Object(o["e"])(this.yearDate[0],"{y}-{m}")!==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[0],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(new Date,"{y}-{m}-{d}"),Object(o["e"])(this.yearDate[1],"{y}-{m}")+"-00"]:Object(o["e"])(this.yearDate[0],"{y}-{m}")!==Object(o["e"])(this.yearDate[1],"{y}-{m}")&&Object(o["e"])(this.yearDate[1],"{y}-{m}")==Object(o["e"])(new Date,"{y}-{m}")?this.yearDate=[Object(o["e"])(this.yearDate[0],"{y}-{m}")+"-00",Object(o["e"])(new Date,"{y}-{m}-{d}")]:this.yearDate=[Object(o["e"])(this.yearDate[0],"{y}-{m}")+"-00",Object(o["e"])(this.yearDate[1],"{y}-{m}")+"-00"],this.getlistEquipmentIndex()},getlistEquipmentIndex:function(){var e=this;this.equipmentIndexCostTable.listLoading=!0,this.equipmentIndexCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.equipmentIndexCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.equipmentIndexCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.equipmentIndexCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.equipmentIndexCostTable.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a+1;e.equipmentIndexCostTable.list=t.data.list}else e.equipmentIndexCostTable.list=[];setTimeout((function(){e.equipmentIndexCostTable.listLoading=!1,e.get_table_dataRepair()}),100)}))},get_table_dataRepair:function(){var e=this;this.repairCostTable.listLoading=!0,this.repairCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.repairCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.repairCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.repairCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.repairCostTable.getdataListParm).then((function(t){null!==t.data.list?e.repairCostTable.list=t.data.list:e.repairCostTable.list=[],setTimeout((function(){e.get_table_dataWater(),e.repairCostTable.listLoading=!1}),100)}))},get_table_dataWater:function(){var e=this;this.waterCostTable.listLoading=!0,this.waterCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterCostTable.getdataListParm).then((function(t){null!==t.data.list?e.waterCostTable.list=t.data.list:e.waterCostTable.list=[],setTimeout((function(){e.waterCostTable.listLoading=!1,e.get_table_dataElec()}),100)}))},get_table_dataElec:function(){var e=this;this.elecCostTable.listLoading=!0,this.elecCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecCostTable.getdataListParm).then((function(t){null!==t.data.list?e.elecCostTable.list=t.data.list:e.elecCostTable.list=[],setTimeout((function(){e.get_table_dataGas(),e.elecCostTable.listLoading=!1}),100)}))},get_table_dataGas:function(){var e=this;this.gasCostTable.listLoading=!0,this.gasCostTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasCostTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasCostTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasCostTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasCostTable.getdataListParm).then((function(t){null!==t.data.list?e.gasCostTable.list=t.data.list:e.gasCostTable.list=[],setTimeout((function(){e.gasCostTable.listLoading=!1,e.get_table_dataWaterConsumption()}),100)}))},get_table_dataWaterConsumption:function(){var e=this;this.waterConsumptionTable.listLoading=!0,this.waterConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.waterConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.waterConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.waterConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.waterConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.waterConsumptionTable.list=t.data.list:e.waterConsumptionTable.list=[],setTimeout((function(){e.get_table_dataElecConsumption(),e.waterConsumptionTable.listLoading=!1}),100)}))},get_table_dataElecConsumption:function(){var e=this;this.elecConsumptionTable.listLoading=!0,this.elecConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.elecConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.elecConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.elecConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.elecConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.elecConsumptionTable.list=t.data.list:e.elecConsumptionTable.list=[],setTimeout((function(){e.get_table_dataGasConsumption(),e.elecConsumptionTable.listLoading=!1}),100)}))},get_table_dataGasConsumption:function(){var e=this;this.gasConsumptionTable.listLoading=!0,this.gasConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.gasConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.gasConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.gasConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.gasConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.gasConsumptionTable.list=t.data.list:e.gasConsumptionTable.list=[],setTimeout((function(){e.get_table_dataBioConsumptionTable(),e.gasConsumptionTable.listLoading=!1}),100)}))},get_table_dataBioConsumptionTable:function(){var e=this;this.bioConsumptionTable.listLoading=!0,this.bioConsumptionTable.getdataListParm.parammaps.startTime=this.yearDate[0],this.bioConsumptionTable.getdataListParm.parammaps.endTime=this.yearDate[1],this.bioConsumptionTable.getdataListParm.parammaps.pastureId=this.pastureId,this.bioConsumptionTable.getdataListParm.parammaps.departmentId=this.departmentId,Object(r["e"])(this.bioConsumptionTable.getdataListParm).then((function(t){null!==t.data.list?e.bioConsumptionTable.list=t.data.list:e.bioConsumptionTable.list=[],setTimeout((function(){e.bioConsumptionTable.listLoading=!1}),100)}))},get_table_dataDialog:function(){var e=this;this.dialog.listLoading=!0,Object(r["e"])(this.dialog.getdataListParm).then((function(t){null==t.data.list?(e.dialog.list=t.data.list,e.dialog.pageNum=0,e.dialog.pageSize=0,e.dialog.total=0):(e.dialog.list=t.data.list,e.dialog.pageNum=t.data.pageNum,e.dialog.pageSize=t.data.pageSize,e.dialog.total=t.data.total),setTimeout((function(){e.dialog.listLoading=!1}),100)}))},clickEquipmentIndex:function(e){"现代牧业"!==e.pastureName&&(console.log(this.yearDate,"0000233"),console.log(this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-")),"0000233"),this.textMap.equipmentIndex=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"设备指标",this.dialogStatus="equipmentIndex",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseEqMonthBudgetListSumAllDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickRepairCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.repair=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"维修费",this.dialogStatus="repair",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWXDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.water=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水费",this.dialogStatus="water",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseWaterPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elec=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电费",this.dialogStatus="elec",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseElectricityPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasCost:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gas=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油费",this.dialogStatus="gas",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthiolPriceDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickWaterConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.waterConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"水量",this.dialogStatus="waterConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthWaterDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickElecConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.elecConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"电量",this.dialogStatus="elecConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthElectricityDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickGasConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.gasConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="gasConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},clickBioConsumption:function(e){"现代牧业"!==e.pastureName&&(this.textMap.bioConsumption=e.pastureName+this.yearDate[0].substring(0,this.yearDate[0].lastIndexOf("-"))+"-"+this.yearDate[1].substring(0,this.yearDate[1].lastIndexOf("-"))+"柴油用量",this.dialogStatus="bioConsumption",this.dialog.dialogFormVisible=!0,this.dialog.getdataListParm.name="getChooseMonthOilTDepartment",this.dialog.getdataListParm.parammaps.startTime=this.yearDate[0],this.dialog.getdataListParm.parammaps.endTime=this.yearDate[1],this.dialog.getdataListParm.parammaps.pastureId=e.pastureId,this.get_table_dataDialog())},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 1===a?"现代牧业"==t.pastureName?{textDecoration:"none"}:{textDecoration:"underline"}:{textDecoration:"none"}}}},g=h,f=(a("9b48"),a("6733"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"004cbe27",null);t["default"]=b.exports},c3c5:function(e,t,a){"use strict";a("e7f7")},c432:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-专项管理",use:"icon-专项管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-专项管理"><defs><style type="text/css"></style></defs><path d="M779.8 484.2c-88.5-35.5-190.1-16.2-258 49.4-68.3 65.6-88.5 164-51.7 249.9 37.3 85.8 123.1 141.1 219.3 141.1 130.8 0 237.3-102.9 236.9-228.8 0-92.9-57.6-176.1-146.5-211.6zM689.4 883c-107.7 0-195.3-84.3-195.3-187.5S581.7 508 689.4 508c107.7 0 195.3 84.4 195.3 187.5S797.2 883 689.4 883zM238 573.1h178.2v45.8H238v-45.8z m0-121h325.4v44.2H238v-44.2z m0-122.7h368v44.2H238v-44.2z m0 0" p-id="6961" /><path d="M671.2 628.7h129.4v-26.2H681.4l13.4-34.3h-30.3l-13.4 34.3h-76.2v26.2h66l-11.2 27.8h-69.5v26.2h59.3l-10.3 27.9v22.8h136.9l-49.5 42.8C671 764 647 753 625.4 743.4l-2.6-1.2-14.2 22.7 3.4 1.5c40.6 18.6 82.8 39.4 125.3 61.8l2.7 1.4 16.1-25-3.3-1.6c-10.2-5-20.5-9.9-30.7-14.8l65.4-55.8v-25.1H639.9l9.8-24.5h167.2v-26.2H660l11.2-27.9z m144.1 29.4V681H648.6l-11.1 27.8h148.4v22.8l-66.7 57 33 15.9 1.6 0.8-14.3 22.2-1.3-0.7c-42.5-22.4-84.7-43.2-125.4-61.8l-1.7-0.8 12.5-19.9 1.3 0.6c22.2 9.9 46.4 21 72.1 33.2l53.6-46.4H610.9v-20.9l11-29.8h-60v-22.9h69l12.5-31.1h-66.8v-22.9h75.7l13.4-34.3h26.8L679 604.1h119.9V627H670.1l-12.5 31.1h157.7z m0 0" p-id="6962" /><path d="M670.1 627H799v-22.9H679l13.4-34.3h-26.8l-13.4 34.3h-75.7V627h66.8l-12.5 31.1h-69V681h60l-11 29.8v20.9h139.7l-53.6 46.4c-25.7-12.1-50-23.3-72.1-33.2l-1.3-0.6-12.5 19.9 1.7 0.8c40.7 18.6 82.9 39.4 125.4 61.8l1.3 0.7 14.3-22.2-1.6-0.8-33-15.9 66.7-57v-22.8H637.5l11.1-27.8h166.7v-22.9H657.5l12.6-31.1z m143.5 32.7v19.6H647.5l-12.4 31.1h149.1v20.4l-68 58.1c11.8 5.6 23.5 11.3 35.2 17l-12.5 19.4c-42.8-22.5-84.6-43.1-125.5-61.8l10.7-17.1c22.6 10 46.9 21.3 73.1 33.6l57.7-49.9H612.5v-18.9l11.7-31.8h-60.8v-19.6h68.5l13.8-34.3h-67.5v-19.6h75.2l13.4-34.3H690l-13.4 34.3h120.7v19.6H668.9l-13.8 34.3h158.5z m0 0" p-id="6963" /><path d="M668.9 625.4h128.3v-19.6H676.6l13.4-34.3h-23.3l-13.4 34.3h-75.2v19.6h67.5l-13.8 34.3h-68.5v19.6h60.8l-11.7 31.8V730h142.4l-57.6 50c-26.1-12.3-50.5-23.6-73.1-33.6l-10.7 17.1c40.9 18.7 82.7 39.3 125.5 61.8l12.5-19.4c-11.7-5.7-23.4-11.4-35.2-17l68-58.1v-20.4H635.1l12.4-31.1h166.2v-19.6H655.1l13.8-34.3z m0 0" p-id="6964" /><path d="M462 811.8H179.1c-22.5 0-40.9-18.4-40.9-40.9V179c0-22.5 18.4-40.9 40.9-40.9h485.7c22.5 0 40.9 18.4 40.9 40.9v242h42.5V162.6c0-36-29.4-65.4-65.4-65.4h-520c-36 0-65.4 29.4-65.4 65.4v626.3c0 36 29.4 65.4 65.4 65.4H462v-42.5z m0 0" p-id="6965" /></symbol>'});n.a.add(l);t["default"]=l},c48f:function(e,t,a){"use strict";a("b19c")},c4bd:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件管理",use:"icon-备件管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件管理"><defs><style type="text/css"></style></defs><path d="M874.7 469.3h-64V298.7c0-46.9-38.4-85.3-85.3-85.3H554.7v-64c0-58.9-47.8-106.7-106.7-106.7S341.3 90.4 341.3 149.3v64H170.7c-46.9 0-84.9 38.4-84.9 85.3v162.1h63.6c63.6 0 115.2 51.6 115.2 115.2S213 691.1 149.4 691.1h-64v162.1c0 46.9 38.4 85.3 85.3 85.3h162.1v-64c0-63.6 51.6-115.2 115.2-115.2s115.2 51.6 115.2 115.2v64h162.1c46.9 0 85.3-38.4 85.3-85.3V682.7h64c58.9 0 106.7-47.8 106.7-106.7s-47.8-106.7-106.6-106.7z" p-id="4197" /></symbol>'});n.a.add(l);t["default"]=l},c4cf:function(e,t,a){},c4de:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.change_pasture1},model:{value:e.tableObj1.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"pastureName",t)},expression:"tableObj1.getdataListParm.parammaps.pastureName"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.tableObj1.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"departmentId",t)},expression:"tableObj1.getdataListParm.parammaps.departmentId"}},e._l(e.departNameList1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"委外验收单号"},model:{value:e.tableObj1.getdataListParm.parammaps.acceptanceCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"acceptanceCode",t)},expression:"tableObj1.getdataListParm.parammaps.acceptanceCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tableObj1.getdataListParm.parammaps.status,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"status",t)},expression:"tableObj1.getdataListParm.parammaps.status"}},e._l(e.statuesNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"委外申请单号"},model:{value:e.tableObj1.getdataListParm.parammaps.outsourcingCode,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"outsourcingCode",t)},expression:"tableObj1.getdataListParm.parammaps.outsourcingCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tableObj1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tableObj1.getdataListParm.parammaps,"inputDatetime",t)},expression:"tableObj1.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.istab2Add?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e()],1),e._v(" "),a("div",{staticClass:"elTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj1.listLoading,expression:"tableObj1.listLoading"}],key:e.tableObj1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj1.pageNum-1)*e.tableObj1.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"委外验收单号","min-width":"120px",align:"center",prop:"acceptanceCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门 ","min-width":"120px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"申请人","min-width":"120px",align:"center",prop:"applicantName"}}),e._v(" "),a("el-table-column",{attrs:{label:"日期","min-width":"120px",align:"center",prop:"date"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.status?a("span",[e._v("审核中")]):1==t.row.status?a("span",[e._v("审核通过")]):a("span",[e._v("审核未通过")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),e.istab2Edit&&0!==s.status&&1!==s.status?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.istab2Del&&1!==s.status?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e(),e._v(" "),e.istab2Shenhe1&&1==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine(s)}}},[e._v("审核1")]):e._e(),e._v(" "),e.istab2Shenhe2&&2==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine2(s)}}},[e._v("审核2")]):e._e(),e._v(" "),e.istab2Shenhe3&&4==s.flowCompeleted?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_examine3(s)}}},[e._v("审核3")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj1.total>0,expression:"tableObj1.total>0"}],attrs:{total:e.tableObj1.total,page:e.tableObj1.getdataListParm.offset,limit:e.tableObj1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj1.getdataListParm,"pagecount",t)},pagination:function(t){return e.get_table_data1()}}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"100%"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"委外验收单号:",prop:"acceptanceCode"}},[a("el-input",{ref:"acceptanceCode",attrs:{disabled:""},model:{value:e.createTemp.acceptanceCode,callback:function(t){e.$set(e.createTemp,"acceptanceCode",t)},expression:"createTemp.acceptanceCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},on:{change:e.change_pasture2},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.pastureNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"责任部门",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},on:{change:e.change_depart2},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.departNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"委外申请单号:",prop:"outsourcingCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"update"===e.dialogStatus||"see"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.getOutNumber,placeholder:""},on:{select:e.changeOutNumber},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.outsourcingCode))])]}}]),model:{value:e.createTemp.outsourcingCode,callback:function(t){e.$set(e.createTemp,"outsourcingCode",t)},expression:"createTemp.outsourcingCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"applicant"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},model:{value:e.createTemp.applicant,callback:function(t){e.$set(e.createTemp,"applicant",t)},expression:"createTemp.applicant"}},e._l(e.employeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.date,callback:function(t){e.$set(e.createTemp,"date",t)},expression:"createTemp.date"}})],1)],1)],1),e._v(" "),a("el-divider"),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:"tableKey",staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAddCont,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"金额",prop:"amount",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",prop:"eqName","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",prop:"typea",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typea))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"交付日期",prop:"date",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号",prop:"contractCode",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1),e._v(" "),a("el-divider"),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件类型:",prop:"applyType"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},on:{change:e.change_applyType},model:{value:e.createTemp.applyType,callback:function(t){e.$set(e.createTemp,"applyType",t)},expression:"createTemp.applyType"}},[a("el-radio",{attrs:{label:0,checked:0==e.createTemp.applyType}},[e._v("牧场")]),e._v(" "),a("el-radio",{attrs:{label:1,checked:1==e.createTemp.applyType}},[e._v("供应商")])],1)],1)],1)],1),e._v(" "),0==e.createTemp.applyType?a("el-row",{attrs:{gutter:20}},["see"!==e.dialogStatus?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleCollectionSparePartsCreate}},[e._v("添加领用单")]):e._e()],1):e._e(),e._v(" "),0==e.createTemp.applyType?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"领用单号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applyCode))])]}}],null,!1,3010583487)}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{attrs:{label:"领用日期",sortable:"",prop:"createDate","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用备件",prop:"details",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.details))])]}}],null,!1,1991972868)}),e._v(" "),a("el-table-column",{attrs:{label:"领用状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCollarUseSee(s)}}},[e._v("查看")])]}}],null,!1,1748549881)})],1):e._e(),e._v(" "),a("el-divider"),e._v(" "),1==e.createTemp.applyType&&"see"!==e.dialogStatus?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add_list2}},[e._v("新增")]):e._e(),e._v(" "),1==e.createTemp.applyType?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:"2",staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.partCode,callback:function(a){e.$set(t.row,"partCode",a)},expression:"scope.row.partCode"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.partCode))]):e._e()]}}],null,!1,3527480970)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.partName,callback:function(a){e.$set(t.row,"partName",a)},expression:"scope.row.partName"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.partName))]):e._e()]}}],null,!1,2963107146)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.specification,callback:function(a){e.$set(t.row,"specification",a)},expression:"scope.row.specification"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.specification))]):e._e()]}}],null,!1,1511001802)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.brand))]):e._e()]}}],null,!1,1710813450)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.providerName,callback:function(a){e.$set(t.row,"providerName",a)},expression:"scope.row.providerName"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.providerName))]):e._e()]}}],null,!1,3536601354)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.unit,callback:function(a){e.$set(t.row,"unit",a)},expression:"scope.row.unit"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.unit))]):e._e()]}}],null,!1,1871438218)}),e._v(" "),a("el-table-column",{attrs:{label:"数量",prop:"amount",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.amount))]):e._e()]}}],null,!1,355452234)}),e._v(" "),a("el-table-column",{attrs:{label:"单价",prop:"price",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.price))]):e._e()]}}],null,!1,348585546)}),e._v(" "),a("el-table-column",{attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price*parseFloat(t.row.amount)))])]}}],null,!1,3522662217)}),e._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus||"update"===e.dialogStatus?a("span",[a("el-input",{staticStyle:{"margin-top":"10px"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})],1):e._e(),e._v(" "),"see"===e.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e()]}}],null,!1,1552304010)}),e._v(" "),"create"===e.dialogStatus||"update"===e.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete2(s)}}},[e._v("删除")])]}}],null,!1,891534586)}):e._e()],1):e._e()],1),e._v(" "),"see"===e.dialogStatus?a("el-row",[a("el-col",[a("h3",[e._v("流程进度")]),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data1()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.change_statue},model:{value:e.examineTemp.status,callback:function(t){e.$set(e.examineTemp,"status",t)},expression:"examineTemp.status"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.istab2Shenhe1&&1==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab2Shenhe2&&2==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save2()}}},[e._v("确认")]):e._e(),e._v(" "),e.istab2Shenhe3&&4==e.examineTemp.flowCompeleted?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.form_examine_save3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"领用单",visible:e.dialogFormVisible_CollectionSparePartsSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_CollectionSparePartsSee=t}}},[a("div",{staticClass:"collectionSparePartsSee"},[a("el-form",{ref:"collectionSparePartsSeeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collectionSparePartsSeeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-input",{ref:"applyCode",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.applyCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"applyCode",t)},expression:"collectionSparePartsSeeTemp.applyCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.departmentName,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"departmentName",t)},expression:"collectionSparePartsSeeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"applyDate"}},[a("el-input",{ref:"applyDate",attrs:{disabled:""},model:{value:e.collectionSparePartsSeeTemp.applyDate,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"applyDate",t)},expression:"collectionSparePartsSeeTemp.applyDate"}})],1)],1)],1),e._v(" "),e.isPartCode?a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"98%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),e._v("\n |  "),a("b",[e._v("库存:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.reportery))]),e._v("\n |  "),a("b",[e._v("是否零库存:")]),1==s.isZeroStock?a("span",{staticClass:"addr"},[e._v("是")]):a("span",{staticClass:"addr"},[e._v("否")])]}}],null,!1,3593575805),model:{value:e.collectionSparePartsSeeTemp.partCode,callback:function(t){e.$set(e.collectionSparePartsSeeTemp,"partCode",t)},expression:"collectionSparePartsSeeTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listCreateCollectionSpareParts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",prop:"amount",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},attrs:{disabled:"collectionSparePartsSee"===e.dialogStatus},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isCreatePartDelete?a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqName(a,t.row)},blur:function(a){e.blurSelectEqName(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"addr"},[e._v(e._s(s.eqName))]),e._v("\n |"),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}}):a("span",{staticClass:"addr"},[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isCreatePartDelete?a("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCode(a,t.row)},blur:function(a){e.blurSelectEqCode(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}}):a("span",{staticClass:"addr"},[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),e.isCreatePartDelete?a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.createPartDelete(s)}}},[e._v("删除")])]}}],null,!1,39760972)}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[e.isPartCode?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createCollectionSparePartsData()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_CollectionSparePartsSee=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("ade3")),n=(a("313e"),a("2934")),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("333d");a("817d");var d={name:"Tab2",components:{Pagination:c["a"]},inject:["reload"],data:function(){var e;return e={send_select_list:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],pastureNameList:[],getDepartParam1:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid"),eId:o.a.get("employeid")}},employeNameList:[],departNameList1:[],getDepartParam2:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid"),eId:o.a.get("employeid")}},departNameList2:[],statuesNameList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],isokDisable:!1,tableObj1:{getdataListParm:{name:"getBigacceptanceList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),acceptanceCode:"",departmentName:"",status:"",outsourcingCode:"",inputDatetime:"",startdate:"",enddate:""}},tableKey:0,listLoading:!1,pageNum:"",pageSize:"",total:0,list:[]},pageNum:"",pageSize:"",total:0,getAddContListParam:{name:"getOutsourcingList",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{bigId:""}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogFormVisible_CollectionSparePartsSee:!1,listCreateCollectionSpareParts:[],isCreatePartDelete:!1,isPartCode:!0,getCollarUseSeeParm:{name:"getpartapplyListBybig",parammaps:{}},orderPart:{},getOutCodetParm:{name:"getBigoutsourcingCode",returntype:"Map",parammaps:{pastureId:o.a.get("pastureid"),outsourcingCode:""}},useForms:[],getParmCreateAdd:{name:"getPartApplyByBig",returntype:"Map",parammaps:{}},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},getPramPartApplyListBybig:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{id:""}},getPramAcceptanceList:{name:"getAcceptanceList",returntype:"Map",parammaps:{"bigId\t":""}},getCollarUseListParm:{name:"getPartsapplybyMt",page:1,offset:1,returntype:"Map",parammaps:{RUCode:""}},collectionSparePartsSeeTemp:Object(r["a"])({applyCode:"",departmentName:"",applyDate:"",isStock:0},"applyDate",""),listCollectionSpareParts:[],tableKey:0,listLoading:!0},Object(r["a"])(e,"total",0),Object(r["a"])(e,"list",[]),Object(r["a"])(e,"dialogStatus",""),Object(r["a"])(e,"dialogFormVisible",!1),Object(r["a"])(e,"dialogFormVisibleSee",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"seeTemp",{}),Object(r["a"])(e,"getdataListSee",{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}}),Object(r["a"])(e,"createTemp",Object(r["a"])({pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,date:Object(p["e"])(new Date,"{y}-{m}-{d}"),providerId:"",contract:1,acceptanceCode:"",outsourcingCode:"",applyType:0,applicant:"",departmentName:""},"contract",1)),Object(r["a"])(e,"getParmCreateNumber",{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:o.a.get("pastureid"),codeType:"WY"}}),Object(r["a"])(e,"getParmCreateNumber2",{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:o.a.get("pastureid"),codeType:"LY"}}),Object(r["a"])(e,"requestSparePart",{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:o.a.get("pastureid")}}),Object(r["a"])(e,"EqNameList",[]),Object(r["a"])(e,"requestEqName",{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:o.a.get("pastureid")}}),Object(r["a"])(e,"EqCodeList",[]),Object(r["a"])(e,"listAdd",[]),Object(r["a"])(e,"listAdd2",[]),Object(r["a"])(e,"listAddCont",[]),Object(r["a"])(e,"activeList",[]),Object(r["a"])(e,"active",1),Object(r["a"])(e,"dialogFormVisible_Examine",!1),Object(r["a"])(e,"examineTemp",{status:1,empid:"",flowCompeleted:"",workflowNote:"",id:""}),Object(r["a"])(e,"statueReason",!1),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"35px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"textMap",{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine22:"审核2",examine2:"审核3",examine33:"审核4",examine3:"审核5",collectionSparePartsSee:"查看领用",collectionSparePartsCreate:"添加领用"}),Object(r["a"])(e,"istab2Add",[]),Object(r["a"])(e,"istab2Edit",[]),Object(r["a"])(e,"istab2Del",[]),Object(r["a"])(e,"istab2Shenhe1",[]),Object(r["a"])(e,"istab2Shenhe2",[]),Object(r["a"])(e,"istab2Shenhe3",[]),e},created:function(){this.get_select_list(),this.get_table_data1()},methods:{get_auto_buttons:function(){var e=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:add");this.istab2Add=e;var t=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:edit");this.istab2Edit=t;var a=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:del");this.istab2Del=a;var s=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:shenhe1");this.istab2Shenhe1=s;var i=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:shenhe2");this.istab2Shenhe2=i;var r=Object(n["v"])(this.$store.state.user.buttons,"maintenance:subcontractingMainten2:shenhe3");this.istab2Shenhe3=r},get_select_list:function(){var e=this;Object(n["f"])(this.send_select_list).then((function(t){e.pastureNameList=t.data.findAllPasture.list,console.log("牧场下拉框",e.pastureNameList),e.employeNameList=t.data.findAllEmploye.list,console.log("申请人下拉框",e.employeNameList),e.get_depart_list1()}))},change_pasture1:function(e){this.getDepartParam1.parammaps.pastureId=this.pastureNameList.find((function(t){return t.name==e})).id,this.tableObj1.getdataListParm.parammaps.departmentId="",this.get_depart_list1()},get_depart_list1:function(){var e=this;Object(n["e"])(this.getDepartParam1).then((function(t){e.departNameList1=t.data.list}))},change_pasture2:function(e){this.getDepartParam2.parammaps.pastureId=e,this.get_depart_list2()},get_depart_list2:function(){var e=this;Object(n["e"])(this.getDepartParam2).then((function(t){e.departNameList2=t.data.list}))},change_depart2:function(e){this.createTemp.departmentName=this.departNameList2.find((function(t){return t.id==e})).name},get_table_data1:function(){var e=this;this.tableObj1.listLoading=!1,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tableObj1.getdataListParm.parammaps.startdate=this.$refs["inputDatetime"].value[0],this.tableObj1.getdataListParm.parammaps.enddate=this.$refs["inputDatetime"].value[1]):(this.tableObj1.getdataListParm.parammaps.inputDatetime="",this.tableObj1.getdataListParm.parammaps.startdate="",this.tableObj1.getdataListParm.parammaps.enddate=""),Object(n["e"])(this.tableObj1.getdataListParm).then((function(t){null!==t.data.list?(e.tableObj1.list=t.data.list,e.tableObj1.pageNum=t.data.pageNum,e.tableObj1.pageSize=t.data.pageSize,e.tableObj1.total=t.data.total):e.tableObj1.list=[],setTimeout((function(){e.tableObj1.listLoading=!1}),100)}))},form_search:function(){console.log("查询"),this.get_table_data1()},change_applyType:function(e){console.log(e),this.createTemp.applyType=1==e?1:0},form_add:function(){var e=this;this.reset_create(),this.getDepartParam2.parammaps.pastureId=this.createTemp.pastureId,this.get_depart_list2(),this.dialogStatus="create",this.dialogFormVisible=!0,this.listLoading=!1,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},statue:function(e){return 0==e.statue?"未领用":1==e.statue?"已领用":void 0},reset_create:function(){this.createTemp.pastureId=parseInt(o.a.get("pastureid")),this.createTemp.departmentId=parseInt(o.a.get("departmentid")),this.createTemp.departmentName=o.a.get("departmentname"),this.createTemp.employeId=parseInt(o.a.get("employeid")),this.createTemp.date=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.outsourcingCode="",this.createTemp.applicant=parseInt(o.a.get("employeid")),this.createTemp.providerId="",this.createTemp.contract=1,this.createTemp.description="",18==parseInt(o.a.get("pastureid"))&&(this.createTemp.departmentId=""),this.createTemp.outsourcingCode="",console.log(this.createTemp.departmentName),this.listAddCont=[],this.listAdd=[],this.listAdd2=[],this.listCreateCollectionSpareParts=[],this.listCollectionSpareParts=[]},handleCollarUseSee:function(e,t){console.log(e),this.collectionSparePartsSeeTemp=Object.assign({},e),this.collectionSparePartsSeeTemp.applyDate=e.createDate,this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!1,this.isPartCode=!1,this.getCollarUseSeeList()},getCollarUseSeeList:function(){var e=this;this.getCollarUseSeeParm.parammaps.id=this.collectionSparePartsSeeTemp.id,Object(n["e"])(this.getCollarUseSeeParm).then((function(t){e.listCreateCollectionSpareParts=t.data.list}))},form_add_list2:function(){var e,t="id"+Math.round(100*Math.random())+Math.round(100*Math.random());this.listAdd2.unshift((e={partCode:"",providerId:"0",eqId:"0",contractId:"0",idDel:t,partId:""},Object(r["a"])(e,"partCode",""),Object(r["a"])(e,"partName",""),Object(r["a"])(e,"brandId",""),Object(r["a"])(e,"brand",""),Object(r["a"])(e,"providerId",""),Object(r["a"])(e,"providerName",""),Object(r["a"])(e,"price",""),Object(r["a"])(e,"sumPrice",""),Object(r["a"])(e,"remark",""),Object(r["a"])(e,"amount",""),e))},getCreateNumber:function(){var e=this;Object(n["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增委外维修单单号",t.data.list[0].orderCode),e.createTemp.acceptanceCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},getCreateLYNumber:function(){var e=this;Object(n["e"])(this.getParmCreateNumber2).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.collectionSparePartsSeeTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAddCont),""==e.createTemp.acceptanceCode||null==e.createTemp.acceptanceCode||void 0==e.createTemp.acceptanceCode?Object(n["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增单号",t.data.list[0].orderCode),e.createTemp.acceptanceCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){for(var e=this,t=0;t<this.listAddCont.length;t++)if(console.log(this.listAddCont[t].amount),null==this.listAddCont[t].amount||""===this.listAddCont[t].amount)return this.$message({type:"warning",message:"请检查金额是否未填写",duration:2e3}),!1;if(0==this.createTemp.applyType){for(var a=0,s=0;s<this.listAdd.length;s++)a+=parseFloat(this.listAdd[s].price)*parseFloat(this.listAdd[s].amount);this.createTemp.SHStatus=a>500?2:9;var i={common:{returnmap:"0"},data:[{name:"insertBigacceptance",type:"e",parammaps:this.createTemp}]}}if(1==this.createTemp.applyType){if(0==this.listAdd2.length)return this.$notify({title:"失败",message:"备件必选!",type:"warning",duration:2e3}),!1;this.listAdd2.map((function(e,t){return e.partId="0"})),this.listAdd2.map((function(e,t){return e.brandId="0"})),this.listAdd2.map((function(e,t){return e.providerId="0"}));i={common:{returnmap:"0"},data:[{name:"insertBigacceptance",type:"e",parammaps:this.createTemp},{name:"insertSpotList",resultmaps:{list:this.listAdd2},children:[{name:"insertAcceptance",type:"e",parammaps:{bigId:"@insertBigacceptance.LastInsertId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",unit:"@insertSpotList.unit",price:"@insertSpotList.price",remark:"@insertSpotList.remark",specification:"@insertSpotList.specification",amount:"@insertSpotList.amount"}}]}]}}Object(n["c"])(i).then((function(t){console.log("新增保存发送参数",i),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},getOutNumber:function(e,t){console.log("委外申请单号模糊查询输入值",e),this.getOutCodetParm.parammaps["outsourcingCode"]=e,Object(n["e"])(this.getOutCodetParm).then((function(e){console.log("委外申请单号模糊查询搜索data",e.data.list),t(e.data.list)}))},changeOutNumber:function(e){console.log("委外申请单号模糊查询选中值",e),this.createTemp.outsourcingCode=e.outsourcingCode,this.$set(this.createTemp,"outsourcingCode",e.outsourcingCode),this.getAddContListParam.parammaps.bigId=e.id,this.getAddContList()},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(n["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqName:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e.eqName),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(n["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqName:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCode:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps.pastureId=this.createTemp.pastureId,this.requestSparePart.parammaps["partCode"]=e,Object(n["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCreateCollectionSpareParts.length>0&&this.listCreateCollectionSpareParts.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(e.date=this.collectionSparePartsSeeTemp.applyDate,this.listCreateCollectionSpareParts.unshift(e))},createPartDelete:function(e){var t=this;console.log(this.listAdd),m["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCreateCollectionSpareParts.length;a++){if(console.log(t.listCreateCollectionSpareParts[a]),t.listCreateCollectionSpareParts[a].id===e.id)var s=t.listCreateCollectionSpareParts.indexOf(t.listCreateCollectionSpareParts[a]);if(s>-1)return void t.listCreateCollectionSpareParts.splice(s,1)}}))},createCollectionSparePartsData:function(){var e=this;if(this.isokDisable=!0,0===this.listCreateCollectionSpareParts.length)return this.$notify({title:"",type:"warning",message:"请选择备件",duration:2e3}),!1;for(var t=0;t<this.listCreateCollectionSpareParts.length;t++){if(console.log(this.listCreateCollectionSpareParts[t].amount),void 0!==this.listCreateCollectionSpareParts[t].amount&&""!==this.listCreateCollectionSpareParts[t].amount){var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(a.test(this.listCreateCollectionSpareParts[t].amount)){for(var s=[],i=0,r=0;r<s.length;r++)i+=parseFloat(s[r].price)*parseFloat(s[r].amount);this.collectionSparePartsSeeTemp.SHStatus=i>500?2:9;var l={common:{returnmap:"0"},data:[{name:"insertBigpartapply",type:"e",parammaps:{pastureId:this.collectionSparePartsSeeTemp.pastureId,applyCode:this.collectionSparePartsSeeTemp.applyCode,applyType:1,departmentId:this.collectionSparePartsSeeTemp.departmentId,empId:this.collectionSparePartsSeeTemp.empId,applyDate:this.collectionSparePartsSeeTemp.applyDate,RUCode:this.createTemp.acceptanceCode,SHStatus:9}},{name:"insertSpotList",resultmaps:{list:this.listCreateCollectionSpareParts},children:[{name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}}]}]};return Object(n["c"])(l).then((function(t){console.log("添加领用保存发送参数",l),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_CollectionSparePartsSee=!1,e.getCollectionSpareParts(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1}return this.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1}setTimeout((function(){e.isokDisable=!1}),2e3)},getCollectionSpareParts:function(){var e=this;this.getCollarUseListParm.parammaps.RUCode=this.createTemp.acceptanceCode,Object(n["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollectionSpareParts=t.data.list}))},partDelete:function(e){var t=this;console.log(this.listAdd),m["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},partDelete2:function(e){var t=this;console.log(this.listAdd2),m["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd2.length;a++){if(console.log(t.listAdd2[a]),t.listAdd2[a].idDel===e.idDel)var s=t.listAdd2.indexOf(t.listAdd2[a]);if(s>-1)return void t.listAdd2.splice(s,1)}}))},handleCollectionSparePartsCreate:function(){return""==this.createTemp.departmentId||void 0==this.createTemp.departmentId?(this.$message({type:"warning",message:"请选择责任部门",duration:2e3}),!1):""==this.createTemp.applicant||void 0==this.createTemp.applicant?(this.$message({type:"warning",message:"请选择录入人",duration:2e3}),!1):(console.log("createTemp)============",this.createTemp),this.collectionSparePartsSeeTemp=Object.assign({},this.createTemp),this.collectionSparePartsSeeTemp.empId=this.collectionSparePartsSeeTemp.applicant,this.collectionSparePartsSeeTemp.applyDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.dialogFormVisible_CollectionSparePartsSee=!0,this.isCreatePartDelete=!0,this.listCreateCollectionSpareParts=[],this.isPartCode=!0,this.getCreateLYNumber(),void console.log("console.log( this.collectionSparePartsSeeTemp)============",this.collectionSparePartsSeeTemp))},form_see:function(e){var t=this;console.log("查看======》",e),this.reset_create(),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getAddContListParam.parammaps.bigId=e.outsourcingId,this.getAddContList(),0==e.applyType&&(this.getPramPartApplyListBybig.parammaps.id=e.partapplyId,this.getCollectionSpareParts(),this.isCreatePartDelete=!1),1==e.applyType&&(this.getPramAcceptanceList.parammaps.bigId=e.id,this.getListAdd2()),1==e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.empname},{title:"供应处长"},{title:"部门负责人"},{title:"场长"}],this.active=1):2==e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName},{title:"部门负责人"},{title:"场长"}],this.active=2):3===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName,status:"error",reason:e.workflowNote},{title:"部门负责人"},{title:"场长"}],this.active=2):4===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName},{title:"部门负责人",date:e.departmentdate,name:e.departmentUser},{title:"场长"}],this.active=3):5===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName},{title:"部门负责人",date:e.departmentdate,name:e.departmentUser,status:"error",reason:e.workflowNote},{title:"场长"}],this.active=3):6===e.flowCompeleted?(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName},{title:"部门负责人",date:e.departmentdate,name:e.departmentUser},{title:"场长",date:e.fielddate,name:e.fieldName}],this.active=4):7===e.flowCompeleted&&(this.activeList=[{title:"委外验收",date:e.createTime,name:e.applicantName},{title:"供应处长",date:e.equipmentdate,name:e.equipmentName},{title:"部门负责人",date:e.departmentdate,name:e.departmentUser},{title:"场长",date:e.fielddate,name:e.fieldName,status:"error",reason:e.workflowNote}],this.active=4)},getAddContList:function(){var e=this;Object(n["e"])(this.getAddContListParam).then((function(t){e.listAddCont=t.data.list,e.listLoading=!1}))},form_edit:function(e){var t=this;this.reset_create(),console.log("编辑",e),this.getDepartParam2.parammaps.pastureId=e.pastureId,this.get_depart_list2(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getAddContListParam.parammaps.bigId=e.outsourcingId,this.getAddContList(),0==e.applyType&&this.getCollectionSpareParts(),1==e.applyType&&(this.getPramAcceptanceList.parammaps.bigId=e.id,this.getListAdd2())},getListAdd:function(){var e=this;Object(n["e"])(this.getPramPartApplyListBybig).then((function(t){e.listAdd=t.data.list,e.listLoading=!1}))},getListAdd2:function(){var e=this;Object(n["e"])(this.getPramAcceptanceList).then((function(t){e.listAdd2=t.data.list,e.listLoading=!1}))},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){var e=this;if(0==this.createTemp.applyType)var t={common:{returnmap:"0"},data:[{name:"editBigacceptanceDate",type:"e",parammaps:{id:this.createTemp.id,date:this.createTemp.date}},{name:"updateBigacceptanceFlowCompeleted",type:"e",parammaps:{id:this.createTemp.id}}]};if(1==this.createTemp.applyType){if(0==this.listAdd2.length)return this.$notify({title:"失败",message:"备件必选!",type:"warning",duration:2e3}),!1;this.listAdd2.map((function(e,t){return e.partId="0"})),this.listAdd2.map((function(e,t){return e.brandId="0"})),this.listAdd2.map((function(e,t){return e.providerId="0"}));t={common:{returnmap:"0"},data:[{name:"editBigacceptanceDate",type:"e",parammaps:{id:this.createTemp.id,date:this.createTemp.date}},{name:"insertSpotList",type:"e",resultmaps:{list:this.listAdd2},children:[{name:"editAcceptance",type:"e",parammaps:{bigId:"@insertBigacceptance.LastInsertId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",unit:"@insertSpotList.unit",price:"@insertSpotList.price",remark:"@insertSpotList.remark",amount:"@insertSpotList.amount"}}]},{name:"updateBigacceptanceFlowCompeleted",type:"e",parammaps:{id:this.createTemp.id}}]}}Object(n["c"])(t).then((function(a){console.log("编辑保存发送参数",t),"fail"===a.msg?e.$notify({title:"保存失败",message:a.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data1(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_delete:function(e){var t=this;console.log("点击了删除",e),m["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"deleteBigacceptance",type:"e",parammaps:{id:e.id}}]};Object(n["c"])(a).then((function(e){t.get_table_data1(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},change_statue:function(e){this.statueReason=2==e},form_examine:function(e){console.log("点击了供应处长审核",e),void 0==e?(this.examineTemp=this.createTemp,this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save:function(){var e=this;console.log("点击了供应处长审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="3"):(e.examineTemp.status=0,e.examineTemp.flowCompeleted="2"),e.examineTemp.empid=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"EditBigacceptanceEquipment",type:"e",parammaps:e.examineTemp}]};Object(n["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine2:function(e){console.log("点击了部门负责人审核",e),void 0==e?(this.examineTemp=this.createTemp,this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save2:function(){var e=this;console.log("点击了部门负责人审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="5"):(e.examineTemp.status=0,e.examineTemp.flowCompeleted="4"),e.examineTemp.empid=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"EditBigacceptanceDepartment",type:"e",parammaps:e.examineTemp}]};Object(n["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))},form_examine3:function(e){console.log("点击了场长 审核",e),void 0==e?(this.examineTemp=this.createTemp,this.$set(this.createTemp,"status",1),this.$set(this.createTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"status",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},form_examine_save3:function(){var e=this;console.log("点击了场长审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){if(t){e.statueReason?(e.examineTemp.status=2,e.examineTemp.flowCompeleted="7"):(e.examineTemp.status=1,e.examineTemp.flowCompeleted="6"),e.examineTemp.empid=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"EditBigacceptanceField",type:"e",parammaps:e.examineTemp}]};Object(n["c"])(a).then((function(t){console.log("审核确认发送参数",a),"fail"!==t.msg?(e.get_table_data1(),e.dialogFormVisible_Examine=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):failproccess(t,e.$notify)}))}}))}}},u=d,h=(a("8643"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"f51d6bdc",null);t["default"]=g.exports},c5151:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件到货及时率",use:"icon-备件到货及时率-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件到货及时率"><defs><style type="text/css"></style></defs><path d="M625.92 995.2c-9.6 2.56-19.2 4.48-29.44 6.4-10.24 1.92-21.12-0.64-30.08-6.4-8.32-5.76-14.08-15.36-16-25.6-3.84-21.76 10.24-42.24 31.36-46.72 8.32-1.28 16.64-3.2 24.32-5.12 21.12-5.12 42.88 7.68 48 28.8 5.76 21.76-7.04 43.52-28.16 48.64z m323.2-585.6c-12.16 3.84-25.6 1.92-35.2-5.12-6.4-4.48-12.16-11.52-14.72-19.84-2.56-8.32-5.76-16-8.32-23.68-8.32-20.48 1.92-43.52 21.76-51.84 20.48-8.32 43.52 1.92 51.2 22.4 3.84 9.6 7.04 18.56 10.24 28.16 6.4 20.48-4.48 42.88-24.96 49.92zM778.88 928c-8.32 5.76-16.64 10.88-25.6 16-14.08 8.32-30.08 7.04-42.24-1.92-4.48-3.2-8.32-7.68-11.52-12.8-10.88-19.2-4.48-43.52 14.72-54.4 7.04-4.48 14.08-8.32 21.12-13.44 17.92-12.16 42.88-7.04 54.4 11.52 12.16 17.92 7.04 42.88-10.88 55.04z m179.2-363.52c-7.68 0-15.36-2.56-21.76-7.04-10.88-7.68-17.28-20.48-16.64-33.28v-25.6c-0.64-21.76 16-40.32 37.76-41.6 21.76-0.64 40.32 16 40.96 38.4 0.64 10.24 0.64 20.48 0 30.08 0 22.4-17.92 39.68-40.32 39.04z m-57.6 247.68c-5.76 8.32-12.16 16-18.56 23.68-13.44 16-36.48 18.56-52.48 7.04-1.28-0.64-1.92-1.28-3.2-2.56-16.64-14.08-18.56-39.68-4.48-56.32 5.12-6.4 10.88-12.8 15.36-19.84 13.44-17.28 37.76-21.12 55.04-7.68 17.92 13.44 21.12 38.4 8.32 55.68z m76.16-149.76l-9.6 28.8c-7.68 20.48-30.72 30.72-51.2 23.04-3.2-1.28-5.76-2.56-8.96-4.48-14.72-10.24-20.48-29.44-14.08-46.72 3.2-7.68 5.76-16 8.32-23.68 6.4-21.12 28.8-32.64 49.28-26.24 21.12 5.76 32.64 28.16 26.24 49.28zM851.2 222.08l-134.4 12.16c-14.72 1.28-20.48-7.68-11.52-20.48l30.72-44.8c-143.36-96.64-327.04-90.24-462.72 3.84-0.64 0-0.64 0.64-1.28 1.28-38.4 26.88-72.96 60.8-101.12 101.76-131.2 187.52-86.4 447.36 99.84 579.2 12.8 8.96 25.6 17.28 39.04 24.96 7.04 3.84 14.72 7.68 22.4 11.52 0.64 0 0.64 0.64 1.28 0.64 32 15.36 65.92 26.24 101.12 32.64 21.76 3.84 35.84 24.32 32 46.08-3.84 21.76-24.32 35.84-46.08 32-71.04-12.8-136.96-40.32-195.84-82.56-22.4-16-43.52-33.92-62.72-53.12l-0.64-0.64C88.96 794.24 40.96 702.08 23.68 599.68c-1.92-10.24-3.2-20.48-4.48-30.08v-1.92c-1.28-10.24-1.92-19.84-2.56-30.08v-1.28c-4.48-102.4 22.4-202.88 78.08-289.28 0.64-0.64 0.64-1.28 1.28-1.92 3.2-5.12 7.04-10.24 10.24-15.36 1.92-3.2 4.48-6.4 6.4-8.96l1.92-1.92c67.2-91.52 161.92-155.52 270.08-183.68 0.64 0 0.64 0 1.28-0.64 12.16-3.2 24.96-5.76 37.12-8.32 125.44-21.76 252.16 5.12 357.12 76.8l30.72-44.8c8.32-12.8 19.2-10.88 23.04 3.84l35.84 130.56c5.12 15.36-3.84 28.16-18.56 29.44z m-65.28 462.08c-5.76 10.88-16.64 17.28-28.16 17.28-5.12 0-10.24-1.28-14.72-3.84L451.2 546.56V225.28c0-17.92 14.08-32 32-32s32 14.72 32 32v281.6l256.64 133.76c16 8.32 21.76 27.52 14.08 43.52z m0 0" p-id="30155" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},c653:function(e,t,a){var s={"./app.js":"d9cd","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=r(e);return a(t)}function r(e){var t=s[e];if(!(t+1)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t}i.keys=function(){return Object.keys(s)},i.resolve=r,e.exports=i,i.id="c653"},c666:function(e,t,a){e.exports=a.p+"static/img/cow.3495de2a.jpg"},c6e2:function(e,t,a){"use strict";a("5849")},c6f7:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=a("313e"),n=a.n(r),l=a("9c11");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},contrastData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{contrastData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.contrastData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lastData,a=e.thisData,s=e.text,i=(e.thisMinData,e.days);this.chart.setOption({title:{text:s+"月用电量同期对比",subtext:""},tooltip:{trigger:"axis"},legend:{data:["去年","今年"]},toolbox:{show:!0,feature:{dataZoom:{yAxisIndex:"none"},dataView:{readOnly:!1},magicType:{type:["line","bar"]},restore:{},saveAsImage:{}}},xAxis:{type:"category",name:"日期",boundaryGap:!1,data:i},yAxis:{type:"value",name:"千瓦",axisLabel:{formatter:"{value}"}},grid:[{top:"25%",left:"15%",bottom:"5%"}],series:[{name:"去年",type:"line",data:t,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"}]}},{name:"今年",type:"line",data:a,markPoint:{data:[]},markLine:{data:[{type:"average",name:"平均值"},[{symbol:"none",x:"90%",yAxis:"max"},{symbol:"circle",label:{normal:{position:"start",formatter:"最大值"}},type:"max",name:"最高点"}]]}}]})}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},c727:function(e,t,a){"use strict";a("f382")},c81c:function(e,t,a){"use strict";a("526f")},c90b:function(e,t,a){},c954:function(e,t,a){"use strict";a("31db")},c964:function(e,t,a){},c9ac:function(e,t,a){"use strict";a("1f13")},c9ed:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-file3",use:"icon-file3-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file3"><defs><style type="text/css"></style></defs><path d="M848.8576 199.1936H415.7568c0-26.5728-21.5424-48.128-48.128-48.128H175.1424c-26.5728 0-48.128 21.5424-48.128 48.128V343.5648c0 26.5984 21.5424 48.1408 48.128 48.1408h673.728c26.5728 0 48.128-21.5424 48.128-48.1408v-96.2432c-0.0128-26.5856-21.5552-48.128-48.1408-48.128z" fill="#CCA352" p-id="8967" /><path d="M800.7424 247.3088H223.2576c-26.5728 0-48.128 21.5424-48.128 48.128v48.128c0 26.5984 21.5424 48.1408 48.128 48.1408h577.472c26.5728 0 48.128-21.5424 48.128-48.1408v-48.128c0-26.5728-21.5424-48.128-48.1152-48.128z" fill="#FFFFFF" p-id="8968" /><path d="M848.8576 295.4368H175.1424c-26.5728 0-48.128 21.5424-48.128 48.128v481.2544c0 26.5472 21.5424 48.128 48.128 48.128h673.728c26.5728 0 48.128-21.568 48.128-48.128V343.552c-0.0128-26.5728-21.5552-48.1152-48.1408-48.1152z" fill="#FFCC66" p-id="8969" /></symbol>'});n.a.add(l);t["default"]=l},ca68:function(e,t,a){},cb0e:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-维修",use:"icon-维修-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-维修"><defs><style type="text/css"></style></defs><path d="M800.950233 1023.999665a222.504796 222.504796 0 0 1-157.818785-65.272542L471.780551 787.627596a1.214957 1.214957 0 0 0-1.089272-0.335161A396.955929 396.955929 0 0 1 18.475732 277.848203a50.986318 50.986318 0 0 1 25.137051-30.876678 48.305033 48.305033 0 0 1 55.762358 9.007444l216.471904 216.471903a1.214957 1.214957 0 0 0 1.173062 0.335161l122.124173-32.887642a1.214957 1.214957 0 0 0 0.879797-0.879796l32.720061-122.124173a1.214957 1.214957 0 0 0-0.335161-1.173062L257.110136 100.548204a50.274102 50.274102 0 0 1-15.291706-35.485137 48.346928 48.346928 0 0 1 33.516068-45.791328 396.955929 396.955929 0 0 1 511.748462 451.41954 1.214957 1.214957 0 0 0 0.33516 1.089272l171.309003 171.309002a223.091327 223.091327 0 0 1-157.818785 380.910112z m-313.710396-338.428496a48.305033 48.305033 0 0 1 36.448724 16.758034c2.346125 2.723181 4.189508 4.817935 6.074787 6.619423l181.657088 181.657089a126.606947 126.606947 0 0 0 179.059593-179.059593l-181.657088-181.657088c-1.633908-1.633908-3.477292-3.351607-5.781521-5.362571a50.274102 50.274102 0 0 1-15.626867-50.274102 300.555339 300.555339 0 0 0-294.564342-377.6004 1.256853 1.256853 0 0 0-0.837902 2.136649l168.962878 168.962878a48.305033 48.305033 0 0 1 12.568525 46.629229l-47.509026 177.383789a48.305033 48.305033 0 0 1-34.144494 34.144495L314.213137 573.459922a48.305033 48.305033 0 0 1-46.62923-12.568526L98.78861 391.970414a1.256853 1.256853 0 0 0-2.136649 0.837902A300.555339 300.555339 0 0 0 474.755102 687.079392a48.263138 48.263138 0 0 1 12.44284-1.508223z" p-id="5120" /></symbol>'});n.a.add(l);t["default"]=l},cba3:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-首页",use:"icon-首页-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-首页"><defs><style type="text/css"></style></defs><path d="M960.856566 463.515152L586.294949 88.824242c-20.428283-20.428283-47.450505-31.547475-76.282828-31.547474s-55.854545 11.248485-76.282828 31.547474L63.046465 459.636364c-9.050505 9.050505-9.050505 23.789899 0 32.969697 9.050505 9.050505 23.789899 9.050505 32.969697 0l38.141414-38.141415v369.519192c0 38.141414 14.610101 73.955556 41.115151 100.848485 26.634343 27.022222 62.319192 42.020202 100.460606 42.020202h469.333334c79.127273 0 143.515152-64.129293 143.515151-142.868687V456.921212l39.434344 39.434344c4.525253 4.525253 10.472727 6.852525 16.420202 6.852525s11.894949-2.327273 16.420202-6.852525c9.179798-9.050505 9.179798-23.789899 0-32.840404zM621.20404 920.177778h-218.50505v-250.828283c0-9.309091 7.49899-16.808081 16.808081-16.808081h184.888889c9.309091 0 16.808081 7.49899 16.80808 16.808081v250.828283z m220.832324-96.323233c0 53.139394-43.442424 96.323232-96.969697 96.323233h-77.317172v-250.828283c0-34.909091-28.444444-63.353535-63.353535-63.353535h-184.888889c-34.909091 0-63.353535 28.444444-63.353536 63.353535v250.828283h-80.549495c-52.363636 0-95.030303-43.183838-95.030303-96.323233v-415.030303H179.668687l287.030303-287.030303c11.636364-11.636364 27.022222-17.971717 43.313131-17.971717s31.806061 6.335354 43.313132 17.971717l288.581818 288.581819v413.478787z" fill="#ffffff" p-id="9536" /></symbol>'});n.a.add(l);t["default"]=l},cbb7:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"用户名"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isUserAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isUserRole?a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleRole(s)}}},[e._v(" 角色 ")]):e._e(),e._v(" "),e.isUserEdit?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),e.isUserResetpassword?a("el-button",{staticStyle:{padding:"7px 5px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleResetPassword(s)}}},[e._v(" 重置密码 ")]):e._e(),e._v(" "),"已删"!==s.status&&e.isUserDelete?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"80%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.dataform.selectedRole,callback:function(t){e.$set(e.dataform,"selectedRole",t)},expression:"dataform.selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["role"],visible:e.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogRoleVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateRole()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("ac6a"),a("55dd"),a("3b2b"),a("6724")),n=a("61f7"),l=a("2934"),o=a("333d"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParam2:{},repairmanTypeList:[],requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getEmpall",offset:0,pagecount:0,params:[]},{name:"getMaintenanceTypeList",offset:0,pagecount:0,params:[]}],requestFilterParams:{returntype:"Map",parammaps:{}},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:[]},dataform:{empname:"",position:"",username:"",fullname:"",empid:"",id:"",sort:"",enable:1,maintenancePerson:1,keeper:1,maintenanceTypeId:"",selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],viedoAccountList:[{deviceId:"apptest2",uId:"PC",pwd:"mcs8@666"}],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),empCode:"",empname:""}},updateParam:{name:"getMaintenanceTypeByUser",offset:1,pagecount:0,returntype:"list",params:[]},rules:{empid:[{required:!0,message:"用户名必填",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名必填",trigger:"change"}],empname:[{type:"string",required:!0,message:"职工名必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},disabled:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{get_auto_buttons:function(){var e="console:user:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isUserAdd=t;var a="console:user:role",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isUserRole=s;var i="console:user:edit",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isUserEdit=r;var n="console:user:resetpassword",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isUserResetpassword=o;var p=Object(l["v"])(this.$store.state.user.buttons,p);this.isUserDelete=p},tableSort:function(e){Object(d["f"])(e,this.list)},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["f"])(this.requestParams).then((function(t){e.rolelist=t.data.getRoleall.list,e.emplist=t.data.getEmpall.list,e.repairmanTypeList=t.data.getMaintenanceTypeList.list,Object(l["e"])(e.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),1e3)}))}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetRequestParam:function(){this.dataform={username:"",fullname:"",empid:"",id:"",empname:"",position:"",sort:"",enable:1,selectedRole:"",selectedRole2:"",maintenancePerson:1,keeper:1,maintenanceTypeId:""}},form_add:function(){this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisibleAdd=!0},changeMaintenanceWorker:function(e){1==e?this.disabled=!1:(this.disabled=!0,this.dataform.maintenanceTypeId=[])},add_dialog_save:function(){for(var e=this,t=[],a=0;a<this.dataform.selectedRole.length;a++){var s={};this.$set(s,"role_id",this.dataform.selectedRole[a]),t.push(s)}this.dataform.selectedRole2=t;for(var i=[],r=0;r<this.dataform.maintenanceTypeId.length;r++){var n={};this.$set(n,"maintenanceTypeId",this.dataform.maintenanceTypeId[r]),i.push(n)}this.dataform.maintenanceTypeId=i,this.$refs["dataForm"].validate((function(t){if(t){if(e.dataform.selectedRole2.length<=0)return e.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:e.dataform.username,empid:e.dataform.empid,sort:"0",enable:e.dataform.enable,maintenancePerson:e.dataform.maintenancePerson,keeper:e.dataform.keeper}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.dataform.selectedRole2}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},e.postDataPramas.data[2]={name:"insertSpotList1",resultmaps:{list:e.dataform.maintenanceTypeId}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertUserMaintenance",type:"e",parammaps:{user_id:"@createUser.LastInsertId",maintenance_id:"@insertSpotList1.maintenanceTypeId"}},console.log("新增保存发送参数",e.postDataPramas),Object(l["c"])(e.postDataPramas).then((function(t){if(console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}else{e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisibleAdd=!1;var s=c.a.get("pastureid");console.log(pastureid);var i=e.dataform.deviceId,r=e.dataform.uId,n=e.dataform.pwd;console.log("pastureId",s);var o={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:i}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:r,deviceId:i,pwd:n}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",o),Object(l["c"])(o).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.dialogFormVisibleAdd=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))}}))},handleRole:function(e){var t=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogRoleVisible=!0,Object(l["e"])(this.requestParam).then((function(e){t.selectedRole=e.data.lists.role_id}))},updateRole:function(){var e=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(l["u"])(this.UpdateDataRelationParam).then((function(){e.dialogRoleVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data()}))},form_edit:function(e){var t=this;1==e.maintenancePerson?(this.updateParam.params[0]=e.id,Object(l["e"])(this.updateParam).then((function(a){console.log(a.data),null!==a.data.lists?t.$set(e,"maintenanceTypeId",a.data.lists.maintenance_id):t.$set(e,"maintenanceTypeId",[]),t.dialogStatus="update",t.dialogFormVisible=!0,t.disabled=!1}))):(this.disabled=!0,this.dialogStatus="update",this.dialogFormVisible=!0,this.$set(e,"maintenanceTypeId",[])),this.dataform=Object.assign(e,{}),this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="updateUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,e.requestParam.params[4]=e.dataform.maintenancePerson,e.requestParam.params[5]=e.dataform.keeper,e.requestParam.params[6]=e.dataform.id,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.requestParam2={},e.requestParam2.name="user_mainthenance",e.requestParam2.dataname="user_id",e.requestParam2.datavalue=e.dataform.id,e.requestParam2.valuename="maintenance_id",e.requestParam2.values=e.dataform.maintenanceTypeId,Object(l["u"])(e.requestParam2).then((function(t){if("fail"!==t.msg){var a={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:e.dataform.deviceId}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:e.dataform.uId,deviceId:e.dataform.deviceId,pwd:e.dataform.pwd}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",a),Object(l["c"])(a).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.get_table_data(),e.dialogFormVisible=!1;else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=t.username,this.requestParam.params[1]=t.empid,this.requestParam.params[2]=t.sort,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(e,t){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=e,Object(l["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNameSelect:function(e){this.dataform.username=e.empCode,this.dataform.empid=e.id,this.$set(this.dataform,"empname",e.empname),this.$set(this.dataform,"position",e.position)},handleResetPassword:function(e){var t=this;p["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))},change_deviceId:function(e){console.log(e);var t=e,a="",s="",i=this.viedoAccountList;i.forEach((function(e){e.deviceId==t&&(s=e.uId,a=e.pwd)})),this.dataform.uId=s,this.dataform.pwd=a,this.dataform.deviceId=t}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},cbc0:function(e,t,a){"use strict";a("9f9f")},cbe0:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.isDistributionSheet?a("el-tab-pane",{attrs:{label:"采购配单",name:"first"}},[a("div",{staticClass:"purchaseDistributionSheet"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"部门"},on:{change:e.change_dept},model:{value:e.getdataListParm1.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm1.parammaps,"departmentId",t)},expression:"getdataListParm1.parammaps.departmentId"}},e._l(e.deptNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list1,border:"",fit:"","row-style":e.tableRowStyle,"cell-style":e.tableCellStyle,"highlight-current-row":""},on:{"cell-click":e.cellClick,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!1,3419157293)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)})],1),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-top":"10px"},attrs:{disabled:e.confirmationSheetDisabled,type:"primary"},on:{click:function(t){return e.confirmationSheet()}}},[e._v("确认配单")]),e._v(" "),a("el-dialog",{staticStyle:{width:"100%",margin:"0 auto",overflow:"auto"},attrs:{title:e.textMap[e.dialogStatusConfirmation],visible:e.dialogFormVisibleConfirmation,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleConfirmation=t}}},[a("div",{staticClass:"app-contentConfirmationSheet"},[a("el-form",{ref:"temp1",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{rules:e.rules,model:e.temp1,"label-position":"right","label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("el-input",{ref:"matchCode",attrs:{disabled:""},model:{value:e.temp1.matchCode,callback:function(t){e.$set(e.temp1,"matchCode",t)},expression:"temp1.matchCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"提交日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.temp1.buyerDate,callback:function(t){e.$set(e.temp1,"buyerDate",t)},expression:"temp1.buyerDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"buyerPerson"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"采购员"},model:{value:e.temp1.buyerPerson,callback:function(t){e.$set(e.temp1,"buyerPerson",t)},expression:"temp1.buyerPerson"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),e._l(e.listConfirmationSheet,(function(t,s){return a("div",{key:s,staticClass:"app-content"},[a("div",{staticClass:"title"},[a("div",[a("b",[e._v("采购单号:")]),e._v(" "),a("span",[e._v(e._s(t.orderNumber))])]),e._v(" "),a("div",[a("b",[e._v("供应商:")]),e._v(" "),a("span",[e._v(e._s(t.providerName))])])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading1,expression:"listLoading1"}],key:e.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"97%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum1-1)*e.pageSize1+1))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",align:"center","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"合计采购数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.sumPrice=t.row.price*parseFloat(t.row.amount))))])]}}],null,!0)})],1),e._v(" "),a("div",{ref:"total",refInFor:!0,staticClass:"total"},[e._v("\n 合计:\n "),a("span",[e._v(e._s(t.Sum))])])],1)})),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.confirmationSheetData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleConfirmation=!1,e.get_table_data1()}}},[e._v("取消")])],1)],2)])],1)]):e._e(),e._v(" "),e.isDistributionManagement?a("el-tab-pane",{attrs:{label:"配单管理",name:"fouth"}},[a("div",{staticClass:"DistributionManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm4.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm4.parammaps,"pastureName",t)},expression:"getdataListParm4.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"配单号",clearable:""},model:{value:e.getdataListParm4.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm4.parammaps,"matchCode",t)},expression:"getdataListParm4.parammaps.matchCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm4.parammaps.statue,callback:function(t){e.$set(e.getdataListParm4.parammaps,"statue",t)},expression:"getdataListParm4.parammaps.statue"}},e._l(e.status2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime4",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm4.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm4.parammaps,"inputDatetime",t)},expression:"getdataListParm4.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search4}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading4,expression:"listLoading4"}],key:e.tableKey4,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}],null,!1,1138521997)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}],null,!1,3666326552)}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}],null,!1,3226262841)}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"dealTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"cou",label:"采购单数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cou))])]}}],null,!1,3322093407)}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see4(s)}}},[e._v("查看")]):e._e(),e._v(" "),0===parseFloat(s.statue)&&e.isExamineDM?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),2===parseFloat(s.statue)?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")])]}}],null,!1,3682640877)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total4>0,expression:"total4>0"}],attrs:{total:e.total4,page:e.getdataListParm4.offset,limit:e.getdataListParm4.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm4,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm4,"pagecount",t)},pagination:e.get_table_data4}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee4],visible:e.dialogFormVisibleSee4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee4=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp4",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.temp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.temp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee4,expression:"listLoadingSee4"}],key:e.tableKeySee4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"60px",align:"center"}})],1),e._v(" "),a("el-form",{ref:"temp4",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.temp4,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isExamineDM&&0==e.temp4.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusUpdate4],width:"90%",visible:e.dialogFormVisibleUpdate4,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleUpdate4=t}}},[a("div",{staticClass:"app-contentUpdate"},[a("el-form",{ref:"updateTemp4",staticStyle:{width:"80%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.updateTemp4,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单号:",prop:"matchCode"}},[a("span",[e._v(e._s(e.updateTemp4.matchCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.updateTemp4.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"配单日期:",prop:"dealTime"}},[a("span",[e._v(e._s(e.updateTemp4.dealTime))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpdate4,expression:"listLoadingUpdate4"}],key:e.tableKeyUpdate4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpdate4,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}],null,!1,3662963904)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}],null,!1,3221906849)}),e._v(" "),a("el-table-column",{attrs:{label:"采购数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{width:"80px","margin-top":"25px",height:"10px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,1194304665)}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum2")(parseFloat(t.row.price)*parseFloat(t.row.amount))))])]}}],null,!1,2498820582)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2387304243)})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleUpdate4=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus_Examine],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus_Examine,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)]):e._e(),e._v(" "),a("el-tab-pane",{attrs:{label:"采购单管理",name:"second"}},[a("div",{staticClass:"purchaseOrderManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"采购单号",clearable:""},model:{value:e.getdataListParm2.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"buyeCode",t)},expression:"getdataListParm2.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"单据状态"},model:{value:e.getdataListParm2.parammaps.statu,callback:function(t){e.$set(e.getdataListParm2.parammaps,"statu",t)},expression:"getdataListParm2.parammaps.statu"}},e._l(e.status,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm2.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerName",t)},expression:"getdataListParm2.parammaps.providerName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始提交日期","end-placeholder":"结束提交日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),e.isPurchaseSap?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.sapUpload}},[e._v("SAP上传")]):e._e(),e._v(" "),e.isPurchaseSrm?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.srmUpload}},[e._v("SRM上传")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort,"selection-change":e.change_table_selection}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkboxInit,align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近到货日期",sortable:"",prop:"DoneDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"80px",align:"center",formatter:e.statu}}),e._v(" "),a("el-table-column",{attrs:{prop:"sapNumber",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sapNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sapstatus",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.sapstatus,expression:"scope.row.sapstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.sapstatus,expression:"scope.row.sapstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.sapstatus,expression:"scope.row.sapstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"srmstatus",label:"srm上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.srmstatus,expression:"scope.row.srmstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.srmstatus,expression:"scope.row.srmstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.srmstatus,expression:"scope.row.srmstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"srm错误",prop:"srmError","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isPurchaseSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see2(s)}}},[e._v("查看")]):e._e(),e._v(" "),2!==s.statu&&4!==s.statu||!e.isPurchaseClose?e.isPurchaseClose?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")]):e._e():a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose2(s)}}},[e._v("关闭")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee2],visible:e.dialogFormVisibleSee2,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee2=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp2",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(e._s(e.temp2.providerName))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp2.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("span",[e._v(e._s(e.temp2.buyerDate))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee2,expression:"listLoadingSee2"}],key:e.tableKeySee2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.SGremark))])]}}])})],1),e._v(" "),a("div",{staticClass:"sum",staticStyle:{right:"30px",position:"absolute",bottom:"90px"}},[a("b",[e._v("总计:"+e._s(e.temp2.sumPrices)+"元")])]),e._v(" "),a("div",{staticClass:"stuts",staticStyle:{left:"30px",position:"absolute",bottom:"70px"}},[a("b",[e._v("单据状态:"+e._s(e.temp2.statu))]),e._v(" "),e.isStatu?a("b",[e._v("关闭原因:"+e._s(e.temp2.note))]):e._e(),e._v(" "),e.isExtensionDays?a("div",[e._v("延期天数:"+e._s(e.temp2.extensionDays))]):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee2=!1,e.get_table_data2()}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"70%",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatusClose],visible:e.dialogFormVisibleClose,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleClose=t}}},[a("div",{staticClass:"app-contentClose"},[a("el-form",{ref:"temp2",staticStyle:{width:"300px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.temp2,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"orderNo"}},[a("span",[e._v(e._s(e.temp2.buyeCode))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"note"}},[a("el-input",{ref:"note",attrs:{type:"textarea",placeholder:"请输入关闭该采购单原因"},model:{value:e.temp2.note,callback:function(t){e.$set(e.temp2,"note",t)},expression:"temp2.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleClose=!1,e.get_table_data2()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.closeData()}}},[e._v("确认关闭")])],1)],1)])],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"采购明细",name:"third"}},[a("div",{staticClass:"procurementDetails"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm3.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"pastureName",t)},expression:"getdataListParm3.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm3.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partCode",t)},expression:"getdataListParm3.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm3.parammaps.partName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"partName",t)},expression:"getdataListParm3.parammaps.partName"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm3.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm3.parammaps,"providerName",t)},expression:"getdataListParm3.parammaps.providerName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"配单号"},model:{value:e.getdataListParm3.parammaps.matchCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"matchCode",t)},expression:"getdataListParm3.parammaps.matchCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"采购单号"},model:{value:e.getdataListParm3.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm3.parammaps,"buyeCode",t)},expression:"getdataListParm3.parammaps.buyeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"到货情况"},model:{value:e.getdataListParm3.parammaps.isStorage,callback:function(t){e.$set(e.getdataListParm3.parammaps,"isStorage",t)},expression:"getdataListParm3.parammaps.isStorage"}},e._l(e.isStorages,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"270px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm3.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm3.parammaps,"inputDatetime",t)},expression:"getdataListParm3.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search3}},[e._v("搜索")]),e._v(" "),e.isPurchaseExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload3}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading3,expression:"listLoading3"}],key:e.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list3,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum3-1)*e.pageSize3+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.matchCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumAmount",label:"申购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"receiveAmount",label:"入库数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配单日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total3>=0,expression:"total3>=0"}],attrs:{total:e.total3,page:e.getdataListParm3.offset,limit:e.getdataListParm3.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm3,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm3,"pagecount",t)},pagination:e.get_table_data3}})],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"采购退货",name:"fifth"}},[a("div",{staticClass:"procurementDetails"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm5.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm5.parammaps,"pastureName",t)},expression:"getdataListParm5.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"采购单号"},model:{value:e.getdataListParm5.parammaps.buyeCode,callback:function(t){e.$set(e.getdataListParm5.parammaps,"buyeCode",t)},expression:"getdataListParm5.parammaps.buyeCode"}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{"value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm5.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm5.parammaps,"providerName",t)},expression:"getdataListParm5.parammaps.providerName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search5}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add5}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading5,expression:"listLoading5"}],key:e.tableKey5,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list5,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum3-1)*e.pageSize3+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购单号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buyeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"采购员","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交日期",sortable:"",prop:"buyerDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单据状态","min-width":"80px",align:"center",formatter:e.statu}}),e._v(" "),a("el-table-column",{attrs:{prop:"sapNumber",label:"sap编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sapNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sapstatus",label:"sap上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.sapstatus,expression:"scope.row.sapstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.sapstatus,expression:"scope.row.sapstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.sapstatus,expression:"scope.row.sapstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"srmstatus",label:"srm上传状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.row.srmstatus,expression:"scope.row.srmstatus == 1"}]},[e._v("上传失败")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:-1==t.row.srmstatus,expression:"scope.row.srmstatus == -1"}]},[e._v("未上传")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.row.srmstatus,expression:"scope.row.srmstatus == 0"}]},[e._v("上传成功")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see5(s)}}},[e._v("查看")]),e._v(" "),0===s.statu?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose5(s)}}},[e._v("关闭")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total5>=0,expression:"total5>=0"}],attrs:{total:e.total5,page:e.getdataListParm5.offset,limit:e.getdataListParm5.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm5,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm5,"pagecount",t)},pagination:e.get_table_data5}})],1)])],1),e._v(" "),a("el-dialog",{attrs:{title:"查看详情",visible:e.dialogFormVisibleSee5,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee5=t}}},[a("div",{staticClass:"app-contentSee"},[a("el-form",{ref:"temp5",staticStyle:{width:"800px","margin-bottom":"30px"},attrs:{model:e.temp5,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("span",[e._v(e._s(e.temp5.buyeCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(e._s(e.temp5.providerName))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"采购员:",prop:"empname"}},[a("span",[e._v(e._s(e.temp5.empname))])])],1),e._v(" "),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"提交日期:",prop:"buyerDate"}},[a("span",[e._v(e._s(e.temp5.buyerDate))])])],1)],1)],1),e._v(" "),a("el-table",{staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"100px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee5,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"price",label:"单价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"采购数量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"sumPrice",label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"SGremark",label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.SGremark))])]}}])})],1),e._v(" "),a("div",{staticClass:"sum",staticStyle:{right:"30px",position:"absolute",bottom:"90px"}},[a("b",[e._v("总计:"+e._s(e.temp5.sumPrices)+"元")])]),e._v(" "),a("div",{staticClass:"stuts",staticStyle:{left:"30px",position:"absolute",bottom:"70px"}},[a("b",[e._v("单据状态:"+e._s(e.temp5.statu))]),e._v(" "),e.isStatu?a("b",[e._v("关闭原因:"+e._s(e.temp5.note))]):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee5=!1,e.get_table_data5()}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{staticStyle:{width:"70%",margin:"0 auto"},attrs:{title:"关闭提示",visible:e.dialogFormVisibleClose5,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleClose5=t}}},[a("div",{staticClass:"app-contentClose"},[a("el-form",{ref:"temp5",staticStyle:{width:"300px","margin-bottom":"30px"},attrs:{rules:e.rules55,model:e.temp5,"label-position":"right","label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"orderNo"}},[a("span",[e._v(e._s(e.temp5.buyeCode))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"note"}},[a("el-input",{ref:"note",attrs:{type:"textarea",placeholder:"请输入关闭该采购单原因"},model:{value:e.temp5.note,callback:function(t){e.$set(e.temp5,"note",t)},expression:"temp5.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleClose5=!1,e.get_table_data5()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.closeData5()}}},[e._v("确认关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:"采购退货",visible:e.dialogFormVisible5,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible5=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp5",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules5,model:e.createTemp5,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"采购单号:",prop:"buyeCode"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"采购单号"},model:{value:e.createTemp5.buyeCode,callback:function(t){e.$set(e.createTemp5,"buyeCode",t)},expression:"createTemp5.buyeCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"供应商"},on:{change:e.changeProvider5},model:{value:e.createTemp5.providerId,callback:function(t){e.$set(e.createTemp5,"providerId",t)},expression:"createTemp5.providerId"}},e._l(e.findAllProvider5,(function(e){return a("el-option",{key:e.id,attrs:{clearable:"",label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},model:{value:e.createTemp5.pastureId,callback:function(t){e.$set(e.createTemp5,"pastureId",t)},expression:"createTemp5.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp5.employeId,callback:function(t){e.$set(e.createTemp5,"employeId",t)},expression:"createTemp5.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:15}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch5,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart5},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp5.partCode,callback:function(t){e.$set(e.createTemp5,"partCode",t)},expression:"createTemp5.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd5,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退货数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete5(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save5()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible5=!1,e.get_table_data5()}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("3b2b"),a("456d"),a("4f7f"),a("5df3"),a("1c4c"),a("ac6a"),a("7f7f"),a("ade3")),n=(a("7514"),a("c5f6"),a("2934")),l=a("6724"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d=a("ed08"),u={name:"Purchase",components:{Pagination:o["a"]},directives:{waves:l["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(3)},keepTwoNum2:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{isSap:1,isSrm:1,selectList:[],isPurchaseSap:[],isPurchaseSrm:[],isPurchaseSee:[],isPurchaseClose:[],isPurchaseExport:[],isDistributionSheet:[],isDistributionManagement:[],isExamineDM:[],stripe:!0,activeName:"first",listLoading1:!1,tableKey1:0,list1:[],confirmationSheetDisabled:!1,isokDisable:!1,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},temp:{},total:0,total1:0,listParmConfirmation:[],listConfirmationSheet:null,getParmPurchaseOrderNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"CG"}},postDataPramas:{},requestProvider:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoading2:!1,tableKey2:0,list2:[],status2:[{id:"0",name:"审核中"},{id:"1",name:"审核通过"},{id:"2",name:"审核驳回"}],status:[{id:"0",name:"未到货"},{id:"1",name:"部分到货"},{id:"2",name:"按时到货"},{id:"3",name:"已延期"},{id:"4",name:"已关闭"},{id:"5",name:"部分到货-延期"},{id:"6",name:"全部到货-延期"}],isStorages:[{id:"0",name:"未入库"},{id:"1",name:"已入库"}],isStatu:!1,listLoadingSee2:!1,tableKeySee2:0,total2:0,total3:0,listLoading3:!1,tableKey3:0,list3:[],findAllEmploye:[],findAllPasture:[],requestParams:[{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDepartmentNY",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllProvider",offset:0,pagecount:0,params:[]}],getdataListParm1:{name:"getbuydetailParts",page:1,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),departmentId:0}},getdataListPart:{name:"getpartpurchasebg",page:1,returntype:"Map",parammaps:{id:m.a.get("pastureid"),departmentId:0}},partData:[],getParmCreateNumber:{name:"autoCreatCode",page:1,offset:1,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"PD"}},pageNum1:0,pageSize1:0,temp1:{pastureId:m.a.get("pastureid"),buyerPerson:this.$store.state.user.employeid,buyerDate:Object(d["e"])(new Date,"{y}-{m}-{d}")},getdataListParm2:{name:"getBigbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{providerName:"",buyeCode:"",inputDatetime:"",pastureName:m.a.get("pasturename")}},dialogFormVisibleConfirmation:!1,dialogStatusConfirmation:"",pageNum2:0,pageSize2:0,temp2:{note:""},getdataListParm3:{name:"getbuydetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),providerName:"",partCode:"",partName:"",matchCode:"",buyeCode:"",isStorage:"",startTime:"",stopTime:"",inputDatetime:""}},isExtensionDays:!1,listSee2:[],getdataListSee2:{name:"getbuydetailListbyBig",returntype:"Map",parammaps:{}},requestParamStute:{name:"updateBigbuydetailStatu",returntype:"Map",parammaps:{}},requestParamStute5:{name:"shutDownBigrefunddetail",returntype:"Map",parammaps:{}},pageNum3:0,pageSize3:0,temp3:{},dialogFormVisibleSee2:!1,dialogStatusSee2:"",listLoading4:!1,tableKey4:0,list4:[],pageNum4:0,pageSize4:0,total4:0,getdataListParm4:{name:"getbigpartdeallist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),matchCode:"",statue:"",inputDatetime:"",startTime:"",stopTime:""}},dialogFormVisibleSee4:!1,dialogStatusSee4:"",temp4:{},listSee4:[],tableKeySee4:0,listLoadingSee4:!1,getdataListSee4:{name:"getbigpartdealdetiallist",returntype:"Map",parammaps:{}},listLoading5:!1,tableKey5:0,list5:[],pageNum5:0,pageSize5:0,total5:0,getdataListParm5:{name:"getBigRefunddetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),providerName:"",partCode:"",partName:"",matchCode:"",buyeCode:"",isStorage:"",startTime:"",stopTime:"",inputDatetime:""}},dialogFormVisible5:!1,createTemp5:{providerId:"",buyeCode:"",note:"",pastureId:this.$store.state.user.pastureid,employeId:this.$store.state.user.employeid,createTime:Object(d["e"])(new Date,"{y}-{m}-{d}")},rules5:{providerId:[{required:!0,message:"必填",trigger:"blur"}]},rules55:{note:[{required:!0,message:"必填",trigger:"blur"}]},listSee5:[],getdataListSee5:{name:"getrefunddetailListbyBig",returntype:"Map",parammaps:{}},getParmCreateNumber5:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"CG"}},requestSparePart5:{name:"getPartsListThdd",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},getParmBatchOperation5:{name:"getStockPastureListBypv",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),providerId:""}},listAdd5:[],findAllProvider5:[],temp5:{note:""},dialogFormVisibleSee5:!1,dialogStatusSee5:"",activeList:[],deptNameList:[],active:3,currentRow:{},dialogStatusUpdate4:"",dialogFormVisibleUpdate4:!1,updateTemp4:{},listUpdate4:[],tableKeyUpdate4:0,listLoadingUpdate4:!1,dialogFormVisible_Examine:!1,dialogStatus_Examine:"",examineTemp:{SHstatue:1,workflowNote:""},statueReason:!1,dialogFormVisibleClose:!1,dialogFormVisibleClose5:!1,dialogStatusClose:"",textMap:{confirmation:"确认配单",see:"查看详情",close:"关闭提示",examine:"审核",update:"编辑"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}],note:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],downloadListParm3:{},downloadList3:[],isPercentage:!1,percentage:1}},created:function(){var e=this,t=this;Object(n["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(a){t.buttons=a.data.list,t.get_auto_buttons(),1==e.isDistributionSheet?(e.activeName="first",console.log(1,e.isDistributionSheet,e.isDistributionManagement)):1==e.isDistributionManagement?(e.activeName="fouth",console.log(2,e.isDistributionSheet,e.isDistributionManagement)):0==e.isDistributionSheet&&0==e.isDistributionManagement&&(e.activeName="second",console.log(3,e.isDistributionSheet,e.isDistributionManagement))})),this.get_select_list(),this.get_table_data1(),this.get_table_data2(),this.get_table_data3(),this.get_table_data4(),this.get_table_data5(),void 0!==this.$route.query.activeName&&(this.activeName=this.$route.query.activeName)},methods:{form_add5:function(){this.resetCreateTemp5(),this.createTemp5.buyeCode="",this.dialogFormVisible5=!0,this.getCreateNumber5()},resetCreateTemp5:function(){this.createTemp5.pastureId=this.$store.state.user.pastureid,this.createTemp5.providerId="",this.createTemp5.note="",this.createTemp5.employeId=this.$store.state.user.employeid,this.createTemp5.createTime=Object(d["e"])(new Date,"{y}-{m}-{d}"),this.createTemp5.buyeCode="",this.listAdd5=[],this.TotalAmount5=0},getCreateNumber5:function(){var e=this;Object(n["e"])(this.getParmCreateNumber5).then((function(t){e.$nextTick((function(){console.log("新增退货单号",t.data.list[0].orderCode),e.createTemp5.buyeCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},sparePartSearch5:function(e,t){console.log("备件模糊查询输入值",e),""!==this.createTemp5.providerId?(this.requestSparePart5.parammaps.providerId=this.createTemp5.providerId,this.requestSparePart5.parammaps["partCode"]=e,Object(n["e"])(this.requestSparePart5).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))):this.$message({title:"",message:"请选择供应商",type:"warning",duration:2e3})},handleSelectSparePart5:function(e){if(console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.id),this.listAdd5.length>0){if(this.listAdd5.find((function(t){return t.id===e.id})))return this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}),console.log(this.listAdd5),console.log(this.listAdd5.length),!1;this.listAdd5.unshift(e),this.$set(e,"amount",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="")}else this.listAdd5.unshift(e),this.$set(e,"amount",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath="");this.$forceUpdate(),console.log(this.listAdd5)},changeProvider5:function(e){console.log(e,"供应商change"),this.listAdd5=[],this.getParmBatchOperation5.parammaps.providerId=e},partDelete5:function(e){var t=this;console.log(this.listAdd5),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd5.length;a++){if(console.log(t.listAdd5[a]),t.listAdd5[a].id===e.id)var s=t.listAdd5.indexOf(t.listAdd5[a]);if(s>-1)return void t.listAdd5.splice(s,1)}}))},add_dialog_save5:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp5"].validate((function(t){t&&(console.log(e.listAdd5),console.log(e.createTemp5.buyeCode),""==e.createTemp5.buyeCode||null==e.createTemp5.buyeCode||void 0==e.createTemp5.buyeCode?Object(n["e"])(e.getParmCreateNumber5).then((function(t){e.$nextTick((function(){console.log("退库单号",t.data.list[0].orderCode),e.createTemp5.buyeCode=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave5()}))})):e.add_dialog_saveSave5())}))},add_dialog_saveSave5:function(){var e=this;if(0!==this.listAdd5.length){for(var t=0;t<this.listAdd5.length;t++){if(console.log(this.listAdd5[t].amount),null==this.listAdd5[t].amount||""===this.listAdd5[t].amount)return this.$message({type:"warning",message:"请检查数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(this.listAdd5[t].amount))return this.$message({type:"error",message:"数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd5[t].amount)>parseFloat(this.listAdd5[t].reportery))return this.$message({type:"error",message:"数量不可大于库存数",duration:2e3}),!1}var s={common:{returnmap:"0"},data:[{name:"addBigrefunddetail",type:"e",parammaps:{pastureId:m.a.get("pastureid"),buyeCode:this.createTemp5.buyeCode,providerId:this.createTemp5.providerId,buyerDate:"",buyerPerson:this.createTemp5.employeId,note:""}},{name:"insertSpotList",resultmaps:{list:this.listAdd5},children:[{name:"addRefunddetail",type:"e",parammaps:Object(r["a"])({brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",contractCode:"@insertSpotList.contractCode",bigId:"@insertSpotList.bigId",partCode:"@insertSpotList.partCode",partId:"@insertSpotList.partId",pastureId:"@insertSpotList.pastureId",price:"@insertSpotList.price",statue:"@insertSpotList.statue",remark:"@insertSpotList.remark",amount:"@insertSpotList.amount",providerId:"@insertSpotList.providerId",departmentName:"@insertSpotList.departmentName"},"bigId","@addBigrefunddetail.LastInsertId")}]}]};return Object(n["c"])(s).then((function(t){console.log("新增保存发送参数",s),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible5=!1,e.getdataListParm5.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data5()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},change_dept:function(e){console.log(e),this.getdataListParm1.parammaps.departmentId=e,this.getdataListPart.parammaps.departmentId=e,this.get_table_data1()},tableSort:function(e){"first"==this.activeName?Object(d["f"])(e,this.list1):"second"==this.activeName?Object(d["f"])(e,this.list2):"third"==this.activeName?Object(d["f"])(e,this.list3):"fouth"==this.activeName&&Object(d["f"])(e,this.list4)},tableSort2:function(e){Object(d["f"])(e,this.listSee2)},get_auto_buttons:function(){var e="customs:purchase:distributionSheet",t=Object(n["v"])(this.$store.state.user.buttons,e);this.isDistributionSheet=t;var a="customs:purchase:see",s=Object(n["v"])(this.$store.state.user.buttons,a);this.isPurchaseSee=s;var i="customs:purchase:close",r=Object(n["v"])(this.$store.state.user.buttons,i);this.isPurchaseClose=r;var l="customs:purchase:sap",o=Object(n["v"])(this.$store.state.user.buttons,l);this.isPurchaseSap=o;var p="customs:purchase:srm",m=Object(n["v"])(this.$store.state.user.buttons,p);this.isPurchaseSrm=m;var c="customs:purchase:export",d=Object(n["v"])(this.$store.state.user.buttons,c);this.isPurchaseExport=d;var u="customs:purchase:shenhe",h=Object(n["v"])(this.$store.state.user.buttons,u);this.isExamineDM=h;var g="customs:purchase:peidanjiemian",f=Object(n["v"])(this.$store.state.user.buttons,g);this.isDistributionManagement=f},cellClick:function(e,t,a,s){return console.log(a),console.log("column",t),console.log("行索引",e.id),console.log("列索引",t.id),{background:"#eceb3c"}},tableRowStyle:function(e){var t=e.row;e.rowIndex;return console.log(t,t),console.log(" row.isParity",t.isParity),console.log(parseInt(t.isParity)%2==0),parseInt(t.isParity)%2==0?{background:"#eee"}:{background:""}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"No"==t.isNo&&10===a?{background:"red"}:{background:""}},handleClick:function(e,t){console.log(e,t),"first"===e.name?this.get_table_data1():"fouth"===e.name?this.get_table_data4():"second"===e.name?this.get_table_data2():"third"===e.name?this.get_table_data3():"fifth"===e.name&&this.get_table_data5()},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllEmploye=t.data.findAllEmploye.list,e.findAllPasture=t.data.findAllPasture.list,e.deptNameList=t.data.getDepartmentNY.list,e.findAllProvider5=t.data.findAllProvider.list,e.findAllProvider=t.data.findAllProvider.list,console.log(e.deptNameList)}))},providerSearch:function(e,t){console.log("供应商模糊查询输入值",e),this.requestProvider.parammaps["providerName"]=e,Object(n["e"])(this.requestProvider).then((function(e){console.log("供应商模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectProvider:function(e){console.log("供应商模糊查询选中值",e)},get_table_data1:function(){var e=this;this.listLoading1=!0,Object(n["e"])(this.getdataListPart).then((function(t){console.log(t),e.partData=t.data.list})),Object(n["e"])(this.getdataListParm1).then((function(t){if(console.log("this.list1",t.data.list),null===t.data.list)e.list1=[],e.confirmationSheetDisabled=!0;else{var a;a=t.data.list;var s=[];if(a.forEach((function(e,t){Array.from(new Set(a.map((function(e){return e.partCode})))).forEach((function(t,a){e.partCode===t&&s.push({amount:e.amount,amountPre:e.amountPre,bigId:e.bigId,brand:e.brand,brandId:e.brandId,contractCode:e.contractCode,count:e.count,enable:e.enable,id:e.id,inventoryType:e.inventoryType,isZeroStock:e.isZeroStock,orderNumber:e.orderNumber,partCode:e.partCode,partId:e.partId,partName:e.partName,pastureId:e.pastureId,pastureName:e.pastureName,planAmount:e.planAmount,price:e.price,providerId:e.providerId,providerName:e.providerName,purpose:e.purpose,remark:e.remark,specification:e.specification,sumAmount:e.sumAmount,unit:e.unit,isNo:e.isNo,srcpath:e.srcpath,picpath:e.picpath,departmentName:e.departmentName,isParity:a})}))})),console.log(s),null!==s)for(var i=0;i<s.length;i++)console.log(s[i].srcpath),null!==s[i].srcpath&&null!==s[i].picpath&&void 0!==s[i].srcpath&&void 0!==s[i].picpath?(s[i].srcpath="http://127.0.0.1:8082/"+s[i].srcpath,s[i].picpath="http://127.0.0.1:8082/"+s[i].picpath):(s[i].srcpath="",s[i].picpath="");e.list1=s,console.log("处理后table数",e.list1),e.confirmationSheetDisabled=!1}for(var r="",n=0;n<e.list1.length;n++)r!==e.list1[n].partCode?(e.list1[n].amount=e.list1[n].sumAmount,r=e.list1[n].partCode):e.list1[n].amount=0;t.data.total&&(e.total1=t.data.total),setTimeout((function(){e.listLoading1=!1}),300)}))},confirmationSheet:function(){var e=this;function t(e,t){var a={};return e.forEach((function(e){var s=JSON.stringify(t(e));console.log("group2",s),a[s]=a[s]||[],a[s].push(e)})),Object.keys(a).map((function(e){return a[e]}))}console.log("点击立确认配单"),this.temp1.matchCode="",console.log(this.list1);var a=t(this.list1,(function(e){return[e.partCode]}));console.log("表格数据根据供应商分划",a);for(var s=0;s<a.length;s++){for(var i=0,r=0,l=0;l<a[s].length;l++)if(a[s][l].partCode===a[s][l].partCode){var o=a[s][l];i+=parseInt(o.amount),r=parseInt(o.sumAmount)}if(i>r||i<r){console.log("No"),console.log(o.id);for(var p=0;p<this.list1.length;p++)if(o.id===this.list1[p].id){console.log(this.list1[p].partCode);for(i=0;i<this.list1.length;i++)this.list1[i].partCode===this.list1[p].partCode?(console.log(this.list1[i]),this.$set(this.list1[i],"isNo","No")):this.$set(this.list1[i],"isNo","Yes")}else this.$set(this.list1[p],"isNo","Yes");return console.log(i),void this.$message({type:"warning",message:"同一备件多个供应商合计采购数量总和等于申购数量"})}for(p=0;p<this.list1.length;p++){this.$set(this.list1[p],"isNo","Yes");var c=/^[0-9]\d*$/;if(!c.test(this.list1[p].amount))return this.$message({type:"error",message:"采购数量请输入正整数",duration:2e3}),!1}}this.getCreateNumber(),this.dialogStatusConfirmation="confirmation",this.dialogFormVisibleConfirmation=!0,console.log("确认配单data------",this.list1),console.log(this.list1),console.log("根据供应商分类",a),console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet);var d={},u=[];for(s=0;s<this.list1.length;s++){console.log(this.list1[s]);var h=this.list1[s],g=this.list1[s].price,f=this.list1[s].amount,b=0;if(b=parseFloat(g)*parseFloat(f),d[h.providerName])for(l=0;l<u.length;l++){console.log(u[l]);var v=u[l];if(v.providerName===h.providerName){v.sumPrice.push(b),v.price.push(g),v.amount.push(f),v.list.push(h);break}}else u.push({price:[g],amount:[f],sumPrice:[b],providerId:h.providerId,providerName:h.providerName,purpose:h.purpose,list:[h]}),d[h.providerName]=h,d[h.providerId]=h}var y=[];for(s=0;s<this.list1.length;s++)y.push(this.list1[s].providerName);function _(e){return Array.from(new Set(e))}var w=_(y);console.log("去重后供应商",w);var S=[];this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(s=0;s<w.length;s++)this.postDataPramas.data[s]={name:"autoCreatCode",type:"sm",parammaps:{pastureId:m.a.get("pastureid"),codeType:"CG"}};Object(n["c"])(this.postDataPramas).then((function(t){console.log("采购单请求发送参数",e.postDataPramas);for(var a=0;a<t.data.length;a++)S.push(t.data[a].resultmaps[0].orderCode);console.log(S),e.listConfirmationSheet.map((function(e,t){return e.orderNumber=S[t],e})),e.$forceUpdate()})),console.log(S),this.listConfirmationSheet=u,console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet);var P=[];this.listConfirmationSheet.forEach((function(e,t){console.log(e.sumPrice),P.push(e.sumPrice.reduce((function(e,t){return e+t}),0).toFixed(3))})),this.listConfirmationSheet.map((function(e,t){return e.Sum=P[t],e})),console.log("根据供应商分类表格listConfirmationSheet",this.listConfirmationSheet)},getCreateNumber:function(){var e=this;Object(n["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.show=!1,console.log("配单号",t.data.list[0].orderCode),e.temp1.matchCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},confirmationSheetData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击了确认配单提交"),this.$refs["temp1"].validate((function(t){if(t){""!=e.temp1.matchCode&&null!=e.temp1.matchCode&&void 0!=e.temp1.matchCode||e.getCreateNumber(),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],console.log(e.listConfirmationSheet);for(var a=0;a<e.listConfirmationSheet.length;a++)if(null==e.listConfirmationSheet[a].orderNumber||void 0==e.listConfirmationSheet[a].orderNumber)return e.$notify({title:"保存失败",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}),!1;var s=e.listConfirmationSheet.length;e.listConfirmationSheet.forEach((function(t,a){console.log(t),e.postDataPramas.data[a]={name:"insertBigbuydetail",resultname:"insertBigbuydetail"+a,type:"e",parammaps:{pastureId:m.a.get("pastureid"),buyeCode:t.orderNumber,providerId:t.providerId,buyerPerson:e.temp1.buyerPerson,buyerDate:e.temp1.buyerDate,matchCode:e.temp1.matchCode}},e.postDataPramas.data[s]={name:"insertSpotList",resultmaps:{list:t.list}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"insertbuydetail",type:"e",parammaps:{bigId:"@insertBigbuydetail"+a+".LastInsertId",pastureId:"@insertSpotList.pastureId",contractCode:"@insertSpotList.contractCode",amount:"@insertSpotList.amount",sumAmount:"@insertSpotList.sumAmount",contractId:"@insertSpotList.id",departmentName:"@insertSpotList.departmentName",remark:"@insertSpotList.purpose"}},s+=1})),e.postDataPramas.data[s]={name:"insertSpotListbpp",resultmaps:{list:e.partData}},e.postDataPramas.data[s].children=[],e.postDataPramas.data[s].children[0]={name:"updateBigpartpurchaseStatu",type:"e",parammaps:{id:"@insertSpotListbpp.id",matchCode:e.temp1.matchCode}},e.postDataPramas.data.push({name:"insertbigpartdeal",type:"e",parammaps:{empId:e.temp1.buyerPerson,pastureId:m.a.get("pastureid"),matchCode:e.temp1.matchCode}}),Object(n["c"])(e.postDataPramas).then((function(t){if("fail"===t.msg){var a=new RegExp("buyeCode");a.test(t.data)?e.$notify({title:"",message:"网络异常未生成采购单,请刷新后重新进行配单",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.dialogFormVisibleConfirmation=!1,e.activeName="fouth",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}}))},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(n["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),300)}))},form_search2:function(){this.listLoading=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},statu:function(e){return 0===e.statu?"未到货":1===e.statu?"部分到货":2===e.statu?"按时到货":3===e.statu?"已延期":4===e.statu?"已关闭":5===e.statu?"部分到货-延期":6===e.statu?"全部到货-延期":void 0},statue:function(e){return 0===e.statue?"审核中":1===e.statue?"审核通过":2===e.statue?"未通过":void 0},form_see2:function(e){this.temp2=Object.assign({},e),0===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="未到货",this.isExtensionDays=!1):1===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货",this.isExtensionDays=!1):2===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="按时到货",this.isExtensionDays=!1):3===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="已延期",this.isExtensionDays=!0):4===this.temp2.statu?(this.temp2.statu="已关闭",this.isStatu=!0,this.isExtensionDays=!1):5===this.temp2.statu?(this.isStatu=!1,this.temp2.statu="部分到货-延期",this.isExtensionDays=!0):6===this.temp2.statu&&(this.isStatu=!1,this.temp2.statu="全部到货-延期",this.isExtensionDays=!0),this.dialogStatusSee2="see",this.dialogFormVisibleSee2=!0,this.getdataListSee2.parammaps.id=e.id,this.getSeeList2()},getSeeList2:function(){var e=this;Object(n["e"])(this.getdataListSee2).then((function(t){if(e.listSee2=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee2[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee2[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee2[a].srcpath="",e.listSee2[a].picpath="");console.log("查看下方table数据",t.data.list);for(var s=[],i=0;i<e.listSee2.length;i++)console.log(),s.push(e.listSee2[i].sumPrice);console.log("总价",s);var r=0;for(i=0;i<s.length;i++)console.log("table内总价每一个值",s[i]),r+=parseFloat(s[i]);e.temp2.sumPrices=r.toFixed(3),setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCloseTemp:function(){this.temp2.note=""},handleClose2:function(e){this.resetCloseTemp(),this.temp2=Object.assign({},e),this.dialogStatusClose="close",this.dialogFormVisibleClose=!0},handleClose5:function(e){this.resetCloseTemp5(),this.temp5=Object.assign({},e),this.dialogFormVisibleClose5=!0},resetCloseTemp5:function(){this.temp2.note=""},closeData5:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击确认关闭",this.temp2),this.$refs["temp5"].validate((function(t){t&&(e.requestParamStute5.parammaps.id=e.temp5.id,e.requestParamStute5.parammaps.note=e.temp5.note,Object(n["k"])(e.requestParamStute5).then((function(t){console.log("新增保存发送参数",e.requestParamStute5),"fail"!==t.msg?(e.get_table_data5(),e.dialogFormVisibleClose5=!1,e.$notify({title:"成功",message:"关闭成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see5:function(e){this.temp5=Object.assign({},e),0===this.temp5.statu?(this.isStatu=!1,this.temp5.statu="未到货"):1===this.temp2.statu?(this.isStatu=!1,this.temp5.statu="部分到货"):2===this.temp2.statu?(this.isStatu=!1,this.temp5.statu="按时到货"):3===this.temp2.statu?(this.isStatu=!1,this.temp5.statu="已延期"):4===this.temp2.statu?(this.temp5.statu="已关闭",this.isStatu=!0):5===this.temp2.statu?(this.isStatu=!1,this.temp5.statu="部分到货-延期"):6===this.temp2.statu&&(this.isStatu=!1,this.temp5.statu="全部到货-延期"),this.dialogStatusSee5="see",this.dialogFormVisibleSee5=!0,this.getdataListSee5.parammaps.id=e.id,this.getSeeList5()},getSeeList5:function(){var e=this;Object(n["e"])(this.getdataListSee5).then((function(t){if(e.listSee5=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee5[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee5[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee5[a].srcpath="",e.listSee5[a].picpath="");console.log("查看下方table数据",t.data.list);for(var s=[],i=0;i<e.listSee2.length;i++)console.log(),s.push(e.listSee5[i].sumPrice);console.log("总价",s);var r=0;for(i=0;i<s.length;i++)console.log("table内总价每一个值",s[i]),r+=parseFloat(s[i]);e.temp5.sumPrices=r.toFixed(3),setTimeout((function(){e.listLoadingSee=!1}),100)}))},handleCurrentChange:function(e){this.currentRow=e,console.log("currentRow",this.currentRow)},sapUpload:function(){var e=this;console.log("currentRow",this.currentRow.sapstatus);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSap),1==e.isSap?(e.isSap=0,Object(n["n"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSap=1}),3e3)},checkboxInit:function(e,t){console.log(e);var a=new Date(e.buyerDate),s=new Date("2022-10-25");return a>s?1:0},change_table_selection:function(e){this.selectList=e,console.log("勾选数据selectList",this.selectList)},srmUpload:function(){var e=this;console.log("currentRow",this.currentRow.srmstatus),console.log("勾选数据selectList",this.selectList);var t=this.selectList;if(0==t.length)return e.$notify({title:"失败",message:"请勾选数据!",type:"error",duration:2e3}),!1;console.log(e.isSrm),1==e.isSrm?(e.isSrm=0,Object(n["s"])(t).then((function(t){console.log("response",t),"fail"!==t.msg?(e.$notify({title:"成功",message:"上传成功",type:"success",duration:2e3}),e.selectList=[],e.get_table_data2()):e.$notify({title:"失败",message:"上传失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"正在请求中,请稍等几秒钟后再点击",type:"error",duration:2e3}),setTimeout((function(){e.isSrm=1}),3e3)},closeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log("点击确认关闭",this.temp2),this.$refs["temp2"].validate((function(t){t&&(e.requestParamStute.parammaps.id=e.temp2.id,e.requestParamStute.parammaps.note=e.temp2.note,Object(n["k"])(e.requestParamStute).then((function(t){console.log("新增保存发送参数",e.requestParamStute),"fail"!==t.msg?(e.get_table_data2(),e.dialogFormVisibleClose=!1,e.$notify({title:"成功",message:"关闭成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},get_table_data3:function(){var e=this;this.listLoading3=!0,void 0!==this.$refs["inputDatetime3"]&&null!==this.$refs["inputDatetime3"].value?(this.getdataListParm3.parammaps.startTime=this.$refs["inputDatetime3"].value[0],this.getdataListParm3.parammaps.stopTime=this.$refs["inputDatetime3"].value[1]):(this.getdataListParm3.parammaps.startTime="",this.getdataListParm3.parammaps.stopTime=""),Object(n["e"])(this.getdataListParm3).then((function(t){e.list3=t.data.list,e.pageNum3=t.data.pageNum,e.pageSize3=t.data.pageSize,t.data.total&&(e.total3=t.data.total),setTimeout((function(){e.listLoading3=!1}),300)}))},form_search3:function(){this.listLoading=!0,null===this.getdataListParm3.parammaps.inputDatetime&&(this.getdataListParm3.parammaps.inputDatetime=""),this.getdataListParm3.offset=1,this.get_table_data3()},handleDownload3:function(){var e=this;console.log("点击了采购明细导出"),this.$alert("采购明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadListParm3.name=this.getdataListParm3.name,this.downloadListParm3.parammaps=this.getdataListParm3.parammaps,Object(n["d"])(this.downloadListParm3).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.downloadList3=t.data.list;var a=[{tHeader:["配单号","采购单号","备件编号","备件名称","备件规格","备件品牌","计量单位","供应商","单价","申购数量","采购数量","入库数","申购部门","采购人","配单日期"],filterVal:["matchCode","buyeCode","partCode","partName","specification","brand","unit","providerName","price","sumAmount","amount","receiveAmount","departmentName","empname","buyerDate"],tableDatas:e.downloadList3,sheetName:"采购明细"}];Object(d["d"])(a,"采购明细",!0,"xlsx")}))},get_table_data5:function(){var e=this;this.listLoading5=!0,Object(n["e"])(this.getdataListParm5).then((function(t){e.list5=t.data.list,e.pageNum5=t.data.pageNum,e.pageSize5=t.data.pageSize,t.data.total&&(e.total5=t.data.total),setTimeout((function(){e.listLoading5=!1}),300)}))},form_search5:function(){this.listLoading=!0,this.getdataListParm5.offset=1,this.get_table_data5()},get_table_data4:function(){var e=this;this.listLoading4=!0,void 0!==this.$refs["inputDatetime4"]&&null!==this.$refs["inputDatetime4"].value?(this.getdataListParm4.parammaps.startTime=this.$refs["inputDatetime4"].value[0],this.getdataListParm4.parammaps.stopTime=this.$refs["inputDatetime4"].value[1]):(this.getdataListParm4.parammaps.startTime="",this.getdataListParm4.parammaps.stopTime=""),Object(n["e"])(this.getdataListParm4).then((function(t){e.list4=t.data.list,e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize,t.data.total&&(e.total4=t.data.total),setTimeout((function(){e.listLoading4=!1}),300)}))},form_search4:function(){this.listLoading=!0,null===this.getdataListParm4.parammaps.inputDatetime&&(this.getdataListParm4.parammaps.inputDatetime=""),this.getdataListParm4.offset=1,this.get_table_data4()},form_see4:function(e){this.dialogStatusSee4="see",this.dialogFormVisibleSee4=!0,this.temp4=Object.assign({},e),this.getdataListSee4.parammaps.matchCode=e.matchCode,this.getSeeList4();var t="未通过原因:"+this.temp4.workflowNote;0===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"供应主管审核"}],this.active=1):1===this.temp4.statue?(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"供应主管审核",date:this.temp4.chargeDate,name:this.temp4.chargeName}],this.active=2):2===this.temp4.statue&&(this.activeList=[{title:"配单",date:this.temp4.dealTime,name:this.temp4.empname},{title:"供应主管审核",date:this.temp4.chargeDate,name:this.temp4.chargeName,status:"error",reason:t}],this.active=2)},getSeeList4:function(){var e=this;Object(n["e"])(this.getdataListSee4).then((function(t){if(e.listSee4=t.data.list,e.listUpdate4=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)console.log(t.data.list[a].srcpath),console.log(t.data.list[a].picpath),console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?"see"==e.dialogStatusSee4?(e.listSee4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listUpdate4[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listUpdate4[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee4[a].srcpath="",e.listSee4[a].picpath="",e.listUpdate4[a].srcpath="",e.listUpdate4[a].picpath="");console.log("查看下方table数据",t.data.list),e.pageNum4=t.data.pageNum,e.pageSize4=t.data.pageSize}))},handleExamine:function(e){void 0==e?(this.examineTemp=this.temp4,this.$set(this.temp4,"SHstatue",1),this.$set(this.temp4,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus_Examine="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeSHStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log(this.examineTemp),this.$refs["examineTemp"].validate((function(t){t&&(1==e.examineTemp.SHstatue?(console.log("通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:m.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.postDataPramas.data[1]={name:"updatebigbuydetailenable",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},e.postDataPramas.data[2]={name:"updatebigbuydetailZero",type:"e",parammaps:{matchCode:e.examineTemp.matchCode}},Object(n["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))):2==e.examineTemp.SHstatue&&(console.log("不通过"),e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"partdealCharge",type:"e",parammaps:{id:e.examineTemp.id,statue:e.examineTemp.SHstatue,empId:m.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},Object(n["c"])(e.postDataPramas).then((function(t){console.log("审核保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"审核失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examine=!1,e.get_table_data4(),e.$notify({title:"",message:"审核成功",type:"success",duration:2e3}))}))))}))},form_edit:function(e){this.dialogStatusUpdate4="update",this.dialogFormVisibleUpdate4=!0,this.getdataListSee4.parammaps.matchCode=e.matchCode,this.updateTemp4=Object.assign(e,{}),this.getSeeList4()},edit_dialog_save:function(){var e=this;this.$refs["updateTemp4"].validate((function(t){if(t){for(var a=0;a<e.listUpdate4.length;a++){console.log(e.listUpdate4[a].amount);var s=/^\d+$/;if((""==e.listUpdate4[a].amount||void 0==e.listUpdate4[a].amount)&&0!==parseFloat(e.listUpdate4[a].amount))return e.$message({type:"error",message:"采购数量不可为空",duration:2e3}),!1;if(!s.test(parseFloat(e.listUpdate4[a].amount)))return e.$message({type:"error",message:"采购数量请输入大于等于0的整数",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listUpdate4}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePDbuydetail",type:"e",parammaps:{amount:"@insertSpotList.amount",id:"@insertSpotList.id"}},e.postDataPramas.data[1]={name:"partdealCharge",type:"e",parammaps:{id:e.updateTemp4.id,statue:"0",empId:m.a.get("employeid")}}}return Object(n["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisibleUpdate4=!1,e.getdataListParm4.parammaps.inputDatetime="",e.get_table_data4(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}}))}}},h=u,g=(a("5704"),a("ac99"),a("7613"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"242567d6",null);t["default"]=f.exports},cbe5b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"品牌名"},model:{value:e.getdataListParm.parammaps.brandName,callback:function(t){e.$set(e.getdataListParm.parammaps,"brandName",t)},expression:"getdataListParm.parammaps.brandName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"资产数",sortable:"",prop:"eqs","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqs))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件数",sortable:"",prop:"prs","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.prs))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同数",sortable:"",prop:"cts","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cts))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类型数",sortable:"",prop:"bps","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bps))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"400px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleeqMenu(s)}}},[e._v("设备")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handlePartMenu(s)}}},[e._v("备件")]),e._v(" "),e.isBrandUpdate?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.isBrandDelete&&0===s.bps&&0===s.eqs&&0===s.prs&&0===s.cts?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"品牌名称",prop:"brandName"}},[a("el-input",{ref:"brandName",model:{value:e.temp.brandName,callback:function(t){e.$set(e.temp,"brandName",t)},expression:"temp.brandName"}})],1)],1)],1),e._v(" "),a("el-row")],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["stock"],visible:e.dialogstockVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogstockVisible=t}}},[a("el-form",{staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"150px"}},[a("el-form-item",{attrs:{label:"可提供的备件类别",prop:"stockname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",multiple:"",data:e.parentstock,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updatestock()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogstockVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["eq"],visible:e.dialogeqVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogeqVisible=t}}},[a("el-form",{staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"150px"}},[a("el-form-item",{attrs:{label:"可提供的设备类别",prop:"eqname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",multiple:"",data:e.parenteq,"default-props":e.eq_defaultProps,"collapse-tags":"","node-key":e.eq_nodeKey,"checked-keys":e.eq_defaultCheckedKeys},on:{popoverHide:e.eq_popoverHide}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateeq()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogeqVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("3de8"),c=a("a78e"),d=a.n(c),u={name:"Product",components:{Pagination:o["a"],TreeSelect:m["a"]},directives:{waves:n["a"]},data:function(){return{disabled:!1,tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"getBrandList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{brandName:""}},getMenuParm:{name:"getBrandRecu",idname:"id"},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,params:[]}],temp:{},getStockParm:{name:"getpart_classList"},parentstock:[],nodeKey:"id",defaultCheckedKeys:[],defaultProps:{children:"children",label:"partClassName"},dialogstockVisible:!1,selectedstock:"",dataform:{id:"",name:"",selectedstock:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getEQParm:{name:"geteqclasslist"},parenteq:[],eq_nodeKey:"id",eq_defaultCheckedKeys:[],eq_defaultProps:{children:"children",label:"typeName"},dialogeqVisible:!1,selectedeq:"",eq_dataform:{id:"",name:"",selectedeq:[],sort:"",enable:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",munu:"品牌菜单"},rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isBrandDelete:[],isBrandUpdate:[],isPercentage:!1,percentage:1}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},get_auto_buttons:function(){var e="basic:brand:delete",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isBrandDelete=t;var a="basic:brand:update",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isBrandUpdate=s},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){console.log(e)},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),e.getStockList(),e.geteqList(),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}")}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertBrand",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.requestParam.parammaps=e.temp,e.requestParam.name="insertBrand",Object(r["k"])(e.requestParam).then((function(t){e.$nextTick((function(){e.$refs["temp"].clearValidate()})),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},eq_popoverHide:function(e,t){this.eq_dataform.selectedeq=e,this.selectedeq=e,this.UpdateDataRelationParam.values=e},geteqList:function(){var e=this;Object(r["e"])(this.getEQParm).then((function(t){null!==t.data.list&&(e.parenteq=Object(r["E"])(t.data.list,"id","pid","children"))}))},handleeqMenu:function(e){var t=this;this.dialogeqVisible=!0,this.requestParam.name="getEQByBrand",this.requestParam.parammaps={brandId:e.id},this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dialogMenuVisible=!0,Object(r["e"])(this.requestParam).then((function(e){t.selectedeq=e.data.lists.eqClassId,t.eq_defaultCheckedKeys=t.selectedeq,t.UpdateDataRelationParam.values=t.eq_defaultCheckedKeys}))},updateeq:function(){var e=this;this.UpdateDataRelationParam.name="brand_eqclass",this.UpdateDataRelationParam.dataname="brandId",this.UpdateDataRelationParam.datavalue=this.requestParam.parammaps.brandId,this.UpdateDataRelationParam.valuename="eqClassId",this.UpdateDataRelationParam.values=this.selectedeq,Object(r["u"])(this.UpdateDataRelationParam).then((function(t){"fail"!==t.msg?(e.dialogeqVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))},popoverHide:function(e,t){this.dataform.selectedstock=e,this.selectedstock=e,this.UpdateDataRelationParam.values=e},getStockList:function(){var e=this;Object(r["e"])(this.getStockParm).then((function(t){null!==t.data.list&&(e.parentstock=Object(r["E"])(t.data.list,"id","pid","children"))}))},handlePartMenu:function(e){var t=this;this.dialogstockVisible=!0,this.requestParam.name="getByPartBrand",this.requestParam.parammaps={brandId:e.id},this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dialogMenuVisible=!0,Object(r["e"])(this.requestParam).then((function(e){t.selectedstock=e.data.lists.partClassId,t.defaultCheckedKeys=t.selectedstock,t.UpdateDataRelationParam.values=t.defaultCheckedKeys}))},updatestock:function(){var e=this;this.UpdateDataRelationParam.name="brand_partclass",this.UpdateDataRelationParam.dataname="brandId",this.UpdateDataRelationParam.datavalue=this.requestParam.parammaps.brandId,this.UpdateDataRelationParam.valuename="partClassId",this.UpdateDataRelationParam.values=this.selectedstock,Object(r["u"])(this.UpdateDataRelationParam).then((function(t){"fail"!==t.msg?(e.dialogstockVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateBrand",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("品牌名称:"+e.brandName,"确认禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteBrand",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败",type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消禁用"})}))},handleDownload:function(){var e=this;this.$alert("品牌正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="getBrandList",Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["品牌名称","资产数","备件数","合同数","设备类型数","启用"],n=["brandName","eqs","prs","cts","bps","enable"],l=Object(r["x"])(n,s);a.export_json_to_excel({header:i,data:l,filename:"品牌",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateBrandEnable",this.requestParam.parammaps={},this.requestParam.parammaps.enable=t.enable,this.requestParam.parammaps.id=t.id,Object(r["k"])(this.requestParam).then((function(e){"fail"!==e.msg?a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}):Object(r["w"])(e,a.$notify)}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},cc20:function(e,t,a){},ce29:function(e,t,a){},ce8e:function(e,t,a){},cead:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:e.rows,"tooltip-effect":"dark",border:"",stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.sortChange}},[a("el-table-column",{attrs:{"header-align":"center",type:"selection",align:"center",width:"55"}}),e._v(" "),e._l(e.columns,(function(t){return a("el-table-column",{key:t.index,attrs:{label:t.label,prop:t.name,width:t.colWidth,sortable:t.sortable,"header-align":t.header||"center",align:t.align||"center"},scopedSlots:e._u([{key:"default",fn:function(s){return[a("el-table-cell",{attrs:{row:s.row,col:t},on:{eidt:e.edit}})]}}],null,!0)})})),e._v(" "),e.actions?a("el-table-column",{attrs:{label:"操作","header-align":"center",width:e.actionsWidth,fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.actions.items,(function(s){return a("el-btn",{key:s.index,attrs:{act:s,row:t.row,size:"mini"},on:{action:e.handleRowBtn}})}))}}],null,!1,3552484856)}):e._e()],2)},i=[],r=(a("20d6"),a("ac6a"),a("13f2")),n=a("68a0"),l={components:{ElTableCell:r["default"],ElBtn:n["default"]},props:["columns","rows","actions"],computed:{actionsWidth:function(){return"".concat(90*this.actions.items.length,"px")}},methods:{handleRowBtn:function(e,t){this.$emit("action",e,{id:t.id})},handleSelectionChange:function(e){this.$emit("multipleSelection",e)},sortChange:function(e){this.$emit("sort",e)},rowSelect:function(e){var t=this;e||this.$refs.table.clearSelection(),this.rows.forEach((function(a){a.id&&-1!==e.findIndex((function(e){return e==a.id}))&&t.$refs.table.toggleRowSelection(a)}))},edit:function(e,t,a){this.$emit("edit",e,t,a)}}},o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,"1dd82656",null);t["default"]=m.exports},ced4:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),e._v(" "),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),e._v(" "),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),e._v(" "),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])},i=[],r={name:"Todo",directives:{focus:function(e,t,a){var s=t.value,i=a.context;s&&i.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}},n=r,l=a("2877"),o=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=o.exports},cf1e:function(e,t,a){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},cf27:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备类别",use:"icon-设备类别-usage",viewBox:"0 0 1365 1024",content:'<symbol class="icon" viewBox="0 0 1365 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备类别"><defs><style type="text/css"></style></defs><path d="M196.462364 197.311905H2.243698c-1.122607 0-2.243698-0.910222-2.243698-2.189084V2.198187C0 1.098335 0.928427 0 2.243698 0h194.218666c1.122607 0 2.242181 0.910222 2.242181 2.199704v193.10061c-0.191147 1.101369-1.119573 2.011591-2.242181 2.011591z m1166.636374 0h-1019.47923c-1.12109 0-2.243698-0.910222-2.243698-2.189084V2.198187c0-1.099852 0.940563-2.198187 2.243698-2.198187h1019.47923C1364.210726 0 1365.333333 0.910222 1365.333333 2.199704v193.10061c-0.182044 1.101369-1.122607 2.011591-2.234595 2.011591zM196.462364 568.888889H2.243698C1.12109 568.888889 0 567.96653 0 566.689185V373.585541c0-1.098335 0.928427-2.199704 2.243698-2.199704h194.218666c1.122607 0 2.242181 0.914773 2.242181 2.199704v193.103644c-0.191147 1.099852-1.119573 2.199704-2.242181 2.199704z m1166.636374 0h-1019.47923c-1.12109 0-2.243698-0.922359-2.243698-2.199704V373.585541c0-1.098335 0.940563-2.199704 2.243698-2.199704h1019.47923c1.111988 0 2.234596 0.914773 2.234595 2.199704v193.103644c-0.182044 1.099852-1.122607 2.199704-2.234595 2.199704zM196.462364 1024H2.243698C1.12109 1024 0 1022.939591 0 1021.466548V798.977896c0-1.268243 0.928427-2.533452 2.243698-2.533452h194.218666c1.122607 0 2.242181 1.04979 2.242181 2.533452v222.488652c-0.191147 1.265209-1.119573 2.533452-2.242181 2.533452z m1166.636374 0h-1019.47923c-1.12109 0-2.243698-1.060409-2.243698-2.533452V798.977896c0-1.268243 0.940563-2.533452 2.243698-2.533452h1019.47923c1.111988 0 2.234596 1.04979 2.234595 2.533452v222.488652c-0.182044 1.265209-1.122607 2.533452-2.234595 2.533452z" p-id="19064" /></symbol>'});n.a.add(l);t["default"]=l},cf5f:function(e,t,a){"use strict";a("43c1")},d0104:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"partCode",t)},expression:"getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.getdataListParm.parammaps,"partName",t)},expression:"getdataListParm.parammaps.partName"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentDept,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"150px",top:"-3px"},attrs:{clearable:"","value-key":"providerName","fetch-suggestions":e.providerSearch,placeholder:"供应商"},on:{select:e.handleSelectProvider},model:{value:e.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.getdataListParm.parammaps,"providerName",t)},expression:"getdataListParm.parammaps.providerName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn",staticStyle:{height:"50px"}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.form_add}},[e._v("库存预警设置")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件类别","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.category))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最高库存",sortable:"",prop:"maxRepertory","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxRepertory))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"最低库存",sortable:"",prop:"minRepertory","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.minRepertory))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("b",[e._v("当前设置条数:"+e._s(e.number)+"条")]),e._v(" "),a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"10px auto 0"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"最高库存:",prop:"maxRepertory"}},[a("el-input",{ref:"maxRepertory",model:{value:e.createTemp.maxRepertory,callback:function(t){e.$set(e.createTemp,"maxRepertory",t)},expression:"createTemp.maxRepertory"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"最低库存:",prop:"minRepertory"}},[a("el-input",{ref:"minRepertory",model:{value:e.createTemp.minRepertory,callback:function(t){e.$set(e.createTemp,"minRepertory",t)},expression:"createTemp.minRepertory"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.add_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("3de8"),p=a("a78e"),m=a.n(p),c=a("5f87"),d=a("ed08"),u={name:"SafetyStock",components:{Pagination:n["a"],TreeSelect:o["a"]},directives:{waves:r["a"]},data:function(){return{rules:{maxRepertory:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}],minRepertory:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}],parentDept:[],defaultProps:{children:"children",label:"partClassNameCode"},disabled:!1,placeholder:"请选择备件类别",nodeKey:"id",defaultCheckedKeys:[],listType:[],tableKey:0,getDeptListParm:{name:"getpart_classList"},list:[],total:0,listLoading:!0,getdataListParm:{name:"getPRlist",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),partCode:"",partName:"",classCode:""}},textMap:{create:"库存预警设置"},dialogStatus:"",dialogFormVisible:!1,selectionList:[],number:0,createTemp:{maxRepertory:"",minRepertory:""},postDataPramas:{},requestProvider:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"importStockUse",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,单价,总价,库位,供应商,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data(),this.getTypeList()},methods:{tableSort:function(e){Object(d["f"])(e,this.list)},providerSearch:function(e,t){console.log("供应商模糊查询输入值",e),this.requestProvider.parammaps["providerName"]=e,Object(l["e"])(this.requestProvider).then((function(e){console.log("供应商模糊查询搜索data",e.data.list),null!==e.data.list?t(e.data.list):t([])}))},handleSelectProvider:function(e){console.log("供应商模糊查询选中值",e)},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},getTypeList:function(){var e=this;Object(l["e"])(this.getDeptListParm).then((function(t){e.listType=t.data,null!==t.data.list&&(e.listType=Object(l["E"])(t.data.list,"id","pid","children"),console.log(e.listType)),e.parentDept=e.listType}))},popoverHide:function(e,t){null!==e?(console.log(t),console.log(t.childrens),0==t.childrens?null!==e&&(this.getdataListParm.parammaps.classCode=t.partClassCode):(this.defaultCheckedKeys=[],this.getdataListParm.parammaps.classCode="",this.$message({type:"warning",message:"请选择详细备件类别"}))):(this.defaultCheckedKeys=[],this.getdataListParm.parammaps.classCode="")},get_table_data:function(){var e=this;Object(l["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleSelectionChange:function(e){console.log("选中值",e),this.selectionList=e},resetCreateTemp:function(){this.createTemp.maxRepertory="",this.createTemp.minRepertory=""},form_add:function(){this.selectionList.length>0?(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.number=this.selectionList.length):this.$message({type:"warning",message:"请选择备件"})},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.selectionList}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"updatePRMaxMin",type:"e",parammaps:{id:"@insertSpotList.id",maxRepertory:e.createTemp.maxRepertory,minRepertory:e.createTemp.minRepertory}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},handleDownloadTemp:function(){console.log("点击了模板")},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","报错信息"],r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(d["e"])(t[e]):t[e]}))}))},handleDownload:function(){console.log("点击了导出")}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},d2cb:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("el-button",{staticClass:"font-small",staticStyle:{margin:"0 10px 10px 0"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")]),e._v(" "),a("el-button",{staticClass:"font-small",attrs:{type:"warning",icon:"el-icon-copy-document"},on:{click:e.handleCopy}},[e._v("\n 复制\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"部位","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleSparePart(s)}}},[e._v("备件")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"content-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部位名称:",prop:"positionName"}},[a("el-input",{ref:"positionName",attrs:{disabled:"sparePart"===e.dialogStatus,type:"text"},model:{value:e.createTemp.positionName,callback:function(t){e.$set(e.createTemp,"positionName",t)},expression:"createTemp.positionName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",staticClass:"note",staticStyle:{width:"100%"},attrs:{disabled:"sparePart"===e.dialogStatus,type:"textarea",placeholder:"备注",autosize:"",maxlength:"100","show-word-limit":""},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),e.isUpdate?a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.isUpdate?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"配备数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,555520545)}),e._v(" "),a("el-table-column",{attrs:{valign:"middle",label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,867011389)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partUpdateDelete(s)}}},[e._v("删除")])]}}],null,!1,3392651737)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),"create"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"create"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")]):e._e(),e._v(" "),"sparePart"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.sparePartData()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"sparePart"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")]):e._e()],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"content-see"},[a("el-form",{ref:" seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部位名称:",prop:"positionName"}},[a("el-input",{ref:"positionName",attrs:{placeholder:"请输入部位名称",disabled:""},model:{value:e.seeTemp.positionName,callback:function(t){e.$set(e.seeTemp,"positionName",t)},expression:"seeTemp.positionName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"请输入备注",disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"配备数量","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusCopy],visible:e.dialogFormVisibleCopy,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleCopy=t}}},[a("div",{staticClass:"content-copy"},[a("el-form",{staticStyle:{width:"90%px",margin:"0 auto"},attrs:{"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"NewName"}},[a("tree-select",{attrs:{disabled:e.disabled,width:300,size:"small",multiple:"",data:e.parentType,"default-props":e.defaultProps,"collapse-tags":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogStatus,e.createCopyData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleCopy=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("5c96"),p=a("3de8"),m=a("a78e"),c=a.n(m),d=(a("ed08"),{name:"Buwei",components:{TreeSelect:p["a"]},directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0}},data:function(){return{textMap:{create:"新增",update:"编辑",copy:"复制",see:"查看详情",sparePart:"备件"},dialogFormVisibleCopy:!1,dialogStatusCopy:"",disabled:!1,parentType:[],getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],dataform:{id:"",name:"",selectType:[],sort:"",enable:""},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},getdataListParm:{name:"getPartList",parammaps:{id:""}},list:[],total:0,listLoading:!0,dialogStatus:"",dialogFormVisible:!1,createTemp:{part:"",note:""},listAdd:[],tableKey:0,isokDisable:!1,requestSparePart:{name:"getPartsListBW",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},postDataPramas:{},seeTemp:{},dialogStatusSee:"",dialogFormVisibleSee:!1,listLoadingSee:!0,totalSee:0,listSee:[],getdataListParmSee:{name:"getPositionPartBypid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},partTemp:{},postUpdatePramas:{},requestParam:{},rules:{positionName:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isUpdate:!1}},watch:{assetTypeid:function(e){console.log(e),null!=this.assetTypeid&&(this.getdataListParm.parammaps.id=this.assetTypeid,this.get_table_data(),this.getTypeList())}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){console.log("部位table数据",t.data.list),e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetCreateTemp:function(){this.listAdd=[],this.createTemp={}},form_add:function(){""!=this.assetTypeid&&(this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.isUpdate=!0,console.log(this.assetTypeid))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(l["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),null!=this.listAdd?this.listAdd.find((function(t){return t.partId===e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e)):(this.listAdd=[],this.$set(e,"myid",(new Date).getTime()),this.listAdd.unshift(e)),console.log(this.listAdd,"this.listAdd")},partDelete:function(e){var t=this;console.log(this.listAdd),o["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(console.log(e.listAdd),0===e.listAdd.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listAdd.length;a++){if(""==e.listAdd[a].amount||null==e.listAdd[a].amount)return e.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1;var s=/^\d+(\.\d{1,3})?$/;return s.test(parseFloat(e.listAdd[a].amount))?(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertPart",type:"e",parammaps:{positionName:e.createTemp.positionName,note:e.createTemp.note,id:e.assetTypeid}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:"@insertPart.LastInsertId",note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0):(e.$message({type:"error",message:"配备数量请输入自然数,最多保留两位小数点",duration:2e3}),!1)}}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(console.log(e.listAdd),0===e.listAdd.length)return e.createTemp.positionName?(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertPart",type:"e",parammaps:{positionName:e.createTemp.positionName,note:e.createTemp.note,id:e.assetTypeid}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0):(e.$notify({title:"",message:"部位名称不能为空",type:"warning",duration:2e3}),!1);for(var a=0;a<e.listAdd.length;a++)return""==e.listAdd[a].amount||null==e.listAdd[a].amount?(e.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1):(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertPart",type:"e",parammaps:{positionName:e.createTemp.positionName,note:e.createTemp.note,id:e.assetTypeid}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:"@insertPart.LastInsertId",note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0)}}))},handleCopy:function(){""!=this.assetTypeid&&(this.dialogFormVisibleCopy=!0,this.dialogStatusCopy="copy",this.defaultCheckedKeys=[])},createCopyData:function(){var e=this;if(console.log(this.dataform.selectType),0===this.dataform.selectType.length)this.$message({message:"请选择设备",type:"warning",duration:2e3});else{for(var t=[],a=0;a<this.dataform.selectType.length;a++){var s={};s["newEqclassId"]=this.dataform.selectType[a],t.push(s)}console.log("处理选中值",t),this.dialogStatusCopy="copy",this.dialogFormVisibleCopy=!0,this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"CopyPosition",type:"e",parammaps:{newEqclassId:"@insertSpotList.newEqclassId",eqclassid:this.assetTypeid}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("复制保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisibleCopy=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}},popoverHide:function(e,t){console.log("选中值",e,t),this.dataform.selectType=e,this.UpdateDataRelationParam.values=e},getTypeList:function(){var e=this;Object(l["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(l["E"])(t.data.list,"id","pid","children"))}))},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.dialogStatusSee="see",this.dialogFormVisibleSee=!0,this.getdataListParmSee.parammaps.positionId=e.id,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;Object(l["e"])(this.getdataListParmSee).then((function(t){console.log("部位table数据",t.data.list),e.listSee=t.data.list,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.isUpdate=!1,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.postUpdatePramas.name="updatePosition",this.postUpdatePramas.parammaps={},this.postUpdatePramas.parammaps.positionName=this.createTemp.positionName,this.postUpdatePramas.parammaps.note=this.createTemp.note,this.postUpdatePramas.parammaps.id=this.createTemp.id,Object(l["k"])(this.postUpdatePramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1,e.get_table_data())}))},handleSparePart:function(e){var t=this;this.dialogStatus="sparePart",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.isUpdate=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListParmSee.parammaps.positionId=e.id,this.get_table_dataPart()},get_table_dataPart:function(){var e=this;Object(l["e"])(this.getdataListParmSee).then((function(t){console.log("部位table数据",t.data.list),e.listAdd=t.data.list,setTimeout((function(){e.listLoading=!1}),100)}))},partUpdateDelete:function(e){var t=this;console.log(e),o["MessageBox"].confirm("名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].myid==e.myid)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},sparePartData:function(){var e=this;if(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(this.listAdd),0===this.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].amount||null==this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查配备数量是否未填写",duration:2e3}),!1;var a=/^\d+(\.\d{1,3})?$/;return a.test(parseFloat(this.listAdd[t].amount))?(this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deletePositionpartByPid",type:"e",parammaps:{positionId:this.createTemp.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPositionPart",type:"e",parammaps:{positionId:this.createTemp.id,note:"@insertSpotList.note",partId:"@insertSpotList.partId",amount:"@insertSpotList.amount"}},Object(l["c"])(this.postDataPramas).then((function(t){console.log("备件保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)})),!0):(this.$message({type:"error",message:"配备数量请输入自然数,最多保留两位小数点",duration:2e3}),!1)}},form_delete:function(e){var t=this;o["MessageBox"].confirm("名称:"+e.positionName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deletePart",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},jump:function(){this.$router.push("/console/menu")}}}),u=d,h=(a("028a"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},d2cb9:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("a",{staticStyle:{"border-bottom":"1px solid #333"},on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt))]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e(),e._v(" "),"已录制未上传"==t.row.videoTxt?a("el-link",[e._v("已录制未上传 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),5==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]),e._v(" "),3==s.SHStatue&&e.isDepartmentCharge&&s.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),e.dialogFormVisible_See?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close_diago()}}},[e._v("关闭")])],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},close_diago:function(){console.log(0xa1b01d4b1c7),this.dialogFormVisible_See=!1},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||6==e.SHStatue||8==e.SHStatue?"未通过":5==e.SHStatue?"审核中":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养"},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核"},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"部门主管审核"},{title:"设备主管审核"}]):5===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"",reason:""},{title:"设备主管审核"}],this.active=3):6===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"error",reason:t},{title:"设备主管审核"}],this.active=3):7===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=4):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=4),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!1,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("4a4f"),a("15e1"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"da867aae",null);t["default"]=g.exports},d2d2:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"部门",prop:"deptid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:250,size:"small",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),e._v(" "),a("el-button",{staticStyle:{position:"absolute",top:"26px",left:"455px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleClickSure}},[e._v("确认")])],1)],1)},i=[],r=(a("c5f6"),a("3de8")),n=a("6724"),l=a("61f7"),o=a("6041"),p=a("2934"),m={name:"Template",components:{TreeSelect:r["a"]},directives:{waves:n["a"],enterToNext:o["a"]},props:{assetTypeid:{type:Number,default:0},deptId:{type:Number,default:0},typeNumber:{type:String,required:!0}},data:function(){return{disabled:!1,tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],parentDept:[],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParamsDept:{name:"updateAssetTypeDept",offset:0,pagecount:0,params:[]},dataform:{deptid:""},getDeptParm:{name:"getdeptrecu",idname:"value",params:[3]},getdataListParm:{name:"getEmpAll",offset:1,pagecount:10,returntype:"Map",params:[]},rules:{empname:[{type:"string",required:!0,message:"员工名必填",trigger:"change"}],sort:[{validator:l["b"],trigger:"blur"}]},dialogFormVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"label"},nodeKey:"value",defaultCheckedKeys:[]}},watch:{assetTypeid:function(e){null!=this.assetTypeid&&this.getDeptList()},deptId:function(e){null!=this.deptId&&this.getDeptList()},typeNumber:function(e){null!=this.typeNumber&&this.getDeptList()}},created:function(){this.get_table_data()},methods:{popoverHide:function(e,t){this.dataform.deptid=e,this.requestParamsDept.params[0]=this.dataform.deptid},handleClickSure:function(e){var t=this,a=this.typeNumber,s=a.substring(0,5);this.requestParamsDept.params[1]=s,Object(p["k"])(this.requestParamsDept).then((function(e){"ok"===e.msg?t.$notify({title:"成功",message:"更新成功",type:"success",duration:2e3}):t.$notify({title:"失败",message:"更新失败",type:"danger",duration:2e3})}))},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(p["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),e.getDeptList(),setTimeout((function(){e.listLoading=!1}),500)}))},getDeptList:function(){var e=this;Object(p["y"])(this.getDeptParm).then((function(t){e.parentDept=t.data}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},d310:function(e,t,a){},d3103:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("svg-icon",{staticStyle:{color:"#606266"},attrs:{"icon-class":"marker"}}),e._v(" "),a("el-button",{staticClass:"font-small",staticStyle:{"margin-left":"10px",float:"right"},attrs:{type:"primary",icon:"el-icon-copy-document"},on:{click:e.form_addCopy}},[e._v("复制")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px",float:"right"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"序号","header-align":"center",width:"50px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.i))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","header-align":"center",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目大类","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bigClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目小类","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.smallClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"值类型","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.valueType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{staticStyle:{width:"800px",margin:"0 auto"},attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_st,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible_st=t}}},[a("el-form",{ref:"startForm",staticStyle:{width:"300px","margin-left":"50px"},attrs:{rules:e.rules,model:e.startForm,"label-position":"right","label-width":"100px"}},[a("el-form-item",{attrs:{label:"部位:",prop:"part"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"部位"},model:{value:e.startForm.partId,callback:function(t){e.$set(e.startForm,"partId",t)},expression:"startForm.partId"}},e._l(e.findAllPart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.partName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"项目大类:",prop:"bigClass"}},[a("el-input",{ref:"bigClass",model:{value:e.startForm.bigClass,callback:function(t){e.$set(e.startForm,"bigClass",t)},expression:"startForm.bigClass"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"项目小类:",prop:"smallClass"}},[a("el-input",{ref:"smallClass",model:{value:e.startForm.smallClass,callback:function(t){e.$set(e.startForm,"smallClass",t)},expression:"startForm.smallClass"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"值类型:",prop:"valueType"}},[a("el-input",{ref:"valueType",model:{value:e.startForm.valueType,callback:function(t){e.$set(e.startForm,"valueType",t)},expression:"startForm.valueType"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.startForm.note,callback:function(t){e.$set(e.startForm,"note",t)},expression:"startForm.note"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"30px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_st=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("c5f6"),a("6724")),n=a("6041"),l=a("2934"),o=a("61f7"),p=a("5c96"),m={name:"Yunxing",directives:{waves:r["a"],enterToNext:n["a"]},props:{assetTypeid:{type:Number,default:0}},data:function(){return{defaultProps:{children:"children",label:"name"},dictid:0,list:[],total:0,listLoading:!0,requestParam:{name:"",parammaps:{}},startForm:{partId:"",partName:"",smallClass:"",bigClass:"",valueType:"",note:""},getdataListParm:{name:"getStartTemplateList",offset:0,pagecount:0,params:[]},rules:{label:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],value:[{type:"string",required:!0,message:"只必填",trigger:"change"}],orderby:[{validator:o["b"],trigger:"blur"}]},dialogFormVisible_st:!1,parentDeptVisible:!0,dialogStatus:"",getDictByName:[],findAllPart:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["保养模板周期"]},{name:"findAllPart",offset:0,pagecount:0,params:[]}],textMap:{update:"编辑",create:"新增"},parent:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},watch:{assetTypeid:function(e){null!=this.assetTypeid&&(this.getdataListParm.params=[this.assetTypeid],this.get_table_data())}},created:function(){},methods:{jump:function(){this.$router.push("/console/menu")},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllPart=t.data.findAllPart.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.startForm.id="",this.startForm.partId="",this.startForm.partName="",this.startForm.note="",this.startForm.bigClass="",this.startForm.smallClass="",this.startForm.valueType="",this.startForm.assetTypeid=""},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible_st=!0,this.$nextTick((function(){e.get_select_list()}))},add_dialog_save:function(){var e=this;this.$refs["startForm"].validate((function(t){t&&(e.requestParam.name="insertStartTemplate",e.requestParam.parammaps={},e.startForm.assetTypeid=e.getdataListParm.params[0],e.requestParam.parammaps=e.startForm,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible_st=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["startForm"].validate((function(t){t&&(e.requestParam.name="insertStartTemplate",e.requestParam.parammaps={},e.startForm.assetTypeid=e.getdataListParm.params[0],e.requestParam.parammaps=e.startForm,Object(l["k"])(e.requestParam).then((function(){e.$nextTick((function(){})),e.get_table_data(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.startForm.id=e.id,this.startForm.partId=e.partId,this.startForm.partName=e.partName,this.startForm.bigClass=e.bigClass,this.startForm.smallClass=e.smallClass,this.startForm.valueType=e.valueType,this.startForm.note=e.note,this.dialogStatus="update",this.dialogFormVisible_st=!0,this.$nextTick((function(){t.get_select_list()}))},edit_dialog_save:function(){var e=this;this.$refs["startForm"].validate((function(t){t&&(e.requestParam.name="updateStartTemplate",e.requestParam.parammaps={},e.requestParam.parammaps["partId"]=e.startForm.partId,e.requestParam.parammaps["partName"]=e.startForm.partName,e.requestParam.parammaps["valueType"]=e.startForm.valueType,e.requestParam.parammaps["note"]=e.startForm.note,e.requestParam.parammaps["bigClass"]=e.startForm.bigClass,e.requestParam.parammaps["smallClass"]=e.startForm.smallClass,e.requestParam.parammaps["id"]=e.startForm.id,Object(l["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible_st=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateStartTemplate",this.requestParam.parammaps={},this.requestParam.parammaps["partId"]=t.partId,this.requestParam.parammaps["partName"]=t.partName,this.requestParam.parammaps["valueType"]=t.valueType,this.requestParam.parammaps["note"]=t.note,this.requestParam.parammaps["bigClass"]=t.bigClass,this.requestParam.parammaps["smallClass"]=t.smallClass,this.requestParam.parammaps["id"]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("名称:"+e.label,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteStartTemplate",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible_st=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},c=m,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);t["default"]=u.exports},d335:function(e,t,a){"use strict";a("b644")},d35d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{ref:"pastureName",staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetCode",t)},expression:"getdataListParm.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_add}},[e._v("变更")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更日期",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("状态变更")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("变更记录")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"assetName"}},[a("el-autocomplete",{ref:"assetName",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"assetName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.assetName,callback:function(t){e.$set(e.temp,"assetName",t)},expression:"temp.assetName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场设备编号:",prop:"eqCode"}},[a("el-autocomplete",{ref:"eqCode",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"eqCode","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNumberSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.eqCode,callback:function(t){e.$set(e.temp,"eqCode",t)},expression:"temp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更状态:"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.temp.deptName,callback:function(t){e.$set(e.temp,"deptName",t)},expression:"temp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"变更时间","picker-options":e.pickerOptions0},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"操作人"},model:{value:e.temp.empId,callback:function(t){e.$set(e.temp,"empId",t)},expression:"temp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.cardTitle,visible:e.dialogFormVisibleCard,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleCard=t}}},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"rowSeeData",staticStyle:{width:"100%",margin:"0 auto"},attrs:{rules:e.rules,model:e.rowSeeData,"label-position":"right","label-width":"120px"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParmSee.parammaps.changeStatue,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"changeStatue",t)},expression:"getdataListParmSee.parammaps.changeStatue"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSee.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParmSee.parammaps,"inputDatetime",t)},expression:"getdataListParmSee.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchDelivery}},[e._v("搜索")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更日期",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"变更人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListParmSee.offset,limit:e.getdataListParmSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSee,"pagecount",t)},pagination:e.get_table_dataSee}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleCard=!1}}},[e._v("关闭")])],1)],1)])],1)},i=[],r=a("ade3"),n=(a("7f7f"),a("7514"),a("2934")),l=a("6724"),o=a("ed08"),p=(a("61f7"),a("333d")),m=a("a78e"),c=a.n(m),d={name:"Install",components:{Pagination:p["a"]},directives:{waves:l["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},getdataListParm:{name:"geteqChangeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetCode:"",eqName:"",pastureName:c.a.get("pasturename"),status:"",deptName:"",departmentId:""}},downLoadParm:{},downLoadList:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},postDataPramas:{common:{returnmap:"0"},data:[{name:"updateChangeStatue",type:"e",parammaps:{status:"",assetId:"",pastureId:c.a.get("pastureid")}},{name:"updateAssetChange",type:"e",parammaps:{changeStatue:"",assetId:"",assetName:"",assetNumber:"",pastureId:c.a.get("pastureid"),empId:""}}]},temp:{pastureName:"",deptName:"",deptId:"",eqName:"",assetId:"",eqCode:"",status:"",statusId:"",inputDatetime:new Date,typeName:"",assTypeId:"",syStatus:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,employeName:this.$store.state.user.employename,pastureId:this.$store.state.user.pastureid},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"修改状态",create:"新增"},dialogPvVisible:!1,requestFilterParams:{name:"findAssetMain",offset:0,pagecount:20,returntype:"Map",parammaps:{}},cardTitle:"变更记录",dialogFormVisibleCard:!1,dialogStatusCard:"",listLoadingSee:!0,rowSeeData:{},listSee:[],totalSee:0,getdataListParmSee:{name:"getAssetchangeList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqId:"",changeStatue:"",inputDatetime:"",startTime:"",stopTime:"",pastureId:c.a.get("pastureid")}},checkStatus:"",pickerOptions0:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},rules:{assetName:[{required:!0,message:"必填",trigger:"remove-tag"}],eqCode:[{required:!0,message:"必填",trigger:"expand-change"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},methods:{formNumberSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]=e,this.requestFilterParams.parammaps["assetName"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(n["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},formNameSearch:function(e,t){this.requestFilterParams.parammaps["eqCode"]="",this.requestFilterParams.parammaps["assetName"]=e,this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(n["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNumberSelect:function(e){this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.temp.eqId=e.eqId,this.temp.id=e.assetId,this.temp.assetId=e.assetId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName,this.temp.deptName=e.deptName,this.temp.deptId=e.deptName,this.temp.changeStatue=e.changeStatue,this.temp.status=e.status,this.checkStatus=e.status,this.temp.employeId=e.employeId,this.temp.employeName=e.employeName,this.temp.inputDatetime=new Date,void 0===e.sttId||null===e.sttId?this.temp.sttId=0:this.temp.sttId=e.sttId},handleformNameSelect:function(e){console.log(e),this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.temp.eqId=e.eqId,this.temp.id=e.assetId,this.temp.assetId=e.assetId,this.temp.pastureId=e.pastureId,this.temp.pastureName=e.pastureName,this.temp.deptName=e.deptName,this.temp.deptId=e.deptName,this.temp.changeStatue=e.changeStatue,this.temp.status=e.status,this.checkStatus=e.status,this.temp.employeId=e.employeId,this.temp.employeName=e.employeName,console.log(e.inputDatetime),void 0===e.sttId||null===e.sttId?this.temp.sttId=0:this.temp.sttId=e.sttId},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(console.log("表格:",t.data.list),e.list=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath=""),console.log(e.list[a].srcpath);e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(n["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.statusId=t},form_reset:function(){var e;this.temp=(e={pastureName:"",deptName:"",deptId:"",employeName:"",eqName:"",assetId:"",eqCode:"",status:"",statusId:"",inputDatetime:new Date,typeName:"",assTypeId:"",syStatus:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid},Object(r["a"])(e,"employeName",this.$store.state.user.employeid),Object(r["a"])(e,"pastureId",this.$store.state.user.pastureid),e),this.checkStatus=""},add_dialog_save:function(){var e=this;""==this.temp.assetId||""==this.temp.eqCode||""==this.temp.eqName?this.$notify({title:"",message:"请输入设备名称或设备内部编号",type:"warning",duration:2e3}):this.checkStatus==this.temp.status?this.$notify({title:"",message:"请选择变更状态",type:"warning",duration:2e3}):(this.postDataPramas.data[0].parammaps.status=this.temp.status,this.postDataPramas.data[0].parammaps.assetId=this.temp.assetId,this.postDataPramas.data[1].parammaps.changeStatue=this.temp.status,this.postDataPramas.data[1].parammaps.assetId=this.temp.assetId,this.postDataPramas.data[1].parammaps.assetName=this.temp.eqName,this.postDataPramas.data[1].parammaps.assetNumber=this.temp.eqCode,this.postDataPramas.data[1].parammaps.empId=this.temp.empId,Object(n["c"])(this.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"变更失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"变更成功",type:"success",duration:2e3}))})))},edit_dialog_save:function(){var e=this;this.checkStatus==this.temp.status?this.$notify({title:"",message:"请选择变更状态",type:"warning",duration:2e3}):(this.postDataPramas.data[0].parammaps.status=this.temp.status,this.postDataPramas.data[0].parammaps.assetId=this.temp.assetId,this.postDataPramas.data[1].parammaps.changeStatue=this.temp.status,this.postDataPramas.data[1].parammaps.assetId=this.temp.assetId,this.postDataPramas.data[1].parammaps.assetName=this.temp.eqName,this.postDataPramas.data[1].parammaps.assetNumber=this.temp.eqCode,this.postDataPramas.data[1].parammaps.empId=this.temp.empId,this.postDataPramas.data[1].parammaps.changeId=this.temp.employeId,Object(n["c"])(this.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"变更失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"变更成功",type:"success",duration:2e3}))})))},form_edit:function(e){var t=this;console.log("row",e),this.temp=Object.assign({},e),this.temp.inputDatetime=new Date,this.temp.empId=this.$store.state.user.employeid,this.checkStatus=e.status,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.empId=this.$store.state.user.employeid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},form_see:function(e){console.log(e),this.rowSeeData=Object.assign({},e),this.cardTitle="变更记录 设备名称:"+e.eqName+"设备编号:"+e.eqCode,this.dialogFormVisibleCard=!0,this.getdataListParmSee.parammaps.eqId=e.id,this.get_table_dataSee()},form_searchDelivery:function(){null===this.getdataListParmSee.parammaps.inputDatetime&&(this.getdataListParmSee.parammaps.inputDatetime=""),console.log("getdataListParmSee",this.getdataListParmSee),this.getdataListParmSee.offset=1,this.get_table_dataSee()},get_table_dataSee:function(){var e=this;console.log("enabledTime",this.$refs["inputDatetime2"]),void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParmSee.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParmSee.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParmSee.parammaps.startTime="",this.getdataListParmSee.parammaps.stopTime=""),Object(n["e"])(this.getdataListParmSee).then((function(t){e.listSee=t.data.list,console.log("记录列表数据",t.data.list),e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),300)}))},handleDownload:function(){var e=this;this.$alert("设备变更正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="geteqChangeList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备名称","设备内部编号","规格","品牌","部门","状态","变更日期"],filterVal:["pastureName","eqName","eqCode","specification","brandName","deptName","status","changeTime"],tableDatas:e.downLoadList,sheetName:"设备变更"}];Object(o["d"])(a,"设备变更",!0,"xlsx")}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},d36d:function(e,t,a){"use strict";a("543e")},d404:function(e,t,a){},d454:function(e,t,a){"use strict";a("e8d0")},d49d:function(e,t,a){"use strict";a("8326")},d4f9:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{attrs:{type:"monthrange","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeTime},model:{value:e.monthDate,callback:function(t){e.monthDate=t},expression:"monthDate"}}),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{float:"right",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),e.isTable1?a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.tableCellClick(s)}}},[e._v(e._s(s.pastureName))])]}}],null,!1,3845269539)}),e._v(" "),a("el-table-column",{attrs:{label:"库存标准","min-width":"140px",align:"center",sortable:"",prop:"standard"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际库存","min-width":"140px",align:"center",sortable:"",prop:"psCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"差异","min-width":"140px",align:"center",sortable:"",prop:"different"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库金额","min-width":"140px",align:"center",sortable:"",prop:"ckje"}}),e._v(" "),a("el-table-column",{attrs:{label:"期初库存","min-width":"140px",align:"center",sortable:"",prop:"earlymonth"}}),e._v(" "),a("el-table-column",{attrs:{label:"期末库存","min-width":"140px",align:"center",sortable:"",prop:"endofmonth"}}),e._v(" "),a("el-table-column",{attrs:{label:"库存周转率","min-width":"140px",align:"center",sortable:"",prop:"rateofturnover"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1):e._e(),e._v(" "),e.isTable2?a("div",[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getdataListParm.parammaps.type,callback:function(t){e.$set(e.getdataListParm.parammaps,"type",t)},expression:"getdataListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("div",{staticStyle:{"line-height":"50px",height:"50px"}},[a("b",{on:{click:function(t){return e.goAll()}}},[e._v("所有牧场")]),e._v(">"),a("span",[e._v(e._s(e.table2.title))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table2.pageNum-1)*e.table2.pageSize+1))])]}}],null,!1,1485743277)}),e._v(" "),e.isProvider?a("el-table-column",{key:1,attrs:{label:"供应商","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}):e._e(),e._v(" "),e.isProvider?a("el-table-column",{key:2,attrs:{label:"备件总数量","min-width":"140px",align:"center",sortable:"",prop:"psCount"}}):e._e(),e._v(" "),e.isProvider?a("el-table-column",{key:3,attrs:{label:"总金额","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:4,attrs:{label:"备件类别","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partClass))])]}}],null,!1,3728162719)}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:5,attrs:{label:"标准库存","min-width":"140px",align:"center",sortable:"",prop:"standard"}}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:6,attrs:{label:"备件总库存","min-width":"140px",align:"center",sortable:"",prop:"psCount"}}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:7,attrs:{label:"标准库存差异","min-width":"140px",align:"center",sortable:"",prop:"different"}}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:8,attrs:{label:"总金额","min-width":"140px",align:"center",sortable:"",prop:"psSum"}}):e._e(),e._v(" "),e.isPartClass?a("el-table-column",{key:9,attrs:{label:"库存周转率","min-width":"140px",align:"center",sortable:"",prop:"periodicity"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleDetailed(s)}}},[e._v("明细")])]}}],null,!1,4042836480)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table2.total>0&&e.isProvider,expression:"table2.total>0 && isProvider"}],attrs:{total:e.table2.total,page:e.table2.getdataListParm.offset,limit:e.table2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table2.getdataListParm,"pagecount",t)},pagination:e.get_table_data2}}),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table2.total>0&&e.isPartClass,expression:"table2.total>0 && isPartClass"}],attrs:{total:e.totalEquipmentType,page:e.getEquipmentParm.offset,limit:e.getEquipmentParm.pagecount},on:{"update:page":function(t){return e.$set(e.getEquipmentParm,"offset",t)},"update:limit":function(t){return e.$set(e.getEquipmentParm,"pagecount",t)},pagination:e.getEquipmentTypeList}})],1):e._e()])},i=[],r=a("6724"),n=a("2934"),l=a("333d"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"InventorySummary",components:{Pagination:l["a"]},directives:{waves:r["a"]},data:function(){return{monthDate:[Object(m["e"])(new Date,"{y}-{m}"),Object(m["e"])(new Date,"{y}-{m}")],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},types:[{id:0,name:"按供应商"},{id:1,name:"按备件类别"}],findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],tableKey:0,list:[],total:0,listLoading:!0,isProvider:!0,getdataListParm:{name:"getPartPeriodicity",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),type:0}},isPartClass:!1,totalEquipmentType:0,getEquipmentParm:{name:"getPrGbypartclass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},Type:0,pastureName:"",downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1,isTable1:!0,isTable2:!1,table2:{title:"",tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getPrGbyprovider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),type:0}}}}},created:function(){this.get_select_list(),this.get_table_data()},mounted:function(){},methods:{tableSort:function(e){Object(m["f"])(e,this.list)},tableSort2:function(e){Object(m["f"])(e,this.table2.list)},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},changeTime:function(){Object(m["e"])(this.monthDate[0],"{y}-{m}")==Object(m["e"])(this.monthDate[1],"{y}-{m}")&&Object(m["e"])(this.monthDate[0],"{y}-{m}")==Object(m["e"])(new Date,"{y}-{m}")?this.monthDate=[Object(m["e"])(new Date,"{y}-{m}"),Object(m["e"])(new Date,"{y}-{m}")]:Object(m["e"])(this.monthDate[0],"{y}-{m}")!==Object(m["e"])(this.monthDate[1],"{y}-{m}")&&Object(m["e"])(this.monthDate[0],"{y}-{m}")==Object(m["e"])(new Date,"{y}-{m}")?this.monthDate=[Object(m["e"])(new Date,"{y}-{m}"),Object(m["e"])(this.monthDate[1],"{y}-{m}")]:Object(m["e"])(this.monthDate[0],"{y}-{m}")!==Object(m["e"])(this.monthDate[1],"{y}-{m}")&&Object(m["e"])(this.monthDate[1],"{y}-{m}")==Object(m["e"])(new Date,"{y}-{m}")?this.monthDate=[Object(m["e"])(this.monthDate[0],"{y}-{m}"),Object(m["e"])(new Date,"{y}-{m}")]:this.monthDate=[Object(m["e"])(this.monthDate[0],"{y}-{m}"),Object(m["e"])(this.monthDate[1],"{y}-{m}")],this.get_table_data()},get_table_data:function(){var e=this;this.listLoading=!0,18==p.a.get("pastureid")?this.getdataListParm.parammaps.pastureId="":this.getdataListParm.parammaps.pastureId=p.a.get("pastureid"),this.getdataListParm.parammaps.startDate=this.monthDate[0],this.getdataListParm.parammaps.endDate=this.monthDate[1],Object(n["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list):e.list=[],e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getEquipmentTypeList:function(){var e=this;this.table2.listLoading=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,Object(n["e"])(this.getEquipmentParm).then((function(t){console.log("table数据",t.data.list),e.table2.list=t.data.list,e.pageNumEquipmentType=t.data.pageNum,e.pageSizeEquipmentType=t.data.pageSize,e.totalEquipmentType=t.data.total,console.log(t.data.total),console.log(e.totalEquipmentType),setTimeout((function(){e.table2.listLoading=!1}),100)}))},changePasture:function(e){this.pastureName=e,0==this.Type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.get_table_data(),this.isProvider=!0,this.isPartClass=!1):(this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentTypeList())},changeType:function(e){this.Type=e,0==this.Type?(this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data2()):(this.table2.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.table2.getdataListParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList())},handleDownload:function(){var e=this;console.log("点击了导出"),console.log(this.Type),this.$alert("库存汇总正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);0==this.Type?(this.downLoadParm.name="getPartPeriodicity",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","库存标准","实际库存","差异","出库金额","期初库存","期末库存","库存周转率"],filterVal:["pastureName","standard","psCount","different","ckje","earlymonth","endofmonth","rateofturnover"],tableDatas:e.downLoadList,sheetName:"库存汇总"}];Object(m["d"])(a,"库存汇总",!0,"xlsx")}))}))):1==this.Type&&(this.downLoadParm.name="getPrGbypartclass",this.downLoadParm.parammaps=this.getEquipmentParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","备件类别","备件总数量","总金额"],filterVal:["pastureName","partClass","psCount","psSum"],tableDatas:e.downLoadList,sheetName:"库存汇总"}];Object(m["d"])(a,"库存汇总",!0,"xlsx")}))})))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"现代牧业"!==t.pastureName&&1===a?{textDecoration:"underline"}:{textDecoration:"none"}},tableCellClick:function(e){this.pastureName=e.pastureName,"现代牧业"!==e.pastureName?(this.get_table_data2(),this.isTable1=!1,this.isTable2=!0,this.table2.title=e.pastureName+"库存汇总"):(0==this.getdataListParm.parammaps.type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data()):(this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList()),this.isTable1=!0,this.isTable2=!1),this.pastureName=e.pastureName},get_table_data2:function(){var e=this;this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.pastureName=this.pastureName,Object(n["e"])(this.table2.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.table2.list=t.data.list):e.table2.list=[],e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total,setTimeout((function(){e.table2.listLoading=!1}),100)}))},goAll:function(){0==this.getdataListParm.parammaps.type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isProvider=!0,this.isPartClass=!1,this.get_table_data()):(this.listLoading=!0,this.isProvider=!1,this.isPartClass=!0,this.getEquipmentParm.parammaps.pastureName=this.pastureName,this.getEquipmentTypeList()),this.isTable1=!0,this.isTable2=!1},handleDetailed:function(e){1==this.isProvider?(this.$router.push({path:"/customs/custom",query:{providerName:e.providerName}}),this.getdataListParm.parammaps.providerName=e.providerName):(this.$router.push({path:"/customs/custom",query:{defaultCheckedKeys:e.id}}),this.getdataListParm.parammaps.defaultCheckedKeys=e.id)}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},d56a:function(e,t,a){"use strict";a("2cf3")},d67a:function(e,t,a){},d6a1:function(e,t,a){},d6bc:function(e,t,a){},d6e9:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件出库",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm.parammaps,"useForm",t)},expression:"getdataListParm.parammaps.useForm"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"出库方式"},model:{value:e.getdataListParm.parammaps.useType,callback:function(t){e.$set(e.getdataListParm.parammaps,"useType",t)},expression:"getdataListParm.parammaps.useType"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"领用部门",clearable:""},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"EAS同步状态"},model:{value:e.getdataListParm.parammaps.easStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"easStatus",t)},expression:"getdataListParm.parammaps.easStatus"}},e._l(e.easStatus.easStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{clearable:"",type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isOutStockAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isReceiveTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isOutStockImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")]):e._e()],1),e._v(" "),e.isOutStockExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-upload2"},on:{click:e.handleDownloadEas1}},[e._v("导出EAS")]),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"partKind",label:"备件种类数",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partKind))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库方式",align:"center","min-width":"100px",formatter:e.useType}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",sortable:"",prop:"creatTime","min-width":"100px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isOutStockSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isOutStockDelete&&4!==s.useType?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"出库记录",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm2.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"pastureName",t)},expression:"getdataListParm2.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"出库单号"},model:{value:e.getdataListParm2.parammaps.useForm,callback:function(t){e.$set(e.getdataListParm2.parammaps,"useForm",t)},expression:"getdataListParm2.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm2.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partCode",t)},expression:"getdataListParm2.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm2.parammaps.partName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"partName",t)},expression:"getdataListParm2.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.getdataListParm2.parammaps.providerId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"providerId",t)},expression:"getdataListParm2.parammaps.providerId"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"领用部门",clearable:""},model:{value:e.getdataListParm2.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm2.parammaps,"departmentId",t)},expression:"getdataListParm2.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentType,disabled:e.disabled2,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm2.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm2.parammaps,"eqName",t)},expression:"getdataListParm2.parammaps.eqName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm2.parammaps,"inputDatetime",t)},expression:"getdataListParm2.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search2}},[e._v("搜索")]),e._v(" "),e.isOutStockExport?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload2}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading2,expression:"listLoading2"}],key:e.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum2-1)*e.pageSize2+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"费用类型",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初库存",sortable:"",prop:"reportery",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库数量",sortable:"",prop:"checkoutNumber",align:"center","min-width":"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.appliname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人",align:"center","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期",sortable:"",prop:"creatTime","min-width":"120px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total2>0,expression:"total2>0"}],attrs:{total:e.total2,page:e.getdataListParm2.offset,limit:e.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm2,"pagecount",t)},pagination:e.get_table_data2}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.createTemp.useForm,callback:function(t){e.$set(e.createTemp,"useForm",t)},expression:"createTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.empId,callback:function(t){e.$set(e.createTemp,"empId",t)},expression:"createTemp.empId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库方式:",prop:"useType"}},[a("el-radio-group",{on:{change:e.changeStorageType},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e.isOutStockMethod1?a("el-radio",{attrs:{label:0,checked:""},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("领用出库")]):e._e(),e._v(" "),e.isOutStockMethod2?a("el-radio",{attrs:{label:1},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("手动出库")]):e._e(),e._v(" "),e.isOutStockMethod3?a("el-radio",{attrs:{label:2},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("调拨出库")]):e._e(),e._v(" "),e.isOutStockMethod4?a("el-radio",{attrs:{label:5},model:{value:e.createTemp.useType,callback:function(t){e.$set(e.createTemp,"useType",t)},expression:"createTemp.useType"}},[e._v("报废出库")]):e._e()],1)],1)],1),e._v(" "),e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.getNumber,placeholder:"请输入领用单号"},on:{select:e.changeApplyCode},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.applyCode))]),e._v(" "),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.departmentName))])]}}],null,!1,174341331),model:{value:e.orderPart.applyCode,callback:function(t){e.$set(e.orderPart,"applyCode",t)},expression:"orderPart.applyCode"}})],1)],1):e._e(),e._v(" "),e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门",disabled:""},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.No2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"领用部门"},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.isReceiveTime2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"receiveTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"出库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.receiveTime,callback:function(t){e.$set(e.createTemp,"receiveTime",t)},expression:"createTemp.receiveTime"}})],1)],1):e._e(),e._v(" "),e.isReceiveTime2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[e.No1?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"applicatId"}},[a("el-select",{ref:"applicatId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"领用人",disabled:""},model:{value:e.createTemp.applicatId,callback:function(t){e.$set(e.createTemp,"applicatId",t)},expression:"createTemp.applicatId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.No2?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"applicatId"}},[a("el-select",{ref:"applicatId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"领用人"},model:{value:e.createTemp.applicatId,callback:function(t){e.$set(e.createTemp,"applicatId",t)},expression:"createTemp.applicatId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),e.isReceiveTime?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"receiveTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"出库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.receiveTime,callback:function(t){e.$set(e.createTemp,"receiveTime",t)},expression:"createTemp.receiveTime"}})],1)],1):e._e(),e._v(" "),e.isReceiveTime?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1):e._e()],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"500px"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格或供应商"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",[e._v("规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))]),a("br"),e._v(" "),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("品牌:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.brand))]),e._v("\n |"),a("b",[e._v("供应商:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.providerName))])]}}],null,!1,2767326612),model:{value:e.orderPart.partCode,callback:function(t){e.$set(e.orderPart,"partCode",t)},expression:"orderPart.partCode"}})],1)],1)],1):e._e(),e._v(" "),e.No3?a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"applyCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"500px"},attrs:{"value-key":"name","fetch-suggestions":e.allocationSearch,placeholder:"请输入调拨单号"},on:{select:e.handleSelectAllocation},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("调拨单号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.applyCode))]),e._v("\n |"),a("b",[e._v("调入牧场:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.inPastureName))])]}}],null,!1,4201740140),model:{value:e.createTemp.applyCode,callback:function(t){e.$set(e.createTemp,"applyCode",t)},expression:"createTemp.applyCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.tableCellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"备件图片",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.allo?a("el-table-column",{key:19,attrs:{label:"调拨数量",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:20,attrs:{label:"出库数量",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:8,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:9,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{ref:"elautocomplete1",staticClass:"inline-input",attrs:{debounce:0,"fetch-suggestions":e.querySearchEqName,"value-key":"eqName",placeholder:"设备名称"},on:{select:function(a){e.handleSelectEqName(a,t.row)},blur:function(a){e.blurSelectEqName(a,t.row)}},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr",staticStyle:{margin:"0 0 0 5px"}},[e._v(e._s(s.eqCode))])]}}],null,!0),model:{value:t.row.eqName,callback:function(a){e.$set(t.row,"eqName",a)},expression:"scope.row.eqName"}})]}}],null,!1,1093002196)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:10,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),e.No2?a("el-table-column",{key:11,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{ref:"elautocomplete2",staticClass:"inline-input",attrs:{debounce:0,"fetch-suggestions":e.querySearchCode,"value-key":"eqCode",placeholder:"设备内部编号"},on:{select:function(a){e.handleSelectEqCode(a,t.row)},blur:function(a){e.blurSelectEqCode(a,t.row)}},model:{value:t.row.eqCode,callback:function(a){e.$set(t.row,"eqCode",a)},expression:"scope.row.eqCode"}})]}}],null,!1,3846020883)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:12,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"费用类型"},model:{value:t.row.useTypeV,callback:function(a){e.$set(t.row,"useTypeV",a)},expression:"scope.row.useTypeV"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)]}}],null,!1,3847546736)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:13,attrs:{label:"库位",prop:"location",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}],null,!1,2558406843)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:14,attrs:{label:"库位库存数",prop:"reportery",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:15,attrs:{label:"领用数量","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},attrs:{disabled:e.disabled},on:{change:function(a){e.changeUseNumber(a,t.row)}},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}],null,!1,293295149)}):e._e(),e._v(" "),e.No4?a("el-table-column",{key:16,attrs:{label:"出库数量","min-width":"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"checkoutNumber"}},[a("el-input",{ref:"checkoutNumber",staticStyle:{"margin-top":"15px"},on:{change:function(a){e.changeCheckoutNumber(a,t.row)},blur:function(a){e.blurCheckoutNumber(a,t.row)}},model:{value:t.row.checkoutNumber,callback:function(a){e.$set(t.row,"checkoutNumber",a)},expression:"scope.row.checkoutNumber"}})],1)],1)]}}],null,!1,3742393115)}):e._e(),e._v(" "),a("el-table-column",{key:17,attrs:{label:"单价",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),e.No4?a("el-table-column",{key:18,attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.price*parseFloat(t.row.checkoutNumber))))])]}}],null,!1,268962198)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:21,attrs:{label:"总价",prop:"totalPrice",align:"center","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)}):e._e(),e._v(" "),e.allo?a("el-table-column",{key:22,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{filterable:"",placeholder:"费用类型",disabled:2==e.createTemp.useType},model:{value:t.row.useTypeV,callback:function(a){e.$set(t.row,"useTypeV",a)},expression:"scope.row.useTypeV"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)]}}],null,!1,112554361)}):e._e(),e._v(" "),a("el-table-column",{key:23,attrs:{label:"备注",prop:"totalPrice",align:"center","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})]}}])}),e._v(" "),e.No4?a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)}):e._e()],1),e._v(" "),a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"100px"}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库单号:",prop:"useForm"}},[a("el-input",{ref:"useForm",attrs:{disabled:""},model:{value:e.seeTemp.useForm,callback:function(t){e.$set(e.seeTemp,"useForm",t)},expression:"seeTemp.useForm"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库方式:",prop:"useType"}},[0==e.seeTemp.useType||1==e.seeTemp.useType||4==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:0,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),2==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:2,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),3==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:3,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e(),e._v(" "),5==e.seeTemp.useType?a("el-radio-group",{attrs:{disabled:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[a("el-radio",{attrs:{label:3},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("领用出库")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("手动出库")]),e._v(" "),a("el-radio",{attrs:{label:4},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("调拨出库")]),e._v(" "),a("el-radio",{attrs:{label:5,checked:""},model:{value:e.seeTemp.useType,callback:function(t){e.$set(e.seeTemp,"useType",t)},expression:"seeTemp.useType"}},[e._v("报废出库")])],1):e._e()],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[e.oddCodeAllo?a("el-form-item",{attrs:{label:"领用单号:",prop:"oddCode"}},[a("el-input",{ref:"oddCode",attrs:{disabled:""},model:{value:e.seeTemp.oddCode,callback:function(t){e.$set(e.seeTemp,"oddCode",t)},expression:"seeTemp.oddCode"}})],1):e._e()],1),e._v(" "),e.No5?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1):e._e(),e._v(" "),e.isCreatTimeAllo?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"creatTime"}},[a("el-input",{ref:"creatTime",attrs:{disabled:""},model:{value:e.seeTemp.creatTime,callback:function(t){e.$set(e.seeTemp,"creatTime",t)},expression:"seeTemp.creatTime"}})],1)],1):e._e(),e._v(" "),e.isCreatTimeAllo?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1):e._e()],1),e._v(" "),e.No5?a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用人:",prop:"appliname"}},[a("el-input",{ref:"appliname",attrs:{disabled:""},model:{value:e.seeTemp.appliname,callback:function(t){e.$set(e.seeTemp,"appliname",t)},expression:"seeTemp.appliname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"creatTime"}},[a("el-input",{ref:"creatTime",attrs:{disabled:""},model:{value:e.seeTemp.creatTime,callback:function(t){e.$set(e.seeTemp,"creatTime",t)},expression:"seeTemp.creatTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{disabled:""},model:{value:e.seeTemp.note,callback:function(t){e.$set(e.seeTemp,"note",t)},expression:"seeTemp.note"}})],1)],1)],1):e._e(),e._v(" "),e.isTableAllo1?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"调拨单号:",prop:"oddCode"}},[a("el-input",{ref:"oddCode",attrs:{disabled:""},model:{value:e.seeTemp.oddCode,callback:function(t){e.$set(e.seeTemp,"oddCode",t)},expression:"seeTemp.oddCode"}})],1)],1)],1):e._e()],1),e._v(" "),a("h5",{staticStyle:{float:"right"}},[e._v("总金额:"+e._s(e.TotalAmount))]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"备件编号","min-width":"150px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}])}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"供应商",prop:"providerName",align:"center","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),e.isTableAllo?a("el-table-column",{key:8,attrs:{label:"设备名称",prop:"eqName",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}],null,!1,383737045)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:9,attrs:{label:"设备内部编号",prop:"eqCode",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}],null,!1,1285664799)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:10,attrs:{label:"费用类型",prop:"useTypeV",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:11,attrs:{label:"库位",prop:"warehoseCode",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warehoseCode))])]}}],null,!1,2436459771)}):e._e(),e._v(" "),e.isTableAllo?a("el-table-column",{key:12,attrs:{label:"库位库存数",sortable:"",prop:"reportery",align:"center","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}):e._e(),e._v(" "),e.No1?a("el-table-column",{key:13,attrs:{sortable:"",prop:"useNumber",label:"领用数量","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useNumber))])]}}],null,!1,2907969670)}):e._e(),e._v(" "),e.isTableAllo1?a("el-table-column",{key:14,attrs:{sortable:"",prop:"checkoutNumber",label:"调拨数量","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}):e._e(),e._v(" "),a("el-table-column",{key:15,attrs:{label:"出库数量",sortable:"",prop:"checkoutNumber","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}])}),e._v(" "),a("el-table-column",{key:16,attrs:{label:"单价",sortable:"",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{key:17,attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),e.isTableAllo1?a("el-table-column",{key:18,attrs:{label:"费用类型",prop:"sumPrice",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}):e._e(),e._v(" "),a("el-table-column",{key:19,attrs:{label:"备注",prop:"sumPrice",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"-25px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号","min-width":"110px",align:"center",prop:"useForm"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center",prop:"departmentName"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center",prop:"empName"}}),e._v(" "),a("el-table-column",{attrs:{label:"出库日期","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isCloseSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleClose(s)}}},[e._v("关闭同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("6b54"),a("7f7f"),a("7514"),a("c5f6"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("5f87"),u=a("3de8"),h={name:"OutStock",components:{Pagination:o["a"],TreeSelect:u["a"]},directives:{waves:n["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{totalImportInfo:0,listLoadingImportInfo:!0,listImportInfo:[],tableKey:0,useTypes:[{id:"0",name:"领用出库"},{id:"1",name:"手动出库"},{id:"4",name:"调拨出库"},{id:"5",name:"报废出库"}],getdataListParmImportInfo:{name:"getImportStockLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:"",deptName:"",useForm:"",stockNumber:"",stockName:"",receiveTime:"",providerName:"",storageName:"",storageTime:""}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"CK"}},temp:{},storage:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assTypeId:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,laidNumber:""},dialogPvVisible:!1,isOutStockAdd:[],isReceiveTemplate:[],isOutStockImport:[],isOutStockExport:[],isOutStockSee:[],isOutStockDelete:[],isOutStockMethod1:[],isOutStockMethod2:[],isOutStockMethod3:[],isOutStockMethod4:[],isEasSynchronization:[],isManualSynchronization:[],isCloseSynchronization:[],isIgnoreSynchronization:[],rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["耗用类别-父"]}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},pickerOptions2:{disabledDate:function(e){return e.getTime()>Date.now()}},No1:!0,No2:!1,No3:!1,No4:!0,isReceiveTime:!0,isReceiveTime2:!1,allo:!1,disabled:!0,isokDisable:!1,total:0,listLoading:!0,dialogFormVisible:!1,dialogFormVisible_See:!1,dialogStatus:"",textMap:{see:"查看详情",update:"编辑",create:"新增",easStatus:"EAS同步—同步失败数据"},getdataListParm:{name:"getBigPartuseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),departmentId:"",inputDatetime:"",useForm:"",useType:"",easStatus:""}},list:[],activeName:"first",tableKey2:0,listLoading2:!0,total2:0,list2:[],getdataListParm2:{name:"getPartuseDetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",useForm:"",startTime:"",stopTime:"",departmentId:"",partCode:"",partName:"",providerId:"",pastureName:c.a.get("pasturename"),assetCode:"",eqName:""}},requestParam:{name:"downloadPartuseList",parammaps:{pastureName:c.a.get("pasturename"),inputDatetime:""}},downList:[],oddCodeAllo:!0,No5:!0,isCreatTimeAllo:!1,isTableAllo:!0,isTableAllo1:!1,seeTemp:{},listSee:[],totalSee:0,getdataListSee:{name:"getpartUseListBybig",returntype:"Map",parammaps:{}},createTemp:{useType:0,empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),receiveTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),applicatId:c.a.get("employeid"),departmentId:c.a.get("departmentid")},requestSparePart:{name:"getPartsListCK",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},requestAllocation:{name:"getTransferCodeCK",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{applyCode:"",pastureId:this.$store.state.user.pastureid}},getAllocationListParm:{name:"getPartTransferbybigid",returntype:"Map",parammaps:{}},orderPart:{},listAdd:[],EqNameList:[],requestEqName:{name:"geteqbyNameCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},EqCodeList:[],requestUseForm:{name:"getApplyCode",returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},useForms:[],getParmCreateAdd:{name:"getPartApplyByBig",returntype:"Map",parammaps:{}},postDataPramas:{},selectedArr:[],buttons:[],TotalAmount:0,isPercentage:!1,percentage:1,parentType:[],placeholder:"设备类别",disabled2:!1,getParmType:{name:"geteqclasslist"},defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"},{name:"关闭同步",id:"2"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getbigpartuseSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}}}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importStockUse",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,单价,总价,库位,供应商,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,SignColumn",sheetname:"SheetJS"}},uploadData2:function(){return{name:"importStockUseHistory",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,单价,总价,库位,供应商,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getTypeList()},methods:{tableSort:function(e){"first"==this.activeName?Object(l["f"])(e,this.list):"second"==this.activeName&&Object(l["f"])(e,this.list2)},tableSort2:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:outStock:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isOutStockAdd=t;var a="customs:outStock:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isReceiveTemplate=s;var i="customs:outStock:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isOutStockImport=n;var l="customs:outStock:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isOutStockExport=o;var p="customs:outStock:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isOutStockSee=m;var c="customs:outStock:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isOutStockDelete=d;var u="customs:outStock:method1",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isOutStockMethod1=h;var g="customs:outStock:method2",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isOutStockMethod2=f;var b="customs:outStock:method3",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isOutStockMethod3=v;var y="customs:outStock:method4",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isOutStockMethod4=_;var w="customs:outStock:easSynchronization",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isEasSynchronization=S;var P="customs:outStock:manualSynchronization",x=Object(r["v"])(this.$store.state.user.buttons,P);this.isManualSynchronization=x;var T="customs:outStock:closeSynchronization",k=Object(r["v"])(this.$store.state.user.buttons,T);this.isCloseSynchronization=k;var C="customs:outStock:ignoreSynchronization",L=Object(r["v"])(this.$store.state.user.buttons,C);this.isIgnoreSynchronization=L},popoverHide:function(e,t){console.log("选中值",e,t),this.getdataListParm2.parammaps.assetCode=t.typeCode},getTypeList:function(){var e=this;Object(r["e"])(this.getParmType).then((function(t){null!==t.data.list&&(e.parentType=Object(r["E"])(t.data.list,"id","pid","children"))}))},querySearch:function(e,t){var a=this.restaurants,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelect:function(e){console.log(e)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name),console.log(e.createTemp.departmentName,"this.createTemp.departmentName"))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,console.log(this.$refs["inputDatetime"]),void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},handleClick:function(e,t){console.log(e,t),"second"===e.name?this.get_table_data2():this.get_table_data()},get_table_data2:function(){var e=this;this.listLoading2=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getdataListParm2.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getdataListParm2.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getdataListParm2.parammaps.startTime="",this.getdataListParm2.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm2).then((function(t){e.list2=t.data.list,e.pageNum2=t.data.pageNum,e.pageSize2=t.data.pageSize,t.data.total&&(e.total2=t.data.total),setTimeout((function(){e.listLoading2=!1}),100)}))},form_search2:function(){this.listLoading2=!0,null===this.getdataListParm2.parammaps.inputDatetime&&(this.getdataListParm2.parammaps.inputDatetime=""),this.getdataListParm2.offset=1,this.get_table_data2()},useType:function(e){return 0===e.useType||2===e.useType||3===e.useType?"领用出库":1===e.useType?"手动出库":4===e.useType?"调拨出库":5===e.useType?"报废出库":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log(this.seeTemp),this.dialogStatus="see",this.dialogFormVisible_See=!0,this.getdataListSee.parammaps.id=e.id,this.TotalAmount=0,this.getSeeList(),0==this.seeTemp.useType||2==this.seeTemp.useType||3==this.seeTemp.useType?(this.No1=!0,this.oddCodeAllo=!0,this.isCreatTimeAllo=!1,this.No5=!0,this.isTableAllo=!0,this.isTableAllo1=!1):1==this.seeTemp.useType?(this.No1=!1,this.oddCodeAllo=!1,this.isTableAllo=!0,this.isTableAllo1=!1):4==this.seeTemp.useType?(this.oddCodeAllo=!1,this.isCreatTimeAllo=!0,this.No5=!1,this.No1=!1,this.isTableAllo=!1,this.isTableAllo1=!0):5==this.seeTemp.useType&&(this.No1=!1,this.oddCodeAllo=!1,this.isTableAllo=!0,this.isTableAllo1=!1)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSee[a].srcpath="",e.listSee[a].picpath="");e.TotalAmount=e.TotalAmount.toFixed(2)}setTimeout((function(){e.listLoadingSee=!1}),100)}))},resetCreateTemp:function(){this.createTemp.useType=0,this.createTemp.empId=parseInt(c.a.get("employeid")),this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.receiveTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.applicatId=parseInt(c.a.get("employeid")),this.listAdd=[],this.createTemp.useForm="",this.No1=!0,this.No2=!1,this.No3=!1,this.orderPart={}},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.createTemp.useForm="",this.createTemp.pastureName=c.a.get("pasturename"),this.createTemp.employeId=c.a.get("employeid"),this.TotalAmount=0,console.log(this.createTemp),this.$nextTick((function(){e.$refs["temp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode})),e.$forceUpdate()}))},changeStorageType:function(e){console.log(e),this.TotalAmount=0,0===e?(this.No1=!0,this.No2=!1,this.No3=!1,this.disabled=!0,this.listAdd=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1):1===e?(this.No1=!1,this.No2=!0,this.No3=!1,this.disabled=!1,this.listAdd=[],this.useForms=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1):2===e?(this.listAdd=[],this.No1=!1,this.No2=!1,this.isReceiveTime=!1,this.isReceiveTime2=!0,this.No3=!0,this.allo=!0,this.No4=!1):5===e&&(this.No1=!1,this.No2=!0,this.No3=!1,this.disabled=!1,this.listAdd=[],this.useForms=[],this.isReceiveTime=!0,this.isReceiveTime2=!1,this.No4=!0,this.allo=!1)},getNumber:function(e,t){console.log("领用单号模糊查询输入值",e),this.requestUseForm.parammaps["applyCode"]=e,Object(r["e"])(this.requestUseForm).then((function(e){console.log("领用单号模糊查询搜索data",e.data.list),t(e.data.list)}))},changeApplyCode:function(e){console.log("领用单号模糊查询选中值",e),this.getParmCreateAdd.parammaps.id=e.id,this.getParmCreateAdd.parammaps.pastureId=c.a.get("pastureid"),this.createTemp.departmentId=e.departmentId,this.createTemp.bid=e.id,this.createTemp.applicatId=e.empId,this.orderPart.applyCode=e.applyCode,this.TotalAmount=0,this.get_table_dataAdd()},get_table_dataAdd:function(){var e=this;Object(r["e"])(this.getParmCreateAdd).then((function(t){if(console.log("领用单号list列表",t.data.list),e.createTemp.applyType=t.data.list[0].applyType,e.listAdd=t.data.list,e.TotalAmount=0,null!==t.data.list){for(var a=0;a<t.data.list.length;a++){if("非维保"==t.data.list[a].applyType?(t.data.list[a].applyType="物耗",e.getDictByName=[{id:61,label:"物耗",value:"物耗"},{id:62,label:"土建",value:"土建"},{id:229,label:"工具",value:"工具"}]):e.get_select_list(),e.$set(t.data.list[a],"useTypeV",t.data.list[a].applyType),""==t.data.list[a].price&&(t.data.list[a].price=0),null==t.data.list[a].checkoutNumber){var s=[];s.push(t.data.list[a].amount,t.data.list[a].reportery),t.data.list[a].minNumber=Math.min.apply(null,s),e.$set(t.data.list[a],"checkoutNumber",t.data.list[a].minNumber)}console.log(t.data.list[a].sumPrice,"========= =="),e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="")}e.TotalAmount=e.TotalAmount.toFixed(2)}}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){if(console.log("备件模糊查询搜索data",e.data.list),null==e.data.list)t([]);else{for(var a=0;a<e.data.list.length;a++)e.data.list[a].useTypeV="维修";t(e.data.list)}}))},handleSelectSparePart:function(e){if(console.log("备件模糊查询选中值",e),this.TotalAmount=0,this.listAdd.length>0)if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"});for(var t=0;t<this.listAdd.length;t++)this.TotalAmount+=parseFloat(this.listAdd[t].checkoutNumber)*parseFloat(this.listAdd[t].price);this.TotalAmount=this.TotalAmount.toFixed(2)}else{null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.TotalAmount=parseFloat(e.checkoutNumber)*parseFloat(e.price),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e),this.TotalAmount=0;for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].checkoutNumber)*parseFloat(this.listAdd[a].price);this.TotalAmount=this.TotalAmount.toFixed(2)}else{null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.listAdd.unshift(e),this.$forceUpdate(),this.TotalAmount=0;for(var s=0;s<this.listAdd.length;s++)this.TotalAmount+=parseFloat(this.listAdd[s].checkoutNumber)*parseFloat(this.listAdd[s].price);this.TotalAmount=this.TotalAmount.toFixed(2)}console.log(this.listAdd)},allocationSearch:function(e,t){console.log(e),this.requestAllocation.parammaps.applyCode=e,Object(r["e"])(this.requestAllocation).then((function(e){console.log("调拨单号模糊查询搜索data",e.data.list),null!==e.data.list?t(e.data.list):t([])}))},handleSelectAllocation:function(e){console.log("调拨单号模糊查询选中值",e),this.createTemp.id=e.id,this.createTemp.oddCode=e.applyCode,this.getAllocationListParm.parammaps.id=e.id,this.TotalAmount=0,this.getAllocationList()},getAllocationList:function(){var e=this;Object(r["e"])(this.getAllocationListParm).then((function(t){if(console.log("调拨单号table-data",t.data.list),e.listAdd=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)e.TotalAmount+=parseFloat(t.data.list[a].sumPrice),e.$set(e.listAdd[a],"warehoseCode",""),null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listAdd[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listAdd[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listAdd[a].srcpath="",e.listAdd[a].picpath="");e.$forceUpdate()}))},querySearchEqName:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqName"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqName:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqCode",e.eqCode),this.$forceUpdate()},querySearchCode:function(e,t){var a=this;console.log("备件名称/设备内部编号模糊查询输入值",e),this.requestEqName.parammaps["eqCode"]=e,Object(r["e"])(this.requestEqName).then((function(e){console.log("备件名称模糊查询搜索data",e.data.list),a.EqNameList=e.data.list,t(a.EqNameList)}))},handleSelectEqCode:function(e,t){console.log("备件名称/设备内部编号模糊查询选中值",e),console.log("备件名称/设备内部编号模糊查询选中值所在行",t),this.$set(t,"eqName",e.eqName),this.$forceUpdate()},blurSelectEqName:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},blurSelectEqCode:function(e,t){this.$set(t,"eqName",""),this.$set(t,"eqCode","")},changeUseNumber:function(e,t){console.log("领用数量",e);for(var a=0;a<this.listAdd.length;a++)if(console.log(this.listAdd[a].id),this.listAdd[a].id===t.id){var s=[];s.push(this.listAdd[a].reportery,parseInt(e))}},changeCheckoutNumber:function(e,t){console.log("出库数量",e,t);for(var a=0;a<this.listAdd.length;a++)if(console.log(this.listAdd[a].id),console.log(this.listAdd[a]),this.listAdd[a].id===t.id){var s=[];s.push(this.listAdd[a].reportery,parseInt(this.listAdd[a].amount),parseInt(e)),this.listAdd[a].minNumber=Math.min.apply(null,s),this.$set(this.listAdd[a],"sumPrice",parseFloat(this.listAdd[a].minNumber)*parseFloat(this.listAdd[a].price)),console.log(this.rules)}console.log(this.listAdd)},blurCheckoutNumber:function(e,t){console.log(e,t),this.TotalAmount=0,this.$set(t,"sumPrice",(parseFloat(t.price)*parseFloat(t.checkoutNumber)).toFixed(2)),console.log(this.listAdd);for(var a=0;a<this.listAdd.length;a++)this.TotalAmount+=parseFloat(this.listAdd[a].sumPrice);this.TotalAmount=this.TotalAmount.toFixed(2)},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("备件名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.TotalAmount=0;for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1){t.listAdd.splice(s,1),console.log(t.listAdd);for(var i=0;i<t.listAdd.length;i++)t.TotalAmount+=parseFloat(t.listAdd[i].checkoutNumber)*parseFloat(t.listAdd[i].price);return}}console.log(t.listAdd),t.TotalAmount=t.TotalAmount.toFixed(2)}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.createTemp.useForm||null==e.createTemp.useForm||void 0==e.createTemp.useForm?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增领用单号",t.data.list[0].orderCode),e.createTemp.useForm=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0===this.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;if(0===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(var t=0;t<this.listAdd.length;t++){if(null==this.listAdd[t].useTypeV||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查费用类型或出库数量是否未填写",duration:2e3}),!1;var a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].amount)||parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不可大于领用数量或库位库存数",duration:2e3}),!1;this.$set(this.listAdd[t],"checkoutNumber",this.listAdd[t].checkoutNumber.toString())}return"维修"===this.createTemp.applyType?this.createTemp.useType=0:"保养"===this.createTemp.applyType?this.createTemp.useType=2:"非维保"===this.createTemp.applyType&&(this.createTemp.useType=3),console.log(this.orderPart.applyCode),this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,oddCode:this.orderPart.applyCode,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:"@insertSpotList.amount",checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},this.postDataPramas.data[1].children[2]={name:"updatePartapplyuseAmount",type:"e",parammaps:{paid:"@insertSpotList.paid",checkoutNumber:"@insertSpotList.checkoutNumber"}},this.postDataPramas.data[2]={name:"updateBigPartApplystatue",type:"e",parammaps:{bid:this.createTemp.bid}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0}if(1===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].eqName||""==this.listAdd[t].eqCode||null==this.listAdd[t].eqName||null==this.listAdd[t].useTypeV||null==this.listAdd[t].eqCode||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查备件名称或设备内部编号或费用类型或出库数量是否未填写",duration:2e3}),!1;a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不能大于库位库存数",duration:2e3}),this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","No"),!1;this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","Yes")}return this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:0,checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0}if(2===this.createTemp.useType)return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.$store.state.user.departmentid,useForm:this.createTemp.useForm,useType:4,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,oddCode:this.createTemp.oddCode,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:-1,contractId:"@insertSpotList.contractId",providerName:"@insertSpotList.providerName",providerId:"@insertSpotList.providerId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",useNumber:0,checkoutNumber:"@insertSpotList.amount",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:0,useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"updatePartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.amount",partRepId:"@insertSpotList.partRepId"}},this.postDataPramas.data[2]={name:"updateBigPartTransfer",type:"e",parammaps:{id:this.createTemp.id,statue:4,useCode:this.createTemp.useForm}},Object(r["c"])(this.postDataPramas).then((function(t){console.log(e.listAdd),console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0;if(5===this.createTemp.useType){this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[];for(t=0;t<this.listAdd.length;t++){if(""==this.listAdd[t].eqName||""==this.listAdd[t].eqCode||null==this.listAdd[t].eqName||null==this.listAdd[t].useTypeV||null==this.listAdd[t].eqCode||null==this.listAdd[t].checkoutNumber||""==this.listAdd[t].checkoutNumber)return this.$message({type:"warning",message:"请检查备件名称或设备内部编号或费用类型或出库数量是否未填写",duration:2e3}),!1;a=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!a.test(parseFloat(this.listAdd[t].checkoutNumber)))return this.$message({type:"error",message:"出库数量请输入正数,最多保留两位小数点",duration:2e3}),!1;if(parseFloat(this.listAdd[t].checkoutNumber)>parseFloat(this.listAdd[t].reportery))return this.$message({type:"warning",message:"出库数量不能大于库位库存数",duration:2e3}),this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","No"),!1;this.$set(this.listAdd.find((function(a){return a.checkoutNumber==e.listAdd[t].checkoutNumber})),"isNo","Yes")}return this.postDataPramas.data[0]={name:"insertBigPartUse",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,useForm:this.createTemp.useForm,useType:this.createTemp.useType,applicatId:this.createTemp.applicatId,receiveTime:this.createTemp.receiveTime,empId:this.createTemp.empId,note:this.createTemp.note}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartUse",type:"e",parammaps:{bigId:"@insertBigPartUse.LastInsertId",locationId:"@insertSpotList.locationId",departmentId:"@insertSpotList.departmentId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",price:"@insertSpotList.price",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",contractId:"@insertSpotList.contractId",useNumber:0,checkoutNumber:"@insertSpotList.checkoutNumber",eqName:"@insertSpotList.eqName",eqCode:"@insertSpotList.eqCode",reportery:"@insertSpotList.reportery",useTypeV:"@insertSpotList.useTypeV",note:"@insertSpotList.note"}},this.postDataPramas.data[1].children[1]={name:"insertPartUseRepertory",type:"e",parammaps:{checkoutNumber:"@insertSpotList.checkoutNumber",pastureId:"@insertSpotList.pastureId",locationId:"@insertSpotList.locationId",location:"@insertSpotList.location",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",providerId:"@insertSpotList.providerId",providerName:"@insertSpotList.providerName",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",setTimeout((function(){e.get_table_data()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1)})),!0}},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return"No"==t.isNo&&13===a?{background:"red"}:{background:""}},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","报错信息"],r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人","SignColumn","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;this.$alert("备件出库信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.parammaps.formType="备件出库信息",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","领用类型","领用部门","领用人","备注"],r=["pastureName","useForm","creatTime","partCode","partName","specification","brandName","unit","checkoutNumber","price","sumPrice","warehoseCode","providerName","eqName","eqCode","useTypeV","departmentName","appliname","note"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownload2:function(){var e=this;this.$alert("备件出库记录正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam={},this.requestParam.name="getPartuseDetailList",this.requestParam.parammaps={},this.requestParam.parammaps.formType="备件出库记录",this.requestParam.parammaps.inputDatetime=this.getdataListParm2.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm2.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm2.parammaps.departmentId,this.requestParam.parammaps.startTime=this.getdataListParm2.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm2.parammaps.stopTime,this.requestParam.parammaps.useForm=this.getdataListParm2.parammaps.useForm,this.requestParam.parammaps.partCode=this.getdataListParm2.parammaps.partCode,this.requestParam.parammaps.partName=this.getdataListParm2.parammaps.partName,this.requestParam.parammaps.providerId=this.getdataListParm2.parammaps.providerId,Object(r["d"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list;""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3));var i=["牧场","出库单号","备件编号","备件名称","备件规格","备件品牌","计量单位"," 供应商","设备名称","设备内部编号","费用类型","库位","期初库存","出库数量","单价","总价 ","领用部门 ","领用人","录入人 ","出库 日期","备注 "],r=["pastureName","useForm","partCode","partName","specification","brandName","unit","providerName","eqName","eqCode","useTypeV","warehoseCode","reportery","checkoutNumber","price","sumPrice","departmentName","appliname","empname","creatTime","note"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:e.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownloadEas:function(){var e=this;this.$alert("备件出库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartUseEAS",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["*单据编号","业务日期","领料出库单明细$成本对象_名称_l2","领料出库单明细$成本对象_编码","领料出库单明细$仓库_编码","领料出库单明细$库位_编码","领料出库单明细$仓管员_编码","领料出库单体$领料人_编码","领料出库单明细_批次","领料出库单明细_数量","领料出库单明细_辅助数量","领料出库单明细_单位实际成本","领料出库单明细_实际成本","领料出库单明细_生产日期","领料出库单明细_到期日期","领料出库单明细$物料_规格型号","领料出库单明细$物料_名称_l2","领料出库单明细$物料_编码","领料出库单明细$辅助属性_编码","领料出库单明细$计量单位_编码","领料出库单明细$辅助计量单位_编码","领料出库单明细_订单单号","领料出库单明细_备注","成本中心_编码","需求方库存组织_编码","需方库存组织_名称_l2","部门_编码","事务类型_名称_l2","*事务类型_编码","创建者_用户名","创建时间","领料出库单明细$生产线","领料出库单明细$班组","领料出库单明细$领料工序","领料出库单明细$负责人","领料出库单明细$成本对象组_单据编号","领料出库单明细$成本对象组_名称_l2","领料出库单明细$成本项目_编码","领料出库单明细$成本项目_名称_l2","领料出库单体$项目号_编码","领料出库单体$跟踪号_编码","摘要","供应方库存组织_编码","供应方财务组织_编码","需求方财务组织_编码","供方仓库_编码","供方库位_编码","结算价","需方仓库_编码","需方库位_编码","仓管员_编码","领料出库单明细$主制部门_编码","领料出库单明细$主制部门_名称_l2","领料出库单明细$成本中心_编码","领料出库单明细$成本中心_名称_l2","业务类型_编码","业务类型_名称"],r=["*单据编号","业务日期","领料出库单明细$成本对象_名称_l2","领料出库单明细$成本对象_编码","领料出库单明细$仓库_编码","领料出库单明细$库位_编码","领料出库单明细$仓管员_编码","领料出库单体$领料人_编码","领料出库单明细_批次","领料出库单明细_数量","领料出库单明细_辅助数量","领料出库单明细_单位实际成本","领料出库单明细_实际成本","领料出库单明细_生产日期","领料出库单明细_到期日期","领料出库单明细$物料_规格型号","领料出库单明细$物料_名称_l2","领料出库单明细$物料_编码","领料出库单明细$辅助属性_编码","领料出库单明细$计量单位_编码","领料出库单明细$辅助计量单位_编码","领料出库单明细_订单单号","领料出库单明细_备注","成本中心_编码","需求方库存组织_编码","需方库存组织_名称_l2","部门_编码","事务类型_名称_l2","*事务类型_编码","创建者_用户名","创建时间","领料出库单明细$生产线","领料出库单明细$班组","领料出库单明细$领料工序","领料出库单明细$负责人","领料出库单明细$成本对象组_单据编号","领料出库单明细$成本对象组_名称_l2","领料出库单明细$成本项目_编码","领料出库单明细$成本项目_名称_l2","领料出库单体$项目号_编码","领料出库单体$跟踪号_编码","摘要","供应方库存组织_编码","供应方财务组织_编码","需求方财务组织_编码","供方仓库_编码","供方库位_编码","结算价","需方仓库_编码","需方库位_编码","仓管员_编码","领料出库单明细$主制部门_编码","领料出库单明细$主制部门_名称_l2","领料出库单明细$成本中心_编码","领料出库单明细$成本中心_名称_l2","业务类型_编码","业务类型_名称"],n=[["EAS","7.5.0","领料出库单","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["MaterialReq","领料出库单","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["FNumber","FBizDate","FEntry$costObject_name_l2","FEntry$costObject_number","FEntry$warehouse_number","FEntry$location_number","FEntry$stocker_number","FEntry$picker_number","FEntry_lot","FEntry_qty","FEntry_assistQty","FEntry_unitActualCost","FEntry_actualCost","FEntry_mfg","FEntry_exp","FEntry$material_model","FEntry$material_name_l2","FEntry$material_number","FEntry$assistProperty_number","FEntry$unit_number","FEntry$assistUnit_number","FEntry_OrderNumber","FEntry_remark","FCostCenterOrgUnit_number","FStorageOrgUnit_number","FStorageOrgUnit_name_l2","FAdminOrgUnit_number","FTransactionType_name_l2","FTransactionType_number","FCreator_number","FCreateTime","FEntry$ProductLine_number","FEntry$ClassGroup_number","FEntry$ProductLineWPEntry_number","FEntry$person_number","FEntry$costObjectSuite_number","FEntry$costObjectSuite_name_l2","FEntry$costItem_number","FEntry$costItem_name_l2","FEntry$project_number","FEntry$trackNumber_number","FDescription","FSupplyStoreOrgUnit_number","FSupplyCompanyOrgUnit_number","FDemandCompanyOrgUnit_number","FEntry$SupplyWarehouse_number","FEntry$SupplyLocation_number","FEntry$SettlePrice","FEntry$Warehouse_number","FEntry$Location_number","FEntry$Stocker_number","FEntry$AdminOrgUnit1_number","FEntry$AdminOrgUnit1_name","FEntry$CostCenterOrgUnit1_number","FEntry$CostCenterOrgUnit1_name","FBizType_number","FBizType_name_l2"]];if(null!==s){var l=e.formatJsonTemp(r,s);a.export_json_to_excel({multiHeader:n,header:i,data:l,filename:"备件出库EAS",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},handleDownloadEas1:function(){var e=this;this.$alert("备件出库EAS信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="downloadPartUseEASYuan",this.requestParam.parammaps.inputDatetime=this.getdataListParm.parammaps.inputDatetime,this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.useType=this.getdataListParm.parammaps.useType,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["领用部门","牧场","领用单编号","领用日期","供应商编码","供应商名称","出库人","制单日期","品名","物料编码","计量单位","单价","实发数量","总价","备注","领用人","费用类型"],r=["领用部门","牧场","领用单编号","领用日期","供应商编码","供应商名称","出库人","制单日期","品名","物料编码","计量单位","单价","实发数量","总价","备注","领用人","费用类型"];if(null!==s){var n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件出库EAS",autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDelate:function(e){var t=this;console.log("点击了删除"),this.getdataListSee.parammaps.id=e.id,this.getSeeList(),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:t.listSee}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"updatePartRepertoryDelCK",type:"e",parammaps:{id:"@insertSpotList.id",contractId:"@insertSpotList.contractId",partCode:"@insertSpotList.partCode"}},t.postDataPramas.data[0].children[1]={name:"deletePartUse",type:"e",parammaps:{id:"@insertSpotList.id"}},t.postDataPramas.data[1]={name:"updatePartApplyDel",type:"e",parammaps:{applyCode:e.useForm}},t.postDataPramas.data[2]={name:"deleteBigPartUse",type:"e",parammaps:{id:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},edit_dialog_save:function(){console.log("编辑保存")},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockLaidDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],r=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"出库模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleClose:function(e){var t=this;p["MessageBox"].confirm("是否确认关闭同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartuseSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="2",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"关闭同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消关闭同步"})}))},handleManual:function(e){var t=this;p["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;p["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatebigpartuseSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},g=h,f=(a("c2a7"),a("a230"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,"92480f8c",null);t["default"]=b.exports},d702:function(e,t,a){"use strict";a("316d")},d731:function(e,t,a){"use strict";a("4cd2")},d7d6:function(e,t,a){"use strict";a("b8dc")},d7ec:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" id="icon-eye-open"><defs><style></style></defs><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol>'});n.a.add(l);t["default"]=l},d88d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.tabName,callback:function(t){e.tabName=t},expression:"tabName"}},[e.isBasic?a("el-tab-pane",{attrs:{label:"设备基础信息",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,clearable:"",disabled:e.disabled,placeholder:"请选择设备类别","checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.getdataListParm.parammaps.eqClassId,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqClassId",t)},expression:"getdataListParm.parammaps.eqClassId"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编号",clearable:""},model:{value:e.getdataListParm.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"financeCode",t)},expression:"getdataListParm.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"折旧预警"},model:{value:e.getdataListParm.parammaps.warning,callback:function(t){e.$set(e.getdataListParm.parammaps,"warning",t)},expression:"getdataListParm.parammaps.warning"}},e._l(e.depreciationAlertList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"购置日期","end-placeholder":"购置日期"},model:{value:e.getdataListParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime2",t)},expression:"getdataListParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetCode",t)},expression:"getdataListParm.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"品牌",clearable:""},model:{value:e.getdataListParm.parammaps.brand,callback:function(t){e.$set(e.getdataListParm.parammaps,"brand",t)},expression:"getdataListParm.parammaps.brand"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicsAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleBatchChange}},[e._v("批量变更")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange,"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",align:"center",prop:"eqClassName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["正常"==s.status?a("div",[1==s.warning?a("div",{staticStyle:{background:"#EC808D",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):2==s.warning?a("div",{staticStyle:{background:"#FACD91",display:"block","line-height":"50px"}},[e._v(e._s(s.status))]):a("div",[e._v(e._s(s.status))])]):a("div",[a("div",{staticStyle:{background:"#D7D7D7",display:"block","line-height":"50px"}},[e._v(e._s(s.status))])])]}}],null,!1,870163095)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",align:"center",prop:"purpose"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批日期",sortable:"",align:"center",prop:"spDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"购置日期",sortable:"",align:"center",prop:"purchaseDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"入场日期",sortable:"",align:"center",prop:"entranceDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"报废日期",sortable:"",align:"center",prop:"bfDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"picpath",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath&&""!==t.row.srcpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath&&""!==t.row.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2373517811)}),e._v(" "),a("el-table-column",{attrs:{label:"折旧年限",sortable:"",align:"center",prop:"depreciation"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用时长(年)",sortable:"",align:"center",prop:"serviceDuration"}}),e._v(" "),a("el-table-column",{attrs:{label:"使用率(%)",sortable:"",align:"center",prop:"utilizationRate"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.roleSet1(s)?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.roleSet2(s)?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,2316952240)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)]):e._e(),e._v(" "),e.isBasicSH?a("el-tab-pane",{attrs:{label:"审核设备",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmSH.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"pastureName",t)},expression:"getdataListParmSH.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"资产编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.assetCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"assetCode",t)},expression:"getdataListParmSH.parammaps.assetCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqName",t)},expression:"getdataListParmSH.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParmSH.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"eqCode",t)},expression:"getdataListParmSH.parammaps.eqCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"财务编码",clearable:""},model:{value:e.getdataListParmSH.parammaps.financeCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"financeCode",t)},expression:"getdataListParmSH.parammaps.financeCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParmSH.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"departmentId",t)},expression:"getdataListParmSH.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"状态"},model:{value:e.getdataListParmSH.parammaps.status,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"status",t)},expression:"getdataListParmSH.parammaps.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParmSH.parammaps.SHStatus,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"SHStatus",t)},expression:"getdataListParmSH.parammaps.SHStatus"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSH.parammaps.inputDatetime1,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"inputDatetime1",t)},expression:"getdataListParmSH.parammaps.inputDatetime1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSH}},[e._v("搜索")]),e._v(" "),a("div",[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownloadSH}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSH,expression:"listLoadingSH"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSH,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSH-1)*e.pageSizeSH+1))])]}}],null,!1,1072732269)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"资产编号",align:"center",prop:"assetCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"eqName"}}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",prop:"eqCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号",align:"center",prop:"financeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"品牌",align:"center",prop:"brandName"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"}}),e._v(" "),a("el-table-column",{attrs:{label:"部门",align:"center",prop:"deptName"}}),e._v(" "),a("el-table-column",{attrs:{label:"责任人",align:"center",prop:"employeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",align:"center",prop:"lrTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center",formatter:e.SHStatus}}),e._v(" "),a("el-table-column",{attrs:{label:"设备图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicsCard?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicsUpdate&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicExamine&&0==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),e.isBasicsDel&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}],null,!1,1494658625)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSH>=0,expression:"totalSH>=0"}],attrs:{total:e.totalSH,page:e.getdataListParmSH.offset,limit:e.getdataListParmSH.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSH,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSH,"pagecount",t)},pagination:e.get_table_dataSH}})],1)]):e._e()],1),e._v(" "),a("el-dialog",{directives:[{name:"show",rawName:"v-show",value:e.dialogFormVisible,expression:"dialogFormVisible"}],attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rulesCreate,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:e.disabled,placeholder:e.placeholder,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide},model:{value:e.createTemp.eqClassId,callback:function(t){e.$set(e.createTemp,"eqClassId",t)},expression:"createTemp.eqClassId"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入编号",disabled:""},model:{value:e.createTemp.assetCode,callback:function(t){e.$set(e.createTemp,"assetCode",t)},expression:"createTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.createTemp.eqName,callback:function(t){e.$set(e.createTemp,"eqName",t)},expression:"createTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号"},model:{value:e.createTemp.eqCode,callback:function(t){e.$set(e.createTemp,"eqCode",t)},expression:"createTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号"},model:{value:e.createTemp.financeCode,callback:function(t){e.$set(e.createTemp,"financeCode",t)},expression:"createTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格"},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{select:function(t){e.handleSelectBrand(t)}},model:{value:e.createTemp.brandName,callback:function(t){e.$set(e.createTemp,"brandName",t)},expression:"createTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途"},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.createTemp.status,callback:function(t){e.$set(e.createTemp,"status",t)},expression:"createTemp.status"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.purchaseDate,callback:function(t){e.$set(e.createTemp,"purchaseDate",t)},expression:"createTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.entranceDate,callback:function(t){e.$set(e.createTemp,"entranceDate",t)},expression:"createTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限"},model:{value:e.createTemp.depreciation,callback:function(t){e.$set(e.createTemp,"depreciation",t)},expression:"createTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值"},model:{value:e.createTemp.yuanzhi,callback:function(t){e.$set(e.createTemp,"yuanzhi",t)},expression:"createTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值"},model:{value:e.createTemp.salvage,callback:function(t){e.$set(e.createTemp,"salvage",t)},expression:"createTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值"},model:{value:e.createTemp.subtractvalue,callback:function(t){e.$set(e.createTemp,"subtractvalue",t)},expression:"createTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-select",{ref:"upkeepgrade",staticClass:"filter-item",attrs:{placeholder:"保养级别"},on:{"visible-change":e.upkeepgradeChange,change:e.changeUpkeepgrade},model:{value:e.createTemp.upkeepgrade,callback:function(t){e.$set(e.createTemp,"upkeepgrade",t)},expression:"createTemp.upkeepgrade"}},e._l(e.upkeepgrades,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用"},model:{value:e.createTemp.yearUpkeepCost,callback:function(t){e.$set(e.createTemp,"yearUpkeepCost",t)},expression:"createTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用"},model:{value:e.createTemp.yearMaintainCost,callback:function(t){e.$set(e.createTemp,"yearMaintainCost",t)},expression:"createTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数"},model:{value:e.createTemp.baseHours,callback:function(t){e.$set(e.createTemp,"baseHours",t)},expression:"createTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牧场"},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"部门"},on:{change:e.changeDepart},model:{value:e.createTemp.deptId,callback:function(t){e.$set(e.createTemp,"deptId",t)},expression:"createTemp.deptId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empname","fetch-suggestions":e.employeSearch,placeholder:"请输入责任人"},on:{select:e.handleSelectEmploye},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.name))])]}}]),model:{value:e.createTemp.employeName,callback:function(t){e.$set(e.createTemp,"employeName",t)},expression:"createTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUser"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"录入人"},model:{value:e.createTemp.inputUser,callback:function(t){e.$set(e.createTemp,"inputUser",t)},expression:"createTemp.inputUser"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"录入时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.inputDatetime,callback:function(t){e.$set(e.createTemp,"inputDatetime",t)},expression:"createTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"指定维修人:",prop:"maintenance"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",placeholder:"指定维修人"},model:{value:e.createTemp.maintenance,callback:function(t){e.$set(e.createTemp,"maintenance",t)},expression:"createTemp.maintenance"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级督办:",prop:"levelone"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"设备主管"},model:{value:e.createTemp.levelone,callback:function(t){e.$set(e.createTemp,"levelone",t)},expression:"createTemp.levelone"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级间隔时间(小时)",prop:"leveloneTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.leveloneTime,callback:function(t){e.$set(e.createTemp,"leveloneTime",t)},expression:"createTemp.leveloneTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级督办:",prop:"leveltwo"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"设备助理"},model:{value:e.createTemp.leveltwo,callback:function(t){e.$set(e.createTemp,"leveltwo",t)},expression:"createTemp.leveltwo"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级间隔时间(小时)",prop:"leveltwoTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.leveltwoTime,callback:function(t){e.$set(e.createTemp,"leveltwoTime",t)},expression:"createTemp.leveltwoTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级督办:",prop:"levelthree"}},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"场长"},model:{value:e.createTemp.levelthree,callback:function(t){e.$set(e.createTemp,"levelthree",t)},expression:"createTemp.levelthree"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级间隔时间(小时)",prop:"levelthreeTime"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"间隔时间"},model:{value:e.createTemp.levelthreeTime,callback:function(t){e.$set(e.createTemp,"levelthreeTime",t)},expression:"createTemp.levelthreeTime"}},e._l(e.pushNameList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-contentcard"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"150px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("设备名称:"+e._s(e.seeTemp.eqName))]),e._v(" "),a("span",[e._v("内部编号:"+e._s(e.seeTemp.eqCode))])]),e._v(" "),a("div",{staticClass:"card"},[a("el-tabs",{on:{"tab-click":e.form_seeTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-form-item",{attrs:{label:"设备类别:",prop:"eqClassName"}},[a("el-input",{ref:"eqClassName",attrs:{placeholder:"请输入设备类别",disabled:""},model:{value:e.seeTemp.eqClassName,callback:function(t){e.$set(e.seeTemp,"eqClassName",t)},expression:"seeTemp.eqClassName"}})],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资产编号:",prop:"assetCode"}},[a("el-input",{ref:"assetCode",attrs:{placeholder:"请输入资产编号",disabled:""},model:{value:e.seeTemp.assetCode,callback:function(t){e.$set(e.seeTemp,"assetCode",t)},expression:"seeTemp.assetCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{placeholder:"请输入设备名称",disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{placeholder:"请输入设备内部编号",disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"财务编号:",prop:"financeCode"}},[a("el-input",{ref:"financeCode",attrs:{placeholder:"请输入财务编号",disabled:""},model:{value:e.seeTemp.financeCode,callback:function(t){e.$set(e.seeTemp,"financeCode",t)},expression:"seeTemp.financeCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设备规格:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入设备规格",disabled:""},model:{value:e.seeTemp.specification,callback:function(t){e.$set(e.seeTemp,"specification",t)},expression:"seeTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"品牌:",prop:"brandName"}},[a("el-input",{ref:"brandName",attrs:{placeholder:"请输入品牌",disabled:""},model:{value:e.seeTemp.brandName,callback:function(t){e.$set(e.seeTemp,"brandName",t)},expression:"seeTemp.brandName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入用途",disabled:""},model:{value:e.seeTemp.purpose,callback:function(t){e.$set(e.seeTemp,"purpose",t)},expression:"seeTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"状态:",prop:"status"}},[a("el-input",{ref:"status",attrs:{placeholder:"请输入状态",disabled:""},model:{value:e.seeTemp.status,callback:function(t){e.$set(e.seeTemp,"status",t)},expression:"seeTemp.status"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"购置日期:",prop:"purchaseDate"}},[a("el-input",{ref:"purchaseDate",attrs:{placeholder:"请输入购置日期",disabled:""},model:{value:e.seeTemp.purchaseDate,callback:function(t){e.$set(e.seeTemp,"purchaseDate",t)},expression:"seeTemp.purchaseDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入场日期:",prop:"entranceDate"}},[a("el-input",{ref:"entranceDate",attrs:{placeholder:"请输入入场日期",disabled:""},model:{value:e.seeTemp.entranceDate,callback:function(t){e.$set(e.seeTemp,"entranceDate",t)},expression:"seeTemp.entranceDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"折旧年限:",prop:"depreciation"}},[a("el-input",{ref:"depreciation",attrs:{placeholder:"请输入折旧年限",disabled:""},model:{value:e.seeTemp.depreciation,callback:function(t){e.$set(e.seeTemp,"depreciation",t)},expression:"seeTemp.depreciation"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"原值:",prop:"yuanzhi"}},[a("el-input",{ref:"yuanzhi",attrs:{placeholder:"请输入原值",disabled:""},model:{value:e.seeTemp.yuanzhi,callback:function(t){e.$set(e.seeTemp,"yuanzhi",t)},expression:"seeTemp.yuanzhi"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"残值:",prop:"salvage"}},[a("el-input",{ref:"salvage",attrs:{placeholder:"请输入残值",disabled:""},model:{value:e.seeTemp.salvage,callback:function(t){e.$set(e.seeTemp,"salvage",t)},expression:"seeTemp.salvage"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"月核减值:",prop:"subtractvalue"}},[a("el-input",{ref:"subtractvalue",attrs:{placeholder:"请输入月核减值",disabled:""},model:{value:e.seeTemp.subtractvalue,callback:function(t){e.$set(e.seeTemp,"subtractvalue",t)},expression:"seeTemp.subtractvalue"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养级别:",prop:"upkeepgrade"}},[a("el-input",{ref:"upkeepgrade",attrs:{placeholder:"请输入保养级别",disabled:""},model:{value:e.seeTemp.upkeepgrade,callback:function(t){e.$set(e.seeTemp,"upkeepgrade",t)},expression:"seeTemp.upkeepgrade"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"保养费用:",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",attrs:{placeholder:"请输入近一年保养费用",disabled:""},model:{value:e.seeTemp.yearUpkeepCost,callback:function(t){e.$set(e.seeTemp,"yearUpkeepCost",t)},expression:"seeTemp.yearUpkeepCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"维修费用:",prop:"yearMaintainCost"}},[a("el-input",{ref:"yearMaintainCost",attrs:{placeholder:"请输入近一年维修费用",disabled:""},model:{value:e.seeTemp.yearMaintainCost,callback:function(t){e.$set(e.seeTemp,"yearMaintainCost",t)},expression:"seeTemp.yearMaintainCost"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"基数(小时):",prop:"baseHours"}},[a("el-input",{ref:"baseHours",attrs:{placeholder:"请输入基数",disabled:""},model:{value:e.seeTemp.baseHours,callback:function(t){e.$set(e.seeTemp,"baseHours",t)},expression:"seeTemp.baseHours"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"请输入牧场",disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门:",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{placeholder:"请输入部门",disabled:""},model:{value:e.seeTemp.deptName,callback:function(t){e.$set(e.seeTemp,"deptName",t)},expression:"seeTemp.deptName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{placeholder:"请输入责任人",disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputUserName"}},[a("el-input",{ref:"inputUserName",attrs:{placeholder:"请输入录入人",disabled:""},model:{value:e.seeTemp.inputUserName,callback:function(t){e.$set(e.seeTemp,"inputUserName",t)},expression:"seeTemp.inputUserName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"录入时间:",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",attrs:{placeholder:"请输入录入时间",disabled:""},model:{value:e.seeTemp.inputDatetime,callback:function(t){e.$set(e.seeTemp,"inputDatetime",t)},expression:"seeTemp.inputDatetime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"指定维修人:",prop:"maintenanceName"}},[a("el-input",{ref:"maintenanceName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.maintenanceName,callback:function(t){e.$set(e.seeTemp,"maintenanceName",t)},expression:"seeTemp.maintenanceName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级督办:",prop:"leveloneName"}},[a("el-input",{ref:"leveloneName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveloneName,callback:function(t){e.$set(e.seeTemp,"leveloneName",t)},expression:"seeTemp.leveloneName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"一级间隔时间(小时):",prop:"leveloneTime"}},[a("el-input",{ref:"leveloneTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveloneTime,callback:function(t){e.$set(e.seeTemp,"leveloneTime",t)},expression:"seeTemp.leveloneTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级督办:",prop:"leveltwoName"}},[a("el-input",{ref:"leveltwoName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveltwoName,callback:function(t){e.$set(e.seeTemp,"leveltwoName",t)},expression:"seeTemp.leveltwoName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"二级间隔时间(小时):",prop:"leveltwoTime"}},[a("el-input",{ref:"leveltwoTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.leveltwoTime,callback:function(t){e.$set(e.seeTemp,"leveltwoTime",t)},expression:"seeTemp.leveltwoTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级督办:",prop:"levelthreeName"}},[a("el-input",{ref:"levelthreeName",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.levelthreeName,callback:function(t){e.$set(e.seeTemp,"levelthreeName",t)},expression:"seeTemp.levelthreeName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"三级间隔时间(小时):",prop:"levelthreeTime"}},[a("el-input",{ref:"levelthreeTime",attrs:{placeholder:"",disabled:""},model:{value:e.seeTemp.levelthreeTime,callback:function(t){e.$set(e.seeTemp,"levelthreeTime",t)},expression:"seeTemp.levelthreeTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"设备图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath&&""!==e.seeTemp.srcpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isBasicExamine&&0==e.seeTemp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"点检记录",name:"second"}},[a("el-date-picker",{ref:"inputDatetimeCheck1",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1,callback:function(t){e.$set(e.getAssetBigSpotCheckListParm.parammaps,"inputDatetimeSpotCheck1",t)},expression:"getAssetBigSpotCheckListParm.parammaps.inputDatetimeSpotCheck1"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSportCheck}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSpotCheck1,expression:"listLoadingSpotCheck1"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSpotCheck1,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSpotCheck1-1)*e.pageSizeSpotCheck1+1))])]}}],null,!1,1006182765)}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果",sortable:"",prop:"inspectionResults","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"点检人",sortable:"",prop:"empname","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalSpotCheck1,page:e.getAssetBigSpotCheckListParm.offset,limit:e.getAssetBigSpotCheckListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetBigSpotCheckListParm,"pagecount",t)},pagination:e.getAssetBigSpotCheckList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"保养记录",name:"third"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"保养单号"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepCode",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"保养类型"},model:{value:e.getBigupkeepbyeqParm.parammaps.upkeepType,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"upkeepType",t)},expression:"getBigupkeepbyeqParm.parammaps.upkeepType"}},e._l(e.maintainTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeUpkeepbyeq",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq,callback:function(t){e.$set(e.getBigupkeepbyeqParm.parammaps,"inputDatetimeUpkeepbyeq",t)},expression:"getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchUpkeepbyeq}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingUpkeepbyeq,expression:"listLoadingUpkeepbyeq"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listUpkeepbyeq,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumUpkeepbyeq-1)*e.pageSizeUpkeepbyeq+1))])]}}],null,!1,1082609005)}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号",prop:"upkeepCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养名称",prop:"upkeepName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养类型",prop:"upkeepType","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养级别",prop:"upkeepLevel","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养人",prop:"upkeepPerson","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"保养费用",prop:"upkeepCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalUpkeepbyeq,page:e.getBigupkeepbyeqParm.offset,limit:e.getBigupkeepbyeqParm.pagecount},on:{"update:page":function(t){return e.$set(e.getBigupkeepbyeqParm,"offset",t)},"update:limit":function(t){return e.$set(e.getBigupkeepbyeqParm,"pagecount",t)},pagination:e.getBigupkeepbyeqList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"维修记录",name:"fouth"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"维修单号"},model:{value:e.getAssetMaintainParm.parammaps.repairCode,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"repairCode",t)},expression:"getAssetMaintainParm.parammaps.repairCode"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetMaintain",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain,callback:function(t){e.$set(e.getAssetMaintainParm.parammaps,"inputDatetimeAssetMaintain",t)},expression:"getAssetMaintainParm.parammaps.inputDatetimeAssetMaintain"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetMaintain}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetMaintain,expression:"listLoadingAssetMaintain"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetMaintain,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetMaintain-1)*e.pageSizeAssetMaintain+1))])]}}],null,!1,353234157)}),e._v(" "),a("el-table-column",{attrs:{label:"维修单号",prop:"repairCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修人",prop:"requestName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"报修时间",sortable:"",prop:"requestTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修人",prop:"empname","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修时间",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"诊断故障",prop:"details","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"维修费用",sortable:"",prop:"maintenanceCost","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetMaintain,page:e.getAssetMaintainParm.offset,limit:e.getAssetMaintainParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetMaintainParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetMaintainParm,"pagecount",t)},pagination:e.getAssetMaintainList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"启停记录",name:"fifth"}},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"开启日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.startTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"startTime",t)},expression:"getAssetSTTParm.parammaps.startTime"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"170px",top:"-3px"},attrs:{type:"date",placeholder:"关闭日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getAssetSTTParm.parammaps.stopTime,callback:function(t){e.$set(e.getAssetSTTParm.parammaps,"stopTime",t)},expression:"getAssetSTTParm.parammaps.stopTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetSTT}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetSTT,expression:"listLoadingAssetSTT"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetSTT,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetSTT-1)*e.pageSizeAssetSTT+1))])]}}],null,!1,1514873197)}),e._v(" "),a("el-table-column",{attrs:{label:"开启时间",sortable:"",prop:"enabledTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭时间",sortable:"",prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运行时间(分钟)",sortable:"",prop:"runTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"关闭人",prop:"blockName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetSTT,page:e.getAssetSTTParm.offset,limit:e.getAssetSTTParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetSTTParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetSTTParm,"pagecount",t)},pagination:e.getAssetSTTList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"变更记录",name:"sixth"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更状态"},model:{value:e.getAssetChangeParm.parammaps.changeStatue,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"changeStatue",t)},expression:"getAssetChangeParm.parammaps.changeStatue"}},e._l(e.changeStates,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetChange",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetChangeParm.parammaps.inputDatetimeAssetChange,callback:function(t){e.$set(e.getAssetChangeParm.parammaps,"inputDatetimeAssetChange",t)},expression:"getAssetChangeParm.parammaps.inputDatetimeAssetChange"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetChange}},[e._v("搜索")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetChange,expression:"listLoadingAssetChange"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetChange,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetChange-1)*e.pageSizeAssetChange+1))])]}}],null,!1,1891472333)}),e._v(" "),a("el-table-column",{attrs:{label:"变更时间",sortable:"",prop:"changeTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更状态",formatter:e.changeStatue,prop:"blockTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更人",prop:"changeName","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetChange,page:e.getAssetChangeParm.offset,limit:e.getAssetChangeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetChangeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetChangeParm,"pagecount",t)},pagination:e.getAssetChangeList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"备件领用记录",name:"seventh"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"出库单号"},model:{value:e.getAssetPartApplyParm.parammaps.useCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"useCode",t)},expression:"getAssetPartApplyParm.parammaps.useCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.getAssetPartApplyParm.parammaps.partCode,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partCode",t)},expression:"getAssetPartApplyParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getAssetPartApplyParm.parammaps.partName,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"partName",t)},expression:"getAssetPartApplyParm.parammaps.partName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetimeAssetPartApply",staticClass:"inputDatetime",staticStyle:{width:"250px","margin-bottom":"10px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply,callback:function(t){e.$set(e.getAssetPartApplyParm.parammaps,"inputDatetimeAssetPartApply",t)},expression:"getAssetPartApplyParm.parammaps.inputDatetimeAssetPartApply"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchAssetPartApply}},[e._v("搜索")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingAssetPartApply,expression:"listLoadingAssetPartApply"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listAssetPartApply,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumAssetPartApply-1)*e.pageSizeAssetPartApply+1))])]}}],null,!1,3522052013)}),e._v(" "),a("el-table-column",{attrs:{label:"出库单号",prop:"useForm","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",sortable:"",prop:"partCode","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量",sortable:"",prop:"useNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"实际出库数量",sortable:"",prop:"checkoutNumber","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门",prop:"departmentName","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间",sortable:"",prop:"receiveTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"距离上次时间(天)",sortable:"",prop:"dif","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.totalAssetPartApply,page:e.getAssetPartApplyParm.offset,limit:e.getAssetPartApplyParm.pagecount},on:{"update:page":function(t){return e.$set(e.getAssetPartApplyParm,"offset",t)},"update:limit":function(t){return e.$set(e.getAssetPartApplyParm,"pagecount",t)},pagination:e.getAssetPartApplyList}})],1):e._e(),e._v(" "),e.isDisplayRecord?a("el-tab-pane",{attrs:{label:"费用统计",name:"eighth"}},[a("el-row",[a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}}):e._e()]),e._v(" "),a("el-col",{attrs:{span:12}},["eighth"===e.activeName?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}}):e._e()])],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],"append-to-body":"",visible:e.dialogFormVisible_ChartSee,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible_ChartSee=t}}},[a("div",{staticClass:"app-contentSee"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"类型",clearable:""},model:{value:e.getChartSeeParm.parammaps.useTypeV,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"useTypeV",t)},expression:"getChartSeeParm.parammaps.useTypeV"}},e._l(e.useTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getChartSeeParm.parammaps.inputDatetime2,callback:function(t){e.$set(e.getChartSeeParm.parammaps,"inputDatetime2",t)},expression:"getChartSeeParm.parammaps.inputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchChartSee}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownloadChartSee}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingChartSee,expression:"listLoadingChartSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listChartSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumChartSee-1)*e.pageSizeChartSee+1))])]}}],null,!1,747959405)}),e._v(" "),a("el-table-column",{key:1,attrs:{label:"类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useTypeV))])]}}],null,!1,3978304875)}),e._v(" "),a("el-table-column",{key:2,attrs:{label:"单号",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.RUcode))])]}}],null,!1,3074352844)}),e._v(" "),a("el-table-column",{key:3,attrs:{label:"领用日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatTime))])]}}],null,!1,462173042)}),e._v(" "),a("el-table-column",{key:4,attrs:{label:"领用部门","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}],null,!1,614096837)}),e._v(" "),a("el-table-column",{key:5,attrs:{label:"备件编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{key:6,attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{key:7,attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{key:8,attrs:{label:"备件品牌","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}],null,!1,1252061914)}),e._v(" "),a("el-table-column",{key:9,attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{key:10,attrs:{label:"出库数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.checkoutNumber))])]}}],null,!1,1380854349)}),e._v(" "),a("el-table-column",{key:11,attrs:{label:"退库数量","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.quitNumber))])]}}],null,!1,3036156380)}),e._v(" "),a("el-table-column",{key:12,attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{key:13,attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}],null,!1,1176764960)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalChartSee>=0,expression:"totalChartSee>=0"}],attrs:{total:e.totalChartSee,page:e.getChartSeeParm.offset,limit:e.getChartSeeParm.pagecount},on:{"update:page":function(t){return e.$set(e.getChartSeeParm,"offset",t)},"update:limit":function(t){return e.$set(e.getChartSeeParm,"pagecount",t)},pagination:e.getChartSeeList}})],1)])],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeSHStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:22}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:3},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_change,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_change=t}}},[a("div",{staticClass:"app-change"},[a("el-form",{ref:"batchChangeTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.batchChange.temp,"label-position":"right","label-width":"115px"},nativeOn:{click:function(e){e.preventDefault()},submit:function(e){e.preventDefault()}}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更部门"},on:{change:e.changeBatchDept},model:{value:e.batchChange.temp.departmentId,callback:function(t){e.$set(e.batchChange.temp,"departmentId",t)},expression:"batchChange.temp.departmentId"}},e._l(e.batchChange.deptList,(function(e){return a("el-option",{key:e.deptid,attrs:{label:e.departmentName,value:e.deptid}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"变更责任人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"变更责任人"},on:{change:e.changeBatchPerson},model:{value:e.batchChange.temp.employeeId,callback:function(t){e.$set(e.batchChange.temp,"employeeId",t)},expression:"batchChange.temp.employeeId"}},e._l(e.batchChange.personList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_change=!1}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("ac6a"),a("28a5"),a("6b54"),a("7f7f"),a("7514"),a("313e")),n=a.n(r),l=a("2934"),o=a("6724"),p=a("ed08"),m=a("333d"),c=a("5c96"),d=a("3de8"),u=a("a78e"),h=a.n(u),g=a("5f87");a("817d");var f={inject:["reload"],name:"Basics",components:{Pagination:m["a"],TreeSelect:d["a"]},directives:{waves:o["a"]},data:function(){return{isBasicsAdd:[],isBasicsCard:[],isBasicsUpdate:[],isBasicsDel:[],isBasicsDel2:[],isBasic:[],isBasicSH:[],isBasicExamine:[],rules:{eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},rulesCreate:{eqCode:[{required:!0,message:"必填",trigger:"blur"}],financeCode:[{required:!0,message:"必填",trigger:"blur"}],departmentId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],deptId:[{required:!0,message:"必填",trigger:"blur"}],employeName:[{required:!0,message:"必填",trigger:"blur"}],pastureId:[{required:!0,message:"必填",trigger:"blur"}],maintenance:[{required:!0,message:"必填",trigger:"blur"}],leveloneTime:[{required:!0,message:"必填",trigger:"blur"}],leveltwoTime:[{required:!0,message:"必填",trigger:"blur"}],levelthreeTime:[{required:!0,message:"必填",trigger:"blur"}],levelone:[{required:!0,message:"必填",trigger:"blur"}],leveltwo:[{required:!0,message:"必填",trigger:"blur"}],levelthree:[{required:!0,message:"必填",trigger:"blur"}],depreciation:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},placeholder:"请选择设备类别",findAllBrand:[],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],upkeepgrades:[],createDepartList:[],statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],pushNameList:[{id:"60",name:"60"},{id:"120",name:"120"},{id:"180",name:"180"}],pushNameList2:[{id:"1",name:"1"},{id:"2",name:"2"},{id:"3",name:"3"},{id:"5",name:"5"},{id:"8",name:"8"},{id:"12",name:"12"},{id:"18",name:"18"}],depreciationAlertList:[{id:"0",name:"正常"},{id:"1",name:"到期预警"},{id:"2",name:"超期使用"}],requestParams:[{name:"findAllBrand",offset:0,pagecount:0,params:[]},{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAlllAssetProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:"18"}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]},{name:"getdictbyname",offset:0,pagecount:0,params:["保养级别"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:h.a.get("pastureid"),eId:h.a.get("employeid")}},disabled:!1,nodeKey:"id",defaultCheckedKeys:[],parentClass:[],defaultProps:{children:"children",label:"typeName"},getRecuListParm:{name:"getAssetTypeList",idname:"id",params:[-1]},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{proId:"",brandId:"",assetCode:"",eqCode:"",eqName:"",departmentId:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",inputDatetime2:"",startTime2:"",stopTime2:"",inputDatetime3:"",startTime3:"",stopTime3:"",warning:"",eqClassId:""}},listSH:[],totalSH:0,listLoadingSH:!0,tabName:"",getdataListParmSH:{name:"getAssetListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eqCode:"",eqName:"",pastureName:h.a.get("pasturename"),status:"",inputDatetime1:"",startTime:"",stopTime:"",SHStatus:""}},textMap:{update:"编辑",create:"新增",card:"查看设备信息",examine:"审核",change:"批量变更"},dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(g["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",width:"",createTemp:{inputDatetime:Object(p["e"])(new Date,"{y}-{m}-{d}"),employeId:this.$store.state.user.employeid,inputUser:this.$store.state.user.employeid,deptId:this.$store.state.user.departmentid,departmentName:h.a.get("departmentname"),pastureId:this.$store.state.user.pastureid,assetCode:"",eqClassName:"",eqClassId:"",eqCode:"",eqName:"",specification:"",providerName:"",brandName:"",financeCode:"",status:"正常",purpose:"",purchaseDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),entranceDate:Object(p["e"])(new Date,"{y}-{m}-{d}"),yearUpkeepCost:"",yearMaintainDost:"",yuanzhi:"",baseHours:"",upkeepgrade:"",salvage:"",subtractvalue:"",yearMaintainCost:"",brandId:"",providerId:"",inputUserName:"",employeName:this.$store.state.user.employename,depreciation:"5",maintenance:"",levelone:"",leveltwo:"",levelthree:"",pushTime:"",leveloneTime:"",leveltwoTime:"",levelthreeTime:""},requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},seeTemp:{},dialogFormVisible_Examine:!1,dialogFormVisible_See:!1,activeName:"first",maintainTypes:[{id:"0",name:"周保养"},{id:"1",name:"月保养"},{id:"2",name:"间隔保养"}],changeStates:[{id:"17",name:"正常"},{id:"18",name:"闲置"},{id:"19",name:"报废"},{id:"20",name:"封存"}],getdataEQNumber:{name:"cerateEQNumber",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dialoFormVisible_Examine:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayRecord:!1,buttons:[],getAssetBigSpotCheckListParm:{name:"getAssetBigSpotCheck1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeSpotCheck1:"",startTime:"",stopTime:""}},listLoadingSpotCheck1:!1,listSpotCheck1:[],totalSpotCheck1:0,getBigupkeepbyeqParm:{name:"getBigupkeepbyeq",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeUpkeepbyeq:"",startTime:"",stopTime:"",upkeepType:"",upkeepCode:""}},listLoadingUpkeepbyeq:!1,listUpkeepbyeq:[],totalUpkeepbyeq:0,getAssetMaintainParm:{name:"getAssetMaintain1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetimeAssetMaintain:"",startTime:"",stopTime:"",repairCode:""}},listLoadingAssetMaintain:!1,listAssetMaintain:[],totalAssetMaintain:0,getAssetSTTParm:{name:"getAssetSTT1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:""}},listLoadingAssetSTT:!1,listAssetSTT:[],totalAssetSTT:0,getAssetChangeParm:{name:"getAssetChange1",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",changeStatue:"",inputDatetimeAssetChange:""}},listLoadingAssetChange:!1,listAssetChange:[],totalAssetChange:0,getAssetPartApplyParm:{name:"getAssetPartApply",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",stopTime:"",inputDatetimeAssetPartApply:""}},listLoadingAssetPartApply:!1,listAssetPartApply:[],totalAssetPartApply:0,downLoadParm:{},downLoadList:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],requestEmploye:{name:"findAllEmployeV2",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{pastureId:h.a.get("pastureid")}},employeList:[],totaltitle:0,getBarChart1Parm:{name:"getReportEqCostYear",parammaps:{}},barChart1:null,chart_data1:{},getBarChart2Parm:{name:"getReportEqCostMonth",parammaps:{receiveTime:(new Date).getFullYear()}},barChart2:null,chart_data2:{},dialogFormVisible_ChartSee:!1,getChartSeeParm:{name:"getEqPartuseDetailList",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{receiveTime:"",eqId:"",useTypeV:"",inputDatetime2:"",stopTime:"",startTime:""}},listLoadingChartSee:!1,totalChartSee:0,listChartSee:[],pageNum:0,pageSize:0,pageNumSH:0,pageSizeSH:0,useTypes:[{id:0,name:"维修"},{id:1,name:"保养"}],downLoadParm2:{},downLoadList2:[],isPercentage:!1,percentage:1,isokDisable:!1,edit:0,selectionList:[],dialogFormVisible_change:!1,batchChange:{temp:{departmentId:"",employeeId:""},getdataListParmDept:{name:"getAssetAndEmpList",offset:0,pagecount:0,parammaps:{}},deptList:[],getdataListParmPerson:{name:"getAllEmp",offset:0,pagecount:0,parammaps:{}},personList:[]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},computed:{uploadData:function(){return{name:"importStockUse",pastureId:h.a.get("pastureid"),importParams:"牧场,设备类别,资产编号,设备名称,设备内部编号,设备规格,品牌,供应商,用途,状态,购置日期,入场日期,折旧年限,财务编号,原值,残值,月核减值,保养级别,保养费用,维修费用,维修费用,基数(小时),部门,责任人,录入人,录入时间,使用时长(年),使用率(%),SignColumn",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/equipment"}},created:function(){var e=this,t=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:h.a.get("name")}}).then((function(e){t.buttons=e.data.list,t.get_auto_buttons()})),this.get_table_dataSH(),this.getDownClassList(),void 0==this.$route.query.tabName?this.tabName="first":this.tabName=this.$route.query.tabName,!1===this.isBasic&&(this.tabName="second"),"first"==this.tabName?(this.isDisplayRecord=!0,this.isFlowChart=!1):(this.isDisplayRecord=!1,this.isFlowChart=!0),void 0!==this.$route.query.myPath&&"AssetStandardManagement"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.departmentId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,isNaN(e.$route.query.departmentId)?e.getdataListParm.parammaps.departmentId="":e.getdataListParm.parammaps.departmentId=parseInt(e.$route.query.departmentId),e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.departmentId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"equipmentOverview"==this.$route.query.myPath&&(this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId),void 0!==this.$route.query.myPath&&"equipmentOverview2"==this.$route.query.myPath?setTimeout((function(){void 0!==e.$route.query.pastureName&&void 0!==e.$route.query.pastureId&&void 0!==e.$route.query.eqClassId?(e.getdataListParm.parammaps.pastureName=e.$route.query.pastureName,e.getdataListParm.parammaps.pastureId=e.$route.query.pastureId,e.getdataListParm.parammaps.eqClassId=e.$route.query.eqClassId,e.getdataListParm.parammaps.eqClassName=e.$route.query.eqClassName,e.defaultCheckedKeys=[e.getdataListParm.parammaps.eqClassId],e.getDepartParam.parammaps.pastureId=e.$route.query.pastureId,e.getDepartDownList(),e.$forceUpdate()):(e.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),e.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),e.getdataListParm.parammaps.eqClassId=""),e.get_table_data()}),5e3):(void 0!==this.$route.query.pastureName&&void 0!==this.$route.query.pastureId&&void 0!==this.$route.query.departmentId?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.pastureId=this.$route.query.pastureId,this.getdataListParm.parammaps.departmentId=parseInt(this.$route.query.departmentId)):(this.getdataListParm.parammaps.pastureName=h.a.get("pasturename"),this.getdataListParm.parammaps.pastureId=h.a.get("pastureid"),this.getdataListParm.parammaps.departmentId=""),this.get_table_data()),void 0!==this.$route.query.myPath&&"PurchaseScrap"==this.$route.query.myPath&&("新购设备数"==this.$route.query.project?(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime2=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList()):(this.getdataListParm.parammaps.pastureName=this.$route.query.pastureName,this.getdataListParm.parammaps.inputDatetime3=[Object(p["e"])(new Date,"{y}")+"-01-01",Object(p["e"])(new Date,"{y}")+"-12-31"],this.getDepartParam.parammaps.pastureId=this.$route.query.pastureId,this.getDepartDownList())),this.get_table_data(),this.keyupSubmit()},methods:{roleSet1:function(e){var t=!0;return t="18"==e.pastureId||e.pastureId==h.a.get("pastureid")||"0"==e.pastureId,console.log("编辑、。、。、",t),t},roleSet2:function(e){var t=!0;return t=!("18"!=e.pastureId&&"0"!=e.pastureId||!this.isBasicsDel2)||!(e.pastureId!=h.a.get("pastureid")&&"0"!=e.pastureId||!this.isBasicsDel2),console.log("删除、、、",t),t},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3})):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},tableSort2:function(e){Object(p["f"])(e,this.list)},tableSort:function(e){"third"==this.activeName?Object(p["f"])(e,this.listUpkeepbyeq):"fouth"==this.activeName?Object(p["f"])(e,this.listAssetMaintain):"seventh"==this.activeName&&Object(p["f"])(e,this.listAssetPartApply)},get_auto_buttons:function(){var e="asset:basics:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isBasicsAdd=t;var a="asset:basics:kapian",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isBasicsCard=s;var i="asset:basics:update",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isBasicsUpdate=r;var n="asset:basics:del",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isBasicsDel=o;var p="asset:basics:del2",m=Object(l["v"])(this.$store.state.user.buttons,p);this.isBasicsDel2=m;var c="asset:basic:basic",d=Object(l["v"])(this.$store.state.user.buttons,c);this.isBasic=d;var u="asset:basic:shjm",h=Object(l["v"])(this.$store.state.user.buttons,u);this.isBasicSH=h;var g="asset:basic:shenhe",f=Object(l["v"])(this.$store.state.user.buttons,g);this.isBasicExamine=f},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){null!==t.data.list&&(e.findAllBrand=t.data.findAllBrand.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.upkeepgrades=t.data.getdictbyname.list,e.getDepartDownList())}))},getDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(l["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(h.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==h.a.get("departmentid")})).name,e.createTemp.deptId=parseInt(h.a.get("departmentid"))):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentId=t.data.list[0].id,e.createTemp.deptId=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},get_table_data:function(){var e=this;this.listLoading=!0,null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),null==this.getdataListParm.parammaps.inputDatetime2||""==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3||""==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),Object(l["e"])(this.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.list=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath="");e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100),e.get_select_list()}))},get_table_dataSH:function(){var e=this;this.listLoadingSH=!0,console.log(this.$refs),console.log(this.$refs["inputDatetime1"]),null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),Object(l["e"])(this.getdataListParmSH).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.listSH=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&t.data.list[a].picpath?(e.listSH[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSH[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSH[a].srcpath="",e.listSH[a].picpath="");e.pageNumSH=t.data.pageNum,e.pageSizeSH=t.data.pageSize}else e.listSH=[];e.totalSH=t.data.total,setTimeout((function(){e.listLoadingSH=!1}),100)}))},SHStatus:function(e){return 0==e.SHStatus?"审核中":1==e.SHStatus?"已通过":2==e.SHStatus?"未通过":3==e.SHStatus?"历史数据":void 0},form_search:function(){this.listLoading=!0,this.getdataListParm.parammaps.pastureId="",""!==this.getdataListParm.parammaps.warning?this.getdataListParm.parammaps.d1=1:this.getdataListParm.parammaps.d1="",null==this.getdataListParm.parammaps.inputDatetime1?(this.getdataListParm.parammaps.inputDatetime1="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""):(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime1[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime1[1]),console.log(this.getdataListParm.parammaps.inputDatetime2),null==this.getdataListParm.parammaps.inputDatetime2?(this.getdataListParm.parammaps.inputDatetime2="",this.getdataListParm.parammaps.startTime2="",this.getdataListParm.parammaps.stopTime2=""):(this.getdataListParm.parammaps.startTime2=this.getdataListParm.parammaps.inputDatetime2[0],this.getdataListParm.parammaps.stopTime2=this.getdataListParm.parammaps.inputDatetime2[1]),null==this.getdataListParm.parammaps.inputDatetime3?(this.getdataListParm.parammaps.inputDatetime3="",this.getdataListParm.parammaps.startTime3="",this.getdataListParm.parammaps.stopTime3=""):(this.getdataListParm.parammaps.startTime3=this.getdataListParm.parammaps.inputDatetime3[0],this.getdataListParm.parammaps.stopTime3=this.getdataListParm.parammaps.inputDatetime3[1]),this.getdataListParm.offset=1,this.get_table_data()},form_searchSH:function(){this.listLoadingSH=!0,null==this.getdataListParmSH.parammaps.inputDatetime1?this.getdataListParmSH.parammaps.inputDatetime1="":(this.getdataListParmSH.parammaps.startTime=this.getdataListParmSH.parammaps.inputDatetime1[0],this.getdataListParmSH.parammaps.stopTime=this.getdataListParmSH.parammaps.inputDatetime1[1]),this.getdataListParmSH.offset=1,this.get_table_dataSH()},handlePicChange:function(e,t){var a=this;t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId)},handlePicRemove:function(e,t){var a=this;if("create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},add_dialog_saveAdd:function(){var e=this;console.log("点击了保存",this.createTemp.maintenance),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].score)return e.$message({type:"warning",message:"请检查检查结果是否为空",duration:2e3}),!1;void 0==e.listAdd[a].pic1&&(e.listAdd[a].pic1=-1),void 0==e.listAdd[a].pic2&&(e.listAdd[a].pic2=-1),void 0==e.listAdd[a].pic3&&(e.listAdd[a].pic3=-1)}e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigjudge",type:"e",parammaps:{pastureId:e.createTemp.pastureId,batime:e.createTemp.batime,empId:e.createTemp.empId}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}},Object(l["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.dialogFormVisibleAdd=!1,e.createTemp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},resetCreateTemp:function(){this.defaultCheckedKeys=[],this.createTemp.defaultCheckedKeys=[],this.createTemp.brandId="",this.createTemp.providerId="",this.createTemp.inputDatetime=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.eqClassName="",this.createTemp.eqClassId="",this.createTemp.employeName=h.a.get("employename"),this.createTemp.employeId=h.a.get("employeid"),this.createTemp.inputUser=h.a.get("employeid"),this.createTemp.deptId=parseInt(h.a.get("departmentid")),this.createTemp.departmentName=h.a.get("departmentname"),this.createTemp.pastureId=parseInt(h.a.get("pastureid")),this.createTemp.eqCode="",this.createTemp.eqName="",this.createTemp.specification="",this.createTemp.providerName="",this.createTemp.financeCode="",this.createTemp.status="正常",this.createTemp.providerName="",this.createTemp.brandName="",this.createTemp.purpose="",this.createTemp.purchaseDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.entranceDate=Object(p["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.assetCode="",this.createTemp.yearUpkeepCost="",this.createTemp.yearMaintainDost="",this.createTemp.yuanzhi="",this.createTemp.baseHours="",this.createTemp.upkeepgrade=113,this.createTemp.salvage="",this.createTemp.subtractvalue="",this.createTemp.yearMaintainCost="",this.createTemp.inputUserName="",this.createTemp.picpath="",this.fileList=[],this.showUpload=!1,this.createTemp.fileList=[],this.createTemp.depreciation="5"},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},changeBrand:function(e){this.createTemp.brandName=this.findAllBrand.find((function(t){return t.id===e})).name},changeUpkeepgrade:function(e){console.log(e)},upkeepgradeChange:function(e){e||this.$refs["upkeepgrade"].blur()},popoverHide:function(e,t){console.log(e,t),null!==e?(this.getdataEQNumber.parammaps.eqCode=t.typeCode,this.createTemp.eqClassId=t.eqClassId,this.createTemp.eqName=t.NewName,this.getdataListParm.parammaps.eqClassId=t.eqClassId,this.getEQNumber()):(this.defaultCheckedKeys=[],this.createTemp.eqClassId="",this.getdataListParm.parammaps.eqClassId="")},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){console.log(e.createTemp),e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}if(0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.requestParam.name="insertAsset","正常"==e.createTemp.status&&(e.createTemp.status=17),""==e.createTemp.providerId&&(e.createTemp.providerId=0),""==e.createTemp.brandId&&(e.createTemp.brandId=0),""==e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""==e.createTemp.salvage&&(e.createTemp.salvage=0),""==e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""==e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""==e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""==e.createTemp.baseHours&&(e.createTemp.baseHours=0);var a=/^\d+(\.\d{1,3})?$/;if(e.requestParam.parammaps=e.createTemp,e.requestParam.parammaps.picpath=e.createTemp.picpath,""!==e.createTemp.yuanzhi||""!==e.createTemp.salvage||""!==e.createTemp.subtractvalue||""!==e.createTemp.yearUpkeepCost||""!==e.createTemp.yearMaintainCost){if(e.requestParam.parammaps.yuanzhi=parseFloat(e.createTemp.yuanzhi),!a.test(parseFloat(e.createTemp.yuanzhi)))return e.$message({type:"error",message:"原值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.salvage)))return e.$message({type:"error",message:"残值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.subtractvalue)))return e.$message({type:"error",message:"月核减值请输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearUpkeepCost)))return e.$message({type:"error",message:"保养费用输入自然数,最多保留三位小数点",duration:2e3}),!1;if(!a.test(parseFloat(e.createTemp.yearMaintainCost)))return e.$message({type:"error",message:"维修费用请输入自然数,最多保留三位小数点",duration:2e3}),!1}if(0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},form_edit:function(e){var t=this;if(!this.dialogFormVisible){if(this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),this.createTemp=Object.assign({},e),void 0!==e.inputUser&&(this.createTemp.inputUser=parseInt(e.inputUser)),void 0!==e.levelone&&(this.createTemp.levelone=parseInt(e.levelone)),void 0!==e.leveltwo&&(this.createTemp.leveltwo=parseInt(e.leveltwo)),void 0!==e.levelthree&&(this.createTemp.levelthree=parseInt(e.levelthree)),void 0!==e.leveloneTime&&(this.createTemp.leveloneTime=parseInt(e.leveloneTime)),void 0!==e.leveltwoTime&&(this.createTemp.leveltwoTime=parseInt(e.leveltwoTime)),void 0!==e.levelthreeTime&&(this.createTemp.levelthreeTime=parseInt(e.levelthreeTime)),void 0!==e.maintenance){var a=e.maintenance.split(","),s=[];a.forEach((function(e){s.push(parseInt(e))})),console.log("arr2",s),this.createTemp.maintenance=s}void 0!==this.createTemp.eqClassId?this.defaultCheckedKeys=[this.createTemp.eqClassId]:(this.createTemp.eqClassId="",this.defaultCheckedKeys=[]),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}));var i=[],r=[];void 0==e.picpath||""==e.picpath?i.push():i.push(e.picpath);for(var n=0;n<i.length;n++){var l={};this.$set(l,"url",i[n]),r.push(l)}this.$set(this.createTemp,"fileList",r),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1}},edit_dialog_save:function(){var e=this;console.log(this.createTemp.maintenance),this.$refs["createTemp"].validate((function(t){if(t)if(console.log("-----------",e.createTemp),console.log(e.createTemp.providerId),""==e.createTemp.eqClassId||void 0==e.createTemp.eqClassId||null==e.createTemp.eqClassId)e.$message({type:"warning",message:"请选择设备类别"});else{e.requestParam.name="updateAsset",e.requestParam.parammaps=e.createTemp,"正常"===e.createTemp.status&&(e.createTemp.status=17),"闲置"===e.createTemp.status&&(e.createTemp.status=18),"报废"===e.createTemp.status&&(e.createTemp.status=19),"封存"===e.createTemp.status&&(e.createTemp.status=20),""!==e.createTemp.providerId&&void 0!==e.createTemp.providerId||(e.createTemp.providerId=0),""!==e.createTemp.brandId&&void 0!=e.createTemp.brandId||(e.createTemp.brandId=0),""===e.createTemp.yuanzhi&&(e.createTemp.yuanzhi=0),""===e.createTemp.salvage&&(e.createTemp.salvage=0),""===e.createTemp.subtractvalue&&(e.createTemp.subtractvalue=0),""===e.createTemp.yearUpkeepCost&&(e.createTemp.yearUpkeepCost=0),""===e.createTemp.yearMaintainCost&&(e.createTemp.yearMaintainCost=0),""===e.createTemp.baseHours&&(e.createTemp.baseHours=0),"A"!==e.createTemp.upkeepgrade&&"B"!==e.createTemp.upkeepgrade&&"C"!==e.createTemp.upkeepgrade||(e.createTemp.upkeepgrade=e.createTemp.upkeepgradeId,e.createTemp.upkeepgradeId=""),e.createTemp.deptId=e.createTemp.deptId,e.createTemp.departmentName=e.createTemp.departmentName,e.createTemp.employeeId=e.createTemp.employeId,e.requestParam.parammaps=e.createTemp,"first"===e.tabName?e.requestParam.parammaps.SHStatus=e.createTemp.SHStatus:"second"===e.tabName&&(e.requestParam.parammaps.SHStatus=0);var a=parseInt(e.createTemp.picpath);if(0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,0!=e.requestParam.parammaps.maintenance.length&&e.requestParam.parammaps.maintenance){if(e.requestParam.parammaps.maintenance.length>4)return e.$notify({title:"提示",message:"指定维修人最多4个人!",type:"success",duration:2e3}),!1;e.requestParam.parammaps.maintenance=e.requestParam.parammaps.maintenance.toString()}Object(l["k"])(e.requestParam).then((function(t){console.log(t),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime1&&(e.getdataListParm.parammaps.inputDatetime1=""),e.get_table_data(),e.get_table_dataSH(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功-",type:"success",duration:2e3})):Object(l["w"])(t,e.$notify)}))}}))},brandSearch:function(e,t){var a=this;console.log("品牌模糊查询输入值",e),this.requestBrand.parammaps["brandName"]=e,Object(l["e"])(this.requestBrand).then((function(e){console.log("品牌模糊查询搜索data",e.data.list),a.BrandList=e.data.list,t(a.BrandList)}))},handleSelectBrand:function(e){console.log("品牌模糊查询选中值",e),this.$set(this.createTemp,"brandName",e.brandName),this.$set(this.createTemp,"brandId",e.brandId),this.$forceUpdate()},employeSearch:function(e,t){var a=this;console.log("责任人模糊查询输入值",e),this.requestEmploye.parammaps["empname"]=e,Object(l["e"])(this.requestEmploye).then((function(e){console.log("责任人模糊查询搜索data",e.data.list),a.employeList=e.data.list,t(a.employeList)}))},handleSelectEmploye:function(e){console.log("责任人模糊查询选中值",e),this.$set(this.createTemp,"employeId",e.id),this.$set(this.createTemp,"employeName",e.name),this.$forceUpdate()},form_see:function(e){console.log(e),this.seeTemp=Object.assign({},e),this.activeName="first",this.dialogStatus="card",this.dialogFormVisible_See=!0;var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.SHStatus?(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.SHStatus&&(this.activeList=[{title:"提交信息",date:this.seeTemp.inputDatetime,name:this.seeTemp.inputUserName},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},form_seeTabClick:function(e){console.log(e),"second"==e.name?this.getAssetBigSpotCheckList():"third"==e.name?this.getBigupkeepbyeqList():"fouth"==e.name?this.getAssetMaintainList():"fifth"==e.name?this.getAssetSTTList():"sixth"==e.name?this.getAssetChangeList():"seventh"==e.name?this.getAssetPartApplyList():"eighth"==e.name&&(this.getBarChart1Parm.parammaps.eqId=this.seeTemp.id,this.getBarChart2Parm.parammaps.eqId=this.seeTemp.id,this.getChartSeeParm.parammaps.eqId=this.seeTemp.id,this.getBarChart1(),this.getBarChart2())},getAssetBigSpotCheckList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeCheck1"]&&null!==this.$refs["inputDatetimeCheck1"].value?(this.getAssetBigSpotCheckListParm.parammaps.startTime=this.$refs["inputDatetimeCheck1"].value[0],this.getAssetBigSpotCheckListParm.parammaps.stopTime=this.$refs["inputDatetimeCheck1"].value[1]):(this.getAssetBigSpotCheckListParm.parammaps.startTime="",this.getAssetBigSpotCheckListParm.parammaps.stopTime=""),this.getAssetBigSpotCheckListParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetBigSpotCheckListParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetBigSpotCheckListParm).then((function(t){console.log("点检记录-table数据",t.data.list),null!==t.data.list?(e.listSpotCheck1=t.data.list,e.pageNumSpotCheck1=t.data.pageNum,e.pageSizeSpotCheck1=t.data.pageSize):e.listSpotCheck1=[],e.totalSpotCheck1=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchSportCheck:function(){null==this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1&&(this.getAssetBigSpotCheckListParm.parammaps.inputDatetimeCheck1=""),this.getAssetBigSpotCheckListParm.offset=1,this.getAssetBigSpotCheckList()},getBigupkeepbyeqList:function(){var e=this;this.listLoadingSpotCheck1=!0,void 0!==this.$refs["inputDatetimeUpkeepbyeq"]&&null!==this.$refs["inputDatetimeUpkeepbyeq"].value?(this.getBigupkeepbyeqParm.parammaps.startTime=this.$refs["inputDatetimeUpkeepbyeq"].value[0],this.getBigupkeepbyeqParm.parammaps.stopTime=this.$refs["inputDatetimeUpkeepbyeq"].value[1]):(this.getBigupkeepbyeqParm.parammaps.startTime="",this.getBigupkeepbyeqParm.parammaps.stopTime=""),this.getBigupkeepbyeqParm.parammaps.assetId=this.seeTemp.assetId,this.getBigupkeepbyeqParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getBigupkeepbyeqParm).then((function(t){console.log("保养记录-table数据",t.data.list),null!==t.data.list?(e.listUpkeepbyeq=t.data.list,e.pageNumUpkeepbyeq=t.data.pageNum,e.pageSizeUpkeepbyeq=t.data.pageSize):e.listUpkeepbyeq=[],e.totalUpkeepbyeq=t.data.total,setTimeout((function(){e.listLoadingSpotCheck1=!1}),100)}))},form_searchUpkeepbyeq:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeUpkeepbyeq=""),this.getBigupkeepbyeqParm.offset=1,this.getBigupkeepbyeqList()},getAssetMaintainList:function(){var e=this;this.listLoadingAssetMaintain=!0,void 0!==this.$refs["inputDatetimeAssetMaintain"]&&null!==this.$refs["inputDatetimeAssetMaintain"].value?(this.getAssetMaintainParm.parammaps.startTime=this.$refs["inputDatetimeAssetMaintain"].value[0],this.getAssetMaintainParm.parammaps.stopTime=this.$refs["inputDatetimeAssetMaintain"].value[1]):(this.getAssetMaintainParm.parammaps.startTime="",this.getAssetMaintainParm.parammaps.stopTime=""),this.getAssetMaintainParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetMaintainParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetMaintainParm).then((function(t){console.log("维修记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetMaintain=t.data.list,e.pageNumAssetMaintain=t.data.pageNum,e.pageSizeAssetMaintain=t.data.pageSize):e.listAssetMaintain=[],e.totalAssetMaintain=t.data.total,setTimeout((function(){e.listLoadingAssetMaintain=!1}),100)}))},form_searchAssetMaintain:function(){null===this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan&&(this.getBigupkeepbyeqParm.parammaps.inputDatetimeAssetMaintan=""),this.getBigupkeepbyeqParm.offset=1,this.getAssetMaintainList()},getAssetSTTList:function(){var e=this;this.listLoadingAssetSTT=!0,this.getAssetSTTParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetSTTParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetSTTParm).then((function(t){console.log("启停记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetSTT=t.data.list,e.pageNumAssetSTT=t.data.pageNum,e.pageSizeAssetSTT=t.data.pageSize):e.listAssetSTT=[],e.totalAssetSTT=t.data.total,setTimeout((function(){e.listLoadingAssetSTT=!1}),100)}))},form_searchAssetSTT:function(){null==this.getAssetSTTParm.parammaps.startTime&&(this.getAssetSTTParm.parammaps.startTime=""),null==this.getAssetSTTParm.parammaps.stopTime&&(this.getAssetSTTParm.parammaps.stopTime=""),this.getAssetSTTParm.offset=1,this.getAssetSTTList()},getAssetChangeList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetChange"]),void 0!==this.$refs["inputDatetimeAssetChange"]&&null!==this.$refs["inputDatetimeAssetChange"].value?(this.getAssetChangeParm.parammaps.startTime=this.$refs["inputDatetimeAssetChange"].value[0],this.getAssetChangeParm.parammaps.stopTime=this.$refs["inputDatetimeAssetChange"].value[1]):(this.getAssetChangeParm.parammaps.startTime="",this.getAssetChangeParm.parammaps.stopTime=""),this.getAssetChangeParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetChangeParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetChangeParm).then((function(t){console.log("变更记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetChange=t.data.list,e.pageNumAssetChange=t.data.pageNum,e.pageSizeAssetChange=t.data.pageSize):e.listAssetChange=[],e.totalAssetChange=t.data.total,setTimeout((function(){e.listLoadingAssetChange=!1}),100)}))},form_searchAssetChange:function(){null===this.getAssetChangeParm.parammaps.inputDatetimeAssetChange&&(this.getAssetChangeParm.parammaps.inputDatetimeAssetChange=""),this.getAssetChangeParm.offset=1,this.getAssetChangeList()},changeStatue:function(e){return 17==e.changeStatue?"正常":18==e.changeStatue?"闲置":19==e.changeStatue?"报废":20==e.changeStatue?"封存":void 0},getAssetPartApplyList:function(){var e=this;this.listLoadingAssetChange=!0,console.log(this.$refs["inputDatetimeAssetPartApply"].value),void 0!==this.$refs["inputDatetimeAssetPartApply"]&&null!==this.$refs["inputDatetimeAssetPartApply"].value&&""!==this.$refs["inputDatetimeAssetPartApply"].value?(this.getAssetPartApplyParm.parammaps.startTime=this.$refs["inputDatetimeAssetPartApply"].value[0],this.getAssetPartApplyParm.parammaps.stopTime=this.$refs["inputDatetimeAssetPartApply"].value[1]):(this.getAssetPartApplyParm.parammaps.startTime="",this.getAssetPartApplyParm.parammaps.stopTime=""),this.getAssetPartApplyParm.parammaps.assetId=this.seeTemp.assetId,this.getAssetPartApplyParm.parammaps.pastureId=this.seeTemp.pastureId,Object(l["e"])(this.getAssetPartApplyParm).then((function(t){console.log("备件领用记录-tabile数据",t.data.list),null!==t.data.list?(e.listAssetPartApply=t.data.list,e.pageNumAssetPartApply=t.data.pageNum,e.pageSizeAssetPartApply=t.data.pageSize):e.listAssetPartApply=[],e.totalAssetPartApply=t.data.total,setTimeout((function(){e.listLoadingAssetPartApply=!1}),100)}))},form_searchAssetPartApply:function(){this.listLoadingAssetChange=!0,null==this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange&&(this.getAssetPartApplyParm.parammaps.inputDatetimeAssetChange=""),this.getAssetPartApplyParm.offset=1,this.getAssetPartApplyList()},getBarChart1:function(){var e=this;Object(l["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data;var a=t.data.chart_data.repireCost,s=t.data.chart_data.upkeepCost,i=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),i+=parseFloat(e)}));var r=0;null===s&&void 0===s||s.forEach((function(e,t){console.log(parseFloat(e)),r+=parseFloat(e)})),e.totaltitle=i+r,e.roadBarChart1(e.chart_data1,e.totaltitle.toFixed(2))}))},roadBarChart1:function(e,t){console.log(e,t),null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=n.a.init(document.getElementById("barChart1"));var a={title:{text:"年度费用统计(总费用:"+t+"元)",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e.length);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data1.year}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.repireCost},{name:"保养费用",type:"bar",barWidth:60,stack:"广告",data:this.chart_data1.upkeepCost}]};this.barChart1.setOption(a);var s=this;window.onresize=function(){s.barChart1.resize()},this.barChart1.on("click",(function(e,t){console.log(e),s.getBarChart2Parm.parammaps.receiveTime=e.name,s.getBarChart2(),s.getBarChart1()}))},getBarChart2:function(){var e=this;Object(l["h"])(this.getBarChart2Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadBarChart2(e.chart_data2)}))},roadBarChart2:function(e){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=n.a.init(document.getElementById("barChart2"));var t={title:{text:this.getBarChart2Parm.parammaps.receiveTime+"年月度费用统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){console.log(e);var t=0,a="";return 1==e.length?a+=e[0].seriesName+":"+e[0].data+"元<br/>":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元<br/>",a+="维修费用:"+e[0].data+"元<br/>",a+="保养费用:"+e[1].data+"元<br/>"),a}},legend:{data:["维修费用","保养费用"],x:"right"},color:["#769cfc","#42b983"],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.chart_data2.months}],yAxis:[{type:"value",name:"费用(元)"}],series:[{name:"维修费用",type:"bar",stack:"广告",data:this.chart_data2.repireCost},{name:"保养费用",type:"bar",stack:"广告",data:this.chart_data2.upkeepCost}]};this.barChart2.setOption(t);var a=this;window.onresize=function(){a.barChart2.resize()},this.barChart2.on("click",(function(e,t){console.log(e),a.dialogFormVisible_ChartSee=!0,a.dialogStatus="card",a.getChartSeeParm.parammaps.receiveTime=e.name,a.getChartSeeList(),a.getBarChart1(),a.getBarChart2()}))},getChartSeeList:function(){var e=this;this.listLoadingChartSee=!0,void 0!==this.$refs["inputDatetime2"]&&null!==this.$refs["inputDatetime2"].value?(this.getChartSeeParm.parammaps.startTime=this.$refs["inputDatetime2"].value[0],this.getChartSeeParm.parammaps.stopTime=this.$refs["inputDatetime2"].value[1]):(this.getChartSeeParm.parammaps.startTime="",this.getChartSeeParm.parammaps.stopTime=""),Object(l["e"])(this.getChartSeeParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.listChartSee=t.data.list,e.pageNumChartSee=t.data.pageNum,e.pageSizeChartSee=t.data.pageSize,t.data.total&&(e.totalChartSee=t.data.total)):e.listChartSee=[],setTimeout((function(){e.listLoadingChartSee=!1}),100)}))},form_searchChartSee:function(){this.listLoadingChartSee=!0,null===this.getChartSeeParm.parammaps.inputDatetime2&&(this.getChartSeeParm.parammaps.inputDatetime2=""),this.getChartSeeParm.offset=1,this.getChartSeeList()},handleDownloadChartSee:function(){var e=this;this.$alert("正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm2.name="getEqPartuseDetailList",this.downLoadParm2.returntype="Map",this.downLoadParm2.parammaps=this.getChartSeeParm.parammaps,Object(l["d"])(this.downLoadParm2).then((function(t){e.$nextTick((function(){e.downLoadList2=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList2);var a=[{tHeader:["类型","单号","领用日期","领用部门","备件编号","备件名称","备件规格","备件品牌","计量单位","出库数量","退库数量","单价","总价"],filterVal:["useTypeV","RUcode","creatTime","departmentName","partCode","partName","specification","brandName","unit","checkoutNumber","quitNumber","price","sumPrice"],tableDatas:e.downLoadList2,sheetName:"费用统计"}];Object(p["d"])(a,"费用统计",!0,"xlsx")}))}))},form_delete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteAsset",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(l["k"])(t.requestParam).then((function(){null===t.getdataListParm.parammaps.inputDatetime1&&(t.getdataListParm.parammaps.inputDatetime1=""),t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getDownClassList:function(){var e=this;Object(l["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},getEQNumber:function(){var e=this;this.getdataEQNumber.parammaps.pastureId=h.a.get("pastureid"),Object(l["e"])(this.getdataEQNumber).then((function(t){e.createTemp.assetCode=t.data.list[0].createNumber,console.log(t.data.list[0].createNumber),console.log(e.createTemp.assetCode),e.$forceUpdate()}))},handleTabClick:function(e){console.log("点击了基础信息/审核设备tab",e),"first"==e.name?(this.isFlowChart=!1,this.isDisplayRecord=!0):(this.isFlowChart=!0,this.isDisplayRecord=!1),this.get_table_data(),this.get_table_dataSH()},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"SHstatue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1,this.keyupSubmit()},changeSHStatue:function(e){this.statueReason=2==e},keyupSubmit:function(){var e=this;document.onkeydown=function(t){var a=window.event.keyCode;13===a&&e.createExamineData()}},createExamineData:function(){var e=this;"update"!==this.dialogStatus&&"create"!==this.dialogStatus&&(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="eqCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.SHstatue?e.requestParam.parammaps.statue=1:e.requestParam.parammaps.statue=2,e.requestParam.parammaps.empId=h.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(l["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.get_table_dataSH(),e.get_table_data(),e.activeName):Object(l["w"])(t,e.$notify)})))})))},handleDownload:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","部门","责任人","录入人","录入时间","使用时长(年)","使用率(%)","指定维修人","一级督办","一级间隔时间","二级督办","二级间隔时间","三级督办","三级间隔时间"],filterVal:["pastureName","eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","deptName","employeName","inputUserName","inputDatetime","serviceDuration","utilizationRate","maintenanceName","leveloneName","leveloneTime","leveltwoName","leveltwoTime","levelthreeName","levelthreeTime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleDownloadSH:function(){var e=this;this.$alert("设备基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getAssetListSH",this.downLoadParm.parammaps=this.getdataListParmSH.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["设备类别","资产编号","设备名称","设备内部编号","设备规格","品牌","供应商","用途","状态","购置日期","入场日期","折旧年限","财务编号","原值","残值","月核减值","保养级别","保养费用","维修费用","基数(小时)","牧场","部门","责任人","录入人","录入时间"],filterVal:["eqClassName","assetCode","eqName","eqCode","specification","brandName","providerName","purpose","status","purchaseDate","entranceDate","depreciation","financeCode","yuanzhi","salvage","subtractvalue","upkeepgrade","yearUpkeepCost","yearMaintainCost","baseHours","pastureName","deptName","employeName","inputUserName","inputDatetime"],tableDatas:e.downLoadList,sheetName:"设备基础信息"}];Object(p["d"])(a,"设备基础信息",!0,"xlsx")}))},handleSelectionChange:function(e){this.selectionList=e},handleBatchChange:function(){if(this.selectionList.length>0){for(var e=0;e<this.selectionList.length;e++)if(this.selectionList[e].pastureId!==this.selectionList[0].pastureId)return this.$message({type:"error",message:"请检测变更牧场是否一致!",duration:2e3}),!1;console.log("批量变更"),this.batchChange.temp.departmentId="",this.batchChange.temp.employeeId="",this.batchChange.deptList=[],this.batchChange.personList=[],this.dialogFormVisible_change=!0,this.dialogStatus="change",this.batchChange.getdataListParmDept.parammaps.pastureId=this.selectionList[0].pastureId,this.getBatchChangeDeptDownList()}else this.$message({type:"error",message:"请选择变更牧场",duration:2e3})},getBatchChangeDeptDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmDept).then((function(t){null!==t.data.list?e.batchChange.deptList=t.data.list:e.batchChange.deptList=[]}))},changeBatchDept:function(e){console.log(e),this.batchChange.getdataListParmPerson.parammaps.deptId=e,this.batchChange.temp.employeeId="",this.batchChange.getdataListParmPerson.parammaps.pastureId=this.batchChange.deptList.find((function(t){return t.deptid==e})).pastureId,this.getBatchChangePersonDownList()},getBatchChangePersonDownList:function(){var e=this;Object(l["e"])(this.batchChange.getdataListParmPerson).then((function(t){null!==t.data.list?e.batchChange.personList=t.data.list:e.batchChange.personList=[]}))},changeBatchPerson:function(e){console.log(e),this.batchChange.temp.employeeId=e,this.batchChange.temp.employeName=this.batchChange.personList.find((function(t){return t.id==e})).empname,this.$forceUpdate()},changeData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["batchChangeTemp"].validate((function(t){if(t){e.requestParam={};for(var a=[],s=0;s<e.selectionList.length;s++){var i={},r={};i.name="updateEquipmentALL",i.offset=0,i.pagecount=0,r.departmentId=e.batchChange.temp.departmentId,r.employeeId=e.batchChange.temp.employeeId,r.employeName=e.batchChange.temp.employeName,r.id=e.selectionList[s].id,i.parammaps=r,a.push(i)}e.requestParam.array=a,Object(l["l"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.dialogFormVisible_change=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.get_table_data()):Object(l["w"])(t,e.$notify)}))}}))}}},b=f,v=(a("d56a"),a("5f63"),a("85d6"),a("2877")),y=Object(v["a"])(b,s,i,!1,null,"34193c27",null);t["default"]=y.exports},d89a:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-资产管理",use:"icon-资产管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-资产管理"><defs><style type="text/css"></style></defs><path d="M973.949 552.474L531.025 735.329c-4.063 4.063-12.191 4.063-16.253 4.063-8.124 0-12.19 0-16.254-4.063L55.594 552.474c-16.256-8.128-28.444-24.386-28.444-40.638 0-24.38 20.316-44.695 44.703-44.695 8.127 0 12.188 0 16.251 4.063l422.603 174.73 422.602-174.73c4.061-4.063 12.196-4.063 16.257-4.063 24.381 0 44.697 20.316 44.697 44.695 8.128 20.32-4.063 36.575-20.314 40.638z" p-id="11546" /><path d="M971.176 357.422L528.253 540.285c-4.061 4.061-12.189 4.061-16.252 4.061-8.125 0-12.19 0-16.253-4.061L52.824 357.422c-16.254-8.126-28.443-24.38-28.443-40.633 0-16.252 12.187-36.575 28.443-40.636L495.747 93.297c4.063-4.064 12.189-4.064 16.252-4.064 8.128 0 12.191 0 16.253 4.064l442.922 182.856c16.254 8.126 28.444 24.384 28.444 40.636 0.003 16.253-12.186 32.507-28.442 40.633zM77.208 662.184c8.127 0 12.188 0 16.251 4.065l422.605 174.73 422.601-174.728c4.064-4.065 12.197-4.065 16.258-4.065 24.379 0 44.696 20.317 44.696 44.703 0 20.314-12.189 36.567-28.445 40.63l-442.92 182.855c-4.064 4.07-12.19 4.07-16.251 4.07-8.13 0-12.193 0-16.255-4.07L52.823 747.519c-16.253-8.127-28.442-24.38-28.442-40.63 8.126-24.387 28.442-44.705 52.827-44.705z" p-id="11547" /></symbol>'});n.a.add(l);t["default"]=l},d9bd:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{type:"date",placeholder:"开始日期"},model:{value:e.getdataListParm.parammaps.begindate,callback:function(t){e.$set(e.getdataListParm.parammaps,"begindate",t)},expression:"getdataListParm.parammaps.begindate"}}),e._v(" "),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{type:"date",placeholder:"结束日期"},model:{value:e.getdataListParm.parammaps.enddate,callback:function(t){e.$set(e.getdataListParm.parammaps,"enddate",t)},expression:"getdataListParm.parammaps.enddate"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.getdataListParm.parammaps.companygroup,callback:function(t){e.$set(e.getdataListParm.parammaps,"companygroup",t)},expression:"getdataListParm.parammaps.companygroup"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"90px"},attrs:{placeholder:"客户名称",clearable:""},model:{value:e.getdataListParm.parammaps.customname,callback:function(t){e.$set(e.getdataListParm.parammaps,"customname",t)},expression:"getdataListParm.parammaps.customname"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"90px"},attrs:{placeholder:"拜访人",clearable:""},model:{value:e.getdataListParm.parammaps.visiter,callback:function(t){e.$set(e.getdataListParm.parammaps,"visiter",t)},expression:"getdataListParm.parammaps.visiter"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("\n 搜索\n ")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"客户编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customcode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"客户名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"集团",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.companygroup))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"拜访日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visitdate))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"拜访人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visiter))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"被拜访人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiver))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"70px"}},[a("el-form-item",{attrs:{label:"时间",prop:"timestamp"}},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"请选择时间"},model:{value:e.temp.timestamp,callback:function(t){e.$set(e.temp,"timestamp",t)},expression:"temp.timestamp"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{model:{value:e.temp.title,callback:function(t){e.$set(e.temp,"title",t)},expression:"temp.title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"重要性"}},[a("el-rate",{staticStyle:{"margin-top":"8px"},attrs:{colors:["#99A9BF","#F7BA2A","#FF9900"],max:3},model:{value:e.temp.importance,callback:function(t){e.$set(e.temp,"importance",t)},expression:"temp.importance"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"点评"}},[a("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:e.temp.remark,callback:function(t){e.$set(e.temp,"remark",t)},expression:"temp.remark"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("\n 取消\n ")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("\n 确认\n ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogPvVisible,title:"阅读统计"},on:{"update:visible":function(t){e.dialogPvVisible=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogPvVisible=!1}}},[e._v("确认")])],1)],1)],1)},i=[],r=a("b85c"),n=a("b775");function l(e){return Object(n["a"])({url:"/article/pv",method:"get",params:{pv:e}})}function o(e){return Object(n["a"])({url:"/article/create",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/article/update",method:"post",data:e})}var m=a("2934"),c=a("6724"),d=a("ed08"),u=a("333d"),h={name:"Visit",components:{Pagination:u["a"]},directives:{waves:c["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getVisitList",offset:1,pagecount:10,returntype:"Map",parammaps:{customname:"",companygroup:"",visiter:"",begindate:"",enddate:""}},temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},computed:{enddateDefault:function(){var e=new Date;return e},begindateDefault:function(){var e=new Date;return e.setTime(e.getTime()-2592e6),e}},created:function(){this.get_table_data()},mounted:function(){this.getdataListParm.parammaps.begindate=this.begindateDefault,this.getdataListParm.parammaps.enddate=this.enddateDefault},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(m["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},sortChange:function(e){var t=e.prop,a=e.order;"id"===t&&this.sortByID(a)},sortByID:function(e){this.listQuery.sort="ascending"===e?"+id":"-id",this.form_search()},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin",o(e.temp).then((function(){e.list.unshift(e.temp),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp),p(a).then((function(){var t,a=Object(r["a"])(e.list);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(s.id===e.temp.id){var i=e.list.indexOf(s);e.list.splice(i,1,e.temp);break}}}catch(n){a.e(n)}finally{a.f()}e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)},handleFetchPv:function(e){var t=this;l(e).then((function(e){t.pvData=e.data.pvData,t.dialogPvVisible=!0}))},handleDownload:function(){var e=this;this.downloadLoading=!0,Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=["timestamp","title","type","importance","status"],s=["timestamp","title","type","importance","status"],i=e.formatJson(s,e.list);t.export_json_to_excel({header:a,data:i,filename:"table-list"}),e.downloadLoading=!1}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(d["e"])(t[e]):t[e]}))}))}}},g=h,f=a("2877"),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},d9cd:function(e,t,a){"use strict";a.r(t);var s=a("a78e"),i=a.n(s),r={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},n={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){i.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var a=e.commit,s=t.withoutAnimation;a("CLOSE_SIDEBAR",s)},toggleDevice:function(e,t){var a=e.commit;a("TOGGLE_DEVICE",t)}};t["default"]={namespaced:!0,state:r,mutations:n,actions:l}},d9d07:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("a",{staticStyle:{"border-bottom":"1px solid #333"},on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt))]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e(),e._v(" "),"已录制未上传"==t.row.videoTxt?a("el-link",[e._v("已录制未上传 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),3==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),e.dialogFormVisible_See?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close_diago()}}},[e._v("关闭")])],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},close_diago:function(){console.log(0xa1b01d4b1c7),this.dialogFormVisible_See=!1},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||8==e.SHStatue?"未通过":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核"},{title:"机修审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"设备主管审核"}]):7===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!1,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("5622"),a("802c"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"5d546f54",null);t["default"]=g.exports},d9f5:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-date-picker",{staticStyle:{width:"250px",top:"-3px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParm.parammaps.praseTime,callback:function(t){e.$set(e.getdataListParm.parammaps,"praseTime",t)},expression:"getdataListParm.parammaps.praseTime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{on:{click:function(t){return e.clickTotal(s)}}},[e._v(e._s(s.PRSum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安全数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.PRAQ))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"高于最高库存",align:"center","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.PRMAX))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"低于最低库存","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.PRMIN))]),a("br")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安全性","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("keepTwoNum")(t.row.PRAQ/t.row.PRSum*100))+"%")]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=(a("c5f6"),a("2934")),n=a("333d"),l=a("ed08"),o=a("6724"),p=a("a78e"),m=a.n(p),c={name:"SparePartsSafety",components:{Pagination:n["a"]},directives:{waves:o["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}],getdataListParm:{name:"getprsafetyList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{praseTime:Object(l["e"])((new Date).getTime()-864e5,"{y}-{m}-{d}")}},listLoading:!1,total:0,tableKey:0,list:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件安全库存正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getprsafetyList",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadList=t.data.list,e.downLoadList=t.data.list,console.log(e.downLoadList),t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)e.downLoadList[a].AQX=(parseFloat(t.data.list[a].PRAQ)/parseFloat(t.data.list[a].PRSum)*100).toFixed(2)+"%";console.log(e.downLoadList);var s=[{tHeader:["牧场","总数","安全数","高于最高库存","低于最低库存","安全性"],filterVal:["pastureName","PRSum","PRAQ","PRMAX","PRMIN","AQX"],tableDatas:e.downLoadList,sheetName:"备件安全库存"}];Object(l["d"])(s,"备件安全库存",!0,"xlsx")}))}))},tableCellStyle:function(e){e.row,e.column,e.rowIndex;var t=e.columnIndex;return 2===t?{textDecoration:"underline"}:{textDecoration:"none"}},clickTotal:function(e){console.log("跳转了"),"现代牧业"!==m.a.get("pasturename")?e.pastureName==m.a.get("pasturename")?(this.$router.push({path:"/customs/custom",query:{pastureName:e.pastureName}}),this.getdataListParm.parammaps.pastureName=e.pastureName):this.$message({type:"error",message:"请联系管理员开通相关牧场数据权限"}):(this.$router.push({path:"/customs/custom",query:{pastureName:e.pastureName}}),this.getdataListParm.parammaps.pastureName=e.pastureName)}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},da2d:function(e,t,a){"use strict";a("1f56")},da6c:function(e,t,a){},da7c:function(e,t,a){},dac8:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.style,attrs:{id:"chart"}})},i=[],r=a("313e"),n={props:{view:Object},data:function(){return{option:this.view.option}},computed:{style:function(){return{width:this.view.width||"600px",height:this.view.height||"400px"}}},watch:{options:function(e){this.instance.setOption(e)}},mounted:function(){this.instance=r.init(this.$el),this.instance.setOption(this.option)}},l=n,o=a("2877"),p=Object(o["a"])(l,s,i,!1,null,null,null);t["default"]=p.exports},dad9:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},on:{change:e.changeType},model:{value:e.getdataListParm.parammaps.type,callback:function(t){e.$set(e.getdataListParm.parammaps,"type",t)},expression:"getdataListParm.parammaps.type"}},e._l(e.types,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"250px",top:"-3px"},attrs:{type:"month",placeholder:"选择月份",format:"yyyy-MM","value-format":"yyyy-MM"},model:{value:e.getdataListParm.parammaps.buyerDate,callback:function(t){e.$set(e.getdataListParm.parammaps,"buyerDate",t)},expression:"getdataListParm.parammaps.buyerDate"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),e.isPasture?a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}):e._e(),e._v(" "),e.isProvider?a("el-table-column",{attrs:{label:"供应商","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"订单数","min-width":"140px",align:"center",sortable:"",prop:"orderCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"按时单数","min-width":"140px",align:"center",sortable:"",prop:"ontimeCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"未到单数","min-width":"140px",align:"center",sortable:"",prop:"noCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"到货及时率","min-width":"140px",align:"center",sortable:"",prop:"orderCount2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderCount2)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"物料种数","min-width":"140px",align:"center",sortable:"",prop:"classCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"单项完成量","min-width":"140px",align:"center",sortable:"",prop:"ontimeClassCount"}}),e._v(" "),a("el-table-column",{attrs:{label:"单项完成率","min-width":"140px",align:"center",sortable:"",prop:"ontimeClassCount2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ontimeClassCount2)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"订单量","min-width":"140px",align:"center",sortable:"",prop:"orderSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"到货量","min-width":"140px",align:"center",sortable:"",prop:"receiveSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"到货完成率","min-width":"140px",align:"center",sortable:"",prop:"receiveSum2"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveSum2)+"%")])]}}])})],1),e._v(" "),e.isPasture?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}):e._e(),e._v(" "),e.isProvider?a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalProvider,page:e.getProviderParm.offset,limit:e.getProviderParm.pagecount},on:{"update:page":function(t){return e.$set(e.getProviderParm,"offset",t)},"update:limit":function(t){return e.$set(e.getProviderParm,"pagecount",t)},pagination:e.getProviderList}}):e._e()],1)},i=[],r=(a("c5f6"),a("6724")),n=a("2934"),l=a("333d"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"TimelyArrivalRate",components:{Pagination:l["a"]},directives:{waves:r["a"]},filters:{keepTwoNum:function(e){return e=Number(e),e.toFixed(2)}},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},types:[{id:0,name:"按牧场"},{id:1,name:"按供应商"}],findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],tableKey:0,list:[],total:0,listLoading:!0,isPasture:!0,getdataListParm:{name:"getOnTineRateListbyPasture",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{buyerDate:Object(m["e"])(new Date,"{y}-{m}"),type:0}},isProvider:!1,totalProvider:0,getProviderParm:{name:"getOnTineRateListbyProvider",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{buyerDate:Object(m["e"])(new Date,"{y}-{m}")}},Type:0,downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},mounted:function(){},methods:{tableSort1:function(e){Object(m["f"])(e,this.list)},get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;Object(n["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)0!==t.data.list[a].ontimeCount&&0!==t.data.list[a].orderCount?e.$set(t.data.list[a],"orderCount2",(parseFloat(t.data.list[a].ontimeCount)/parseFloat(t.data.list[a].orderCount)*100).toFixed(2)):e.$set(t.data.list[a],"orderCount2",0),0!==t.data.list[a].ontimeClassCount&&0!==t.data.list[a].classCount?e.$set(t.data.list[a],"ontimeClassCount2",(parseFloat(t.data.list[a].ontimeClassCount)/parseFloat(t.data.list[a].classCount)*100).toFixed(2)):e.$set(t.data.list[a],"ontimeClassCount2",0),0!==t.data.list[a].receiveSum&&0!==t.data.list[a].orderSum?e.$set(t.data.list[a],"receiveSum2",(parseFloat(t.data.list[a].receiveSum)/parseFloat(t.data.list[a].orderSum)*100).toFixed(2)):e.$set(t.data.list[a],"receiveSum2",0);e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},getProviderList:function(){var e=this;Object(n["e"])(this.getProviderParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNumEquipmentType=t.data.pageNum,e.pageSizeEquipmentType=t.data.pageSize,t.data.total&&(e.totalProvider=t.data.total),console.log(t.data.total),console.log(e.totalProvider),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){0===this.getdataListParm.parammaps.type?(this.isPasture=!0,this.getdataListParm.offset=1,this.get_table_data()):(this.isPasture=!1,this.getProviderParm.offset=1,this.getProviderParm.parammaps.buyerDate=this.getdataListParm.parammaps.buyerDate,this.getProviderList())},changeType:function(e){this.Type=e,0==this.Type?(this.listLoading=!0,this.getdataListParm.parammaps.pastureName=this.pastureName,this.isPasture=!0,this.isProvider=!1,this.get_table_data()):(this.listLoading=!0,this.isPasture=!1,this.isProvider=!0,this.getProviderParm.parammaps.pastureName=this.pastureName,this.getProviderList())},handleDownload:function(){var e=this;console.log("点击了导出"),console.log(this.Type),this.$alert("备件到货及时率正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);0==this.Type?(this.downLoadParm.name="getOnTineRateListbyPasture",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){if(e.downLoadList=t.data.list,t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)e.downLoadList[a].DHJSL=(parseFloat(t.data.list[a].ontimeCount)/parseFloat(t.data.list[a].orderCount)*100).toFixed(2)+"%",e.downLoadList[a].DXWCL=(parseFloat(t.data.list[a].ontimeClassCount)/parseFloat(t.data.list[a].classCount)*100).toFixed(2)+"%",e.downLoadList[a].DHWCL=(parseFloat(t.data.list[a].receiveSum)/parseFloat(t.data.list[a].orderSum)*100).toFixed(2)+"%";console.log(e.downLoadList);var s=[{tHeader:["牧场","订单数","按时单数","未到单数","到货及时率","物料种数","单项完成量","单项完成率","订单量","到货量","到货完成率"],filterVal:["pastureName","orderCount","ontimeCount","noCount","DHJSL","classCount","ontimeClassCount","DXWCL","orderSum","receiveSum","DHWCL"],tableDatas:e.downLoadList,sheetName:"备件到货及时率"}];Object(m["d"])(s,"备件到货及时率",!0,"xlsx")}))}))):1==this.Type&&(this.downLoadParm.name="getOnTineRateListbyProvider",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){e.$nextTick((function(){if(e.downLoadList=t.data.list,t.data.list.length>0)for(var a=0;a<t.data.list.length;a++)e.downLoadList[a].DHJSL=(parseFloat(t.data.list[a].ontimeCount)/parseFloat(t.data.list[a].orderCount)*100).toFixed(2)+"%",e.downLoadList[a].DXWCL=(parseFloat(t.data.list[a].ontimeClassCount)/parseFloat(t.data.list[a].classCount)*100).toFixed(2)+"%",e.downLoadList[a].DHWCL=(parseFloat(t.data.list[a].receiveSum)/parseFloat(t.data.list[a].orderSum)*100).toFixed(2)+"%";console.log(e.downLoadList);var s=[{tHeader:["供应商","订单数","按时单数","未到单数","到货及时率","物料种数","单项完成量","单项完成率","订单量","到货量","到货完成率"],filterVal:["providerName","orderCount","ontimeCount","noCount","DHJSL","classCount","ontimeClassCount","DXWCL","orderSum","receiveSum","DHWCL"],tableDatas:e.downLoadList,sheetName:"备件到货及时率"}];Object(m["d"])(s,"备件到货及时率",!0,"xlsx")}))})))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},db28:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"设备内部编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSpotCheckAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("点检")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号",align:"center",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备类别",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.department))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检结果","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inspectionResults))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inspection))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"点检日期",sortable:"",prop:"date","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"240","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),e.isSpotCheckDelate?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"800px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"assetName"}},[a("el-autocomplete",{ref:"assetName",staticClass:"inline-input",staticStyle:{width:"250px"},attrs:{"value-key":"assetName","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.assetName,callback:function(t){e.$set(e.temp,"assetName",t)},expression:"temp.assetName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牧场设备编号:",prop:"eqCode"}},[a("el-autocomplete",{ref:"eqCode",staticClass:"inline-input",staticStyle:{width:"250px"},attrs:{"value-key":"eqCode","fetch-suggestions":e.formNumberSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},on:{select:e.handleformNumberSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.eqName))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(e._s(s.eqCode))])]}}]),model:{value:e.temp.eqCode,callback:function(t){e.$set(e.temp,"eqCode",t)},expression:"temp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"点检人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"点检人",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},model:{value:e.assetA.employeId,callback:function(t){e.$set(e.assetA,"employeId",t)},expression:"assetA.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"点检日期:",prop:"date"}},[a("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus||"see"===e.dialogStatus},model:{value:e.assetA.date,callback:function(t){e.$set(e.assetA,"date",t)},expression:"assetA.date"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.tempSolr,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"部位",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检查内容",width:"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.examine))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检查结果","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":0,"inactive-value":1,disabled:"see"===e.dialogStatus},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.checkResult,callback:function(a){e.$set(t.row,"checkResult",a)},expression:"scope.row.checkResult"}})]}}])}),e._v(" "),"create"===e.dialogStatus?a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("input",{directives:[{name:"model",rawName:"v-model",value:t.row.note,expression:"scope.row.note"}],staticStyle:{width:"130px"},attrs:{type:"text",value:"scope.row.note"},domProps:{value:t.row.note},on:{input:function(a){a.target.composing||e.$set(t.row,"note",a.target.value)}}})]}}],null,!1,1845959327)}):e._e(),e._v(" "),"see"===e.dialogStatus?a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)}):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d={name:"SpotCheck",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isSpotCheckAdd:[],isSpotCheckUpdate:[],isSpotCheckDelate:[],tableKey:0,list:[],total:0,list2:[],listLoading:!0,state1:"",solrASssetTypeId:"",requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},tempSolr:{assetNumber:"",assetName:"",assetTypeId:"",assetId:"",bigIds:""},assetA:{date:Object(l["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),typeName:"",assetTypeId:"",assetName:"",assetNumber:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,eqCode:"",eqName:"",eqId:""},requestFilterParams:{parammaps:{}},getdataListParm:{name:"getBigSpotcheckList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureName:c.a.get("pasturename"),assetNumber:"",assetName:"",startTime:"",stopTime:""}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["资产状态"]}],postDataPramas:{common:{returnmap:"0"},data:[{name:"checkSpotCheck",type:"v",parammaps:{assetNumber:"",checkdate:""}},{name:"insertBigSpotCheck1",resultname:"insertBigSpotcheck1",type:"e",parammaps:{assetNumber:"",assetName:"",employeId:"",date:"",eqId:"",inspectionResults:"",departmentId:"",assetTypeId:"",pastureId:""}},{name:"insertSpotList",resultmaps:{list:[]},children:[{name:"insertSpotCheck1",type:"e",parammaps:{partName:"@insertSpotList.partName",examine:"@insertSpotList.examine",standard:"@insertSpotList.standard",note:"@insertSpotList.note",assetTypeId:"@insertSpotList.assetTypeId",checkResult:"@insertSpotList.checkResult",bigId:"@insertBigSpotcheck1.LastInsertId",partId:"@insertSpotList.partId"}}]},{name:"updateSpotCheckResults",type:"e",parammaps:{id:"@insertBigSpotcheck1.LastInsertId"}}]},temp:{assetName:"",assetNumber:"",eqCode:"",eqName:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"点检",see:"查看"},dialogPvVisible:!1,rules:{assetNumber:[{required:!0,message:"必填",trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[]}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{get_auto_buttons:function(){var e="maintenance:spotCheck:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSpotCheckAdd=t;var a="maintenance:spotCheck:update",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSpotCheckUpdate=s;var i="maintenance:spotCheck:delate",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSpotCheckDelate=n},formNumberSearch:function(e,t){this.requestFilterParams.name="findAssetMain",this.requestFilterParams.offset=0,this.requestFilterParams.pagecount=20,this.requestFilterParams.parammaps["eqCode"]=e,this.requestFilterParams.parammaps["eqName"]="",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["assetNumber"]=e,this.requestFilterParams.parammaps["assetName"]="",Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},formNameSearch:function(e,t){this.requestFilterParams.name="findAssetMain",this.requestFilterParams.offset=0,this.requestFilterParams.pagecount=20,this.requestFilterParams.parammaps["assetNumber"]="",this.requestFilterParams.parammaps["assetName"]=e,this.requestFilterParams.parammaps["eqCode"]="",this.requestFilterParams.parammaps["eqName"]=e,this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,Object(r["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNumberSelect:function(e){var t=this;console.log(e),this.requestFilterParams.name="findByBigIdSpotCheck",this.requestFilterParams.parammaps["assetName"]=e.assetName,this.requestFilterParams.parammaps["assetNumber"]=e.assetNumber,this.requestFilterParams.parammaps["eqName"]=e.eqName,this.requestFilterParams.parammaps["eqCode"]=e.eqCode,this.requestFilterParams.parammaps["eqId"]=e.eqId,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.assetA.assetNumber=e.assetNumber,this.assetA.assetName=e.assetName,this.assetA.assTypeId=e.assetTypeId,this.assetA.assetId=e.assetId,this.assetA.eqCode=e.eqCode,this.assetA.eqName=e.eqName,this.assetA.eqId=e.eqId,this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.assetA.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),Object(r["e"])(this.requestFilterParams).then((function(e){t.$nextTick((function(){console.log(e.data.list.length),null!==e.data.list.length&&e.data.list.length>0&&(console.log(t.tempSolr),console.log(e.data.list),t.tempSolr=e.data.list)}))}))},handleformNameSelect:function(e){var t=this;console.log(e),this.requestFilterParams.name="findByBigIdSpotCheck",this.requestFilterParams.parammaps["assetName"]=e.assetName,this.requestFilterParams.parammaps["assetNumber"]=e.assetNumber,this.requestFilterParams.parammaps["eqName"]=e.eqName,this.requestFilterParams.parammaps["eqCode"]=e.eqCode,this.requestFilterParams.parammaps["eqId"]=e.eqId,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.assetNumber=e.assetNumber,this.temp.assetName=e.assetName,this.temp.eqCode=e.eqCode,this.temp.eqName=e.eqName,this.assetA.assetNumber=e.assetNumber,this.assetA.assetName=e.assetName,this.assetA.assTypeId=e.assetTypeId,this.assetA.assetId=e.assetId,this.assetA.eqCode=e.eqCode,this.assetA.eqName=e.eqName,this.assetA.eqId=e.eqId,this.assetA.date=Object(l["e"])(new Date,"{y}-{m}-{d}"),Object(r["e"])(this.requestFilterParams).then((function(e){t.$nextTick((function(){null!==e.data.list.length&&e.data.list.length>0&&(t.tempSolr=e.data.list)}))}))},insertBigSpotCheck:function(){var e=this;this.list.length>0&&(this.requestFilterParams.name="insertBigSpotCheck",this.requestFilterParams.parammaps={},this.requestFilterParams.parammaps=this.tempSolr,console.log(this.requestFilterParams),Object(r["e"])(this.requestFilterParams).then((function(t){e.tempSolr.bigIds=t.data.list[0].bigId})))},handleSpotCheckTemp:function(e){var t=this;this.requestParams.name="findByBigIdSpotCheck",this.requestParams.parammaps["bigId"]=this.tempSolr.assTypeId,Object(r["e"])(this.requestParams).then((function(e){t.$nextTick((function(){e.data.list.length>0&&(t.list2=e.data.list)}))}))},insertSpotCheck:function(e){},handleEnableChange:function(e,t){},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list}))},form_search:function(){this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.assetA.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.assetA.typeName="",this.assetA.assTypeId="",this.assetA.assetTypeId="",this.assetA.eqId="",this.assetA.assetName="",this.assetA.assetNumber="",this.assetA.employeId=this.$store.state.user.employeid,this.assetA.departmentId=this.$store.state.user.departmentid,this.assetA.pastureId=this.$store.state.user.pastureid,this.tempSolr=[],this.temp.assetName="",this.temp.eqCode=""},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.assetA.employeId=this.$store.state.user.employeid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;if(this.assetA.inspectionResults="",null!=this.tempSolr.length&&this.tempSolr.length>0){var t=this.tempSolr.filter((function(e,t){return 0==e.checkResult})).length,a="检测"+this.tempSolr.length+"项,合格"+t+"项";this.assetA.inspectionResults=a}else{a="检测0项,合格0项";this.assetA.inspectionResults=a}this.postDataPramas.data[0].parammaps.assetNumber=this.assetA.assetNumber,this.postDataPramas.data[0].parammaps.checkdate=this.assetA.date,this.postDataPramas.data[1].parammaps=this.assetA,this.postDataPramas.data[1].parammaps.assetTypeId=this.tempSolr[0].assetTypeId,this.postDataPramas.data[1].parammaps.eqId=this.assetA.eqId,this.postDataPramas.data[1].parammaps.pastureId=this.$store.state.user.pastureid,this.postDataPramas.data[2].resultmaps.list=this.tempSolr,Object(r["c"])(this.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_see:function(e){var t=this;console.log("row",e),this.assetA=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0,this.temp.assetName=e.assetName,this.temp.eqCode=e.assetNumber,this.requestFilterParams.name="findByIdSpotCheck",this.requestFilterParams.parammaps["id"]=this.assetA.id,Object(r["e"])(this.requestFilterParams).then((function(e){t.tempSolr=e.data.list,e.data.total&&(t.total=e.data.total),setTimeout((function(){t.listLoading=!1}),100)})),this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},form_edit:function(e){var t=this;this.assetA=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.requestFilterParams.name="findByIdSpotCheck",this.requestFilterParams.parammaps["id"]=this.assetA.id,Object(r["e"])(this.requestFilterParams).then((function(e){t.tempSolr=e.data.list,e.data.total&&(t.total=e.data.total),setTimeout((function(){t.listLoading=!1}),100)})),this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateAsset",e.requestParam.parammaps=e.temp,Object(r["k"])(e.requestParam).then((function(t){console.log(t),"fail"===t.msg?e.$notify({title:"失败",message:"保存失败-"+t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}))})))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteSpotcheck",type:"e",parammaps:{}},t.postDataPramas.data[0].parammaps["id"]=e.id,t.postDataPramas.data[1]={name:"deleteBigSpotcheck",type:"e",parammaps:{}},t.postDataPramas.data[1].parammaps["id"]=e.id,Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},db80:function(e,t,a){"use strict";a("ec74")},dbb3:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 2"}})],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!1,null,null,null);t["default"]=l.exports},dbc7:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="M49.217 41.329l-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212l18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol>'});n.a.add(l);t["default"]=l},dc59:function(e,t,a){},dcf8:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol>'});n.a.add(l);t["default"]=l},dd0f:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件领用记录",use:"icon-备件领用记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件领用记录"><defs><style type="text/css"></style></defs><path d="M736 224v134.4h51.2v-192c0-32-25.6-51.2-51.2-51.2H582.4v51.2h102.4c32 0 51.2 25.6 51.2 57.6z m0 633.6c0 32-25.6 51.2-51.2 51.2H211.2c-32 0-51.2-25.6-51.2-51.2V224c0-32 25.6-51.2 51.2-51.2H320v-57.6H160c-32 0-51.2 25.6-51.2 51.2v736c0 32 19.2 57.6 51.2 57.6h582.4c32 0 51.2-25.6 51.2-51.2v-236.8h-51.2v185.6zM262.4 249.6v76.8c0 12.8 12.8 25.6 25.6 25.6h313.6c12.8 0 25.6-12.8 25.6-25.6V249.6c0-12.8-12.8-25.6-25.6-25.6h-44.8V89.6c0-12.8-12.8-25.6-32-25.6H371.2c-12.8 0-25.6 12.8-25.6 25.6v134.4h-57.6c-12.8 0-25.6 12.8-25.6 25.6z m70.4 25.6h12.8v-25.6h51.2V140.8c0-12.8 12.8-25.6 25.6-25.6h51.2c12.8 0 25.6 12.8 25.6 25.6v102.4h51.2v25.6h12.8c6.4 0 12.8 6.4 12.8 12.8s-6.4 12.8-12.8 12.8H332.8c-12.8 6.4-12.8 0-12.8-6.4s0-12.8 12.8-12.8z m160 467.2l-38.4-38.4-25.6 121.6 121.6-25.6-38.4-38.4-6.4 6.4c-6.4 6.4-12.8 6.4-19.2 0-6.4-6.4-6.4-12.8 0-19.2l6.4-6.4zM960 345.6l-57.6-57.6c-12.8-12.8-25.6-12.8-38.4 0l-390.4 390.4c-12.8 12.8-12.8 25.6 0 38.4l19.2 19.2 307.2-307.2c6.4-6.4 12.8-6.4 19.2 0 6.4 6.4 6.4 12.8 0 19.2L512 755.2l19.2 19.2c12.8 12.8 25.6 12.8 38.4 0L960 384c12.8-6.4 12.8-25.6 0-38.4z m-64 32l-19.2 19.2c-6.4 6.4-12.8 6.4-19.2 0-6.4-6.4-6.4-12.8 0-19.2l19.2-19.2c6.4-6.4 12.8-6.4 19.2 0 6.4 6.4 6.4 12.8 0 19.2z" fill="" p-id="9002" /></symbol>'});n.a.add(l);t["default"]=l},dd52:function(e,t,a){"use strict";a("2ebe")},ddef:function(e,t,a){"use strict";a("08ba")},de6b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量器具名称",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"准确度等级、不确定度或最大允许误差","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"测量范围","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.factoryNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"数量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"制造单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"检定周期","min-width":"100px",align:"center",sortable:"",prop:"cycle"}}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"80px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"110px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"检定单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnUnit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量器具用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"安装使用地点","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"145px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"计量器具名称:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入计量器具名称",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"规格型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入规格型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"准确度等级、不确定度或最大允许误差:",prop:"level"}},[a("el-input",{ref:"level",attrs:{placeholder:"请输入准确度等级、不确定度或最大允许误差",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.level,callback:function(t){e.$set(e.createTemp,"level",t)},expression:"createTemp.level"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"测量范围:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入测量范围",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出厂编号:",prop:"factoryNumber"}},[a("el-input",{ref:"factoryNumber",attrs:{placeholder:"请输入出厂编号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"数量:",prop:"amount"}},[a("el-input",{ref:"amount",attrs:{placeholder:"请输入数量",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.amount,callback:function(t){e.$set(e.createTemp,"amount",t)},expression:"createTemp.amount"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"制造单位:",prop:"unit"}},[a("el-input",{ref:"unit",attrs:{placeholder:"请输入制造单位",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.unit,callback:function(t){e.$set(e.createTemp,"unit",t)},expression:"createTemp.unit"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检定周期:",prop:"cycle"}},[a("el-input",{ref:"cycle",attrs:{placeholder:"请输入检定周期",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cycle,callback:function(t){e.$set(e.createTemp,"cycle",t)},expression:"createTemp.cycle"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检定单位:",prop:"warnUnit"}},[a("el-input",{ref:"warnUnit",attrs:{placeholder:"请输入检定单位",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnUnit,callback:function(t){e.$set(e.createTemp,"warnUnit",t)},expression:"createTemp.warnUnit"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"计量器具用途:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入计量器具用途",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"安装使用地点:",prop:"location"}},[a("el-input",{ref:"location",attrs:{placeholder:"请输入安装使用地点",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.location,callback:function(t){e.$set(e.createTemp,"location",t)},expression:"createTemp.location"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"PressureGauge",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"压力表"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,warnName:"",specification:"",level:"",measureRange:"",factoryNumber:"",amount:"",unit:"",cycle:"",lastCheckDate:"",validityDate:"",warnUnit:"",purpose:"",location:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnYLB",importParams:"牧场,计量器具名称,规格型号,准确度等级、不确定度或最大允许误差,测量范围,出厂编号,数量,制造单位,检定周期,上次检定日期,有效期至,检定单位,计量器具用途,安装使用地点",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list||null!==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.level="",this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.amount="",this.createTemp.unit="",this.createTemp.cycle="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.warnUnit="",this.createTemp.purpose="",this.createTemp.location=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="压力表",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑"),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="压力表",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="压力表",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","计量器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],i=["牧场","计量器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"压力表模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","计量器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点","报错信息"],r=["牧场","计量器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"压力表报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("压力表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","计量器具名称","规格型号","准确度等级、不确定度或最大允许误差","测量范围","出厂编号","数量","制造单位","检定周期","上次检定日期","有效期至","检定单位","计量器具用途","安装使用地点"],filterVal:["pastureName","warnName","specification","level","measureRange","factoryNumber","amount","unit","cycle","lastCheckDate","validityDate","warnUnit","purpose","location"],tableDatas:e.downLoadList,sheetName:"压力表"}];Object(p["d"])(a,"压力表",!0,"xlsx")}))}))}}},h=u,g=(a("371c"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"8ab5cdf8",null);t["default"]=f.exports},df54:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-file2",use:"icon-file2-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file2"><defs><style type="text/css"></style></defs><path d="M0 81.92m102.4 0l819.2 0q102.4 0 102.4 102.4l0 737.28q0 102.4-102.4 102.4l-819.2 0q-102.4 0-102.4-102.4l0-737.28q0-102.4 102.4-102.4Z" fill="#FFC643" p-id="3969" /><path d="M0 0m102.4 0l184.32 0q102.4 0 102.4 102.4l0 102.4q0 102.4-102.4 102.4l-184.32 0q-102.4 0-102.4-102.4l0-102.4q0-102.4 102.4-102.4Z" fill="#FFC643" p-id="3970" /><path d="M112.64 184.32h798.72v276.48H112.64z" fill="#FFFFFF" p-id="3971" /><path d="M133.12 204.8h757.76v235.52H133.12z" fill="#C7E66F" p-id="3972" /><path d="M84.6848 353.90464l770.3552-210.944L928.07168 409.6 157.696 620.544z" fill="#FFFFFF" p-id="3973" /><path d="M109.84448 368.25088L840.704 168.09984l62.208 227.15392L172.032 595.4048z" fill="#B0A6C9" p-id="3974" /><path d="M180.9408 364.10368l795.82208-68.00384 23.552 275.456-795.82208 68.00384z" fill="#FFFFFF" p-id="3975" /><path d="M203.08992 382.76096l755.00544-64.512L978.15552 552.96l-755.01568 64.512z" fill="#FF8989" p-id="3976" /><path d="M0 542.72h1024v378.88a102.4 102.4 0 0 1-102.4 102.4H102.4A102.4 102.4 0 0 1 0 921.6V542.72z" fill="#FDCE62" p-id="3977" /><path d="M0 378.88h860.16l163.84 163.84H0V378.88z" fill="#FDCE62" p-id="3978" /><path d="M860.16 542.72h163.84v378.88a102.4 102.4 0 0 1-102.4 102.4h-61.44V542.72z" fill="#ECBB4A" p-id="3979" /><path d="M266.24 378.88h593.92v645.12" fill="#ECBB4A" p-id="3980" /><path d="M860.16 378.88l163.84 163.84H860.16V378.88z" fill="#FFD87E" p-id="3981" /><path d="M1024 706.56L860.16 542.72h163.84v163.84z" fill="#D29C26" p-id="3982" /></symbol>'});n.a.add(l);t["default"]=l},df5f:function(e,t,a){},dfc4:function(e,t,a){"use strict";a("2b3f")},e015:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-SQL管理",use:"icon-SQL管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-SQL管理"><defs><style type="text/css"></style></defs><path d="M1016.956822 506.240338a81.919744 81.919744 0 0 0-42.239868-37.119884C959.997 464.00047 959.997 464.00047 639.998 464.640468H56.319824A80.639748 80.639748 0 0 0 5.759982 512.00032L0 519.680296v151.679526c0 175.99945 0 163.839488 22.39993 186.879416s238.079256 21.759932 617.59807 21.119934h329.59897l10.239968-5.119984a99.839688 99.839688 0 0 0 36.479886-34.559892L1023.9968 831.99932V519.680296z m-39.679876 172.79946v143.99955l-6.39998 5.759982-5.759982 6.39998H59.519814L53.759832 831.99932l-6.39998-5.759982v-147.19954-151.679526a28.159912 28.159912 0 0 1 6.39998-12.159962L59.519814 512.00032h904.957172l5.759982 5.119984a28.159912 28.159912 0 0 1 6.39998 12.159962c0.639998 2.559992 1.279996 70.39978 0.639998 149.759532z" p-id="22365" /><path d="M502.39843 547.20021a108.79966 108.79966 0 0 0-102.39968 77.439758 152.959522 152.959522 0 0 0 0 76.159762 113.919644 113.919644 0 0 0 137.59957 78.719754h14.719954l20.479936 20.479936a162.559492 162.559492 0 0 0 26.239918 23.679926 22.39993 22.39993 0 0 0 34.559892-19.19994c0-9.59997 0-10.879966-19.839938-29.439908l-19.839938-19.839938 7.039978-8.319974a118.39963 118.39963 0 0 0 26.239918-79.359752A112.639648 112.639648 0 0 0 575.9982 562.560162a140.79956 140.79956 0 0 0-71.039778-15.359952z m31.359902 47.359852A63.9998 63.9998 0 0 1 575.9982 633.59994a127.9996 127.9996 0 0 1 0 59.519814 57.59982 57.59982 0 0 1-32.639898 36.479886 52.479836 52.479836 0 0 1-32.639898 7.039978 60.159812 60.159812 0 0 1-49.919844-19.839938 83.19974 83.19974 0 0 1 12.159962-115.19964 81.279746 81.279746 0 0 1 63.9998-7.039978z m200.319374-44.159862c-13.439958 6.39998-12.79996 0-13.439958 113.279646 0 93.439708 0 103.039678 3.839988 106.879666s11.519964 9.59997 71.679776 9.59997 68.479786 0 74.239768-14.079956a19.839938 19.839938 0 0 0-8.959972-26.879916c-6.39998-3.839988-11.519964-4.479986-50.559842-4.479986H767.9976v-85.759732c0-94.719704 0-94.079706-14.079956-99.19969a21.759932 21.759932 0 0 0-19.19994 0z m-518.39838 0a63.9998 63.9998 0 0 0-47.99985 83.19974c8.319974 21.119934 23.679926 31.9999 63.9998 45.439858s42.879866 19.19994 33.919894 37.759882a30.719904 30.719904 0 0 1-30.719904 18.559942 39.039878 39.039878 0 0 1-37.759882-12.159962 58.879816 58.879816 0 0 0-18.559942-10.879966 23.039928 23.039928 0 0 0-26.239918 28.159912 83.839738 83.839738 0 0 0 38.39988 33.279896A106.879666 106.879666 0 0 0 282.239118 767.99952a69.119784 69.119784 0 0 0 12.79996-108.159662 119.039628 119.039628 0 0 0-49.919844-19.839938c-27.519914-8.959972-31.9999-12.159962-31.359902-24.319924s9.59997-17.919944 26.239918-17.919944a30.719904 30.719904 0 0 1 23.039928 7.679976c15.99995 12.159962 35.19989 8.959972 40.959872-7.679976a13.439958 13.439958 0 0 0 0-15.359952 63.9998 63.9998 0 0 0-35.839888-26.239918 154.239518 154.239518 0 0 0-51.19984 0z m63.9998 0M557.438258 48.00177H210.559342a124.159612 124.159612 0 0 0-99.839688 98.559692v259.19919H63.9998v-255.9992A145.919544 145.919544 0 0 1 210.559342 0.00192h346.878916zM959.997 868.479206v8.959972A145.919544 145.919544 0 0 1 813.437458 1023.99872H210.559342A145.919544 145.919544 0 0 1 63.9998 877.439178v-8.959972h47.99985v8.959972c0 40.959872 68.479786 99.839688 109.439658 99.839688h602.878116c40.959872 0 85.119734-58.879816 85.119734-99.839688v-8.959972zM899.837188 320.00092h3.839988l-27.519914-21.119934a23.679926 23.679926 0 0 0-31.9999 4.479986 24.319924 24.319924 0 0 0-4.479986 16.639948 23.679926 23.679926 0 0 0 8.959972 14.719954 174.719454 174.719454 0 0 1 68.479786 131.19959H568.318224a174.719454 174.719454 0 0 1 174.079456-166.39948 149.119534 149.119534 0 1 0-127.9996-68.479786 161.279496 161.279496 0 0 0 39.679876 40.959872 231.679276 231.679276 0 0 0-86.39973 69.759782 216.319324 216.319324 0 0 0-44.79986 132.479586v33.919894H959.997v-33.919894A221.439308 221.439308 0 0 0 899.837188 320.00092zM639.998 150.40145A104.319674 104.319674 0 1 1 742.39768 256.00112 104.959672 104.959672 0 0 1 639.998 150.40145z" p-id="22366" /></symbol>'});n.a.add(l);t["default"]=l},e032:function(e,t,a){"use strict";a("d67a")},e03b:function(e,t){},e147:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.tabName,callback:function(t){e.tabName=t},expression:"tabName"}},[e.isBasic?a("el-tab-pane",{attrs:{label:"备件基础信息",name:"first"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"partCode",t)},expression:"getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.getdataListParm.parammaps,"partName",t)},expression:"getdataListParm.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件规格"},model:{value:e.getdataListParm.parammaps.specification,callback:function(t){e.$set(e.getdataListParm.parammaps,"specification",t)},expression:"getdataListParm.parammaps.specification"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentDept,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"EAS同步状态"},model:{value:e.getdataListParm.parammaps.easStatus,callback:function(t){e.$set(e.getdataListParm.parammaps,"easStatus",t)},expression:"getdataListParm.parammaps.easStatus"}},e._l(e.easStatus.easStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批时间","end-placeholder":"审批时间"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isBasicTemplate?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]):e._e(),e._v(" "),e.isDisable?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-remove-outline"},on:{click:e.handleBatchDisable}},[e._v("批量禁用")]):e._e(),e._v(" "),e.isEnable?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-success"},on:{click:e.handleBatchEnable}},[e._v("批量启用")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isBasicImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),e.isBasicExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),e.isEasSynchronization?a("el-button",{staticClass:"filter-item",staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.handleEAS}},[e._v("EAS同步")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange2}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"备件类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqClassName1)+"/"+e._s(t.row.eqClassName2)+"/"+e._s(t.row.eqClassName3))])]}}],null,!1,630651659)}),e._v(" "),a("el-table-column",{attrs:{label:"审批时间",sortable:"",prop:"chargeDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createPerson))])]}}],null,!1,1580990839)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件库存","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicEditTab1&&1==s.enable?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),e.isDisable&&1==s.enable?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDisable(s)}}},[e._v("禁用")]):e._e(),e._v(" "),e.isEnable&&0==s.enable?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleEnable(s)}}},[e._v("启用")]):e._e(),e._v(" "),e.isBasicDelete1&&1==s.enable?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):e._e()]}}],null,!1,1239628878)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1):e._e(),e._v(" "),e.isBasicSH?a("el-tab-pane",{attrs:{label:"审核备件",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParmSH.parammaps.partCode,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"partCode",t)},expression:"getdataListParmSH.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParmSH.parammaps.partName,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"partName",t)},expression:"getdataListParmSH.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"备件规格"},model:{value:e.getdataListParmSH.parammaps.specification,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"specification",t)},expression:"getdataListParmSH.parammaps.specification"}}),e._v(" "),a("tree-select",{staticClass:"typeSelect",staticStyle:{display:"inline-block"},attrs:{height:150,width:250,size:"small",clearable:"",data:e.parentDept,disabled:e.disabled,placeholder:e.placeholder,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParmSH.parammaps.statue,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"statue",t)},expression:"getdataListParmSH.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetimeSH",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParmSH.parammaps.inputDatetimeSH,callback:function(t){e.$set(e.getdataListParmSH.parammaps,"inputDatetimeSH",t)},expression:"getdataListParmSH.parammaps.inputDatetimeSH"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_searchSH}},[e._v("搜索")]),e._v(" "),a("div",[e.isBasicExamine?a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:e.handleExamines}},[e._v("批量审批")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSH,expression:"listLoadingSH"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSH,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumSH-1)*e.pageSizeSH+1))])]}}],null,!1,1072732269)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"备件类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqClassName1)+"/"+e._s(t.row.eqClassName2)+"/"+e._s(t.row.eqClassName3))])]}}],null,!1,630651659)}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"130px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"审批时间",sortable:"",prop:"chargeDate","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[a("img",{attrs:{src:t.row.picpath}}),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,621559578)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createPerson))])]}}],null,!1,1580990839)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isBasicSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.isBasicEdit&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isBasicExamine&&0==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核")]),e._v(" "),e.isBasicDelete&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleDelate(s)}}},[e._v("删除")])]}}],null,!1,1573884385)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSH>0,expression:"totalSH>0"}],attrs:{total:e.totalSH,page:e.getdataListParmSH.offset,limit:e.getdataListParmSH.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmSH,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmSH,"pagecount",t)},pagination:e.get_table_dataSH}})],1):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[e.partClassCreate?a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"partClass",attrs:{label:"备件类别:",prop:"partClass"}},[a("tree-select",{staticClass:"typeSelect",attrs:{height:150,width:230,size:"small",data:e.parentDept,disabled:e.disabled,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1):e._e(),e._v(" "),e.partClassUpdate?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件类别:",prop:"partClass"}},[a("el-input",{ref:"partClass",attrs:{disabled:""},model:{value:e.createTemp.partClass,callback:function(t){e.$set(e.createTemp,"partClass",t)},expression:"createTemp.partClass"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件编号:",prop:"partCode"}},[a("el-input",{ref:"partCode",attrs:{disabled:""},model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件名称:",prop:"partName"}},[a("el-input",{ref:"partName",model:{value:e.createTemp.partName,callback:function(t){e.$set(e.createTemp,"partName",t)},expression:"createTemp.partName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件规格:",prop:"specification"}},[a("el-input",{ref:"specification",model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"计量单位:",prop:"unit"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"计量单位"},model:{value:e.createTemp.unit,callback:function(t){e.$set(e.createTemp,"unit",t)},expression:"createTemp.unit"}},e._l(e.units,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.label}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("el-input",{attrs:{type:"textarea",placeholder:"用途",autosize:"",maxlength:"100","show-word-limit":""},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{top:"-3px",width:"100%"},attrs:{disabled:"","picker-options":e.pickerOptions,type:"date",placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"createPerson"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"录入人"},model:{value:e.createTemp.createPerson,callback:function(t){e.$set(e.createTemp,"createPerson",t)},expression:"createTemp.createPerson"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:""},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"备件图片:",prop:"picpath"}},[a("el-upload",{ref:"upload",class:{hide:e.showUpload},attrs:{id:"uploadPic",limit:1,"list-type":"picture-card","file-list":e.createTemp.fileList,headers:e.headers,action:e.uploadImageUrl,"auto-upload":!0,"on-preview":e.handlePicPreview,"before-remove":e.beforeRemove,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,s){return e.handlePicSuccess(t,a,s)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:e.width},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{src:e.dialogImageUrl,alt:""},on:{load:e.onLoad}})])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.createTemp.partCode="",e.createTemp.partClass="",e.createTemp.partClassNameCode="",e.get_table_data()}}},[e._v("取消并关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusSee],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"备件基础信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"partClass",attrs:{label:"备件类别:",prop:"partClass"}},[a("span",[e._v(e._s(e.seeTemp.eqClassName1)+"/"+e._s(e.seeTemp.eqClassName3)+"/"+e._s(e.seeTemp.eqClassName3))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件编号:",prop:"partCode"}},[a("span",[e._v(e._s(e.seeTemp.partCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件名称:",prop:"partName"}},[a("span",[e._v(e._s(e.seeTemp.partName))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备件规格:",prop:"specification"}},[a("span",[e._v(e._s(e.seeTemp.specification))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"计量单位:",prop:"unit"}},[a("span",[e._v(e._s(e.seeTemp.unit))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"用途:",prop:"purpose"}},[a("span",[e._v(e._s(e.seeTemp.purpose))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"createTime"}},[a("span",[e._v(e._s(e.seeTemp.createTime))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"createPerson"}},[a("span",[e._v(e._s(e.seeTemp.createPerson))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("span",[e._v(e._s(e.seeTemp.note))])])],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"备件图片:"}},[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==e.seeTemp.picpath?a("img",{attrs:{src:e.seeTemp.picpath}}):e._e(),e._v(" "),""!==e.seeTemp.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:e.seeTemp.picpath,alt:e.seeTemp.srcpath},slot:"reference"}):e._e()])],1)],1)],1),e._v(" "),e.isFlowChart?a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isBasicExamine&&0==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")]):a("el-button",{staticClass:"success",staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("审核")])],1)],1)],1)],1):e._e()],1)],1),e._v(" "),e.isDisplayPasture?a("el-tab-pane",{attrs:{label:"牧场信息",name:"second"}},[a("div",{staticClass:"pasture-title"},[a("b",[e._v("备件类别:"),a("span",[e._v(e._s(e.seeTemp.eqClassName1)+"/"+e._s(e.seeTemp.eqClassName3)+"/"+e._s(e.seeTemp.eqClassName3))])]),e._v(" "),a("b",[e._v("备件编号:"),a("span",[e._v(" "+e._s(e.seeTemp.partCode))])]),e._v(" "),a("b",[e._v("备件编名称:"),a("span",[e._v(e._s(e.seeTemp.partName))])])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}],null,!1,2229704533)}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}],null,!1,2309530816)}),e._v(" "),a("el-table-column",{attrs:{label:"当前库存",sortable:"",prop:"reportery","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{label:"最低库存",sortable:"",prop:"minRepertory","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.minRepertory))])]}}],null,!1,4255194092)}),e._v(" "),a("el-table-column",{attrs:{label:"最高库存",sortable:"",prop:"maxRepertory","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxRepertory))])]}}],null,!1,2043756338)}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}],null,!1,2558406843)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalSee>0,expression:"totalSee>0"}],attrs:{total:e.totalSee,page:e.getdataListSee.offset,limit:e.getdataListSee.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListSee,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListSee,"pagecount",t)},pagination:e.getSeeList}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.SHstatue,callback:function(t){e.$set(e.examineTemp,"SHstatue",t)},expression:"examineTemp.SHstatue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examines,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormVisible_Examines=t}}},[a("div",{staticClass:"app-examine",staticStyle:{"text-align":"center",font:"600 20px/40px ''",height:"200px","margin-top":"40px"}},[a("div",[e._v(" 当前共选中备件:"+e._s(e.Selection)+"条 ")]),e._v(" "),a("div",[e._v(" 是否确认批量通过审核 ")])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createExamineDatas()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examines=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.easStatus.dialogStatus],visible:e.easStatus.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.easStatus,"dialogFormVisible",t)}}},[a("div",{staticClass:"easStatus"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.easStatus.listLoading,expression:"easStatus.listLoading"}],key:e.easStatus.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.easStatus.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间","min-width":"110px",align:"center",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"失败原因","min-width":"110px",align:"center",prop:"failReason"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isManualSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleManual(s)}}},[e._v("手动同步")]):e._e(),e._v(" "),e.isIgnoreSynchronization?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleIgnore(s)}}},[e._v("忽略同步")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.easStatus.total>0,expression:"easStatus.total>0"}],attrs:{total:e.easStatus.total,page:e.easStatus.getdataListParm.offset,limit:e.easStatus.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.easStatus.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.easStatus.getdataListParm,"pagecount",t)},pagination:e.get_table_dataEasStatusLst}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.easStatus.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("ac6a"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("3de8"),m=a("a78e"),c=a.n(m),d=a("5c96"),u=a("5f87"),h={name:"Basic",components:{Pagination:o["a"],TreeSelect:p["a"]},directives:{waves:n["a"]},data:function(){return{isStyle:"display:none",isBasicAdd:[],isBasicTemplate:[],isBasicExport:[],isBasicImport:[],isBasicSee:[],isBasicEdit:[],isBasicEditTab1:[],isDisable:[],isEnable:[],isBasicExamine:[],isBasicDelete:[],isBasicDelete1:[],isBasic:[],isBasicSH:[],isEasSynchronization:[],isManualSynchronization:[],isIgnoreSynchronization:[],multipleSelection:[],rules:{temptypeCode:[{required:!0,message:"必填",trigger:"blur"}],partClass:[{required:!0,message:"必填",trigger:"blur"}],partCode:[{required:!0,message:"必填",trigger:"blur"}],partName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],providerId:[{required:!0,message:"必填",trigger:"blur"}],unit:[{required:!0,message:"必填",trigger:"blur"}],purpose:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},textMap:{see:"查看详情",create:"新增",update:"编辑",examine:"审核",examines:"批量审批",easStatus:"EAS同步—同步失败数据"},dialogFormVisible:!1,dialogStatus:"",dialogImageUrl:"",dialogVisible:!1,fileList:[],showUpload:!1,headers:{optname:"insertcustompic",id:1,token:Object(u["a"])()},uploadImageUrl:"http://127.0.0.1:8082/authdata/uploaderimage",widht:"",listType:[],parentDept:[],defaultProps:{children:"children",label:"partClassNameCode"},nodeKey:"id",defaultCheckedKeys:[],deptform:{id:"",tempPtypeCode:"",temptypeCode:"",typeName:"",typeCode:"",pid:"",sort:"",enable:""},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByNameYuJing:[],findAllCategory:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"findAllCategory",offset:0,pagecount:0,params:[]},{name:"getDictByName",offset:0,pagecount:0,params:["计量单位"]}],isokDisable:!1,disabled:!1,activeName:"first",tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getStockList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{partCode:"",partName:"",partClass:"",inputDatetime:"",specification:"",easStatus:""}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},createTemp:{partClass:"",partCode:"",tempPtypeCode:"",temptypeCode:"",partName:"",specification:"",unit:"",purpose:"",createPerson:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),note:""},placeholder:"请选择备件类别",partClassCreate:!1,partClassUpdate:!1,temptypeCode:!0,temptypeCode1:!1,listLoadingSee:!0,dialogFormVisible_See:!1,dialogStatusSee:"",listSee:[],seeTemp:{},getdataListSee:{name:"getStockdetail",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},totalSee:0,getRecuListParm:{name:"getStockTypeList",idname:"id",params:[-1]},requestParam:{},getDeptListParm:{name:"getpart_classList_enable"},units:[],radio1:"全部",getdataListParmSH:{name:"getStockListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{partCode:"",partName:"",partClass:"",statue:"",inputDatetimeSH:"",specification:""}},listSH:[],listLoadingSH:!1,totalSH:0,tabName:"",dialogFormVisible_Examine:!1,dialogFormVisible_Examines:!1,examineTemp:{SHstatue:1},statueReason:!1,activeList:[],active:3,isFlowChart:!1,isDisplayPasture:!1,buttons:[],isPercentage:!1,percentage:1,downloadParam:{},postDataPramas:{},Selection:0,selectionList:[],width:0,createExamineParm:{name:"getPartCode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},easStatus:{easStatusList:[{name:"同步成功",id:"1"},{name:"同步失败",id:"0"}],dialogStatus:"",dialogFormVisible:!1,tableKey:0,total:0,listLoading:!0,list:[],getdataListParm:{name:"getpartsSync",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}}}},computed:{uploadData:function(){return{name:"importparts",importParams:"编码,品名,规格型号,品牌,计量单位,一级分类,二级分类,三级分类,建立人,建立时间",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.getDownClassList(),this.get_table_data(),this.getMaxCode(),this.getTypeList(),this.get_table_dataSH(),void 0==this.$route.query.tabName?this.tabName="first":this.tabName=this.$route.query.tabName,!1===this.isBasic&&(this.tabName="second"),"first"==this.tabName?(this.isDisplayPasture=!0,this.isFlowChart=!1):(this.isDisplayPasture=!1,this.isFlowChart=!0)},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},get_auto_buttons:function(){var e="customs:basic:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isBasicAdd=t;var a="customs:basic:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isBasicTemplate=s;var i="customs:basic:export",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isBasicExport=n;var l="customs:basic:import",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isBasicImport=o;var p="customs:basic:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isBasicSee=m;var c="customs:basic:update",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isBasicEdit=d;var u="customs:basic:update2",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isBasicEditTab1=h;var g="customs:basic:disable",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isDisable=f;var b="customs:basic:enable",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isEnable=v;var y="customs:basic:enable",_=Object(r["v"])(this.$store.state.user.buttons,y);this.isBasicDelete1=_;var w="customs:basic:delete",S=Object(r["v"])(this.$store.state.user.buttons,w);this.isBasicDelete=S;var P="customs:basic:shenhe",x=Object(r["v"])(this.$store.state.user.buttons,P);this.isBasicExamine=x;var T="customs:basic:basic",k=Object(r["v"])(this.$store.state.user.buttons,T);this.isBasic=k;var C="customs:basic:shjm",L=Object(r["v"])(this.$store.state.user.buttons,C);this.isBasicSH=L;var N="customs:basic:easSynchronization",D=Object(r["v"])(this.$store.state.user.buttons,N);this.isEasSynchronization=D;var $="customs:basic:manualSynchronization",I=Object(r["v"])(this.$store.state.user.buttons,$);this.isManualSynchronization=I;var q="customs:basic:ignoreSynchronization",A=Object(r["v"])(this.$store.state.user.buttons,q);this.isIgnoreSynchronization=A},handleSelectionChange2:function(e){this.multipleSelection=e},handleBatchDisable:function(){var e=this;this.multipleSelection.length>0?this.$confirm("是否确定批量禁用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.multipleSelection.forEach((function(t){console.log("批量禁用",t),e.requestParam={},e.requestParam.name="updatepartsEnable",e.requestParam.parammaps={},e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.enable=0,Object(r["k"])(e.requestParam).then((function(){e.$notify({title:"成功",message:"禁用成功",type:"success",duration:2e3})}))})),e.get_table_data(),e.get_table_dataSH()})).catch((function(){e.$message({type:"info",message:"已取消批量禁用"})})):this.$notify({title:"提示",message:"请勾选禁用备件",type:"error",duration:2e3})},handleBatchEnable:function(){var e=this;this.multipleSelection.length>0?this.$confirm("是否确定批量启用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.multipleSelection.forEach((function(t){console.log("批量启用",t),e.requestParam={},e.requestParam.name="updatepartsEnable",e.requestParam.parammaps={},e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.enable=1,Object(r["k"])(e.requestParam).then((function(){e.$notify({title:"成功",message:"启用成功",type:"success",duration:2e3})}))})),e.get_table_data(),e.get_table_dataSH()})).catch((function(){e.$message({type:"info",message:"已取消批量启用"})})):this.$notify({title:"提示",message:"请勾选启用备件",type:"error",duration:2e3})},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.units=t.data.getDictByName.list,e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},getDownClassList:function(){var e=this;Object(r["y"])(this.getRecuListParm).then((function(t){e.parentClass=t.data}))},popoverHide:function(e,t){console.log(e,t),null!==e?0==t.childrens?(this.deptform.pid=e,console.log(t),null!==e?(this.createTemp.partCode=t.partClassCode,this.createTemp.partClass=t.partClassCode,this.createTemp.partClassNameCode=t.partClassNameCode,this.getMaxCode()):this.createTemp.pid=-1,this.getMaxCode()):(this.defaultCheckedKeys=[],this.createTemp.tempPtypeCode="",this.createTemp.temptypeCode="",this.$message({type:"warning",message:"请选择详细备件类别"})):(this.defaultCheckedKeys=[],this.createTemp.partCode="",this.createTemp.partClass="",this.createTemp.partClassNameCode="")},getTypeList:function(){var e=this;this.getDeptListParm.parammaps=this.deptform,Object(r["e"])(this.getDeptListParm).then((function(t){e.listType=t.data,null!==t.data.list&&(e.listType=Object(r["E"])(t.data.list,"id","pid","children"),console.log(e.listType,"11111")),e.parentDept=e.listType}))},getMaxCode:function(){var e=this;this.requestParam.name="getPartCode",this.requestParam.parammaps={},this.requestParam.parammaps.partCode=this.createTemp.partCode,Object(r["e"])(this.requestParam).then((function(t){console.log("备件类别选中data",t.data.list),0!==t.data.list&&(""===t.data.list[0].preCode?e.createTemp.tempPtypeCode=e.deptform.typeCode+".":e.createTemp.tempPtypeCode=t.data.list[0].preCode,e.createTemp.temptypeCode=t.data.list[0].maxcode,e.$nextTick((function(){console.log(e.createTemp.partCode),e.$forceUpdate()})),-1===e.requestParam.parammaps.pid&&(e.createTemp.partCode=e.createTemp.tempPtypeCode+e.createTemp.temptypeCode))}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.getdataListParm.parammaps.partClass=this.createTemp.partClass,Object(r["e"])(this.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),e.list=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.list[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.list[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.list[a].srcpath="",e.list[a].picpath="");e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},statue:function(e){return 0==e.statue?"审核中":1==e.statue?"已通过":2==e.statue?"未通过":3==e.statue?"历史数据":void 0},get_table_dataSH:function(){var e=this;this.listLoadingSH=!0,void 0!==this.$refs["inputDatetimeSH"]&&null!==this.$refs["inputDatetimeSH"].value?(this.getdataListParmSH.parammaps.startTime=this.$refs["inputDatetimeSH"].value[0],this.getdataListParmSH.parammaps.stopTime=this.$refs["inputDatetimeSH"].value[1]):(this.getdataListParmSH.parammaps.startTime="",this.getdataListParmSH.parammaps.stopTime=""),this.getdataListParmSH.parammaps.partClass=this.createTemp.partClass,Object(r["e"])(this.getdataListParmSH).then((function(t){if(console.log("table数据",t.data.list),e.listSH=t.data.list,null!==t.data.list)for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(e.listSH[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSH[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath):(e.listSH[a].srcpath="",e.listSH[a].picpath="");e.pageNumSH=t.data.pageNum,e.pageSizeSH=t.data.pageSize,t.data.total&&(e.totalSH=t.data.total),setTimeout((function(){e.listLoadingSH=!1}),100)}))},form_search:function(){this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.parammaps.partClass=this.deptform.typeCode,this.getdataListParm.offset=1,this.get_table_data()},form_searchSH:function(){this.listLoadingSH=!0,null===this.getdataListParmSH.parammaps.inputDatetimeSH&&(this.getdataListParmSH.parammaps.inputDatetimeSH=""),this.getdataListParmSH.parammaps.partClass=this.deptform.typeCode,this.getdataListParmSH.offset=1,this.get_table_dataSH()},form_see:function(e){this.activeName="first",this.seeTemp=Object.assign({},e),void 0!==this.seeTemp.srcpath&&(this.$set(this.seeTemp,"srcpath",this.seeTemp.srcpath),this.$set(this.seeTemp,"picpath",this.seeTemp.picpath)),console.log("查看上方数据(从table读取)",this.seeTemp),this.dialogStatus="see",this.dialogFormVisible_See=!0,this.getdataListSee.parammaps.partCode=e.partCode,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;0===this.seeTemp.statue?(this.activeList=[{title:"提交信息",date:this.seeTemp.createTime,name:this.seeTemp.createPerson},{title:"设备中心审核"}],this.active=1):1===this.seeTemp.statue?(this.activeList=[{title:"提交信息",date:this.seeTemp.createTime,name:this.seeTemp.createPerson},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=2):2===this.seeTemp.statue&&(this.activeList=[{title:"提交信息",date:this.seeTemp.createTime,name:this.seeTemp.createPerson},{title:"设备中心审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=2)},getSeeList:function(){var e=this;this.listLoadingSee=!0,Object(r["e"])(this.getdataListSee).then((function(t){console.log("查看牧场信息table数据",t.data.list),e.listSee=t.data.list,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize,t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},handleClick:function(e,t){console.log(e,t)},resetCreateTemp:function(){this.requestParam={name:"createAssetType",parammaps:{}},this.defaultCheckedKeys=[],this.createTemp.partClassNameCode="",this.createTemp.tempPtypeCode="",this.createTemp.temptypeCode="",this.createTemp.partClass="",this.createTemp.partCode="",this.createTemp.partName="",this.createTemp.specification="",this.createTemp.purpose="",this.createTemp.unit="",this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.note="",this.createTemp.picId="",this.createTemp.picpath=""},form_add:function(){var e=this;this.resetCreateTemp(),this.createTemp.createPerson=this.$store.state.user.employeid,this.partClassCreate=!0,this.partClassUpdate=!1,this.$nextTick((function(){e.$refs.upload.clearFiles(),e.showUpload=!1,e.$refs["createTemp"].clearValidate()})),this.dialogStatus="create",this.dialogFormVisible=!0,this.fileList=[]},handlePicChange:function(e,t){var a=this;console.log(e,"文件状态改变时的钩子file"),console.log(t,"文件状态改变时的钩子fileList"),console.log(this.createTemp,"文件状态改变时的钩子row"),console.log(this.showUpload,"文件状态改变时的钩子row"),t.length>0?this.$nextTick((function(){a.showUpload=!0})):this.$nextTick((function(){a.showUpload=!1})),console.log(this.createTemp)},handlePicSuccess:function(e,t,a){var s=this;a.length>0?this.$nextTick((function(){s.showUpload=!0})):this.$nextTick((function(){s.showUpload=!1})),void 0!==this.createTemp.picpath&&""!==this.createTemp.picpath&&-1!=this.createTemp.picpath||this.$set(this.createTemp,"picpath",e.execresult.LastInsertId),console.log(this.createTemp,"文件上传成功时的钩子row")},handlePicRemove:function(e,t){var a=this;if(console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),console.log(this.createTemp,"文件列表移除文件时的钩子row---"),"create"===this.dialogStatus)for(var s in t.length<1&&(this.showUpload=!1),this.createTemp)this.createTemp[s]===e.response.execresult.LastInsertId&&this.$delete(this.createTemp,s);else{t.length<1&&this.$nextTick((function(){a.showUpload=!1}));var i=e.url;for(var r in console.log(i,"url"),this.createTemp)console.log(this.createTemp[r],"createTemp[key]"),this.createTemp[r]===i&&(console.log(r),"picpath"===r&&(this.$delete(this.createTemp,"picpath"),this.$delete(this.createTemp,"picId")))}console.log(this.createTemp,"文件列表移除文件时的钩子row")},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},onLoad:function(e){var t=e.target,a=0;(t.fileSize>0||t.width>1&&t.height>1)&&(a=t.width+40),this.width=a+"px"},beforeRemove:function(e,t){return console.log(e.response,"删除文件之前的钩子,参数为上传的文件和文件列表"),this.$confirm("删除当前图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(""==e.createTemp.picpath||void 0==e.createTemp.picpath)return e.$notify({title:"",message:"请上传图片",type:"warning",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkPartsns",type:"v",parammaps:{partName:e.createTemp.partName,specification:e.createTemp.specification}},e.postDataPramas.data[1]={name:"insertStock",type:"e",parammaps:{picId:e.createTemp.picpath,partClass:e.createTemp.partClass,partCode:e.createTemp.partCode,partName:e.createTemp.partName,specification:e.createTemp.specification,unit:e.createTemp.unit,purpose:e.createTemp.purpose,createPerson:e.createTemp.createPerson,createTime:e.createTemp.createTime,note:e.createTemp.note}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.deptform.id="",e.deptform.typeName="",e.dialogFormVisible=!1,e.defaultCheckedKeys=[],e.createTemp.partCode="",e.createTemp.partClass="",e.createTemp.partClassNameCode="",e.get_table_data(),e.getMaxCode(),e.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){if(""==e.createTemp.picpath||void 0==e.createTemp.picpath)return e.$notify({title:"",message:"请上传图片",type:"warning",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"checkPartsns",type:"v",parammaps:{partName:e.createTemp.partName,specification:e.createTemp.specification}},e.postDataPramas.data[1]={name:"insertStock",type:"e",parammaps:{picId:e.createTemp.picpath,partClass:e.createTemp.partClass,partCode:e.createTemp.partCode,partName:e.createTemp.partName,specification:e.createTemp.specification,unit:e.createTemp.unit,purpose:e.createTemp.purpose,createPerson:e.createTemp.createPerson,createTime:e.createTemp.createTime,note:e.createTemp.note}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.resetCreateTemp(),e.get_table_data(),e.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3}),e.handlePicRemove()):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))},handleDisable:function(e){var t=this;d["MessageBox"].confirm("禁用后备件不可使用,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="updatepartsEnable",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,t.requestParam.parammaps.enable=0,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"禁用成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消禁用"})}))},handleEnable:function(e){var t=this;this.requestParam.name="updatepartsEnable",this.requestParam.parammaps={},this.requestParam.parammaps.id=e.id,this.requestParam.parammaps.enable=1,Object(r["k"])(this.requestParam).then((function(){t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"启用成功",type:"success",duration:2e3})}))},form_edit:function(e){this.createTemp=Object.assign({},e),this.createTemp.partClass=this.createTemp.eqClassName1+"/"+this.createTemp.eqClassName2+"/"+this.createTemp.eqClassName3,this.dialogStatus="update",this.dialogFormVisible=!0,this.partClassCreate=!1,this.partClassUpdate=!0;var t=[],a=[];void 0==e.picpath||""==e.picpath?t.push():t.push(e.picpath);for(var s=0;s<t.length;s++){var i={};this.$set(i,"url",t[s]),a.push(i)}this.$set(this.createTemp,"fileList",a),console.log(this.createTemp),this.createTemp.fileList.length>=1?this.showUpload=!0:this.showUpload=!1},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t){if(""==e.createTemp.picpath||void 0==e.createTemp.picpath)return e.$notify({title:"",message:"请上传图片",type:"warning",duration:2e3}),!1;e.requestParam.name="updateParts",e.requestParam.parammaps.partClass=e.createTemp.partClass,e.requestParam.parammaps.id=e.createTemp.id,e.requestParam.parammaps.partCode=e.createTemp.partCode,e.requestParam.parammaps.partName=e.createTemp.partName,e.requestParam.parammaps.specification=e.createTemp.specification,e.requestParam.parammaps.purpose=e.createTemp.purpose,e.requestParam.parammaps.unit=e.createTemp.unit,e.requestParam.parammaps.createPersonId=e.createTemp.createPersonId,e.requestParam.parammaps.createTime=e.createTemp.createTime,e.requestParam.parammaps.note=e.createTemp.note,e.requestParam.parammaps.statue=0;var a=parseInt(e.createTemp.picpath);0==isNaN(a)?e.requestParam.parammaps.picpath=e.createTemp.picpath:e.requestParam.parammaps.picpath=e.createTemp.picId,console.log("编辑保存发送data",e.requestParam.parammaps),Object(r["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.defaultCheckedKeys=[],e.createTemp.partCode="",e.createTemp.partClass="",e.createTemp.partClassNameCode="",e.get_table_data(),e.get_table_dataSH(),e.getMaxCode(),e.dialogFormVisible=!1,e.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),e.$notify({title:"成功",message:"编辑成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))}}))},handleDelate:function(e){var t=this;d["MessageBox"].confirm("备件编号:"+e.partCode+" ,备件名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteStock",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.get_table_dataSH(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleRemove:function(e,t){console.log(e,t),this.dialogForm.imgList=t,t&&this.$refs["uploadElement"].clearValidate()},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了基础信息导出"),console.log(this.tabName),this.$alert("备件基础信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);"first"==this.tabName?(this.downloadParam.name="getStockList",this.downloadParam.parammaps={},this.downloadParam.parammaps.partCode=this.getdataListParm.parammaps.partCode,this.downloadParam.parammaps.partName=this.getdataListParm.parammaps.partName,this.downloadParam.parammaps.partClass=this.getdataListParm.parammaps.partClass,this.downloadParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.downloadParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,this.downloadParam.parammaps.specification=this.getdataListParm.parammaps.specification):"second"==this.tabName&&(this.downloadParam.name="getStockListSH",this.downloadParam.parammaps={},this.downloadParam.parammaps.partCode=this.getdataListParmSH.parammaps.partCode,this.downloadParam.parammaps.partName=this.getdataListParmSH.parammaps.partName,this.downloadParam.parammaps.partClass=this.getdataListParmSH.parammaps.partClass,this.downloadParam.parammaps.statue=this.getdataListParmSH.parammaps.statue,this.downloadParam.parammaps.startTime=this.getdataListParmSH.parammaps.startTime,this.downloadParam.parammaps.stopTime=this.getdataListParmSH.parammaps.stopTime,this.downloadParam.parammaps.specification=this.getdataListParmSH.parammaps.specification),Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["编码","品名","规格型号","计量单位","一级分类","二级分类","三级分类","建立人","建立时间"],filterVal:["partCode","partName","specification","unit","eqClassName1","eqClassName2","eqClassName3","createPerson","createTime"],tableDatas:t.data.list,sheetName:"备件基础信息"}];Object(l["d"])(e,"备件基础信息",!0,"xlsx")}))}))},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){var e=[{tHeader:["编码","品名","规格型号","计量单位","一级分类","二级分类","三级分类","建立人","建立时间"],filterVal:["编码","品名","规格型号","计量单位","一级分类","二级分类","三级分类","建立人","建立时间"],tableDatas:t.data.list,sheetName:"SheetJS"}];Object(l["d"])(e,"备件基础信息模板",!0,"xlsx")}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["编码","品名","规格型号","品牌","计量单位","一级分类","二级分类","三级分类","建立人","建立时间","error_msg"],r=["编码","品名","规格型号","品牌","计量单位","一级分类","二级分类","三级分类","建立人","建立时间","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},handleTabClick:function(e){console.log("点击了基础信息/审核备件tab",e),"second"==e.name?(this.isFlowChart=!0,this.isDisplayPasture=!1):(this.isFlowChart=!1,this.isDisplayPasture=!0),this.get_table_data(),this.get_table_dataSH()},handleExamine:function(e){void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"SHstatue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"SHstatue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1,this.keyupSubmit()},changeStatue:function(e){this.statueReason=2==e},keyupSubmit:function(){var e=this;"examine"!=this.dialogStatus&&"examines"!=this.dialogStatus||(document.onkeydown=function(t){var a=window.event.keyCode;13===a&&e.createExamineData()})},createExamineData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.createExamineParm.parammaps.partCode=e.examineTemp.partCode,Object(r["e"])(e.createExamineParm).then((function(t){e.requestParam.name="partsCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1===e.examineTemp.SHstatue?e.requestParam.parammaps.statue=1:e.requestParam.parammaps.statue=2,e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,1===e.examineTemp.SHstatue?e.requestParam.parammaps.partCode=t.data.list[0].preCode+t.data.list[0].maxcode:e.requestParam.parammaps.partCode=e.createExamineParm.parammaps.partCode,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_dataSH(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))})))}))},handleSelectionChange:function(e){if(console.log("选择",e.length),this.Selection=e.length,this.selectionList=[],e.length>0)for(var t=0;t<e.length;t++){var a={};a.id=e[t].id,a.statue=e[t].statue,a.partCode=e[t].partCode,this.selectionList.push(a)}},handleExamines:function(){if(console.log("点击了批量审批",this.selectionList),this.Selection>0){for(var e=0;e<this.selectionList.length;e++)if(console.log(this.selectionList[e]),0!==this.selectionList[e].statue)return this.$message({type:"error",message:"通过审核的备件不可重复审核",duration:2e3}),!1;this.dialogStatus="examines",this.dialogFormVisible_Examines=!0,this.keyupSubmit()}else this.$message({type:"error",message:"请选择要审核的数据",duration:2e3})},createExamineDatas:function(){var e=this;console.log(this.selectionList),this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:this.selectionList}},this.postDataPramas.data[0].children=[],this.postDataPramas.data[0].children[0]={name:"batchPartsSH",type:"e",parammaps:{id:"@insertSpotList.id",empId:c.a.get("employeid"),partCode:"@insertSpotList.partCode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_Examines=!1,e.get_table_dataSH(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleEAS:function(){this.easStatus.dialogStatus="easStatus",this.easStatus.dialogFormVisible=!0,this.get_table_dataEasStatusLst()},get_table_dataEasStatusLst:function(){var e=this;this.easStatus.listLoading=!0,Object(r["e"])(this.easStatus.getdataListParm).then((function(t){null!==t.data.list?e.easStatus.list=t.data.list:e.easStatus.list=[],e.easStatus.pageNum=t.data.pageNum,e.easStatus.pageSize=t.data.pageSize,t.data.total&&(e.easStatus.total=t.data.total)})),setTimeout((function(){e.easStatus.listLoading=!1}),100)},handleManual:function(e){var t=this;d["MessageBox"].confirm("是否确认同步此数据至EAS?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.typeIn=e.typeIn,t.requestParam.billCode=e.billCode,Object(r["a"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"手动同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消手动同步"})}))},handleIgnore:function(e){var t=this;d["MessageBox"].confirm("是否确认忽略同步此数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.name="updatepartsSync",t.requestParam.parammaps={},t.requestParam.parammaps.issync="3",t.requestParam.parammaps.id=e.id,Object(r["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"忽略同步成功",type:"success",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data()):(t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}),t.get_table_dataEasStatusLst(),t.get_table_data())}))})).catch((function(){t.$message({type:"info",message:"已取消忽略同步"})}))}}},g=h,f=(a("215b"),a("2877")),b=Object(f["a"])(g,s,i,!1,null,null,null);t["default"]=b.exports},e157:function(e,t,a){"use strict";a("4b03")},e15d:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:6}},[a("el-col",{attrs:{span:6}},[a("el-card",{ref:"card",staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("设备分类 ")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.jump}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"component-item",style:{width:"275px",height:e.curHeight+"px"}},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.parentType,props:e.defaultProps,"highlight-current":!0},on:{"node-click":e.handleNodeClick}})],1)])],1),e._v(" "),a("el-col",{attrs:{span:18}},[a("div",{staticClass:"app-container"},[a("el-tabs",{staticClass:"app-content-mokuai",style:{height:e.curHeight+"px"},on:{"tab-click":e.handleTabClick},model:{value:e.action,callback:function(t){e.action=t},expression:"action"}},[a("el-tab-pane",{attrs:{label:"部位",name:"first"}},[a("Buwei",{attrs:{"asset-typeid":e.dictid}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"点检模板",name:"second"}},[a("Dianjian",{attrs:{"asset-typeid":e.dictid,"asset-typename":e.typename}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"保养模板",name:"third"}},[a("Baoyang",{attrs:{"asset-typeid":e.dictid}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"常见故障",name:"fourth"}},[a("Guzhang",{attrs:{"asset-typeid":e.dictid,"asset-typename":e.typename,"asset-action":e.action}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"故障描述",name:"sixth"}},[a("Miaoshu",{attrs:{"asset-typeid":e.dictid,"asset-typename":e.typename,"asset-action":e.action}})],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("d2cb"),l=a("6e96"),o=a("0420"),p=a("c154"),m=a("01bd"),c={name:"Template",components:{Buwei:n["default"],Dianjian:l["default"],Baoyang:o["default"],Guzhang:p["default"],Miaoshu:m["default"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},curHeight:document.documentElement.clientHeight||document.body.clientHeight-200,action:"first",list:[],dictid:0,deptId:0,typename:"",listLoading:!0,getRecuListParm:{name:"geteqclasslist"},parentType:[],defaultProps:{children:"children",label:"typeName"},upkeepTypes:[],upkeepgrades:[],listActive:[],requestParams:[{name:"getDictByName1",offset:0,pagecount:0,params:["保养类型"]},{name:"getDictByName2",offset:0,pagecount:0,params:["保养级别"]},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}]}},created:function(){this.get_select_list()},methods:{getDownListAll:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.upkeepTypes=t.data.getDictByName1.list,e.upkeepgrades=t.data.getDictByName2.list,e.listActive=t.data.getDictByName.list}))},get_select_list:function(){var e=this;Object(r["e"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.parentType=Object(r["E"])(t.data.list,"id","pid","children"),console.log(e.parentType))}))},handleNodeClick:function(e,t){console.log(e,t),0==t.childNodes.length?(this.dictid=e.id,this.typename=e.typeName,this.action="first",this.pid=e.pid,this.checkNumber=e.typeCode,this.deptId=e.deptId):(this.dictid="",this.$message({type:"error",message:"请选择最子集设备",duration:2e3}))},handleTabClick:function(e,t){console.log(e,t),this.action=e.name,this.getDownListAll()},jump:function(){this.$router.push("/basic/assetType")}}},d=c,u=(a("ba1d"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"047dd424",null);t["default"]=h.exports},e17f:function(e,t,a){},e1dc:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-油卡",use:"icon-油卡-usage",viewBox:"0 0 1414 1024",content:'<symbol class="icon" viewBox="0 0 1414 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-油卡"><defs><style type="text/css"></style></defs><path d="M63.049143 1021.366857c-33.792 0-62.317714-29.598476-62.317714-64.609524V65.389714C0.731429 30.281143 29.257143 0.682667 63.049143 0.682667H1351.68c33.743238 0 62.268952 29.598476 62.268952 64.609523v891.416381c0 35.05981-28.525714 64.658286-62.268952 64.658286H63.049143zM102.4 870.887619c0 27.111619 19.017143 46.811429 45.153524 46.811429h1119.573333c26.136381 0 45.104762-19.69981 45.104762-46.811429V364.446476H102.497524V870.887619z m76.409905-135.753143c0-31.061333 24.478476-51.931429 40.326095-51.931428h286.378667c15.847619 0 39.984762 20.870095 39.984762 51.931428s-24.137143 51.931429-39.984762 51.931429H219.184762c-15.847619 0-40.326095-20.870095-40.326095-51.931429zM102.448762 151.259429v109.470476h1209.782857V151.259429c0-27.111619-18.919619-46.811429-45.104762-46.811429H147.553524c-26.136381 0-45.104762 19.69981-45.104762 46.811429z m944.128 591.774476s-25.941333 20.382476-7.948191 31.841524c0 0 9.020952 9.752381 40.521143-8.874667 0 0 36.425143-30.086095 47.34781-62.902857 10.922667-32.768 16.432762-56.661333-8.192-49.688381-24.624762 6.972952-11.751619 49.737143-71.68 89.624381z m-9.557333 103.765333c-42.76419 0-74.703238-15.11619-78.019048-16.725333a175.88419 175.88419 0 0 1-88.161524-90.453334 185.636571 185.636571 0 0 1-15.11619-56.661333c-3.120762-23.30819 3.900952-52.224 20.821333-85.918476 12.921905-25.84381 31.841524-54.905905 56.124952-86.454857 41.057524-53.150476 82.895238-94.598095 84.650667-96.353524l1.365333-1.316571 1.609143-0.926477a30.232381 30.232381 0 0 1 14.774857-4.047238c9.069714 0 14.774857 4.486095 16.286477 5.851429l0.048761 0.097524a723.870476 723.870476 0 0 1 99.474286 115.078095c21.650286 30.768762 34.230857 53.150476 36.230095 56.758857 29.110857 45.251048 29.110857 88.405333 23.942096 116.687238a154.916571 154.916571 0 0 1-18.822096 51.590095c-21.650286 33.743238-47.786667 58.660571-77.531428 74.118096a166.765714 166.765714 0 0 1-77.677714 18.675809z m-0.585143-383.171048c-7.216762 7.314286-39.497143 40.326095-70.314667 80.310858-20.187429 26.185143-35.791238 50.127238-46.323809 71.192381-12.434286 24.868571-17.700571 45.153524-15.60381 60.220952l0.097524 0.536381v0.487619c0 0.195048 1.365333 19.260952 11.507809 42.081524 13.409524 29.93981 35.108571 52.077714 64.609524 65.633524l0.341333 0.195047c0.195048 0.097524 24.966095 12.190476 57.782858 12.190476 20.333714 0 39.497143-4.583619 56.953904-13.653333 22.186667-11.50781 41.837714-30.378667 58.368-56.07619 0.341333-0.536381 9.264762-15.11619 13.068191-36.912762 5.022476-28.964571-0.926476-56.758857-17.65181-82.651429l-0.243809-0.341333-0.24381-0.438857c-0.390095-0.78019-43.641905-78.994286-112.347428-142.774858z" p-id="18835" /></symbol>'});n.a.add(l);t["default"]=l},e1de:function(e,t,a){"use strict";a("1dc7")},e20e:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件标准管理",use:"icon-备件标准管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件标准管理"><defs><style type="text/css"></style></defs><path d="M256 307.2H204.8a51.2 51.2 0 0 0-51.2 51.2v460.8a51.2 51.2 0 0 0 51.2 51.2h460.8a51.2 51.2 0 0 0 51.2-51.2v-51.2H358.4a102.4 102.4 0 0 1-102.4-102.4V307.2z m51.2-51.2v409.6a51.2 51.2 0 0 0 51.2 51.2h409.6v102.4a102.4 102.4 0 0 1-102.4 102.4H204.8a102.4 102.4 0 0 1-102.4-102.4V358.4a102.4 102.4 0 0 1 102.4-102.4h102.4z" p-id="3842" /><path d="M358.4 153.6a51.2 51.2 0 0 0-51.2 51.2v460.8a51.2 51.2 0 0 0 51.2 51.2h460.8a51.2 51.2 0 0 0 51.2-51.2V204.8a51.2 51.2 0 0 0-51.2-51.2H358.4z m0-51.2h460.8a102.4 102.4 0 0 1 102.4 102.4v460.8a102.4 102.4 0 0 1-102.4 102.4H358.4a102.4 102.4 0 0 1-102.4-102.4V204.8a102.4 102.4 0 0 1 102.4-102.4z" p-id="3843" /></symbol>'});n.a.add(l);t["default"]=l},e365:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购单号"},model:{value:e.getdataListParm.parammaps.orderNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"orderNumber",t)},expression:"getdataListParm.parammaps.orderNumber"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.getdataListParm.parammaps,"stuteSH",t)},expression:"getdataListParm.parammaps.stuteSH"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:"申购部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"申购人"},model:{value:e.getdataListParm.parammaps.empName,callback:function(t){e.$set(e.getdataListParm.parammaps,"empName",t)},expression:"getdataListParm.parammaps.empName"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isSubscribeAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isSubscribeExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"filter-button"}),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购日期",sortable:"",prop:"inputTime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSubscribeSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),4==s.statue||6==s.statue||8==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),e.isSubscribeExamineKG&&2==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineZG&&3==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineCG&&5==s.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("审核3")]),e._v(" "),!e.isSubscribeDelete||4!=s.statue&&6!=s.statue&&8!=s.statue?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.createTemp.orderNumber,callback:function(t){e.$set(e.createTemp,"orderNumber",t)},expression:"createTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"update"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购部门",disabled:"update"===e.dialogStatus},on:{change:e.changeDepart},model:{value:e.createTemp.departmentId,callback:function(t){e.$set(e.createTemp,"departmentId",t)},expression:"createTemp.departmentId"}},e._l(e.createDepartList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"employeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"申购人",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.employeId,callback:function(t){e.$set(e.createTemp,"employeId",t)},expression:"createTemp.employeId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus},model:{value:e.createTemp.createTime,callback:function(t){e.$set(e.createTemp,"createTime",t)},expression:"createTemp.createTime"}})],1)],1),e._v(" "),"create"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"线上采购",clearable:""},on:{change:e.changeProvider},model:{value:e.createTemp.providerId,callback:function(t){e.$set(e.createTemp,"providerId",t)},expression:"createTemp.providerId"}},e._l(e.onlineSubscriptionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.providerName,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"update"===e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.createTemp.providerName,callback:function(t){e.$set(e.createTemp,"providerName",t)},expression:"createTemp.providerName"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.createTemp.partCode,callback:function(t){e.$set(e.createTemp,"partCode",t)},expression:"createTemp.partCode"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e(),e._v(" "),"update"===e.dialogStatus?a("span",[e._v(e._s(t.row.brandName))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",prop:"reportery",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格",prop:"price",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[""==e.createTemp.providerId?a("span",[e._v(e._s(t.row.price))]):a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"price"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量","min-width":"120px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.purpose,callback:function(a){e.$set(t.row,"purpose",a)},expression:"scope.row.purpose"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleSee,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisibleSee=t}}},[a("div",{staticClass:"app-containerSee"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购单号:",prop:"orderNumber"}},[a("el-input",{ref:"orderNumber",attrs:{disabled:""},model:{value:e.seeTemp.orderNumber,callback:function(t){e.$set(e.seeTemp,"orderNumber",t)},expression:"seeTemp.orderNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:""},model:{value:e.seeTemp.pastureId,callback:function(t){e.$set(e.seeTemp,"pastureId",t)},expression:"seeTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购人:",prop:"empname"}},[a("el-input",{ref:"empname",attrs:{disabled:""},model:{value:e.seeTemp.empname,callback:function(t){e.$set(e.seeTemp,"empname",t)},expression:"seeTemp.empname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"申购日期:",prop:"createTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"申购日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.seeTemp.createTime,callback:function(t){e.$set(e.seeTemp,"createTime",t)},expression:"seeTemp.createTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"线上采购:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{disabled:""},model:{value:e.seeTemp.providerName,callback:function(t){e.$set(e.seeTemp,"providerName",t)},expression:"seeTemp.providerName"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingSee,expression:"listLoadingSee"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listSee,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号",prop:"partCode",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"partName",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"picpath","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌",prop:"brandName",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位",prop:"unit",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"现有库存",sortable:"",prop:"storageAmount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"价格",sortable:"",prop:"price",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"申购数量",sortable:"",prop:"amount",align:"center","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"100px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.isSubscribeExamineKG&&2==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine(e.row)}}},[e._v("审核1")]),e._v(" "),e.isSubscribeExamineZG&&3==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2(e.row)}}},[e._v("审核2")]),e._v(" "),e.isSubscribeExamineCG&&5==e.seeTemp.statue?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3(e.row)}}},[e._v("审核3")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisibleSee=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_Examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_Examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeStatue},model:{value:e.examineTemp.statue,callback:function(t){e.$set(e.examineTemp,"statue",t)},expression:"examineTemp.statue"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.statueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_Examine=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("5c96"),m=a("a78e"),c=a.n(m),d=(a("5f87"),{name:"Subscribe",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{isSubscribeAdd:[],isSubscribeTemplate:[],isSubscribeImport:[],isSubscribeExport:[],isSubscribeSee:[],isSubscribeDelete:[],isSubscribeExamineKG:[],isSubscribeExamineCG:[],isSubscribeExamineZG:[],isokDisable:!1,findAllProvider:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],onlineSubscriptionList:[],createDepartList:[],edit:0,requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:c.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getflexProviderList",offset:0,pagecount:0,parammaps:{}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid"),eId:c.a.get("employeid")}},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},textMap:{update:"编辑",create:"新增",see:"查看",examine:"审核1",examine2:"审核2",examine3:"审核3"},rules:{equipmentName:[{required:!0,message:"必填",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},statues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],radioAll:"全部",getdataListParm:{name:"getpartpurchaseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:c.a.get("pasturename"),empId:c.a.get("employeid"),orderNumber:"",stuteSH:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")}},tableKey:0,listLoading:!0,total:0,list:[],dialogStatus:"",dialogFormVisible:!1,dialogFormVisibleSee:!1,listLoadingSee:!0,listSee:[],totalSee:0,seeTemp:{},getdataListSee:{name:"getpartpurchaseBybig",returntype:"Map",parammaps:{}},createTemp:{pastureId:this.$store.state.user.pastureid,departmentId:this.$store.state.user.departmentid,employeId:this.$store.state.user.employeid,createTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),providerId:""},requestSparePart:{name:"getPartsListSG",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),codeType:"SG"}},getParmCreateAmount:{name:"getPartsListSGv2",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid")}},listAdd:[],postDataPramas:{},requestParam:{},dialogFormVisible_Examine:!1,examineTemp:{statue:1},statueReason:!1,activeList:[],active:3,buttons:[],downloadParam:{},isPercentage:!1,percentage:1,pending:{total:0,getdataListParm:{name:"getpartpurchaseWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")}}}}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){Object(l["f"])(e,this.listSee)},get_auto_buttons:function(){var e="customs:subscribe:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isSubscribeAdd=t;var a="customs:subscribe:template",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isSubscribeTemplate=s;var i="customs:subscribe:import",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isSubscribeImport=n;var l="customs:subscribe:export",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isSubscribeExport=o;var p="customs:subscribe:see",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isSubscribeSee=m;var c="customs:subscribe:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isSubscribeDelete=d;var u="customs:subscribe:examineKG",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isSubscribeExamineKG=h;var g="customs:subscribe:examineZG",f=Object(r["v"])(this.$store.state.user.buttons,g);this.isSubscribeExamineZG=f;var b="customs:subscribe:examineCG",v=Object(r["v"])(this.$store.state.user.buttons,b);this.isSubscribeExamineCG=v},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.orderNumber=this.getdataListParm.parammaps.orderNumber,this.pending.getdataListParm.parammaps.stuteSH=this.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.departmentId=this.getdataListParm.parammaps.departmentId,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=this.getdataListParm.parammaps.empId,this.pending.getdataListParm.parammaps.pastureId=c.a.get("pastureid"),this.pending.getdataListParm.parammaps.deptId=c.a.get("departmentid"),Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;this.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.getdataListParm).then((function(t){null!==t.data.list?(console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize):e.list=[],e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getpartpurchaseList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:c.a.get("pasturename"),orderNumber:"",departmentId:"",inputDatetime:"",startTime:"",stopTime:"",loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getpartpurchaseWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getpartpurchaseWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={pastureName:this.getdataListParm.parammaps.pastureName,orderNumber:this.getdataListParm.parammaps.orderNumber,stuteSH:this.getdataListParm.parammaps.stuteSH,departmentId:this.getdataListParm.parammaps.departmentId,inputDatetime:this.getdataListParm.parammaps.inputDatetime,startTime:this.getdataListParm.parammaps.startTime,stopTime:this.getdataListParm.parammaps.stopTime,loginId:c.a.get("employeid"),menu:"Subscribe",logindeptId:c.a.get("departmentid"),loginpastureId:c.a.get("pastureid"),empId:c.a.get("employeid"),pastureId:c.a.get("pastureid"),deptId:c.a.get("departmentid")},this.get_table_data())},statue:function(e){return 2==e.statue||3==e.statue?"审核中":4==e.statue?"未通过":5==e.statue?"审核中":6==e.statue?"未通过":7==e.statue?"已通过":8==e.statue?"未通过":void 0},form_search:function(){console.log("点击了table搜索"),null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.listLoading=!0,this.get_table_data(),this.getPendingList()},resetCreateTemp:function(){this.createTemp.pastureId=parseInt(c.a.get("pastureid")),this.createTemp.departmentId=parseInt(c.a.get("departmentid")),this.createTemp.employeId=parseInt(c.a.get("employeid")),this.createTemp.createTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.orderNumber="",this.createTemp.providerId="",this.listAdd=[]},form_add:function(){var e=this;this.resetCreateTemp(),this.edit=1,this.getDepartParam.parammaps.pastureId=this.createTemp.pastureId,this.getCreateDepartDownList(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()})),this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate()}))}))},changeProvider:function(e){""!==e&&(this.createTemp.providerName=this.onlineSubscriptionList.find((function(t){return t.id==e})).providerName),this.listAdd=[]},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),""==this.createTemp.providerId?this.requestSparePart.name="getPartsListSG":(this.requestSparePart.name="getPartsListSGFlex",this.requestSparePart.parammaps.providerId=this.createTemp.providerId,this.requestSparePart.parammaps.providerName=this.createTemp.providerName),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){var t=this;console.log("备件模糊查询选中值",e),console.log("备件模糊查询选中值",e.partId),console.log(this.listAdd),""==this.createTemp.providerId?(this.listAdd.length>0&&this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(this.getParmCreateAmount.parammaps.partCode=e.partCode,Object(r["e"])(this.getParmCreateAmount).then((function(a){t.$nextTick((function(){console.log("新增根据编号获取备件库存数量",a.data.list[0]),e=a.data.list[0],null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(t.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),t.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),t.$set(e,"amount",""),t.$set(e,"purpose",""),t.listAdd.unshift(e),t.$forceUpdate()}))}))),this.$forceUpdate()):(this.listAdd.length>0?this.listAdd.find((function(t){return t.partId==e.partId}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"amount",""),this.$set(e,"purpose",""),this.listAdd.unshift(e),this.$forceUpdate()),this.$forceUpdate())},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(console.log(e.listAdd),""==e.createTemp.orderNumber||null==e.createTemp.orderNumber||void 0==e.createTemp.orderNumber?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("新增申购单号",t.data.list[0].orderCode),e.createTemp.orderNumber=t.data.list[0].orderCode,e.$forceUpdate(),e.add_dialog_saveSave()}))})):e.add_dialog_saveSave())}))},add_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigPartpurchase",type:"e",parammaps:{pastureId:this.createTemp.pastureId,departmentId:this.createTemp.departmentId,orderNumber:this.createTemp.orderNumber,useType:this.createTemp.useType,createTime:this.createTemp.createTime,employeId:this.createTemp.employeId,providerId:this.createTemp.providerId}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:"@insertBigPartpurchase.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},partDelete:function(e){var t=this;console.log(this.listAdd),p["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},form_see:function(e){this.dialogStatus="see",this.dialogFormVisibleSee=!0,this.seeTemp=Object.assign({},e),console.log("查看上方数据(从table读取)",this.seeTemp),this.listSee=[],this.getdataListSee.parammaps.id=this.seeTemp.id,this.getSeeList();var t="未通过原因:"+this.seeTemp.workflowNote;2===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核"},{title:"供应主管审核"},{title:"采购审核"}],this.active=1):3===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):4===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson,status:"error",reason:t},{title:"供应主管审核"},{title:"采购审核"}],this.active=2):5===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核"}],this.active=3):6===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t},{title:"采购审核"}],this.active=3):7===this.seeTemp.statue?(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson}],this.active=4):8===this.seeTemp.statue&&(this.activeList=[{title:"备件申购",date:this.seeTemp.inputTime,name:this.seeTemp.empname},{title:"库管审核",date:this.seeTemp.KGChargedate,name:this.seeTemp.KGChargePerson},{title:"供应主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson},{title:"采购审核",date:this.seeTemp.CGChargedate,name:this.seeTemp.CGChargePerson,status:"error",reason:t}],this.active=4)},getSeeList:function(){var e=this;Object(r["e"])(this.getdataListSee).then((function(t){if(null!==t.data.list){console.log("查看下方table数据",t.data.list),e.listSee=t.data.list,e.listAdd=t.data.list;for(var a=0;a<t.data.list.length;a++)null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath?(console.log("http://127.0.0.1:8082/"+t.data.list[a].srcpath,"=======1"),e.listSee[a].srcpath="http://127.0.0.1:8082/"+t.data.list[a].srcpath,e.listSee[a].picpath="http://127.0.0.1:8082/"+t.data.list[a].picpath,e.listAdd[a].srcpath=e.listSee[a].srcpath,e.listAdd[a].picpath=e.listSee[a].picpath,e.pageNumSee=t.data.pageNum,e.pageSizeSee=t.data.pageSize):(e.listSee[a].srcpath="",e.listSee[a].picpath="",e.listAdd[a].srcpath="",e.listAdd[a].picpath=""),console.log("http://127.0.0.1:8082/"),console.log(e.listSee,"============")}t.data.total&&(e.totalSee=t.data.total),setTimeout((function(){e.listLoadingSee=!1}),100)}))},form_edit:function(e){var t=this;this.edit=0,this.getDepartParam.parammaps.pastureId=e.pastureId,this.getCreateDepartDownList(),void 0==e.providerId&&(e.providerId="",e.providerName=""),this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()})),this.getdataListSee.parammaps.id=this.createTemp.id,this.getSeeList()},edit_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&e.edit_dialog_saveSave()}))},edit_dialog_saveSave:function(){var e=this;if(0!==this.listAdd.length){for(var t=0;t<this.listAdd.length;t++){if(console.log(this.listAdd[t].amount),null==this.listAdd[t].amount||""===this.listAdd[t].amount)return this.$message({type:"warning",message:"请检查申购数量是否未填写",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(this.listAdd[t].amount))return this.$message({type:"error",message:"申购数量请输入正整数",duration:2e3}),!1;if(""!==this.createTemp.providerId){if(""==this.listAdd[t].price)return this.$message({type:"warning",message:"请检查单价是否为空",duration:2e3}),!1;if(0==parseFloat(this.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}}return this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updatepartpurchaseCharge",type:"e",parammaps:{id:this.createTemp.id}},this.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:this.createTemp.id}},this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:this.listAdd}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPartpurchase",type:"e",parammaps:{bigId:this.createTemp.id,pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",brandId:"@insertSpotList.brandId",storageAmount:"@insertSpotList.reportery",purpose:"@insertSpotList.purpose",amount:"@insertSpotList.amount",price:"@insertSpotList.price",contractId:"@insertSpotList.contractId"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime="",e.get_table_data(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return this.$message({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.onlineSubscriptionList=t.data.getflexProviderList.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getCreateDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.createDepartList=t.data.list,1==e.edit&&(e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")}))?(e.createTemp.departmentId=parseInt(c.a.get("departmentid")),e.createTemp.departmentName=e.createDepartList.find((function(e){return e.id==c.a.get("departmentid")})).name):(e.createTemp.departmentId=t.data.list[0].id,e.createTemp.departmentName=t.data.list[0].name))}))},changePasture:function(e){this.getDepartParam.parammaps.pastureId=e,this.edit=1,this.getCreateDepartDownList()},changeDepart:function(e){this.createTemp.departmentName=this.createDepartList.find((function(t){return t.id==e})).name},handleDownload:function(){var e=this;console.log("点击了下载"),this.$alert("备件申购正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="downloadPartpurchaseList",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","申购单号","申购时间","备件编号","备件名称","规格型号","品牌","单位","申购数量","申购部门","申购人","备注"],filterVal:["pastureName","orderNumber","inputTime","partCode","partName","specification","brandName","unit","amount","departmentName","empname","purpose"],tableDatas:t.data.list,sheetName:"备件申购"}];Object(l["d"])(e,"备件申购",!0,"xlsx")}))}))},form_delete:function(e){var t=this;console.log("点击了删除"),p["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigPartpurchase",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deletePartpurchase",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExamine:function(e){console.log("点击了库管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine",this.dialogFormVisible_Examine=!0,this.statueReason=!1},changeStatue:function(e){this.statueReason=2==e},createExamineData:function(){var e=this;console.log("点击了库管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=3:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=4),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了供应主管审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"statue",1),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData2:function(){var e=this;console.log("点击了供应主管审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="partpurchaseCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,1==e.examineTemp.statue?e.requestParam.parammaps.statue=5:2==e.examineTemp.statue&&(e.requestParam.parammaps.statue=6),e.requestParam.parammaps.empId=c.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("审核确认发送参数",e.requestParam),"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine3:function(e){console.log("点击了采购审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"statue",1),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"statue",1)),this.dialogStatus="examine3",this.dialogFormVisible_Examine=!0,this.statueReason=!1},createExamineData3:function(){var e=this;console.log("点击了采购审核"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam={},e.requestParam.parammaps={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],1==e.examineTemp.statue?(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:7,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}},e.requestParam.data[1]={name:"createBuydetailBySG",type:"e",parammaps:{id:e.examineTemp.id,pastureId:e.examineTemp.pastureId}}):2==e.examineTemp.statue&&(e.requestParam.data[0]={name:"partpurchaseCharge1",type:"e",parammaps:{id:e.examineTemp.id,statue:8,empId:c.a.get("employeid"),workflowNote:e.examineTemp.workflowNote}}),Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.get_table_data(),e.dialogFormVisible_Examine=!1,e.dialogFormVisible_See=!1,e.statueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))}}}),u=d,h=(a("bac5"),a("a02d"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"653aed84",null);t["default"]=g.exports},e384:function(e,t,a){"use strict";a("5022")},e57d:function(e,t,a){},e60f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn",staticStyle:{height:"50px"}},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v(" 模板 ")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"时间","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedDay))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牛头数",sortable:"",prop:"cowNum","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"泌乳牛牛头数",sortable:"",prop:"cowNumM","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowNumM))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"日销奶量(吨)",sortable:"",prop:"saleNum","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.saleNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"230","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"createTemp",attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"140px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日期:",prop:"feedDay"}},[a("div",{staticClass:"block"},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus||"update"===e.dialogStatus},model:{value:e.createTemp.feedDay,callback:function(t){e.$set(e.createTemp,"feedDay",t)},expression:"createTemp.feedDay"}})],1)])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牛头数:",prop:"cowNum"}},[a("el-input",{ref:"cowNum",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cowNum,callback:function(t){e.$set(e.createTemp,"cowNum",t)},expression:"createTemp.cowNum"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"泌乳牛牛头数:",prop:"cowNumM"}},[a("el-input",{ref:"cowNumM",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cowNumM,callback:function(t){e.$set(e.createTemp,"cowNumM",t)},expression:"createTemp.cowNumM"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"日销奶量(吨):",prop:"saleNum"}},[a("el-input",{ref:"saleNum",attrs:{disabled:"see"===e.dialogStatus},model:{value:e.createTemp.saleNum,callback:function(t){e.$set(e.createTemp,"saleNum",t)},expression:"createTemp.saleNum"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),"create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("3b2b"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"Feedings",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{rules:{pastureId:[{required:!0,message:"必填",trigger:"blur"}],feedDay:[{required:!0,message:"必填",trigger:"blur"}],saleNum:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/(^[1-9](\d+)?(\.\d{1,3})?$)|(^\d\.\d{1,2}$)/,s=e.test(t);s?a():a(new Error("请输入正数,且最多保留两位小数"))}),0)},trigger:"blur"}],cowNumM:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}],cowNum:[{type:"number",required:!0,validator:function(e,t,a){t||a(new Error("不能为空")),setTimeout((function(){var e=/^[0-9]*[1-9][0-9]*$/,s=e.test(t);s?a():a(new Error("请输入正整数"))}),0)},trigger:"blur"}]},textMap:{update:"编辑",create:"新增",see:"查看详情"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}}],tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getFeedsumlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:d.a.get("pasturename")}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureId:this.$store.state.user.pastureid,cowNum:"",feedDay:Object(l["e"])(new Date,"{y}-{m}-{d}"),saleNum:"",cowNumM:""},requestParam:{},downloadParam:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"uploadfeedsum",importParams:"牧场,时间,牛头数,泌乳牛牛头数,日销奶量(吨)",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(l["f"])(e,this.list)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.cowNum="",this.createTemp.feedDay=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.createTemp.saleNum="",this.createTemp.cowNumM=""},form_add:function(){var e=this;this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["createTemp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertFeedsum",e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"日期不可重复添加",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},add_dialog_save_again:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="insertFeedsum",e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.resetCreateTemp(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"日期不可重复添加",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},form_edit:function(e){var t=this;this.createTemp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["createTemp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["createTemp"].validate((function(t){t&&(e.requestParam.name="updateFeedsum",e.requestParam.parammaps=e.createTemp,Object(r["k"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("pmonth");a.test(t.data)?e.$notify({title:"",message:"该类型当前日期已存在",type:"warning",duration:2e3}):Object(r["w"])(t,e.$notify)}})))}))},form_see:function(e){this.createTemp=Object.assign({},e),this.dialogStatus="see",this.dialogFormVisible=!0},handleDownloadTemp:function(){var e=this;this.requestParam.name="pStockDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","时间","牛头数","泌乳牛牛头数","日销奶量(吨)"],r=["牧场","时间","牛头数","泌乳牛牛头数","日销奶量(吨)"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"饲养数模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不能超过 10MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","时间","牛头数","泌乳牛牛头数","日销奶量(吨)","报错信息"],r=["牧场","时间","牛头数","泌乳牛牛头数","日销奶量(吨)","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"饲养数报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("饲养数正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downloadParam.name="getFeedsumlist",this.downloadParam.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downloadParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){var e=[{tHeader:["牧场","时间","牛头数","泌乳牛牛头数","日销奶量(吨)"],filterVal:["pastureName","feedDay","cowNum","cowNumM","saleNum"],tableDatas:t.data.list,sheetName:"饲养数"}];Object(l["d"])(e,"饲养数",!0,"xlsx")}))}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("是否删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteFeedsum",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},e625:function(e,t,a){"use strict";a("8a76")},e69c:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"block"},[a("el-date-picker",{attrs:{clearable:!1,type:"year",placeholder:"选择年"},model:{value:e.yearDate,callback:function(t){e.yearDate=t},expression:"yearDate"}}),e._v(" "),a("el-radio-group",{staticStyle:{float:"right","margin-top":"20px"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"集团"}},[e._v("集团")]),e._v(" "),a("el-radio",{attrs:{label:"一中心"}},[e._v("一中心")]),e._v(" "),a("el-radio",{attrs:{label:"二中心"}},[e._v("二中心")]),e._v(" "),a("el-radio",{attrs:{label:"三中心"}},[e._v("三中心")])],1)],1)]),e._v(" "),e.isBarChart1?a("el-row",{staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",top:"-12px",left:"40%",color:"rgb(130, 165, 252)",background:"rgb(230, 243, 255)",border:"1px solid rgb(130, 165, 252)",padding:"10px","border-radius":"10px"}},[e._v("\n "+e._s(e.year)+"年集团用电量:"+e._s(e.total)+"万千瓦\n ")]),e._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart1"}})])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"lineChart2"}})])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart1"}})]),e._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barChart2"}})])],1)],1)},i=[],r=(a("7f7f"),a("ac6a"),a("ade3")),n=a("313e"),l=a.n(n),o=a("6724"),p=a("333d"),m=a("2934"),c=(a("ed08"),a("a78e")),d=a.n(c);a("817d");var u={name:"QueryElec",directives:{waves:o["a"]},components:{Pagination:p["a"]},data:function(){var e;return e={yearDate:new Date,radio:"集团",pasture:d.a.get("pasturename"),year:(new Date).getFullYear(),month:(new Date).getMonth()<9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1,deptment:"维修处",total:"",getBarChart1Parm:{name:"getpSumNowElec",parammaps:{receiveTime:(new Date).getFullYear(),center:"",pastureName:d.a.get("pasturename")}},getLineChart1Parm:{name:"getPastureSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear(),pastureName:d.a.get("pasturename")}},getLineChart2Parm:{name:"getPastureSumDayElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getPieChart1Parm:{name:"getdeptSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename")}},getBarChart2Parm:{name:"geteqclassSumMonthElec",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:""}},barChart1:null,lineChart1:null,lineChart2:null,pieChart1:null,barChart2:null,chart_data1:{},chart_data2:{},chart_data3:{},chart_data4:{},chart_data5:{},tableKey:0,list:null},Object(r["a"])(e,"total",0),Object(r["a"])(e,"listLoading",!0),Object(r["a"])(e,"rowStyle",{maxHeight:"50px",height:"45px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"dialogFormVisibleCard",!1),Object(r["a"])(e,"listLoadingSee",!0),Object(r["a"])(e,"rowSeeData",{}),Object(r["a"])(e,"listSee",[]),Object(r["a"])(e,"totalSee",0),Object(r["a"])(e,"getdataListParmSee",{name:"geteqclassSumDay",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{receiveTime:(new Date).getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),pastureName:d.a.get("pasturename"),deptName:"",typeName:"",assetCode:"",eqName:"",startTime:"",stopTime:"",pastureId:d.a.get("pastureid")}}),Object(r["a"])(e,"buttons",[]),Object(r["a"])(e,"isBarChart1",[]),e},watch:{yearDate:{deep:!0,handler:function(e,t){var a=this.yearDate;console.log(e.getFullYear()),this.year=a.getFullYear(),this.getBarChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart1Parm.parammaps.receiveTime=a.getFullYear(),this.getLineChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getPieChart1Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart2Parm.parammaps.receiveTime=a.getFullYear()+"-"+((new Date).getMonth()<=9?"0"+((new Date).getMonth()+1):(new Date).getMonth()+1),this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1()}},radio:{deep:!0,handler:function(e,t){console.log(e,t),this.getBarChart1Parm.parammaps.center="集团"==e?"":e,this.getBarChart1()}}},created:function(){this.getBarChart1(),this.getLineChart1(),this.getLineChart2(),this.getPieChart1();var e=this;Object(m["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()}))},mounted:function(){},methods:{get_auto_buttons:function(){var e="report:queryElec:pastures",t=Object(m["v"])(this.$store.state.user.buttons,e);this.isBarChart1=t},getBarChart1:function(){var e=this;Object(m["h"])(this.getBarChart1Parm).then((function(t){console.log("图1",t),e.chart_data1=t.data.chart_data,e.roadBarChart1(e.chart_data1);var a=t.data.chart_data.nowYear,s=0;null===a&&void 0===a||a.forEach((function(e,t){console.log(parseFloat(e)),s+=parseFloat(e)})),e.total=s.toFixed(4)}))},getLineChart1:function(){var e=this;Object(m["h"])(this.getLineChart1Parm).then((function(t){console.log("图2",t),e.chart_data2=t.data.chart_data,e.roadlineChart1(e.chart_data2,e.pasture,e.year)}))},getLineChart2:function(){var e=this;Object(m["h"])(this.getLineChart2Parm).then((function(t){console.log("图3",t),e.chart_data3=t.data.chart_data,e.roadlineChart2(e.chart_data3,e.pasture,e.month)}))},getPieChart1:function(){var e=this;Object(m["e"])(this.getPieChart1Parm).then((function(t){if(console.log("图4",t),null===t.data||null===t.data.list)e.chart_data4={name:[],psum:[]},e.roadpieChart1(e.chart_data4,e.month);else{e.chart_data4.psum=t.data.list;var a=[];console.log(t.data.list),t.data.list.forEach((function(e){a.push(e.name)})),console.log(e.chart_data4),e.chart_data4.name=a,e.roadpieChart1(e.chart_data4,e.month),e.deptment=a[0],e.getdataListParmSee.parammaps.deptName=a[0],e.getBarChart2Parm.parammaps.deptName=a[0],e.getBarChart2()}}))},getBarChart2:function(){var e=this;Object(m["h"])(this.getBarChart2Parm).then((function(t){console.log("图5",t),e.chart_data5=t.data.chart_data,e.roadBarChart2(e.chart_data5,e.deptment)}))},roadBarChart1:function(e){null!=this.barChart1&&this.barChart1.dispose(),this.barChart1=l.a.init(document.getElementById("barChart1"));var t={title:{text:"各牧场年度用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期"],right:40},color:["#2dc0e8","#769cfc","#FFB800"],grid:{left:"3%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.pasture,axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"bar",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"bar",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart1.setOption(t),window.onresize=function(){this.barChart1.resize()};var a=this;this.barChart1.on("click",(function(e,t){console.log(e),a.pasture=e.name,a.getLineChart1Parm.parammaps.pastureName=e.name,a.getLineChart2Parm.parammaps.pastureName=e.name,a.getPieChart1Parm.parammaps.pastureName=e.name,a.getBarChart2Parm.parammaps.pastureName=e.name,a.getLineChart1(),a.getLineChart2(),a.getPieChart1()}))},roadlineChart1:function(e,t,a){null!=this.lineChart1&&this.lineChart1.dispose(),this.lineChart1=l.a.init(document.getElementById("lineChart1"));var s={title:{text:t+a+"每月用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年用量","去年同期用量"],x:"right"},color:["#769cfc","#FFB800","#6bda00"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.months,name:"月份",axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"今年用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期用量",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"预算",type:"line",data:e.budget,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart1.setOption(s),window.onresize=function(){this.lineChart1.resize()};var i=this;this.lineChart1.on("click",(function(e,t){console.log(e),i.getLineChart2Parm.parammaps.receiveTime=e.name,i.getPieChart1Parm.parammaps.receiveTime=e.name,i.getBarChart2Parm.parammaps.receiveTime=e.name;var a=e.name.substring(5);console.log(a),i.month=a,i.getLineChart2(),i.getPieChart1()}))},roadlineChart2:function(e,t,a){null!=this.lineChart2&&this.lineChart2.dispose(),this.lineChart2=l.a.init(document.getElementById("lineChart2"));var s={title:{text:t+a+"月每日用电量对比",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["今年日用量","去年同期"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.day,name:"日期",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}"}}],series:[{name:"今年日用量",type:"line",data:e.nowYear,emphasis:{label:{show:!0,position:"inside"}}},{name:"去年同期",type:"line",data:e.lastYear,emphasis:{label:{show:!0,position:"inside"}}}]};this.lineChart2.setOption(s),window.onresize=function(){this.lineChart2.resize()},this.lineChart2.on("click",(function(e,t){console.log(e)}))},roadpieChart1:function(e,t){null!=this.pieChart1&&this.pieChart1.dispose(),this.pieChart1=l.a.init(document.getElementById("pieChart1"));var a={title:{text:t+"月部门统计",textStyle:{color:"#769cfc"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{data:e.name,top:40,x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"5%",bottom:"4%",containLabel:!0},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.psum,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.pieChart1.setOption(a),window.onresize=function(){this.pieChart1.resize()};var s=this;this.pieChart1.on("click",(function(e,t){console.log(e),s.deptment=e.name,s.getBarChart2Parm.parammaps.deptName=e.name,s.getBarChart2()}))},roadBarChart2:function(e,t){null!=this.barChart2&&this.barChart2.dispose(),this.barChart2=l.a.init(document.getElementById("barChart2"));var a={title:{text:t+"用电量",textStyle:{color:"#769cfc"}},tooltip:{trigger:"axis"},legend:{data:["用电量"],x:"right"},color:["#769cfc","#FFB800"],grid:{left:"3%",right:"10%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:e.typeName,name:"电表名称",axisLabel:{interval:0}}],yAxis:[{type:"value",name:"电量(千瓦)",axisLabel:{formatter:"{value}万"}}],series:[{name:"用电量",type:"bar",barWidth:14,data:e.eqCost,emphasis:{label:{show:!0,position:"inside"}}}]};this.barChart2.setOption(a),window.onresize=function(){this.barChart2.resize()}}}},h=u,g=(a("653d"),a("e157"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"06ab84ef",null);t["default"]=f.exports},e7db:function(e,t,a){"use strict";a("bc9c")},e7f7:function(e,t,a){},e84d:function(e,t,a){},e8b7:function(e,t,a){},e8d0:function(e,t,a){},e8e3:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备购置报废统计",use:"icon-设备购置报废统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备购置报废统计"><defs><style type="text/css"></style></defs><path d="M874.666667 554.666667h-8.533334L795.733333 164.266667C789.333333 130.133333 757.333333 106.666667 723.2 106.666667H300.8c-34.133333 0-64 23.466667-72.533333 57.6L157.866667 554.666667H149.333333c-23.466667 0-42.666667 19.2-42.666666 42.666666v234.666667c0 23.466667 19.2 42.666667 42.666666 42.666667h725.333334c23.466667 0 42.666667-19.2 42.666666-42.666667V597.333333c0-23.466667-19.2-42.666667-42.666666-42.666666zM290.133333 179.2c2.133333-4.266667 6.4-8.533333 10.666667-8.533333h422.4c4.266667 0 8.533333 4.266667 10.666667 8.533333L800 554.666667h-149.333333c-8.533333 0-14.933333 4.266667-19.2 12.8l-27.733334 59.733333c-4.266667 8.533333-10.666667 12.8-19.2 12.8h-142.933333c-8.533333 0-14.933333-4.266667-19.2-12.8l-27.733333-59.733333c-4.266667-8.533333-10.666667-12.8-19.2-12.8h-149.333334l64-375.466667zM853.333333 810.666667H170.666667v-192h174.933333l17.066667 36.266666c14.933333 29.866667 44.8 49.066667 76.8 49.066667h142.933333c34.133333 0 64-19.2 76.8-49.066667l17.066667-36.266666H853.333333v192z" p-id="786" /><path d="M416 405.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h64v53.333334c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V469.333333h64c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-64v-42.666666h64c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32H597.333333v-32c0-17.066667-14.933333-32-32-32s-32 14.933333-32 32V298.666667h-42.666666v-32c0-17.066667-14.933333-32-32-32s-32 14.933333-32 32V298.666667h-10.666667c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h64v42.666666h-64z" p-id="787" /></symbol>'});n.a.add(l);t["default"]=l},e8f4:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container common-list-page"},[a("el-form",{ref:"temp",attrs:{model:e.temp,rules:e.rules,"status-icon":"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"旧密码:",prop:"oldpassword"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.oldpassword,callback:function(t){e.$set(e.temp,"oldpassword",t)},expression:"temp.oldpassword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"新密码:",prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password,callback:function(t){e.$set(e.temp,"password",t)},expression:"temp.password"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"确认密码:",prop:"password1"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password1,callback:function(t){e.$set(e.temp,"password1",t)},expression:"temp.password1"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.toAmend(t)}}},[e._v("确认修改")])],1)],1)],1)},i=[],r=a("c7eb"),n=(a("96cf"),a("1da1")),l=(a("7f7f"),a("6b54"),a("2934")),o={data:function(){var e=this,t=function(e,t,a){t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入旧密码"))},a=function(e,t,a){console.log(t),t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入新密码"))},s=function(t,a,s){""===a?s(new Error("请再次输入密码")):a!==e.temp.password?s(new Error("两次输入密码不一致!")):s()};return{resetForm:{},temp:{},rules:{oldpassword:[{required:!0,validator:t,trigger:"blur"}],password:[{required:!0,validator:a,trigger:"blur"}],password1:[{required:!0,validator:s,trigger:"blur"}]}}},methods:{toAmend:function(){var e=this;console.log(111),this.$refs["temp"].validate((function(t){t&&(e.resetForm.common={returnmap:"0"},e.resetForm.data=[],e.resetForm.data[0]={name:"checkPassword",type:"v",parammaps:{id:e.$store.state.user.employeid,password:e.temp.oldpassword}},e.resetForm.data[1]={name:"updatePwd",type:"e",parammaps:{password:e.temp.password,username:e.$store.state.user.name}},Object(l["c"])(e.resetForm).then((function(t){console.log("保存发送参数",e.resetForm),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(setTimeout((function(){e.logout()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},logout:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("/login");case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},p=o,m=(a("b398"),a("2877")),c=Object(m["a"])(p,s,i,!1,null,"4fe46e88",null);t["default"]=c.exports},e9bc:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1"}},[a("router-view")],1)],1)},i=[],r=a("2877"),n={},l=Object(r["a"])(n,s,i,!1,null,null,null);t["default"]=l.exports},eaa2:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"业务类型"},model:{value:e.getdataListParm.parammaps.laidType,callback:function(t){e.$set(e.getdataListParm.parammaps,"laidType",t)},expression:"getdataListParm.parammaps.laidType"}},e._l(e.laidTypes,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"partCode",t)},expression:"getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.getdataListParm.parammaps,"partName",t)},expression:"getdataListParm.parammaps.partName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-upload2"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"90px",align:"center",sortable:"",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"业务日期",sortable:"",prop:"createTime","min-width":"100px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"业务类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laidType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"订单编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laidCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"期初数量","min-width":"90px",align:"center",sortable:"",prop:"startNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"期初金额","min-width":"90px",align:"center",sortable:"",prop:"startSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"业务数量","min-width":"90px",align:"center",sortable:"",prop:"laidNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"业务金额","min-width":"90px",align:"center",sortable:"",prop:"laidSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"期末数量","min-width":"90px",align:"center",sortable:"",prop:"endNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"期末金额","min-width":"90px",align:"center",sortable:"",prop:"endSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)},i=[],r=a("6724"),n=a("333d"),l=a("2934"),o=a("ed08"),p=a("a78e"),m=a.n(p),c={name:"SparePartReceive",components:{Pagination:n["a"]},directives:{waves:r["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}}],laidTypes:[{id:0,name:"入库"},{id:1,name:"出库"},{id:2,name:"退库"},{id:3,name:"退货"}],tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getPartInOutList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),partCode:"",partName:"",laidType:"入库"}},downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(o["f"])(e,this.list)},get_select_list:function(){var e=this;Object(l["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;Object(l["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件收发明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getPartInOutList",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(l["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["牧场","备件编号","备件名称","规格型号","品牌","计量单位","单价","业务日期","业务类型","订单编号","期初数量","期初金额","业务数量","业务金额","期末数量","期末金额","库位"],filterVal:["pastureName","partCode","partName","specification","brand","unit","price","createTime","laidType","laidCode","startNum","startSum","laidNum","laidSum","endNum","endSum","location"],tableDatas:e.downLoadList,sheetName:"备件收发明细"}];Object(o["d"])(a,"备件收发明细",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},eaf9:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("a",{staticStyle:{"border-bottom":"1px solid #333"},on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt))]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e(),e._v(" "),"已录制未上传"==t.row.videoTxt?a("el-link",[e._v("已录制未上传 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),3==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),e.dialogFormVisible_See?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close_diago()}}},[e._v("关闭")])],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},close_diago:function(){console.log(0xa1b01d4b1c7),this.dialogFormVisible_See=!1},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||8==e.SHStatue?"未通过":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核"},{title:"机修审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"设备主管审核"}]):7===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"保养人审核",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!1,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("2b33"),a("bbbf"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"1b857e5e",null);t["default"]=g.exports},eb1b:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063l1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol>'});n.a.add(l);t["default"]=l},eb38:function(e,t,a){},eb5c:function(e,t,a){"use strict";a("41e7")},ebe9:function(e,t,a){},ec74:function(e,t,a){},eca7:function(e,t,a){},ecac:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",{staticClass:"el-main"},e._l(this.view.charts,(function(e){return a("el-chart",{key:e.index,attrs:{slot:"content",view:e},slot:"content"})})),1)},i=[],r=a("5af4"),n=a("dac8"),l=a("a328"),o={components:{ElChart:n["default"],Pannel:r["default"]},extends:l["default"],props:["view"]},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},ed08:function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"f",(function(){return p}));a("55dd"),a("3b2b"),a("4917"),a("4f7f"),a("5df3"),a("1c4c"),a("28a5"),a("ac6a"),a("456d"),a("a481"),a("6b54");var s=a("53ca");function i(e,t){if(0===arguments.length)return null;var a,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(s["a"])(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var r={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},n=i.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=r[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return n}function r(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var a=new Date(e),s=Date.now(),r=(s-a)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":t?i(e,t):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function n(e,t,a){var s,i,r,n,l,o=function o(){var p=+new Date-n;p<t&&p>0?s=setTimeout(o,t-p):(s=null,a||(l=e.apply(r,i),s||(r=i=null)))};return function(){for(var i=arguments.length,p=new Array(i),m=0;m<i;m++)p[m]=arguments[m];r=this,n=+new Date;var c=a&&!s;return s||(s=setTimeout(o,t)),c&&(l=e.apply(r,p),r=p=null),l}}function l(e,t,s,i){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var r=[],n=[],l=[];for(var p in e)r.push(e[p].tHeader),n.push(o(e[p].filterVal,e[p].tableDatas)),l.push(e[p].sheetName);a.export_json_to_excel2({header:r,data:n,sheetname:l,filename:t,autoWidth:s,bookType:i})}))}function o(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?i(t[e]):t[e]}))}))}function p(e,t){for(var a=[],s=t,i=e.prop,r=e.order,n=0;n<s.length;n++)s[n][i]==parseFloat(s[n][i])&&(s[n][i]=parseFloat(s[n][i]));null!==r?("descending"===r?(s=s.sort((function(e,t){return t[i]-e[i]})),s.reverse(),a.forEach((function(e){s.push(e)})),s.reverse()):(s=s.sort((function(e,t){return e[i]-t[i]})),a.forEach((function(e){s.push(e)}))),console.log(s,"tempTableData"),Object.assign([],s)):Object.assign([],t)}},ed87:function(e,t,a){"use strict";a("4994")},eddc:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("\n 新增\n ")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"菜单名称","header-align":"center",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e._f("menutypeFilter")(t.row.menutype),size:"small"}},[a("span",[e._v(e._s(t.row.name))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"140px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.title))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"路径",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.path))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"组件","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.component))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"图标",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.icon))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"重定向",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.redirect))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("\n 编辑\n ")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"上级菜单",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",data:e.parent,"default-props":e.defaultProps,clearable:"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),e._v(" "),a("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.deptform.name,callback:function(t){e.$set(e.deptform,"name",t)},expression:"deptform.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"类型",prop:"menutype"}},[a("el-radio-group",{ref:"menutype",on:{change:e.menutypechange},model:{value:e.deptform.menutype,callback:function(t){e.$set(e.deptform,"menutype",t)},expression:"deptform.menutype"}},[a("el-radio",{attrs:{label:"menu"}},[e._v("菜单")]),e._v(" "),a("el-radio",{attrs:{label:"button"}},[e._v("按钮")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{ref:"title",model:{value:e.deptform.title,callback:function(t){e.$set(e.deptform,"title",t)},expression:"deptform.title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"路径",prop:"path"}},[a("el-input",{ref:"path",model:{value:e.deptform.path,callback:function(t){e.$set(e.deptform,"path",t)},expression:"deptform.path"}})],1),e._v(" "),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"组件",prop:"component"}},[a("el-input",{ref:"component",model:{value:e.deptform.component,callback:function(t){e.$set(e.deptform,"component",t)},expression:"deptform.component"}})],1):e._e(),e._v(" "),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"图标",prop:"icon"}},[a("el-input",{ref:"icon",model:{value:e.deptform.icon,callback:function(t){e.$set(e.deptform,"icon",t)},expression:"deptform.icon"}})],1):e._e(),e._v(" "),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"重定向",prop:"redirect"}},[a("el-input",{ref:"redirect",model:{value:e.deptform.redirect,callback:function(t){e.$set(e.deptform,"redirect",t)},expression:"deptform.redirect"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("\n 确认新增\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("\n 确认\n ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("\n 关闭\n ")])],1)],1)],1)])},i=[],r=(a("55dd"),a("b85c")),n=(a("7f7f"),a("3de8")),l=a("6724"),o=a("61f7"),p=a("2934"),m=a("5c96"),c=a("ed08"),d={name:"Menu",components:{TreeSelect:n["a"]},directives:{waves:l["a"]},filters:{menutypeFilter:function(e){var t={menu:"",button:"warning"};return t[e]}},data:function(){return{disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parent:[],parentmenu:[],parentButton:[],listLoading:!0,requestParam:{name:"createdept",params:[]},deptform:{id:"",name:"",title:"",path:"",component:"",icon:"",redirect:"",sort:"",parnetid:"",menutype:"",enable:""},get_table_dataParm:{name:"getMenuAndButtonRecu"},getRecuListParm:{name:"getMenuListRecu"},getRecuListBParm:{name:"getMenuListBRecu",idname:"id",parammaps:{id:-2}},rules:{name:[{type:"string",required:!0,message:"菜单名称必填",trigger:"change"}],title:[{type:"string",required:!0,message:"菜单标题必填",trigger:"change"}],path:[{type:"string",required:!0,message:"路径必填",trigger:"change"}],component:[{type:"string",required:!0,message:"组件必填",trigger:"change"}],sort:[{validator:o["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"title"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.get_table_data()},methods:{tableSort:function(e){Object(c["f"])(e,this.list)},popoverHide:function(e,t){this.deptform.parentid=e},menutypechange:function(){"menu"===this.deptform.menutype?this.parent=this.parentmenu:this.parent=this.parentButton},get_table_data:function(){var e=this;this.listLoading=!0,Object(p["e"])(this.get_table_dataParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable),"首页"==t.data.list[a].name&&t.data.list.splice(a,1);e.list=Object(p["E"])(t.data.list,"id","parentid","children"),console.log(e.list,"-----------------")}e.get_select_list(),setTimeout((function(){e.listLoading=!1}),500)}))},get_select_list:function(){var e=this;Object(p["e"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.parentmenu=Object(p["E"])(t.data.list,"id","parentid","children"))}))},refreshDownList:function(){var e,t=Object(r["a"])(this.parentmenu);try{for(t.s();!(e=t.n()).done;){var a=e.value;this.parent=[],("noredirect"===a.redirect&&"menu"===this.deptform.menutype||"button"===this.deptform.menutype)&&this.parent.push({id:a.id,title:a.title,parentid:a.parentid})}}catch(s){t.e(s)}finally{t.f()}},resetRequestParam:function(){this.deptform.id="",this.deptform.parentid="-1",this.deptform.name="",this.deptform.title="",this.deptform.path="",this.deptform.component="Layout",this.deptform.icon="",this.deptform.redirect="",this.deptform.sort="0",this.deptform.menutype="",this.deptform.enable="1"},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parent=this.parentmenu,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.name.focus()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createMenu",e.requestParam.params=[],""===e.deptform.parentid&&(e.deptform.parentid="-1"),e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,Object(p["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createMenu",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,Object(p["k"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["name"].focus()})),e.get_table_data(),e.requestParam={name:"createMenu",params:[]},e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},form_edit:function(e){var t=this;this.defaultCheckedKeys=[e.parentid],this.deptform.parentid=e.parentid,this.deptform.name=e.name,this.deptform.title=e.title,this.deptform.path=e.path,this.deptform.component=e.component,this.deptform.icon=e.icon,this.deptform.redirect=e.redirect,this.deptform.sort=e.sort,this.deptform.id=e.id,this.deptform.menutype=e.menutype,this.deptform.enable=e.enable,this.dialogStatus="update",this.menutypechange(),this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["name"].focus()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateMenu",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,e.requestParam.params[10]=e.deptform.id,console.log(e.requestParam),Object(p["k"])(e.requestParam).then((function(){e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateMenu",this.requestParam.params=[],this.requestParam.params[0]=t.parentid,this.requestParam.params[1]=t.name,this.requestParam.params[2]=t.title,this.requestParam.params[3]=t.path,this.requestParam.params[4]=t.component,this.requestParam.params[5]=t.icon,this.requestParam.params[6]=t.redirect,this.requestParam.params[7]=t.sort,this.requestParam.params[8]=t.menutype,this.requestParam.params[9]=t.enable,this.requestParam.params[10]=t.id,Object(p["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;m["MessageBox"].confirm("菜单名称:"+e.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMenu",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(p["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},u=d,h=a("2877"),g=Object(h["a"])(u,s,i,!1,null,null,null);t["default"]=g.exports},ee1f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("pannel",{staticClass:"el-main"},[a("ve-form",{attrs:{slot:"content",view:e.view,value:e.value},slot:"content"})],1)},i=[],r=a("5af4"),n=a("c1ca"),l=a("a328"),o={components:{Pannel:r["default"],VeForm:n["default"]},extends:l["default"],data:function(){return{value:{}}},computed:{},methods:{}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,"5ccf904e",null);t["default"]=c.exports},ee30:function(e,t,a){},ee40:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-保养",use:"icon-保养-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-保养"><defs><style type="text/css"></style></defs><path d="M300.568381 625.127619h156.720762V568.56381H300.568381v56.515047zM472.015238 362.447238H303.494095v-19.797333a596.016762 596.016762 0 0 1 168.472381 19.797333z m168.423619 131.31581H300.568381V437.296762h333.970286c1.462857 1.414095 2.925714 1.414095 4.388571 2.82819v53.638096h1.462857z" p-id="5864" /><path d="M300.568381 493.763048h339.821714V437.296762H300.568381v56.466286z m2.925714-131.31581h339.821715V305.93219H303.494095v56.515048z" p-id="5865" /><path d="M303.494095 362.447238h339.821715V305.93219H303.494095zM300.568381 493.763048h339.821714V437.296762H300.568381zM300.568381 625.127619h156.720762V568.56381H300.568381zM877.665524 913.212952v-1.414095l-57.148953-63.536762h-43.885714l-19.065905 15.506286-7.314285 42.422857s59.977143 64.950857 64.365714 66.316191c-36.571429 12.726857-76.068571 5.656381-101.034667-22.576762-23.405714-26.819048-26.331429-63.536762-10.24-94.598096l-35.108571-40.96-52.760381-63.585523c-33.645714 8.484571-68.85181-1.414095-90.794667-26.819048-21.942857-25.404952-24.868571-59.294476-11.702857-88.941714v1.414095l55.588572 64.950857 60.074666 1.414095 10.24-57.929143s-58.514286-64.950857-62.902857-66.364952c36.571429-12.678095 76.117333-4.242286 101.034667 23.990857 23.405714 26.819048 24.868571 64.999619 7.314285 97.475048l45.348572 52.224 41.057524 48.030476c33.645714-9.898667 70.314667-1.414095 93.720381 25.404952 23.405714 22.625524 26.331429 56.515048 13.165714 87.576381z" p-id="5866" /><path d="M820.516571 63.049143v635.513905h-58.563047V91.282286h-111.323429v57.880381H592.067048V91.282286H499.760762v57.880381H441.197714V91.282286H337.188571v57.880381H278.625524V91.282286H180.419048v748.495238h440.856381v56.515047H151.210667L121.904762 867.961905V63.049143l29.257143-28.281905h127.463619V5.168762h58.563047v29.696h104.009143V5.12h58.563048v29.696h92.306286V5.12h58.563047v29.696h140.580572z" p-id="5867" /></symbol>'});n.a.add(l);t["default"]=l},ee8e:function(e,t,a){"use strict";a("e8b7")},eecb:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产编号"},model:{value:e.getdataListParm.parammaps.assetNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetNumber",t)},expression:"getdataListParm.parammaps.assetNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"资产名称"},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"设备编号",prop:"id",sortable:"custom",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"财务编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.financeNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备卡片","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetcard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),"已删"!=s.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleModifyStatus(s,"已删")}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"资产编号",prop:"assetNumber"}},[a("el-input",{ref:"assetNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.assetNumber,callback:function(t){e.$set(e.temp,"assetNumber",t)},expression:"temp.assetNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备名称",prop:"equipmentName"}},[a("el-input",{ref:"equipmentName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentName,callback:function(t){e.$set(e.temp,"equipmentName",t)},expression:"temp.equipmentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"状态"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.filterstatusoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"规格",prop:"specification"}},[a("el-input",{ref:"specification",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.specification,callback:function(t){e.$set(e.temp,"specification",t)},expression:"temp.specification"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌",prop:"proId"}},[a("el-input",{ref:"proId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.proId,callback:function(t){e.$set(e.temp,"proId",t)},expression:"temp.proId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用途",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.purpose,callback:function(t){e.$set(e.temp,"purpose",t)},expression:"temp.purpose"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场",prop:"pastureId"}},[a("el-input",{ref:"pastureId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.pastureId,callback:function(t){e.$set(e.temp,"pastureId",t)},expression:"temp.pastureId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[a("el-input",{ref:"departmentId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.departmentId,callback:function(t){e.$set(e.temp,"departmentId",t)},expression:"temp.departmentId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"负责人",prop:"employeeId"}},[a("el-input",{ref:"employeeId",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.employeeId,callback:function(t){e.$set(e.temp,"employeeId",t)},expression:"temp.employeeId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购置日期",prop:"purchaseDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.purchaseDate,callback:function(t){e.$set(e.temp,"purchaseDate",t)},expression:"temp.purchaseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"入场日期",prop:"entranceDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.temp.entranceDate,callback:function(t){e.$set(e.temp,"entranceDate",t)},expression:"temp.entranceDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"牧场设备编号",prop:"equipmentNumber"}},[a("el-input",{ref:"equipmentNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.equipmentNumber,callback:function(t){e.$set(e.temp,"equipmentNumber",t)},expression:"temp.equipmentNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年保养费用",prop:"yearUpkeepCost"}},[a("el-input",{ref:"yearUpkeepCost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearUpkeepCost,callback:function(t){e.$set(e.temp,"yearUpkeepCost",t)},expression:"temp.yearUpkeepCost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年维修费用",prop:"yearMaintainDost"}},[a("el-input",{ref:"yearMaintainDost",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yearMaintainDost,callback:function(t){e.$set(e.temp,"yearMaintainDost",t)},expression:"temp.yearMaintainDost"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"原值",prop:"yuanZhi"}},[a("el-input",{ref:"yuanZhi",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.yuanZhi,callback:function(t){e.$set(e.temp,"yuanZhi",t)},expression:"temp.yuanZhi"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"财务编号",prop:"financeNumber"}},[a("el-input",{ref:"financeNumber",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.financeNumber,callback:function(t){e.$set(e.temp,"financeNumber",t)},expression:"temp.financeNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备类别",prop:"typeName"}},[a("el-input",{ref:"typeName",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.typeName,callback:function(t){e.$set(e.temp,"typeName",t)},expression:"temp.typeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"录入时间",prop:"inputDatetime"}},[a("el-input",{ref:"inputDatetime",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.temp.inputDatetime,callback:function(t){e.$set(e.temp,"inputDatetime",t)},expression:"temp.inputDatetime"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)],1)},i=[],r=a("2934"),n=a("6724"),l=a("333d"),o={name:"Visit",components:{Pagination:l["a"]},directives:{waves:n["a"]},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{assetNumber:"",assetName:"",pastureName:"",status:"正常"}},filterstatusoptions:[{value:"正常1",label:"正常"},{value:"闲置1",label:"闲置"}],temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"发布"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"必填类型",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"必填时间",trigger:"change"}],title:[{required:!0,message:"必填标题",trigger:"blur"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},downloadLoading:!1}},created:function(){this.get_table_data()},methods:{get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),500)}))},form_search:function(){this.getdataListParm.offset=1,this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"发布",type:""}},form_add:function(){var e=this;this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin")}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp)}}))},form_delete:function(e){this.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3});var t=this.list.indexOf(e);this.list.splice(t,1)}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},ef23:function(e,t,a){"use strict";a("091e")},ef67:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-设备概况",use:"icon-设备概况-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备概况"><defs><style type="text/css"></style></defs><path d="M256 232.727h512c12.853 0 23.273-10.42 23.273-23.273S780.854 186.181 768 186.181H256c-12.853 0-23.273 10.42-23.273 23.273 0 12.854 10.42 23.273 23.273 23.273zM349.091 139.636h325.818c12.853 0 23.273-10.42 23.273-23.273s-10.42-23.273-23.273-23.273H349.091c-12.853 0-23.273 10.42-23.273 23.273 0 12.854 10.42 23.273 23.273 23.273zM209.455 325.818h605.091c12.853 0 23.273-10.42 23.273-23.273s-10.419-23.273-23.273-23.273H209.455c-12.853 0-23.273 10.42-23.273 23.273 0 12.854 10.419 23.273 23.273 23.273zM116.364 418.909h791.273c12.853 0 23.272-10.42 23.272-23.273s-10.419-23.273-23.272-23.273H116.364c-12.853 0-23.273 10.42-23.273 23.273 0 12.854 10.42 23.273 23.273 23.273zM945.715 465.455H78.286c-17.53 0-31.74 14.21-31.74 31.74v401.974c0 17.53 14.21 31.74 31.74 31.74h867.429c17.529 0 31.74-14.21 31.74-31.74V497.195c-0.001-17.53-14.211-31.74-31.74-31.74z m-14.806 418.909H93.091V512h837.818v372.364z" p-id="23648" fill="#ffffff" /><path d="M558.546 791.273c51.413 0 93.091-41.678 93.091-93.091s-41.678-93.091-93.091-93.091-93.091 41.678-93.091 93.091 41.678 93.091 93.091 93.091z m0-139.637c25.665 0 46.546 20.88 46.546 46.546s-20.88 46.545-46.546 46.545S512 723.847 512 698.182s20.88-46.546 46.546-46.546zM791.273 791.273c51.413 0 93.091-41.678 93.091-93.091s-41.678-93.091-93.091-93.091-93.091 41.678-93.091 93.091 41.678 93.091 93.091 93.091z m0-139.637c25.665 0 46.545 20.88 46.545 46.546s-20.88 46.545-46.545 46.545-46.545-20.88-46.545-46.545 20.88-46.546 46.545-46.546zM209.455 791.273c12.853 0 23.273-10.42 23.273-23.273V628.364c0-12.853-10.42-23.273-23.273-23.273s-23.273 10.42-23.273 23.273V768c0 12.853 10.419 23.273 23.273 23.273zM349.091 791.273c12.853 0 23.273-10.42 23.273-23.273V628.364c0-12.853-10.419-23.273-23.273-23.273-12.853 0-23.273 10.42-23.273 23.273V768c0 12.853 10.42 23.273 23.273 23.273z" p-id="23649" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},ef85:function(e,t,a){"use strict";a("48e8")},f00c:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"部门",clearable:""},model:{value:e.getdataListParm.parammaps.deptName,callback:function(t){e.$set(e.getdataListParm.parammaps,"deptName",t)},expression:"getdataListParm.parammaps.deptName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"卡号",clearable:""},model:{value:e.getdataListParm.parammaps.cardNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"cardNumber",t)},expression:"getdataListParm.parammaps.cardNumber"}}),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-5px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备编号",clearable:""},model:{value:e.getdataListParm.parammaps.equipmentNumber,callback:function(t){e.$set(e.getdataListParm.parammaps,"equipmentNumber",t)},expression:"getdataListParm.parammaps.equipmentNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.assetName,callback:function(t){e.$set(e.getdataListParm.parammaps,"assetName",t)},expression:"getdataListParm.parammaps.assetName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"加油工",clearable:""},model:{value:e.getdataListParm.parammaps.employName,callback:function(t){e.$set(e.getdataListParm.parammaps,"employName",t)},expression:"getdataListParm.parammaps.employName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"加油工班",clearable:""},model:{value:e.getdataListParm.parammaps.oilClass,callback:function(t){e.$set(e.getdataListParm.parammaps,"oilClass",t)},expression:"getdataListParm.parammaps.oilClass"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[e.isDieselAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),e.isDieselExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("导出")]):e._e(),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isRetreatImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"},on:{click:e.form_search}},[e._v("导入")]):e._e()],1),e._v(" "),e.isDieselExport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("数据导出")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-download"},on:{click:e.form_delete}},[e._v("删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"交易时间",sortable:"",prop:"selTime",width:"90px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"车号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"加油工班",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.oilClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"加油工",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡号",width:"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cardNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡类型",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cardType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"本次加油量(升)",sortable:"",prop:"oilAmount",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.oilAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"本次消费金额(元)",sortable:"",prop:"nowPrice",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.nowPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isDieselModify?a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleDieselUpdate(s)}}},[e._v("编辑")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"temp",attrs:{rules:e.rules,model:e.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"油卡编号",prop:"cardNumber"}},[a("el-autocomplete",{ref:"cardNumber",staticClass:"inline-input",attrs:{"value-key":"cardNumber","fetch-suggestions":e.formCardSearch,placeholder:"请输入内容",disabled:"update"===e.dialogStatus},on:{select:e.handleformNameSelect,blur:e.blurformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.cardCode))])]}}]),model:{value:e.temp.cardNumber,callback:function(t){e.$set(e.temp,"cardNumber",t)},expression:"temp.cardNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价:",prop:"price"}},[a("el-input",{ref:"price",model:{value:e.temp.price,callback:function(t){e.$set(e.temp,"price",t)},expression:"temp.price"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"油量(L):",prop:"oilAmount"}},[a("el-input",{ref:"oilAmount",model:{value:e.temp.oilAmount,callback:function(t){e.$set(e.temp,"oilAmount",t)},expression:"temp.oilAmount"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"assetName"}},[a("el-autocomplete",{ref:"assetName",staticClass:"inline-input",attrs:{"value-key":"assetName","fetch-suggestions":e.formNameSearch,placeholder:"",disabled:""},on:{select:e.handleformNameSelect},model:{value:e.temp.assetName,callback:function(t){e.$set(e.temp,"assetName",t)},expression:"temp.assetName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场设备编号:",prop:"eqCode"}},[a("el-autocomplete",{ref:"eqCode",staticClass:"inline-input",attrs:{"value-key":"eqCode","fetch-suggestions":e.formNumberSearch,placeholder:"",disabled:""},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.assetNumber))])]}}]),model:{value:e.temp.eqCode,callback:function(t){e.$set(e.temp,"eqCode",t)},expression:"temp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.temp.pastureName,callback:function(t){e.$set(e.temp,"pastureName",t)},expression:"temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门",prop:"deptName"}},[a("el-input",{ref:"deptName",attrs:{disabled:""},model:{value:e.temp.deptName,callback:function(t){e.$set(e.temp,"deptName",t)},expression:"temp.deptName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"加油人:",prop:"employeId"}},[a("el-input",{ref:"employeId",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.empId,callback:function(t){e.$set(e.temp,"empId",t)},expression:"temp.empId"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"inputId"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"负责人",disabled:"update"===e.dialogStatus},model:{value:e.temp.inputId,callback:function(t){e.$set(e.temp,"inputId",t)},expression:"temp.inputId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"加油工班次:",prop:"oilClass"}},[a("el-input",{ref:"oilClass",attrs:{disabled:"update"===e.dialogStatus},model:{value:e.temp.oilClass,callback:function(t){e.$set(e.temp,"oilClass",t)},expression:"temp.oilClass"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"交易时间:",prop:"selTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"交易时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"update"===e.dialogStatus},model:{value:e.temp.selTime,callback:function(t){e.$set(e.temp,"selTime",t)},expression:"temp.selTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.temp.note,callback:function(t){e.$set(e.temp,"note",t)},expression:"temp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{disabled:e.isokDisable,type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("保存并新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("取消并关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDosageRecord,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormDosageRecord=t}}},[a("div",{staticClass:"dosageRecord"},[a("div",{staticStyle:{position:"absolute",top:"20px",left:"100px",font:"18px/24px ''",color:"#303133"}},[a("span",{staticStyle:{margin:"0 10px"}},[e._v("表名称:"+e._s(e.dosageRecordTemp.formName))]),e._v(" "),a("span",[e._v("表编号:"+e._s(e.dosageRecordTemp.formNumber))])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingDosageRecord,expression:"listLoadingDosageRecord"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listDosageRecord,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNumDosageRecord-1)*e.pageSizeDosageRecord+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上次值",sortable:"",prop:"lastAmount","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"本次值",sortable:"",prop:"endAmount","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.endAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用量",sortable:"",prop:"waterConsumption","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.waterConsumption))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价",sortable:"",prop:"sumPrice",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录人",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"记录日期","min-width":"110px",align:"center",sortable:"",prop:"date"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDosageRecord>=0,expression:"totalDosageRecord>=0"}],attrs:{total:e.totalDosageRecord,page:e.getDosageRecordListParm.offset,limit:e.getDosageRecordListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getDosageRecordListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getDosageRecordListParm,"pagecount",t)},pagination:e.getDosageRecordList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormDosageRecord=!1}}},[e._v("关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormDelete,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormDelete=t}}},[a("el-form",{ref:"deleteTemp",attrs:{rules:e.rules,model:e.deleteTemp,"label-position":"right","label-width":"190px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"请选择要删除数据的日期:",prop:"startTime"}},[a("el-date-picker",{ref:"startTime",staticStyle:{width:"100%px"},attrs:{clearable:!1,type:"date",placeholder:"日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.deleteTemp.startTime,callback:function(t){e.$set(e.deleteTemp,"startTime",t)},expression:"deleteTemp.startTime"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.deleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormDelete=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("5c96"),m=a("5f87"),c=a("a78e"),d=a.n(c);a("0fd4");var u={name:"Diesel",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{isokDisable:!1,isDieselUpdate:[],isDieselDel:[],isDieselAdd:[],isDieselExport:[],isDieselModify:[],isRetreatImport:[],isRetreatMuban:[],formNumberSearchList:[],formNameSearchList:[],tableKey:0,list:null,total:0,listLoading:!0,requestParam:{name:"insertDiesel",offset:0,pagecount:0,parammaps:{}},postDataPramas:{},getdataListParm:{name:"getDieselList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{selTime:"",pastureName:d.a.get("pasturename"),departName:""}},getDictByName:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["水表类型"]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:d.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}}],getDepartParam:{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:d.a.get("pastureid")}},requestFilterParams:{name:"getWaterList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},temp:{selTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),oilClass:"",cardNumber:"",price:"",empId:"",inputId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid,oilAmount:"",nowPrice:"",note:"",eqId:"",eqCode:"",oilcardId:""},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增",DosageRecord:"用量记录",delete:"删除"},dialogFormDosageRecord:!1,totalDosageRecord:0,listDosageRecord:[],listLoadingDosageRecord:!1,getDosageRecordListParm:{name:"getDieselHistory",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},dosageRecordTemp:{},rules:{cardNumber:[{required:!0,message:"必填",trigger:"blur"}],price:[{required:!0,message:"必填",trigger:"blur"}],oilAmount:[{required:!0,message:"必填",trigger:"blur"}],endAmount:[{type:"number",required:!0,validator:function(t,a,s){console.log(t,a,s),a||s(new Error("不能为空")),a<0?s(new Error("必须大于0")):a<e.temp.aAmount&&s(new Error("必须大于上次值")),setTimeout((function(){var e=/^\d+$/,t=e.test(a);t?s():s(new Error("请输入整数"))}),0)},trigger:"blur"}],equipmentName:[{required:!0,message:"必填",trigger:"blur"}],startTime:[{required:!0,message:"必填",trigger:"blur"}]},MeasureListbyfilter:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],isPercentage:!1,percentage:1,dialogFormDelete:!1,deleteTemp:{}}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"importDiesel",importParams:"牧场,油卡编号,设备名称,设备编号,加油日期,加油量(L),单价,录入人,加油人,加油工班,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:d.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_select_list(),this.get_table_data()},methods:{tableSort1:function(e){Object(l["f"])(e,this.list)},tableSort2:function(e){Object(l["f"])(e,this.listDosageRecord)},get_auto_buttons:function(){var e="cost:diesel:add",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isDieselAdd=t;var a="cost:diesel:muban",s=Object(r["v"])(this.$store.state.user.buttons,a);this.isRetreatMuban=s;var i="cost:diesel:export",n=Object(r["v"])(this.$store.state.user.buttons,i);this.isDieselExport=n;var l="cost:diesel:import",o=Object(r["v"])(this.$store.state.user.buttons,l);this.isRetreatImport=o;var p="cost:diesel:modify",m=Object(r["v"])(this.$store.state.user.buttons,p);this.isDieselModify=m;var c="cost:diesel:update",d=Object(r["v"])(this.$store.state.user.buttons,c);this.isDieselUpdate=d;var u="cost:diesel:del",h=Object(r["v"])(this.$store.state.user.buttons,u);this.isDieselDel=h},isIntegerZero_:function(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,s=e.test(t);s?a():a(new Error("请输入整数"))}),0)},formNumberSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetMainOil",this.requestFilterParams.parammaps["assetNumber"]=e,this.requestFilterParams.parammaps["pastureId"]=d.a.get("pastureid"),this.requestFilterParams.parammaps["assetName"]="",this.requestFilterParams.parammaps["cardCode"]="",Object(r["e"])(this.requestFilterParams).then((function(s){a.formNumberSearchList=s.data.list;var i=e?a.formNumberSearchList.filter(a.createFilter(e)):a.formNumberSearchList;t(i)}))},createFilter:function(e){return function(t){return t.assetNumber.toLowerCase().indexOf(e.toLowerCase())>=0}},formNameSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetMainOil",this.requestFilterParams.parammaps["assetNumber"]="",this.requestFilterParams.parammaps["pastureId"]=d.a.get("pastureid"),this.requestFilterParams.parammaps["assetName"]=e,this.requestFilterParams.parammaps["cardCode"]="",Object(r["e"])(this.requestFilterParams).then((function(s){a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},formCardSearch:function(e,t){var a=this;this.requestFilterParams.name="findAssetMainOil",this.requestFilterParams.parammaps["assetNumber"]="",this.requestFilterParams.parammaps["assetName"]="",this.requestFilterParams.parammaps["cardCode"]=e,this.requestFilterParams.parammaps["pastureId"]=d.a.get("pastureid"),Object(r["e"])(this.requestFilterParams).then((function(s){null===s.data.list?a.formNameSearchList=[]:a.formNameSearchList=s.data.list;var i=e?a.formNameSearchList.filter(a.createFilterName(e)):a.formNameSearchList;t(i)}))},createFilterName:function(e){return function(t){return t.cardCode.toLowerCase().indexOf(e.toLowerCase())>=0}},handleformNameSelect:function(e){this.temp.assetName=e.assetName,this.temp.cardNumber=e.cardCode,this.temp.eqId=e.eqId,this.temp.eqCode=e.eqCode,this.temp.oilcardId=e.oilcardId,this.temp.deptName=e.deptName,this.temp.departmentId=e.deptId,this.temp.pastureName=e.pastureName,this.temp.price=e.price},blurformNameSelect:function(e){this.temp.assetName="",this.temp.cardNumber="",this.temp.eqId="",this.temp.eqCode="",this.temp.oilcardId="",this.temp.deptName="",this.temp.pastureName="",this.temp.price=""},handleDownload:function(){var e=this;this.$alert("油卡正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="getDieselList",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.startTime=this.getdataListParm.parammaps.startTime,this.requestParam.parammaps.stopTime=this.getdataListParm.parammaps.stopTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","部门","交易时间","车号","加油工班","加油工","卡号","卡类型","本次加油量(升)","本次消费金额(元)","备注"],r=["pastureName","departName","selTime","assetNumber","oilClass","empId","cardNumber","cardType","oilAmount","nowPrice","note"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"柴油用量",autoWidth:!0,bookType:"xlsx"})}))}))}))},handleDownloadTemp:function(){var e=this;this.$alert("油卡正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="meteringOutfitDiesel",this.requestParam.parammaps.pastureName=this.getdataListParm.parammaps.pastureName,this.requestParam.parammaps.departName=this.getdataListParm.parammaps.departName,this.requestParam.parammaps.selTime=this.getdataListParm.parammaps.selTime,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["编号","牧场","油卡编号","设备名称","设备编号","加油日期","加油量(L)","单价","录入人","加油人","加油工班","备注"],r=["编号","牧场","油卡编号","设备名称","设备编号","加油日期","加油量(L)","单价","录入人","加油人","加油工班","备注"],n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"柴油",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<2;return t||this.$message.error("上传文件大小不能超过 2MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["编号","牧场","油卡编号","设备名称","设备编号","加油日期","加油量(L)","单价","录入人","加油人","加油工班","备注","错误信息"],r=["编号","牧场","油卡编号","设备名称","设备编号","加油日期","加油量(L)","单价","录入人","加油人","加油工班","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:s.requestParam.parammaps.formType,autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){null==t.data.list?e.list=[]:(e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total)),setTimeout((function(){e.listLoading=!1}),100)}))},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.getDictByName=t.data.getDictByName.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.deptName="",this.getDepartDownList()},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,null==this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),""!==this.getdataListParm.parammaps.inputDatetime&&null!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=Object(l["e"])(this.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.getdataListParm.parammaps.stopTime=Object(l["e"])(this.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.getdataListParm.parammaps.inputDatetime="",this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.get_table_data()},handleModifyStatus:function(e,t){this.$message({message:"操作成功",type:"success"}),e.status=t},form_reset:function(){this.temp.cardNumber="",this.temp.price="",this.temp.oilAmount="",this.temp.assetName="",this.temp.eqCode="",this.temp.pastureName="",this.temp.deptName="",this.temp.oilClass="",this.temp.selTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.note=""},form_add:function(){var e=this;console.log(this.temp.DATE),this.form_reset(),this.dialogStatus="create",this.dialogFormVisible=!0,this.temp.empId="",this.temp.departmentId="",this.temp.pastureId=this.$store.state.user.pastureid,this.$nextTick((function(){e.$refs["temp"].clearValidate()}))},add_dialog_save:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertDiesel",type:"e",parammaps:{pastureId:e.temp.pastureId,selTime:e.temp.selTime,oilClass:e.temp.oilClass,oilAmount:e.temp.oilAmount,eqId:e.temp.eqId,eqCode:e.temp.eqCode,departmentId:e.temp.departmentId,note:e.temp.note,nowPrice:e.temp.price*e.temp.oilAmount,oilcardId:e.temp.oilcardId,cardNumber:e.temp.cardNumber,price:e.temp.price,empId:e.temp.empId,inputId:e.temp.inputId}},e.postDataPramas.data[1]={name:"updateOilCardExecData",type:"e",parammaps:{id:e.temp.oilcardId,nowPrice:e.temp.price*e.temp.oilAmount}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},add_dialog_save_again:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertDiesel",type:"e",parammaps:{pastureId:e.temp.pastureId,selTime:e.temp.selTime,oilClass:e.temp.oilClass,oilAmount:e.temp.oilAmount,eqId:e.temp.eqId,eqCode:e.temp.eqCode,departmentId:e.temp.departmentId,note:e.temp.note,nowPrice:e.temp.price*e.temp.oilAmount,oilcardId:e.temp.oilcardId,cardNumber:e.temp.cardNumber,price:e.temp.price,empId:e.temp.empId,inputId:e.temp.inputId}},e.postDataPramas.data[1]={name:"updateOilCardExecData",type:"e",parammaps:{id:e.temp.oilcardId,nowPrice:e.temp.price*e.temp.oilAmount}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"!==t.msg?(e.form_reset(),e.$nextTick((function(){e.$refs["temp"].clearValidate()})),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},form_edit:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateDieselExecData",type:"e",parammaps:{id:e.temp.id,oilAmount:e.temp.oilAmount,note:e.temp.note,nowPrice:e.temp.price*e.temp.oilAmount,price:e.temp.price}},e.postDataPramas.data[1]={name:"updateOilCardLAExecData",type:"e",parammaps:{id:e.temp.oilcardId,nowPrice:e.temp.price*e.temp.oilAmount}},Object(r["c"])(e.postDataPramas).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},handleDieselUpdate:function(e){var t=this;this.temp=Object.assign({},e),this.temp.eqCode=this.temp.assetNumber,this.temp.deptName=this.temp.departName,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["temp"].clearValidate()}))},handleDieselDel:function(e){var t=this;p["MessageBox"].confirm("是否确认删除此条加油信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteDiesel",t.requestParam.parammaps={},t.requestParam.parammaps["id"]=e.id,Object(r["k"])(t.requestParam).then((function(){t.get_table_data(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleDosageRecord:function(e){this.dialogStatus="DosageRecord",this.dialogFormDosageRecord=!0,this.dosageRecordTemp=Object(e,{}),this.getDosageRecordList()},form_delete:function(){this.deleteTemp={},this.dialogStatus="delete",this.dialogFormDelete=!0},deleteData:function(){var e=this;this.$refs["deleteTemp"].validate((function(t){t&&(e.requestParam.name="deletedatastem",e.requestParam.parammaps={},e.requestParam.parammaps.pastureName=e.getdataListParm.parammaps.pastureName,e.requestParam.parammaps.codeType=3,e.requestParam.parammaps.startTime=e.deleteTemp.startTime,e.requestParam.parammaps.stopTime=e.deleteTemp.startTime,Object(r["k"])(e.requestParam).then((function(t){"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.dialogFormDelete=!1,e.get_table_data())})))}))},getDosageRecordList:function(){var e=this;this.listLoadingDosageRecord=!0,this.getDosageRecordListParm.parammaps.id=this.dosageRecordTemp.oilcardId,Object(r["e"])(this.getDosageRecordListParm).then((function(t){e.listDosageRecord=t.data.list,e.pageNumDosageRecord=t.data.pageNum,e.pageSizeDosageRecord=t.data.pageSize,t.data.total&&(e.totalDosageRecord=t.data.total),setTimeout((function(){e.listLoadingDosageRecord=!1}),100)}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},f0bb:function(e,t,a){},f0c2:function(e,t,a){"use strict";a("c964")},f11e:function(e,t,a){},f163:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件出库",use:"icon-备件出库-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件出库"><defs><style type="text/css"></style></defs><path d="M153.4 948.1h186.5c18.3 0 33.2-14.6 33.2-32.6s-14.8-32.6-33.2-32.6H155.4V369.5l345.5-232.3 349.9 244.7v162.8c0 18 14.8 32.6 33.2 32.6 18.3 0 33.2-14.6 33.2-32.6v-164c0-20.4-10.1-39.6-27-51.4l-352-246c-21.9-15.3-51.4-15.6-73.6-0.7L117.1 316.3c-17.5 11.8-27.9 31.2-27.9 52.1V885c-0.1 34.8 28.7 63.1 64.2 63.1z" p-id="4845" fill="#ffffff" /><path d="M842.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="4846" fill="#ffffff" /><path d="M735.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="4847" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},f183:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"用户名"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"角色"},model:{value:e.getdataListParm.parammaps.roleName,callback:function(t){e.$set(e.getdataListParm.parammaps,"roleName",t)},expression:"getdataListParm.parammaps.roleName"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isUserAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v(" 新增 ")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"顺序",sortable:"",prop:"sort","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isUserRole?a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleRole(s)}}},[e._v(" 角色 ")]):e._e(),e._v(" "),e.isUserEdit?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v(" 编辑 ")]):e._e(),e._v(" "),e.isUserResetpassword?a("el-button",{staticStyle:{padding:"7px 5px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleResetPassword(s)}}},[e._v(" 重置密码 ")]):e._e(),e._v(" "),"已删"!==s.status&&e.isUserDelete?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"80%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.edit_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(s.empname))]),e._v(" "),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(s.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.dataform.selectedRole,callback:function(t){e.$set(e.dataform,"selectedRole",t)},expression:"dataform.selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"记录仪账号",prop:"deviceId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择"},on:{change:e.change_deviceId},model:{value:e.dataform.deviceId,callback:function(t){e.$set(e.dataform,"deviceId",t)},expression:"dataform.deviceId"}},e._l(e.viedoAccountList,(function(e){return a("el-option",{key:e.deviceId,attrs:{label:e.deviceId,value:e.deviceId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否保养工",prop:"keeper"}},[a("el-switch",{ref:"keeper",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.keeper,callback:function(t){e.$set(e.dataform,"keeper",t)},expression:"dataform.keeper"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否维修工",prop:"maintenancePerson"}},[a("el-switch",{ref:"maintenancePerson",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:e.changeMaintenanceWorker},model:{value:e.dataform.maintenancePerson,callback:function(t){e.$set(e.dataform,"maintenancePerson",t)},expression:"dataform.maintenancePerson"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"维修工类型",prop:"maintenanceTypeId"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{disabled:e.disabled,multiple:"",placeholder:"请选择"},model:{value:e.dataform.maintenanceTypeId,callback:function(t){e.$set(e.dataform,"maintenanceTypeId",t)},expression:"dataform.maintenanceTypeId"}},e._l(e.repairmanTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.typeName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add_dialog_save()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v(" 关闭 ")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap["role"],visible:e.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogRoleVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.rolelist,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateRole()}}},[e._v(" 确认 ")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},i=[],r=(a("ac6a"),a("55dd"),a("3b2b"),a("6724")),n=a("61f7"),l=a("2934"),o=a("333d"),p=a("5c96"),m=a("a78e"),c=a.n(m),d=a("ed08"),u={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParam2:{},repairmanTypeList:[],requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureId:c.a.get("pastureid")}},{name:"getEmpall",offset:0,pagecount:0,params:[]},{name:"getMaintenanceTypeList",offset:0,pagecount:0,params:[]},{name:"getMcsAccounts",offset:0,pagecount:0,params:[]}],requestFilterParams:{returntype:"Map",parammaps:{}},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:[]},dataform:{empname:"",position:"",username:"",fullname:"",empid:"",id:"",sort:"",enable:1,maintenancePerson:1,keeper:1,maintenanceTypeId:"",selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],viedoAccountList:[],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:c.a.get("pastureid"),empCode:"",empname:""}},updateParam:{name:"getMaintenanceTypeByUser",offset:1,pagecount:0,returntype:"list",params:[]},rules:{empid:[{required:!0,message:"用户名必填",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名必填",trigger:"change"}],empname:[{type:"string",required:!0,message:"职工名必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},disabled:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){var e=this;Object(l["e"])({name:"getUserPCButtons",parammaps:{jwt_username:c.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.get_table_data()},methods:{tableSort:function(e){Object(d["f"])(e,this.list)},get_auto_buttons:function(){var e="console:user:add",t=Object(l["v"])(this.$store.state.user.buttons,e);this.isUserAdd=t;var a="console:user:role",s=Object(l["v"])(this.$store.state.user.buttons,a);this.isUserRole=s;var i="console:user:edit",r=Object(l["v"])(this.$store.state.user.buttons,i);this.isUserEdit=r;var n="console:user:resetpassword",o=Object(l["v"])(this.$store.state.user.buttons,n);this.isUserResetpassword=o;var p=Object(l["v"])(this.$store.state.user.buttons,p);this.isUserDelete=p},get_table_data:function(){var e=this;this.listLoading=!0,Object(l["f"])(this.requestParams).then((function(t){e.rolelist=t.data.getRoleall.list,e.emplist=t.data.getEmpall.list,e.repairmanTypeList=t.data.getMaintenanceTypeList.list,e.viedoAccountList=t.data.getMcsAccounts.list,Object(l["e"])(e.getdataListParm).then((function(t){e.list=t.data.list,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),1e3)}))}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},resetRequestParam:function(){this.dataform={username:"",fullname:"",empid:"",id:"",empname:"",position:"",sort:"",enable:1,selectedRole:"",selectedRole2:"",maintenancePerson:1,keeper:1,maintenanceTypeId:""}},form_add:function(){this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisibleAdd=!0},changeMaintenanceWorker:function(e){1==e?this.disabled=!1:(this.disabled=!0,this.dataform.maintenanceTypeId=[])},add_dialog_save:function(){for(var e=this,t=[],a=0;a<this.dataform.selectedRole.length;a++){var s={};this.$set(s,"role_id",this.dataform.selectedRole[a]),t.push(s)}this.dataform.selectedRole2=t;for(var i=[],r=0;r<this.dataform.maintenanceTypeId.length;r++){var n={};this.$set(n,"maintenanceTypeId",this.dataform.maintenanceTypeId[r]),i.push(n)}this.dataform.maintenanceTypeId=i,this.$refs["dataForm"].validate((function(t){if(t){if(e.dataform.selectedRole2.length<=0)return e.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:e.dataform.username,empid:e.dataform.empid,sort:"0",enable:e.dataform.enable,maintenancePerson:e.dataform.maintenancePerson,keeper:e.dataform.keeper}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.dataform.selectedRole2}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},e.postDataPramas.data[2]={name:"insertSpotList1",resultmaps:{list:e.dataform.maintenanceTypeId}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertUserMaintenance",type:"e",parammaps:{user_id:"@createUser.LastInsertId",maintenance_id:"@insertSpotList1.maintenanceTypeId"}},console.log("新增保存发送参数",e.postDataPramas),Object(l["c"])(e.postDataPramas).then((function(t){if(console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}else{e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisibleAdd=!1;var s=c.a.get("pastureid");console.log(pastureid);var i=e.dataform.deviceId,r=e.dataform.uId,n=e.dataform.pwd;console.log("pastureId",s);var o={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:i}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:r,deviceId:i,pwd:n}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",o),Object(l["c"])(o).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.dialogFormVisibleAdd=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}}))}}))},handleRole:function(e){var t=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogRoleVisible=!0,Object(l["e"])(this.requestParam).then((function(e){t.selectedRole=e.data.lists.role_id}))},updateRole:function(){var e=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(l["u"])(this.UpdateDataRelationParam).then((function(){e.dialogRoleVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data()}))},form_edit:function(e){var t=this;console.log(e),1==e.maintenancePerson?(this.updateParam.params[0]=e.id,Object(l["e"])(this.updateParam).then((function(a){console.log(a.data),null!==a.data.lists?t.$set(e,"maintenanceTypeId",a.data.lists.maintenance_id):t.$set(e,"maintenanceTypeId",[]),t.dialogStatus="update",t.dialogFormVisible=!0,t.disabled=!1}))):(this.disabled=!0,this.dialogStatus="update",this.dialogFormVisible=!0,this.$set(e,"maintenanceTypeId",[])),this.dataform=Object.assign(e,{}),this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam={},e.requestParam.name="updateUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,null==e.dataform.maintenancePerson||void 0==e.dataform.maintenancePerson?e.requestParam.params[4]=0:e.requestParam.params[4]=e.dataform.maintenancePerson,e.requestParam.params[5]=e.dataform.keeper,e.requestParam.params[6]=e.dataform.deviceId,e.requestParam.params[7]=e.dataform.id,Object(l["k"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.requestParam2={},e.requestParam2.name="user_mainthenance",e.requestParam2.dataname="user_id",e.requestParam2.datavalue=e.dataform.id,e.requestParam2.valuename="maintenance_id",e.requestParam2.values=e.dataform.maintenanceTypeId,Object(l["u"])(e.requestParam2).then((function(t){if("fail"!==t.msg){var a={common:{returnmap:"0"},data:[{name:"checkDeviceId",type:"v",parammaps:{deviceId:e.dataform.deviceId}},{name:"addDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,uId:e.dataform.uId,deviceId:e.dataform.deviceId,pwd:e.dataform.pwd}},{name:"updateUserDevice",type:"e",parammaps:{empId:e.dataform.empid}}]};console.log("记录仪保存发送参数===========",a),Object(l["c"])(a).then((function(t){if(console.log("记录仪保存结果===========",t),"fail"===t.msg)if("已被绑定"==t.data){var a={name:"updateDeviceInformation",type:"e",parammaps:{empId:e.dataform.empid,deviceId:e.dataform.deviceId}};p["MessageBox"].confirm("该设备已经绑定,是否重新绑定?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])(a).then((function(){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.get_table_data(),e.dialogFormVisible=!1}))}))}else e.get_table_data(),e.dialogFormVisible=!1;else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))}else e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}))):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=t.username,this.requestParam.params[1]=t.empid,this.requestParam.params[2]=t.sort,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=t.id,Object(l["k"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},form_delete:function(e){var t=this;p["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(e,t){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=e,Object(l["e"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNameSelect:function(e){this.dataform.username=e.empCode,this.dataform.empid=e.id,this.$set(this.dataform,"empname",e.empname),this.$set(this.dataform,"position",e.position)},handleResetPassword:function(e){var t=this;p["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["k"])(t.requestParam).then((function(){t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))},change_deviceId:function(e){console.log(e);var t=e,a="",s="",i=this.viedoAccountList;i.forEach((function(e){e.deviceId==t&&(s=e.uId,a=e.pwd)})),this.dataform.uId=s,this.dataform.pwd=a,this.dataform.deviceId=t}}},h=u,g=a("2877"),f=Object(g["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports},f1cd:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-维修类别分析",use:"icon-维修类别分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-维修类别分析"><defs><style type="text/css"></style></defs><path d="M405.333333 32H100.266667C55.466667 34.133333 23.466667 64 21.333333 110.933333v307.2c2.133333 46.933333 36.266667 76.8 83.2 76.8h294.4c51.2 0 83.2-34.133333 83.2-83.2V115.2c2.133333-46.933333-29.866667-81.066667-76.8-83.2zM437.333333 405.333333c0 23.466667-19.2 40.533333-40.533333 40.533334H108.8C85.333333 445.866667 68.266667 426.666667 68.266667 405.333333V121.6c0-23.466667 19.2-40.533333 40.533333-40.533333h285.866667c23.466667 0 40.533333 19.2 40.533333 40.533333V405.333333h2.133333zM398.933333 533.333333H104.533333c-49.066667 0-81.066667 29.866667-83.2 76.8V917.333333c2.133333 46.933333 36.266667 76.8 83.2 76.8h294.4c51.2 0 83.2-42.666667 83.2-83.2V618.666667c2.133333-51.2-32-85.333333-83.2-85.333334z m38.4 373.333334c0 23.466667-19.2 40.533333-40.533333 40.533333H108.8c-23.466667 0-40.533333-19.2-40.533333-40.533333V622.933333c0-23.466667 19.2-40.533333 40.533333-40.533333h285.866667c23.466667 0 40.533333 19.2 40.533333 40.533333v285.866667h2.133333zM921.6 32H616.533333c-46.933333 2.133333-78.933333 36.266667-78.933333 83.2v294.4c0 51.2 34.133333 83.2 83.2 83.2H917.333333c42.666667 0 83.2-34.133333 83.2-83.2V115.2c0-46.933333-32-81.066667-78.933333-83.2zM953.6 405.333333c0 23.466667-19.2 40.533333-40.533333 40.533334H627.2c-23.466667 0-40.533333-19.2-40.533333-40.533334V121.6c0-23.466667 19.2-40.533333 40.533333-40.533333h285.866667c23.466667 0 40.533333 19.2 40.533333 40.533333V405.333333z" fill="#ffffff" p-id="840" /><path d="M998.4 723.2c-2.133333-8.533333-8.533333-19.2-19.2-21.333333-8.533333-2.133333-36.266667-14.933333-44.8-29.866667-8.533333-14.933333-4.266667-44.8-2.133333-53.333333 2.133333-10.666667-2.133333-21.333333-10.666667-27.733334L853.333333 550.4h-2.133333c-8.533333-4.266667-21.333333-2.133333-27.733333 4.266667-6.4 6.4-29.866667 25.6-49.066667 25.6-17.066667 0-40.533333-19.2-49.066667-25.6-6.4-6.4-19.2-8.533333-27.733333-4.266667l-68.266667 40.533333h-2.133333c-8.533333 6.4-12.8 19.2-10.666667 27.733334s6.4 38.4-2.133333 53.333333-36.266667 25.6-44.8 29.866667c-8.533333 2.133333-17.066667 12.8-19.2 21.333333 0 0-4.266667 23.466667-4.266667 42.666667 0 17.066667 4.266667 40.533333 4.266667 42.666666 2.133333 8.533333 8.533333 19.2 19.2 21.333334 8.533333 2.133333 36.266667 14.933333 44.8 29.866666s4.266667 44.8 2.133333 53.333334c-2.133333 10.666667 2.133333 21.333333 10.666667 27.733333l68.266667 40.533333h2.133333c8.533333 4.266667 21.333333 2.133333 27.733333-4.266666s29.866667-25.6 49.066667-25.6c17.066667 0 40.533333 19.2 49.066667 25.6 4.266667 4.266667 10.666667 6.4 19.2 6.4 4.266667 0 6.4 0 10.666666-2.133334l68.266667-40.533333h2.133333c8.533333-6.4 12.8-17.066667 10.666667-27.733333-2.133333-8.533333-6.4-38.4 2.133333-53.333334s36.266667-25.6 44.8-29.866666c8.533333-2.133333 17.066667-12.8 19.2-21.333334 0 0 4.266667-23.466667 4.266667-42.666666-2.133333-19.2-6.4-40.533333-6.4-42.666667z m-44.8 74.666667c-6.4 2.133333-42.666667 14.933333-55.466667 38.4s-6.4 57.6-4.266666 66.133333l-57.6 34.133333c-6.4-6.4-34.133333-29.866667-59.733334-29.866666s-53.333333 23.466667-59.733333 29.866666l-57.6-34.133333c2.133333-8.533333 8.533333-42.666667-4.266667-66.133333s-49.066667-36.266667-55.466666-38.4c0-4.266667-4.266667-21.333333-4.266667-32 0-12.8 2.133333-29.866667 4.266667-32 6.4-2.133333 42.666667-14.933333 55.466666-38.4 12.8-23.466667 6.4-57.6 4.266667-66.133334l57.6-34.133333c6.4 6.4 34.133333 29.866667 59.733333 29.866667s53.333333-23.466667 59.733334-29.866667l57.6 34.133333c-2.133333 8.533333-8.533333 42.666667 4.266666 66.133334 12.8 23.466667 49.066667 36.266667 55.466667 38.4 0 4.266667 4.266667 21.333333 4.266667 32-2.133333 10.666667-4.266667 29.866667-4.266667 32z" fill="#ffffff" p-id="841" /><path d="M774.4 669.866667c-53.333333 0-96 42.666667-96 96s42.666667 96 96 96 96-42.666667 96-96-42.666667-96-96-96z m0 157.866666c-34.133333 0-61.866667-27.733333-61.866667-61.866666s27.733333-61.866667 61.866667-61.866667 61.866667 27.733333 61.866667 61.866667-27.733333 61.866667-61.866667 61.866666z" fill="#ffffff" p-id="842" /></symbol>'});n.a.add(l);t["default"]=l},f235:function(e,t,a){"use strict";a("385f")},f32a:function(e,t,a){},f33f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"工号"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"职位"},model:{value:e.getdataListParm.parammaps.position,callback:function(t){e.$set(e.getdataListParm.parammaps,"position",t)},expression:"getdataListParm.parammaps.position"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),e.isEmpAdd?a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]):e._e(),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"110px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"EAS账户名","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.easName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"工号","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"职位","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.position))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"电话","min-width":"130px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"账号数",sortable:"",prop:"isuser","min-width":"90px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.isuser))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isEmpUpdate?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]):e._e(),e._v(" "),"已删"!=s.status&&e.isEmpDel?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"用户名",prop:"empname"}},[a("el-input",{ref:"empname",model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"EAS账户名",prop:"easName"}},[a("el-input",{ref:"easName",model:{value:e.dataform.easName,callback:function(t){e.$set(e.dataform,"easName",t)},expression:"dataform.easName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门",prop:"deptid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"position"}},[a("el-input",{ref:"position",model:{value:e.dataform.position,callback:function(t){e.$set(e.dataform,"position",t)},expression:"dataform.position"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"工号",prop:"empCode"}},[a("el-input",{ref:"empCode",model:{value:e.dataform.empCode,callback:function(t){e.$set(e.dataform,"empCode",t)},expression:"dataform.empCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"联系方式",prop:"tel"}},[a("el-input",{ref:"tel",model:{value:e.dataform.tel,callback:function(t){e.$set(e.dataform,"tel",t)},expression:"dataform.tel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.dataform.remark,callback:function(t){e.$set(e.dataform,"remark",t)},expression:"dataform.remark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.add_dialog_save_again()}}},[e._v("确认新增")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.get_table_data()}}},[e._v("关闭")])],1)],1)],1)])},i=[],r=(a("3b2b"),a("55dd"),a("ade3")),n=a("3de8"),l=a("6724"),o=a("61f7"),p=a("6041"),m=a("2934"),c=a("333d"),d=a("5c96"),u=a("a78e"),h=a.n(u),g=a("ed08"),f={name:"Emp",components:{Pagination:c["a"],TreeSelect:n["a"]},directives:{waves:l["a"],enterToNext:p["a"]},data:function(){return{isEmpAdd:[],isEmpUpdate:[],isEmpDel:[],disabled:!1,tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],parentDept:[],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,parammaps:[]},dataform:{position:"",empname:"",deptname:"",deptid:"",tel:"",remark:"",id:"",sort:"",parentid:"",enable:"1",empCode:"",easName:""},getDeptParm:{name:"getdeptrecu",idname:"value",params:[h.a.get("pastureid")]},getdataListParm:{name:"getEmpAllL",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{empname:"",empCode:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename")}},getdataListParmSH:{name:"getEmpAllL",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{empname:"",empCode:"",pastureId:h.a.get("pastureid"),pastureName:h.a.get("pasturename")}},rules:Object(r["a"])({empname:[{type:"string",required:!0,message:"必填",trigger:"change"}],empCode:[{type:"string",required:!0,message:"必填",trigger:"blur"}],tel:[{type:"number",required:!0,message:"请输入正确的格式",trigger:"change"}],sort:[{validator:o["b"],trigger:"blur"}]},"tel",[{validator:o["d"],trigger:"blur"}]),findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:h.a.get("pastureid")}}],dialogFormVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"label"},nodeKey:"value",defaultCheckedKeys:[],pageNum:0,pageSize:10}},created:function(){this.get_table_data(),this.get_auto_buttons()},methods:{tableSort:function(e){Object(g["f"])(e,this.list)},get_auto_buttons:function(){var e="console:emp:add",t=Object(m["v"])(this.$store.state.user.buttons,e);this.isEmpAdd=t;var a="console:emp:update",s=Object(m["v"])(this.$store.state.user.buttons,a);this.isEmpUpdate=s;var i="console:emp:del",r=Object(m["v"])(this.$store.state.user.buttons,i);this.isEmpDel=r},popoverHide:function(e,t){console.log(e,t),this.dataform.pastureId=t.pastureId,this.dataform.deptid=e,this.dataform.parentid=t.parentid},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(m["e"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),e.get_select_list(),e.getDeptList(),setTimeout((function(){e.listLoading=!1}),500)}))},get_select_list:function(){var e=this;Object(m["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},form_search:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.get_table_data()},getDeptList:function(){var e=this;Object(m["y"])(this.getDeptParm).then((function(t){e.parentDept=t.data}))},resetRequestParam:function(){this.dataform.easName="",this.dataform.empname="",this.dataform.deptname="",this.dataform.parentid="",this.dataform.deptid="",this.dataform.position="",this.dataform.tel="",this.dataform.remark="",this.dataform.empCode="",this.dataform.id="",this.dataform.sort="0",this.dataform.enable="1",this.defaultCheckedKeys=[]},form_add:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},add_dialog_save:function(){var e=this;console.log(this.dataform),this.$refs["dataForm"].validate((function(t){if(t){if(""==e.dataform.deptid)return e.$message({type:"error",message:"部门必填",duration:2e3}),!1;e.requestParam.name="createEmp",e.requestParam.parammaps={},""==e.dataform.easName&&(e.dataform.easName=e.dataform.empname),e.requestParam.parammaps.easName=e.dataform.easName,e.requestParam.parammaps.empname=e.dataform.empname,e.requestParam.parammaps.deptid=e.dataform.deptid,e.requestParam.parammaps.tel=e.dataform.tel,e.requestParam.parammaps.position=e.dataform.position,e.requestParam.parammaps.remark=e.dataform.remark,e.requestParam.parammaps.sort=e.dataform.sort,e.requestParam.parammaps.enable=e.dataform.enable,e.requestParam.parammaps.pastureId=e.dataform.pastureId,e.requestParam.parammaps.empCode=e.dataform.empCode,Object(m["k"])(e.requestParam).then((function(t){if("fail"!==t.msg)e.get_table_data(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("Duplicate");a.test(t.data)?e.$notify({title:"",message:"此员工已存在",type:"warning",duration:2e3}):Object(m["w"])(t,e.$notify)}}))}}))},add_dialog_save_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){if(""==e.dataform.deptid)return e.$message({type:"error",message:"部门必填",duration:2e3}),!1;e.requestParam.name="createEmp",e.requestParam.parammaps={},""==e.dataform.easName&&(e.dataform.easName=e.dataform.empname),e.requestParam.parammaps.easName=e.dataform.easName,e.requestParam.parammaps.empname=e.dataform.empname,e.requestParam.parammaps.deptid=e.dataform.deptid,e.requestParam.parammaps.tel=e.dataform.tel,e.requestParam.parammaps.position=e.dataform.position,e.requestParam.parammaps.remark=e.dataform.remark,e.requestParam.parammaps.sort=e.dataform.sort,e.requestParam.parammaps.enable=e.dataform.enable,e.requestParam.parammaps.pastureId=e.dataform.pastureId,e.requestParam.parammaps.empCode=e.dataform.empCode,Object(m["k"])(e.requestParam).then((function(t){if("fail"!==t.msg)e.get_table_data(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("Duplicate");a.test(t.data)?e.$notify({title:"",message:"此员工已存在",type:"warning",duration:2e3}):Object(m["w"])(t,e.$notify)}}))}}))},form_edit:function(e){var t=this;console.log(e),this.dataform=Object.assign(e,{}),this.defaultCheckedKeys=[this.dataform.deptid],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},edit_dialog_save:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateEmp",e.requestParam.parammaps={},""!=e.dataform.easName&&void 0!=e.dataform.easName||(e.dataform.easName=e.dataform.empname),e.requestParam.parammaps.easName=e.dataform.easName,e.requestParam.parammaps.empname=e.dataform.empname,e.requestParam.parammaps.deptid=e.dataform.deptid,e.requestParam.parammaps.tel=e.dataform.tel,e.requestParam.parammaps.position=e.dataform.position,e.requestParam.parammaps.remark=e.dataform.remark,e.requestParam.parammaps.sort=e.dataform.sort,e.requestParam.parammaps.enable=e.dataform.enable,e.requestParam.parammaps.pastureId=e.dataform.pastureId,e.requestParam.parammaps.empCode=e.dataform.empCode,e.requestParam.parammaps.id=e.dataform.id,Object(m["k"])(e.requestParam).then((function(){e.get_table_data(),e.resetRequestParam(),e.dialogFormVisible=!1})))}))},handleDownload:function(){var e=this;this.$alert("员工信息正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.getdataListParmSH.parammaps=this.getdataListParm.parammaps,Object(m["d"])(this.getdataListParmSH).then((function(t){e.downLoadList=t.data.list,""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),console.log(e.downLoadList);var a=[{tHeader:["牧场","姓名","部门","职位","电话","工号"],filterVal:["pastureName","empname","deptname","position","tel","empCode"],tableDatas:e.downLoadList,sheetName:"员工信息"}];Object(g["d"])(a,"员工信息",!0,"xlsx")}))},form_delete:function(e){var t=this;d["MessageBox"].confirm("名称:"+e.empname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteEmp",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(m["k"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.get_table_data(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):t.$notify({title:"失败",message:"删除失败-"+e.data,type:"danger",duration:2e3})}))}))}}},b=f,v=a("2877"),y=Object(v["a"])(b,s,i,!1,null,null,null);t["default"]=y.exports},f382:function(e,t,a){},f416:function(e,t,a){},f429:function(e,t,a){},f4c1:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"合同管理",name:"first"}},[e.isContractManagement?a("div",{staticClass:"contractManagement"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"pastureName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"statue",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"providerName",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime1",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime1",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1"}}),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime2",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"审批日期","end-placeholder":"审批日期"},model:{value:e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,callback:function(t){e.$set(e.tab1.contractManagement.getdataListParm.parammaps,"tab1InputDatetime2",t)},expression:"tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter}},[e._v("搜索")]),e._v(" "),a("div",[e.tab1.contractManagement.isContractAdd?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Create}},[e._v("新增")]):e._e(),e._v(" "),a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeContractManagementAll()}},model:{value:e.tab1.contractManagement.radioAll,callback:function(t){e.$set(e.tab1.contractManagement,"radioAll",t)},expression:"tab1.contractManagement.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.contractManagement.listLoading,expression:"tab1.contractManagement.listLoading"}],key:e.tab1.contractManagement.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.contractManagement.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.contractManagement.pageNum-1)*e.tab1.contractManagement.pageSize+1))])]}}],null,!1,1244293581)}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"120px",align:"center",prop:"pastureName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"110px",align:"center",prop:"statued"}}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center",prop:"providerName"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"","min-width":"120px",align:"center",prop:"startTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"","min-width":"120px",align:"center",prop:"stopTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}],null,!1,2232091448)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审批时间",sortable:"","min-width":"120px",align:"center",prop:"SHdateTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.tab1.contractManagement.isContractSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1DetailsSpareParts(s)}}},[e._v("备件明细")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractSee?a("el-button",{staticStyle:{width:"70px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1ChangeRecord(s)}}},[e._v("变更记录")]):e._e(),e._v(" "),!e.tab1.contractManagement.isContractChange||"正常"!=s.statued&&"已过期"!=s.statued?e._e():a("el-button",{attrs:{disabled:18==parseInt(s.pastureId)&&18!==parseInt(e.isGroupAdministrator),type:"warning",size:"mini"},on:{click:function(t){return e.handleTab1Change(s)}}},[e._v("变更")])]}}],null,!1,3555687819)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.contractManagement.total>0,expression:"tab1.contractManagement.total>0"}],attrs:{total:e.tab1.contractManagement.total,page:e.tab1.contractManagement.getdataListParm.offset,limit:e.tab1.contractManagement.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.contractManagement.getdataListParm,"pagecount",t)},pagination:e.getTab1List}})],1):e._e(),e._v(" "),e.isDetailsSpareParts?a("div",{staticClass:"DetailsSpareParts"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("备件明细")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partCode",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"partName",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件规格"},model:{value:e.tab1.detailsSpareParts.getdataListParm.parammaps.specification,callback:function(t){e.$set(e.tab1.detailsSpareParts.getdataListParm.parammaps,"specification",t)},expression:"tab1.detailsSpareParts.getdataListParm.parammaps.specification"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter2}},[e._v("搜索")]),e._v(" "),e.isContractJinyong?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"danger",icon:"el-icon-edit"},on:{click:e.change_no}},[e._v("禁用")]):e._e()],1),e._v(" "),a("div",{staticClass:"filter-container"},[e.tab1.contractManagement.isContractAdd&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Create2}},[e._v("新增")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractChange&&parseInt(e.tab1.detailsSpareParts.detailsList.pastureId)==parseInt(e.isGroupAdministrator)||0==parseInt(e.isEmployeid)?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit",disabled:"终止"==e.tab1.detailsSpareParts.detailsList.statued||"已过期"==e.tab1.detailsSpareParts.detailsList.statued||"新增未通过"==e.tab1.detailsSpareParts.detailsList.statued},on:{click:e.handleTab1Change2}},[e._v("变更")]):e._e(),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab1Export2}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoading,expression:"tab1.detailsSpareParts.listLoading"}],key:e.tab1.detailsSpareParts.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort1,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.detailsSpareParts.pageNum-1)*e.tab1.detailsSpareParts.pageSize+1))])]}}],null,!1,3360292269)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"120px",align:"center",prop:"partCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"120px",align:"center",prop:"partName"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"120px",align:"center",prop:"specification"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center",prop:"brand"}}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"120px",align:"center",prop:"unit"}}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"","min-width":"120px",align:"center",prop:"planAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"","min-width":"120px",align:"center",prop:"price"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"120px",align:"center",prop:"remark"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.detailsSpareParts.total>0,expression:"tab1.detailsSpareParts.total>0"}],attrs:{total:e.tab1.detailsSpareParts.total,page:e.tab1.detailsSpareParts.getdataListParm.offset,limit:e.tab1.detailsSpareParts.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.detailsSpareParts.getdataListParm,"pagecount",t)},pagination:e.getTab1List2}})],1):e._e(),e._v(" "),e.isChangeRecord?a("div",{staticClass:"ChangeRecord"},[a("div",{staticClass:"title",staticStyle:{height:"30px"}},[a("b",{staticStyle:{"font-size":"20px",float:"left"}},[e._v("变更记录")]),e._v(" "),a("a",{staticStyle:{float:"right","font-weight":"600","font-size":"20px"},on:{click:function(t){return e.handleTab1goBack2()}}},[e._v("<返回")])]),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"流水编号"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"contractCode",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"变更类型"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.SHtype,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"SHtype",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.SHtype"}},e._l(e.changeTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.stuteSH,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"stuteSH",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.stuteSH"}},e._l(e.auditStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"tab1InputDatetime3",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3,callback:function(t){e.$set(e.tab1.changeRecord.getdataListParm.parammaps,"tab1InputDatetime3",t)},expression:"tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab1Filter3}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeChangeRecordAll()}},model:{value:e.tab1.changeRecord.radioAll,callback:function(t){e.$set(e.tab1.changeRecord,"radioAll",t)},expression:"tab1.changeRecord.radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-radio-button",{attrs:{label:"待处理"}}),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.changeRecord.listLoading,expression:"tab1.changeRecord.listLoading"}],key:e.tab1.changeRecord.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.pageNum-1)*e.tab1.changeRecord.pageSize+1))])]}}],null,!1,3286316621)}),e._v(" "),a("el-table-column",{attrs:{label:"流水编号","min-width":"120px",align:"center",prop:"contractCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"变更类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.SHtype?a("span",[e._v("新增合同")]):e._e(),e._v(" "),1==t.row.SHtype?a("span",[e._v("新增备件")]):e._e(),e._v(" "),2==t.row.SHtype?a("span",[e._v("变更备件")]):e._e(),e._v(" "),3==t.row.SHtype?a("span",[e._v("合同变更")]):e._e()]}}],null,!1,1395037520)}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"120px",align:"center",prop:"creatorMan"}}),e._v(" "),a("el-table-column",{attrs:{label:"录入时间",sortable:"","min-width":"120px",align:"center",prop:"creatorTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.SHStatus||3==t.row.SHStatus||5==t.row.SHStatus?a("span",[e._v("审核中")]):e._e(),e._v(" "),4==t.row.SHStatus||6==t.row.SHStatus||8==t.row.SHStatus?a("span",[e._v("未通过")]):e._e(),e._v(" "),7==t.row.SHStatus?a("span",[e._v("通过")]):e._e()]}}],null,!1,950457820)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"350px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleTab1See3(s)}}},[e._v("查看")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?e._e():a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Update3(s)}}},[e._v("编辑")]),e._v(" "),e.tab1.changeRecord.isContractExamineZG&&2==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine(s)}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==s.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleTab1Examine3(s)}}},[e._v("审核2")]),e._v(" "),!e.tab1.changeRecord.isContractDelete||4!=s.SHStatus&&6!=s.SHStatus&&8!=s.SHStatus?a("el-button",{staticStyle:{display:"none"},attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")]):a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.handleTab1Delete3(s)}}},[e._v("删除")])]}}],null,!1,2852534092)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.total>0,expression:"tab1.changeRecord.total>0"}],attrs:{total:e.tab1.changeRecord.total,page:e.tab1.changeRecord.getdataListParm.offset,limit:e.tab1.changeRecord.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.getdataListParm,"pagecount",t)},pagination:e.getTab1List3}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"合同明细",name:"second"}},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},model:{value:e.tab2.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"pastureName",t)},expression:"tab2.getdataListParm.parammaps.pastureName"}},e._l(e.findAllPastureList2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"合同编号"},model:{value:e.tab2.getdataListParm.parammaps.contractCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"contractCode",t)},expression:"tab2.getdataListParm.parammaps.contractCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"合同状态"},model:{value:e.tab2.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"statue",t)},expression:"tab2.getdataListParm.parammaps.statue"}},e._l(e.contractStatusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"是否零库存"},model:{value:e.tab2.getdataListParm.parammaps.isZeroStock,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"isZeroStock",t)},expression:"tab2.getdataListParm.parammaps.isZeroStock"}},e._l(e.isZeroInventoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件编号"},model:{value:e.tab2.getdataListParm.parammaps.partCode,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partCode",t)},expression:"tab2.getdataListParm.parammaps.partCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"备件名称"},model:{value:e.tab2.getdataListParm.parammaps.partName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"partName",t)},expression:"tab2.getdataListParm.parammaps.partName"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",clearable:"",placeholder:"供应商"},model:{value:e.tab2.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"providerName",t)},expression:"tab2.getdataListParm.parammaps.providerName"}},e._l(e.findAllProvider,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.tab2.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab2.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab2.getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleTab2Filter}},[e._v("搜索")]),e._v(" "),e.tab1.contractManagement.isContractExport?a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleTab2Export}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.listLoading,expression:"tab2.listLoading"}],key:e.tab2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort2}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab2.pageNum-1)*e.tab2.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同状态","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合同开始日期",sortable:"",prop:"startTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"合同截止日期",sortable:"",prop:"stopTime","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"零库存","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isZeroStock?a("span",[e._v("否")]):e._e(),e._v(" "),1==t.row.isZeroStock?a("span",[e._v("是")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划量",sortable:"",prop:"planAmount","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"单价",sortable:"",prop:"price","min-width":"110px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.creatorMan))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"录入日期",sortable:"",prop:"creatorTime","min-width":"110px",align:"center"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab2.total>0,expression:"tab2.total>0"}],attrs:{total:e.tab2.total,page:e.tab2.getdataListParm.offset,limit:e.tab2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab2.getdataListParm,"pagecount",t)},pagination:e.getTab2List}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.contractManagement.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.contractManagement.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.contractManagement.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{disabled:""},model:{value:e.tab1.contractManagement.create.temp.contractCode,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"contractCode",t)},expression:"tab1.contractManagement.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牧场",disabled:e.disabled},model:{value:e.tab1.contractManagement.create.temp.pastureId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureId",t)},expression:"tab1.contractManagement.create.temp.pastureId"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,"value-key":"name","fetch-suggestions":e.providerSearch,placeholder:"请输入供应商名称或供应商编号"},on:{focus:e.handleFocusProvider,blur:e.handleBlurProvider,select:e.handleSelectProvider},model:{value:e.tab1.contractManagement.create.temp.providerName,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"providerName",t)},expression:"tab1.contractManagement.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.startTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"startTime",t)},expression:"tab1.contractManagement.create.temp.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled,type:"date",clearable:!1,placeholder:"截止日期","picker-options":e.pickerOptions2,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeTime},model:{value:e.tab1.contractManagement.create.temp.stopTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"stopTime",t)},expression:"tab1.contractManagement.create.temp.stopTime"}})],1)],1),e._v(" "),"create"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statue"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statue,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statue",t)},expression:"tab1.contractManagement.create.temp.statue"}},e._l(e.contractStatus2List,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),"change"==e.dialogStatus||"see"==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同状态",disabled:""},model:{value:e.tab1.contractManagement.create.temp.statued,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"statued",t)},expression:"tab1.contractManagement.create.temp.statued"}})],1)],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:"see"===e.dialogStatus||e.tab1.contractManagement.isDisabled||"change"===e.dialogStatus},on:{change:e.changeIsZero},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.contractManagement.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"isZeroStock",t)},expression:"tab1.contractManagement.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorId"}},[a("el-select",{ref:"creatorId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus,placeholder:"录入人"},on:{change:e.changeCreatorMan},model:{value:e.tab1.contractManagement.create.temp.creatorId,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorId",t)},expression:"tab1.contractManagement.create.temp.creatorId"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:"date","picker-options":e.pickerOptions3,placeholder:"录入日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.contractManagement.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"creatorTime",t)},expression:"tab1.contractManagement.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注",disabled:e.tab1.contractManagement.isDisabled||"see"===e.dialogStatus||"change"===e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.remark,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"remark",t)},expression:"tab1.contractManagement.create.temp.remark"}})],1)],1),e._v(" "),"see"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"synchronousPasture"}},[a("el-select",{attrs:{multiple:"","collapse-tags":"",placeholder:"同步牧场",disabled:"18"!==e.isGroupAdministrator},model:{value:e.tab1.contractManagement.create.temp.synchronousPasture,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"synchronousPasture",t)},expression:"tab1.contractManagement.create.temp.synchronousPasture"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"同步牧场:",prop:"pastureName2"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"同步牧场",disabled:"see"==e.dialogStatus},model:{value:e.tab1.contractManagement.create.temp.pastureName2,callback:function(t){e.$set(e.tab1.contractManagement.create.temp,"pastureName2",t)},expression:"tab1.contractManagement.create.temp.pastureName2"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["change"==e.dialogStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.terminationData()}}},[e._v("终止合同")]):e._e(),e._v(" "),"see"!==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.changeData()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.contractManagement.create.dialogFormVisible=!1,e.getTab1List(),e.tab1.contractManagement.create.temp.providerName=""}}},[e._v("取消并关闭")])],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.detailsSpareParts.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.detailsSpareParts.create,"dialogFormVisible",t)}}},[0!==e.tab1.detailsSpareParts.updateList.SHtype&&3!==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"550px"},attrs:{"value-key":"name1","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v(e._s(s.partCode))]),e._v(" \n |  "),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v(" \n |  "),a("b",[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1772232685),model:{value:e.tab1.detailsSpareParts.partCode,callback:function(t){e.$set(e.tab1.detailsSpareParts,"partCode",t)},expression:"tab1.detailsSpareParts.partCode"}})],1)],1)],1)],1),e._v(" "),"tab1create2"==e.dialogStatus?a("div",{staticClass:"filter-container",staticStyle:{float:"right"}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleTab1DownloadTemp2}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{disabled:e.tab1.detailsSpareParts.isDisabledImport,type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1)],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab1.detailsSpareParts.listLoadingAdd,expression:"tab1.detailsSpareParts.listLoadingAdd"}],key:e.tab1.detailsSpareParts.tableKeyAdd,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.detailsSpareParts.listAdd,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"brandName","fetch-suggestions":e.brandSearch,placeholder:"请输入品牌"},on:{focus:function(a){return e.handleFocusBrand(t.row)},blur:function(a){return e.handleBlurBrand(t.row)},select:function(a){e.handleSelectBrand(a,t.row)}},model:{value:t.row.brand,callback:function(a){e.$set(t.row,"brand",a)},expression:"scope.row.brand"}})]}}],null,!1,317411465)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"70px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"planAmount"}},[a("el-input",{ref:"planAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.planAmount,callback:function(a){e.$set(t.row,"planAmount",a)},expression:"scope.row.planAmount"}})],1)],1)]}}],null,!1,2115901298)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}})]}}],null,!1,875317540)}),e._v(" "),a("el-table-column",{attrs:{label:"税码","min-width":"80px",align:"center",valign:"middle"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{model:{value:t.row.taxcode,callback:function(a){e.$set(t.row,"taxcode",a)},expression:"scope.row.taxcode"}})]}}],null,!1,2208511593)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:"",maxlength:"100","show-word-limit":""},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}],null,!1,892001844)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100px","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,2490411768)})],1)],1):e._e(),e._v(" "),0==e.tab1.detailsSpareParts.updateList.SHtype||3==e.tab1.detailsSpareParts.updateList.SHtype?a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp2",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.detailsSpareParts.create.temp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{placeholder:"牧场",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.pastureName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"pastureName",t)},expression:"tab1.detailsSpareParts.create.temp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("el-input",{ref:"contractCode",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.contractCode,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"contractCode",t)},expression:"tab1.detailsSpareParts.create.temp.contractCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("el-input",{ref:"providerName",attrs:{placeholder:"合同编号",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.providerName,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"providerName",t)},expression:"tab1.detailsSpareParts.create.temp.providerName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"开始日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.startTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"startTime",t)},expression:"tab1.detailsSpareParts.create.temp.startTime"}})],1)],1),e._v(" "),"tab1Update2"==e.dialogStatus&&0==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.stopTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTime",t)},expression:"tab1.detailsSpareParts.create.temp.stopTime"}})],1)],1):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus&&0!==e.tab1.detailsSpareParts.updateList.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期后:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.detailsSpareParts.create.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.detailsSpareParts.create.temp.isZeroStock,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"isZeroStock",t)},expression:"tab1.detailsSpareParts.create.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("el-input",{ref:"creatorMan",attrs:{placeholder:"录入人",disabled:""},model:{value:e.tab1.detailsSpareParts.create.temp.creatorMan,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorMan",t)},expression:"tab1.detailsSpareParts.create.temp.creatorMan"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3==e.tab1.detailsSpareParts.create.temp.SHtype||"tab1Update2"==e.dialogStatus,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.tab1.detailsSpareParts.create.temp.creatorTime,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"creatorTime",t)},expression:"tab1.detailsSpareParts.create.temp.creatorTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{placeholder:"备注"},model:{value:e.tab1.detailsSpareParts.create.temp.remark,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"remark",t)},expression:"tab1.detailsSpareParts.create.temp.remark"}})],1)],1),e._v(" "),0!==e.tab1.detailsSpareParts.create.temp.SHtype&&"tab1Update2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:3!==e.tab1.detailsSpareParts.create.temp.SHtype,type:"date",placeholder:"截止日期",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},model:{value:e.tab1.detailsSpareParts.create.temp.stopTimeHis,callback:function(t){e.$set(e.tab1.detailsSpareParts.create.temp,"stopTimeHis",t)},expression:"tab1.detailsSpareParts.create.temp.stopTimeHis"}})],1)],1):e._e()],1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},["tab1create2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.add_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1change2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.changeData2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),"tab1Update2"==e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.edit_dialog_save2()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.detailsSpareParts.create.dialogFormVisible=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-see"},[a("div",{staticClass:"app-contentcard"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"128px"}},[0==e.tab1.changeRecord.see.temp.SHtype||3==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureName)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerName"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.providerName)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"开始日期:",prop:"startTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.startTime)+" ")])])],1),e._v(" "),"tab1See2"!==e.dialogStatus?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3!==e.tab1.changeRecord.see.temp.SHtype&&0!==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),"tab1See2"==e.dialogStatus&&0==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"截止日期:",prop:"stopTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTime)+" ")])])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同状态:",prop:"statued"}},[a("span",[e._v(e._s(e.tab1.changeRecord.see.temp.statued))])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"零库存:",prop:"isZeroStock"}},[a("el-radio-group",{attrs:{disabled:""},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[a("el-radio",{attrs:{label:1},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.tab1.changeRecord.see.temp.isZeroStock,callback:function(t){e.$set(e.tab1.changeRecord.see.temp,"isZeroStock",t)},expression:"tab1.changeRecord.see.temp.isZeroStock"}},[e._v("否")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.remark)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"共享牧场:",prop:"pastureNamesOld"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesOld)+" ")])])],1),e._v(" "),3==e.tab1.changeRecord.see.temp.SHtype?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后截止日期:",prop:"stopTimeHis"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.stopTimeHis)+" ")])])],1):e._e()],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"变更后共享牧场:",prop:"pastureNamesNow"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.pastureNamesNow)+" ")])])],1)],1)],1):e._e(),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype||2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"流水编号:",prop:"contractCode"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.contractCode)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入人:",prop:"creatorMan"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorMan)+" ")])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"creatorTime"}},[a("span",[e._v(" "+e._s(e.tab1.changeRecord.see.temp.creatorTime)+" ")])])],1)],1)],1):e._e()]),e._v(" "),1==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),2==e.tab1.changeRecord.see.temp.SHtype?a("div",[a("el-table",{key:e.tab1.changeRecord.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab1.changeRecord.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tab1.changeRecord.see.pageNum-1)*e.tab1.changeRecord.see.pageSize+1))])]}}],null,!1,3657809261)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"备件图片",prop:"specifications",align:"center","min-width":"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[""!==t.row.picpath?a("img",{attrs:{src:t.row.picpath}}):e._e(),e._v(" "),""!==t.row.picpath?a("img",{staticStyle:{height:"100px",width:"100px"},attrs:{slot:"reference",src:t.row.picpath,alt:t.row.srcpath},slot:"reference"}):e._e()])]}}],null,!1,2022675827)}),e._v(" "),a("el-table-column",{attrs:{label:"备件品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandhis))])]}}],null,!1,1279656175)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后品牌","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}],null,!1,805697725)}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}],null,!1,2322589216)}),e._v(" "),a("el-table-column",{attrs:{label:"计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmounthis))])]}}],null,!1,2535967211)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后计划量","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planAmount))])]}}],null,!1,3011298041)}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pricehis))])]}}],null,!1,2997895897)}),e._v(" "),a("el-table-column",{attrs:{label:"变更后单价","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}],null,!1,1691062027)}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!1,186672324)})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab1.changeRecord.see.total>0,expression:"tab1.changeRecord.see.total>0"}],attrs:{total:e.tab1.changeRecord.see.total,page:e.tab1.changeRecord.see.getdataListParm.offset,limit:e.tab1.changeRecord.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab1.changeRecord.see.getdataListParm,"pagecount",t)},pagination:e.getTab1List3See}})],1):e._e(),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.see.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.tab1.changeRecord.see.active,"align-center":"","finish-status":"success"}},e._l(e.tab1.changeRecord.see.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[e.tab1.changeRecord.isContractExamineZG&&2==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine()}}},[e._v("审核1")]),e._v(" "),e.tab1.changeRecord.isContractExamineZX&&5==e.tab1.changeRecord.see.temp.SHStatus?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleTab1Examine3()}}},[e._v("审核2")])],1)],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.tab1.changeRecord.see.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.tab1.changeRecord.examine.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.tab1.changeRecord.examine,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 0 0 5%","line-height":"50px"}},[e._v("请确认审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"50%",margin:"0 auto"},attrs:{rules:e.rules,model:e.tab1.changeRecord.examine.temp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",height:"150px",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeExamineStatue},model:{value:e.tab1.changeRecord.examine.temp.statueSH,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"statueSH",t)},expression:"tab1.changeRecord.examine.temp.statueSH"}},[a("el-radio",{attrs:{label:1,checked:""}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.tab1.changeRecord.examine.isReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入不通过原因"},model:{value:e.tab1.changeRecord.examine.temp.workflowNote,callback:function(t){e.$set(e.tab1.changeRecord.examine.temp,"workflowNote",t)},expression:"tab1.changeRecord.examine.temp.workflowNote"}})],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["tab1examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"tab1examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.tab1.changeRecord.examine.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},i=[],r=(a("6b54"),a("7514"),a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5f87"),d=a("5c96"),u={inject:["reload"],name:"ContractManagement",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){var e=this;return{selectList:[],contractCodese:"",isGroupAdministrator:m.a.get("pastureid"),isEmployeid:m.a.get("employeid"),isPercentage:!1,percentage:1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},buttons:[],activeName:"first",contractStatusList:[{id:"0",name:"正常"},{id:"1",name:"已过期"},{id:"2",name:"终止"},{id:"3",name:"新增未通过"}],contractStatus2List:[{id:"1",name:"正常"},{id:"0",name:"终止"}],auditStatusList:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],changeTypeList:[{id:"0",name:"新增合同"},{id:"1",name:"新增备件"},{id:"2",name:"变更备件"},{id:"3",name:"合同变更"}],isZeroInventoryList:[{id:"0",name:"否"},{id:"1",name:"是"}],findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllPastureList2:[],findAllDepart:[],findAllEmploye:[],findAllCategory:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllPastureForContract",offset:0,pagecount:0,returntype:"Map",parammaps:{id:18}},{name:"findAllDepart",offset:0,pagecount:0,params:[]},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:18}},{name:"findAllCategory",offset:0,pagecount:0,params:[]}],isokDisable:!1,disabled:!0,rules:{},textMap:{create:"新增合同",see:"查看详情",change:"变更合同",tab1create2:"新增备件",tab1change2:"变更备件",tab1examine:"审核",tab1examine2:"审核2",tab1examine3:"审核2",tab1See2:"查看",tab1Update2:"编辑"},dialogStatus:"",isContractManagement:!0,isDetailsSpareParts:!1,isChangeRecord:!1,tab1:{contractManagement:{radioAll:"全部",isContractAdd:[],isContractExport:[],isContractSee:[],isContractChange:[],isDisabled:!1,tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),pastureName:m.a.get("pasturename"),contractCode:"",statue:"",stuteSH:"",providerName:"",tab1InputDatetime1:"",startTime:"",stopTime:"",tab1InputDatetime2:"",SHdateTimeF:"",SHdateTimeE:"",SHnums:2}},getParmCreateNumber:{name:"autoCreatCode",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"HT"}},create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:"",synchronousPasture:[],synchronousPastureList:[]},changeEchoParm:{name:"getBigcontractPId",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{}}}},detailsSpareParts:{tableKey:1,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{specification:"",partName:"",partCode:"",pastureId:"",providerId:"",stopTime:"",flag:"",isZeroStock:"",statue:""}},partCode:"",requestSparePart:{name:"",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{}},detailsList:[],updateList:[],tableKeyAdd:0,listLoadingAdd:!1,listAdd:[],requestBrand:{name:"getBrandByPartCode",page:0,offset:0,pagecount:10,returntype:"Map",parammaps:{}},BrandList:[],create:{dialogFormVisible:!1,temp:{contractCode:"",pastureId:m.a.get("pastureid"),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),activeList:[],active:3,workflowNote:""}},isDisabledImport:!0,clearImportExcelParm:{name:"deletecontract_upload",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}},importExcelParm:{name:"getcontract_uploadlist",page:0,offset:0,pagecount:"",returntype:"Map",parammaps:{user:m.a.get("name")}}},changeRecord:{isContractExamineZG:[],isContractExamineZX:[],isContractDelete:[],isStatueReason:!1,isReason:!1,radioAll:"全部",tableKey:2,listLoading:!1,total:0,list:[],getdataListParm:{name:"providerPactListSH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{loginid:m.a.get("employeid"),contractCode:"",tab1InputDatetime3:"",startTime:"",stopTime:"",SHStatus:"",SHtype:"",pastureId:"",providerId:"",stopTime1:"",flag:"",isZeroStock:"",statue:"",SHnums:2,stuteSH:""}},see:{dialogFormVisible:!1,activeList:[],active:3,temp:{},tableKey:0,listLoading:!1,total:0,list:[],getdataListParm:{name:"getcontratListBybigSH",returntype:"Map",page:0,offset:0,pagecount:10,parammaps:{}}},examine:{dialogFormVisible:!1,temp:{statueSH:1},isReason:!1}}},postDataPramas:{},pickerOptions2:{disabledDate:function(t){return Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<=e.tab1.contractManagement.create.temp.startTime||Object(l["e"])(t.getTime(),"{y}-{m}-{d}")<Object(l["e"])(Date.now(),"{y}-{m}-{d}")}},pickerOptions3:{disabledDate:function(e){return e.getTime()>Date.now()}},tab2:{tableKey:0,listLoading:!1,total:0,getdataListParm:{name:"contractDetailV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",providerName:"",contractCode:"",stopTime:"",startTime:"",statue:"",partCode:"",partName:"",isZeroStock:"",pastureName:""}},list:[]},UpdateDataParam:{},UpdateDataParam2:{},pending:{total:0,getdataListParm:{name:"providerPactListV2",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}}}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"insertcontract_upload",importParams:"备件编号,备件名称,规格型号,计量单位,品牌,计划量,单价,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){console.log(this.$route.query.contractCode),this.get_select_list();var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),this.getTab1List(),this.getPendingList(),void 0==this.$route.query.contractCode?this.tab1.contractManagement.getdataListParm.parammaps.contractCode="":this.tab1.contractManagement.getdataListParm.parammaps.contractCode=this.$route.query.contractCode},methods:{tableSort1:function(e){Object(l["f"])(e,this.tab1.detailsSpareParts.list)},tableSort2:function(e){Object(l["f"])(e,this.tab2.list)},get_auto_buttons:function(){var e="customs:contract:jinyong",t=Object(r["v"])(this.$store.state.user.buttons,e);this.isContractJinyong=t;var a="customs:contract:add",s=Object(r["v"])(this.$store.state.user.buttons,a);this.tab1.contractManagement.isContractAdd=s;var i="customs:contract:see",n=Object(r["v"])(this.$store.state.user.buttons,i);this.tab1.contractManagement.isContractSee=n;var l="customs:contract:examineZG",o=Object(r["v"])(this.$store.state.user.buttons,l);this.tab1.changeRecord.isContractExamineZG=o;var p="customs:contract:examineZX",m=Object(r["v"])(this.$store.state.user.buttons,p);this.tab1.changeRecord.isContractExamineZX=m;var c="customs:contract:delete",d=Object(r["v"])(this.$store.state.user.buttons,c);this.tab1.changeRecord.isContractDelete=d;var u="customs:contract:export",h=Object(r["v"])(this.$store.state.user.buttons,u);this.tab1.contractManagement.isContractExport=h;var g="customs:contract:change",f=Object(r["v"])(this.$store.state.user.buttons,g);this.tab1.contractManagement.isContractChange=f},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllPastureList2=t.data.findAllPastureForContract.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.findAllCategory=t.data.findAllCategory.list}))},handleClick:function(){"first"==this.tab1.contractManagement.create.temp.activeName?(console.log("点击了合同管理"),this.getTab1List()):(console.log("点击了合同明细"),this.getTab2List())},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps.loginid=this.tab1.contractManagement.getdataListParm.parammaps.loginid,this.pending.getdataListParm.parammaps.pastureName=this.tab1.contractManagement.getdataListParm.parammaps.pastureName,this.pending.getdataListParm.parammaps.contractCode=this.tab1.contractManagement.getdataListParm.parammaps.contractCode,this.pending.getdataListParm.parammaps.statue=this.tab1.contractManagement.getdataListParm.parammaps.statue,this.pending.getdataListParm.parammaps.stuteSH=this.tab1.contractManagement.getdataListParm.parammaps.stuteSH,this.pending.getdataListParm.parammaps.providerName=this.tab1.contractManagement.getdataListParm.parammaps.providerName,this.pending.getdataListParm.parammaps.tab1InputDatetime1=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1,this.pending.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.startTime,this.pending.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.stopTime,this.pending.getdataListParm.parammaps.tab1InputDatetime2=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2,this.pending.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF,this.pending.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE,this.pending.getdataListParm.parammaps.SHnums=0,Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},getTab1List:function(){var e=this;this.tab1.contractManagement.listLoading=!0,""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1?(this.tab1.contractManagement.getdataListParm.parammaps.startTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[0],this.tab1.contractManagement.getdataListParm.parammaps.stopTime=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[1]):(this.tab1.contractManagement.getdataListParm.parammaps.startTime="",this.tab1.contractManagement.getdataListParm.parammaps.stopTime=""),""!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&null!==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2?(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[0],this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[1]):(this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF="",this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE=""),Object(r["e"])(this.tab1.contractManagement.getdataListParm).then((function(t){null!==t.data.list?(e.tab1.contractManagement.list=t.data.list,e.tab1.contractManagement.pageNum=t.data.pageNum,e.tab1.contractManagement.pageSize=t.data.pageSize):e.tab1.contractManagement.list=[],e.tab1.contractManagement.total=t.data.total,setTimeout((function(){e.tab1.contractManagement.listLoading=!1}),300)}))},handleTab1Filter:function(){this.tab1.contractManagement.listLoading=!0,null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1=""),null==this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2&&(this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2=""),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List(),this.getPendingList(),"全部"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2,this.getTab1List()):"待处理"==this.tab1.contractManagement.radioAll?(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0,this.getTab1List()):"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1,this.getTab1List())},changeContractManagementAll:function(){"全部"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=2:"待处理"==this.tab1.contractManagement.radioAll?this.tab1.contractManagement.getdataListParm.parammaps.SHnums=0:"已处理"==this.tab1.contractManagement.radioAll&&(this.tab1.contractManagement.getdataListParm.parammaps.SHnums=1),this.tab1.contractManagement.getdataListParm.offset=1,this.getTab1List()},changeTime:function(e){""!==this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.stopTime<=this.tab1.contractManagement.create.temp.startTime?(this.tab1.contractManagement.create.temp.stopTime="",this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId=""):Object(l["e"])(new Date,"{y}-{m}-{d}")<=this.tab1.contractManagement.create.temp.stopTime?this.tab1.contractManagement.create.temp.statue="1":this.tab1.contractManagement.create.temp.statue="0":(this.tab1.contractManagement.create.temp.statue="",this.tab1.contractManagement.create.temp.statueId="")},changeIsZero:function(e){console.log(e)},providerSearch:function(e,t){var a=this.findAllProvider,s=e?a.filter(this.createFilter(e)):a;t(s)},createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelectProvider:function(e){this.$set(this.tab1.contractManagement.create.temp,"providerId",e.id),this.$set(this.tab1.contractManagement.create.temp,"providerName",e.name)},handleFocusProvider:function(){this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName=""},handleBlurProvider:function(){""==this.tab1.contractManagement.create.temp.providerId&&(this.tab1.contractManagement.create.temp.providerId="",this.tab1.contractManagement.create.temp.providerName="")},changeCreatorMan:function(e){this.tab1.contractManagement.create.temp.creatorMan=this.findAllEmploye.find((function(t){return t.id==e})).name},resetCreateTemp:function(){if(this.tab1.contractManagement.create.temp.synchronousPastureList=[],18==m.a.get("pastureid"))for(var e=0;e<this.findAllPasture.length;e++)this.tab1.contractManagement.create.temp.synchronousPastureList.push(this.findAllPasture[e].id);else this.tab1.contractManagement.create.temp.synchronousPastureList.push(parseInt(m.a.get("pastureid")));this.tab1.contractManagement.create.temp={contractCode:"",pastureId:parseFloat(m.a.get("pastureid")),providerName:"",startTime:"",stopTime:"",statue:"",isZeroStock:0,creatorId:parseFloat(m.a.get("employeid")),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),synchronousPasture:this.tab1.contractManagement.create.temp.synchronousPastureList,synchronousPasture2:[]}},handleTab1Create:function(){this.resetCreateTemp(),this.dialogStatus="create",this.tab1.contractManagement.create.dialogFormVisible=!0,this.getCreateNumber()},getCreateNumber:function(){var e=this;Object(r["e"])(this.tab1.contractManagement.getParmCreateNumber).then((function(t){e.$nextTick((function(){console.log("合同编号",t.data.list[0].orderCode),e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate()}))}))},add_dialog_save:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(""==e.tab1.contractManagement.create.temp.contractCode?Object(r["e"])(e.getParmCreateNumber).then((function(t){e.$nextTick((function(){e.tab1.contractManagement.create.temp.contractCode=t.data.list[0].orderCode,e.$forceUpdate(),e.saveCreateData()}))})):e.saveCreateData())}))},saveCreateData:function(){var e=this;if(this.postDataPramas={},18==m.a.get("pastureid")&&-1==this.tab1.contractManagement.create.temp.synchronousPasture.indexOf(18))return this.$message({type:"error",message:"当前合同归属于现代牧业,未选中,共享牧场请选中现代牧业!",duration:2e3}),!1;this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontract",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId}},this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.stopTime,contractCode:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:1,remark:this.tab1.contractManagement.create.temp.remark,SHtype:0}};for(var t=[],a=0;a<this.tab1.contractManagement.create.temp.synchronousPasture.length;a++){var s={};s.pastureId=this.tab1.contractManagement.create.temp.synchronousPasture[a],t.push(s)}18==m.a.get("pastureid")&&(this.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:t}},this.postDataPramas.data[2].children=[],this.postDataPramas.data[2].children[0]={name:"insertPastureBigcontract",type:"e",parammaps:{bigcontractId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId"}}),Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},form_see:function(e){var t=this;console.log("查看",e),e.statue=String(e.statue),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.dialogStatus="see",this.tab1.contractManagement.create.dialogFormVisible=!0;var a="未通过原因:"+this.tab1.contractManagement.create.temp.workflowNote;2==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=1):3==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):4==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson,status:"error",reason:a},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):5==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=2):6==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核"}],this.tab1.contractManagement.create.temp.active=3):7==this.tab1.contractManagement.create.temp.SHStatus?(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson}],this.tab1.contractManagement.create.temp.active=4):8==this.tab1.contractManagement.create.temp.SHStatus&&(this.tab1.contractManagement.create.temp.activeList=[{title:"合同录入",date:this.tab1.contractManagement.create.temp.creatorTime,name:this.tab1.contractManagement.create.temp.creatorMan},{title:"供应主管审核",date:this.tab1.contractManagement.create.temp.chargeDate,name:this.tab1.contractManagement.create.temp.chargePerson},{title:"设备中心审核",date:this.tab1.contractManagement.create.temp.CGChargedate,name:this.tab1.contractManagement.create.temp.CGChargePerson,status:"error",reason:a}],this.tab1.contractManagement.create.temp.active=4),this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},handleTab1Change:function(e){var t=this;console.log("变更",e),this.$set(e,"mystopTime",e.stopTime),e.synchronousPasture2=[],e.synchronousPastureName2=[],e.synchronousPasture=[],this.tab1.contractManagement.create.temp=Object.assign({},e),this.tab1.contractManagement.create.temp.statue=String(this.tab1.contractManagement.create.temp.statue),this.dialogStatus="change",this.tab1.contractManagement.create.dialogFormVisible=!0,this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id=e.id,Object(r["e"])(this.tab1.contractManagement.create.changeEchoParm).then((function(e){if(null!==e.data.list)for(var a=function(a){t.tab1.contractManagement.create.temp.synchronousPasture2.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPasture.push(e.data.list[a].pasture_id),t.tab1.contractManagement.create.temp.synchronousPastureName2.push(t.findAllPasture.find((function(t){return t.id==e.data.list[a].pasture_id})).name)},s=0;s<e.data.list.length;s++)a(s);else t.tab1.contractManagement.create.temp.synchronousPasture=[];console.log(t.tab1.contractManagement.create.temp.synchronousPastureName2,"synchronousPastureName2")}))},terminationData:function(){var e=this,t="确认终止合同?";t=1==this.tab1.contractManagement.create.temp.isZeroStock?"若此合同库存中有剩余库存,建议先进行退货操作。":"确认终止合同?",d["MessageBox"].confirm(t,{confirmButtonText:"确认终止",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDataPramas={},e.postDataPramas.name="updatecontractstatuV2",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.tab1.contractManagement.create.temp,e.postDataPramas.parammaps.creatorId=m.a.get("employeid"),e.postDataPramas.parammaps.creatorMan=m.a.get("employename"),e.postDataPramas.parammaps.creatorTime=Object(l["e"])(new Date,"{y}-{m}-{d}"),Object(r["k"])(e.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1="",e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}))},changeData:function(){var e=this;if(18==m.a.get("pastureid")&&(this.UpdateDataParam={},this.UpdateDataParam.name="pasture_bigcontract",this.UpdateDataParam.dataname="bigcontract_id",this.UpdateDataParam.datavalue=this.tab1.contractManagement.create.temp.id,this.UpdateDataParam.valuename="pasture_id",this.UpdateDataParam.values=this.tab1.contractManagement.create.temp.synchronousPasture,Object(r["u"])(this.UpdateDataParam).then((function(t){"fail"!==t.msg&&(e.UpdateDataParam2.name="updateBigcontractPId",e.UpdateDataParam2.parammaps={},e.UpdateDataParam2.parammaps.bigcontract_id=e.tab1.contractManagement.create.temp.id,e.UpdateDataParam2.parammaps.enable=0,Object(r["k"])(e.UpdateDataParam2).then((function(e){})))}))),this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"checkbigcontractSH",type:"v",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,stopTime:this.tab1.contractManagement.create.temp.mystopTime,flag:this.tab1.contractManagement.create.temp.flag,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue}},18==m.a.get("pastureid")){for(var t=[],a=function(a){t.push(e.findAllPasture.find((function(t){return t.id==e.tab1.contractManagement.create.temp.synchronousPasture[a]})).name)},s=0;s<this.tab1.contractManagement.create.temp.synchronousPasture.length;s++)a(s);this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3,pastureNamesOld:this.tab1.contractManagement.create.temp.synchronousPastureName2.toString(),pastureNamesNow:t.toString()}}}else this.postDataPramas.data[1]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.contractManagement.create.temp.pastureId,providerId:this.tab1.contractManagement.create.temp.providerId,providerName:this.tab1.contractManagement.create.temp.providerName,startTime:this.tab1.contractManagement.create.temp.startTime,stopTime:this.tab1.contractManagement.create.temp.mystopTime,stopTime1:this.tab1.contractManagement.create.temp.stopTime,contractCode:"",contractCode1:this.tab1.contractManagement.create.temp.contractCode,creatorId:this.tab1.contractManagement.create.temp.creatorId,creatorMan:this.tab1.contractManagement.create.temp.creatorMan,creatorTime:this.tab1.contractManagement.create.temp.creatorTime,isZeroStock:this.tab1.contractManagement.create.temp.isZeroStock,statue:this.tab1.contractManagement.create.temp.statue,remark:this.tab1.contractManagement.create.temp.remark,flag:this.tab1.contractManagement.create.temp.flag,SHtype:3}};Object(r["c"])(this.postDataPramas).then((function(t){console.log("变更保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List(),e.getPendingList(),e.tab1.contractManagement.create.dialogFormVisible=!1,e.tab1.contractManagement.create.temp.providerName="",e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1DetailsSpareParts:function(e){console.log("备件明细",e),this.contractCodese=e.contractCode,this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.isContractManagement=!1,this.isDetailsSpareParts=!0,this.tab1.detailsSpareParts.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.detailsSpareParts.getdataListParm.parammaps.providerId=e.providerId,this.tab1.detailsSpareParts.getdataListParm.parammaps.stopTime=e.stopTime,this.tab1.detailsSpareParts.getdataListParm.parammaps.flag=e.flag,this.tab1.detailsSpareParts.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.detailsSpareParts.getdataListParm.parammaps.statue=e.statue,this.tab1.detailsSpareParts.getdataListParm.parammaps.partCode="",this.tab1.detailsSpareParts.getdataListParm.parammaps.partName="",this.tab1.detailsSpareParts.getdataListParm.parammaps.specification="",this.getTab1List2()},handleTab1goBack:function(){this.isContractManagement=!0,this.isDetailsSpareParts=!1,this.tab1.detailsSpareParts.total=0,this.getTab1List()},change_enabled:function(){},change_no:function(){var e=this;console.log("selectList",this.selectList);var t={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:this.selectList},children:[{name:"updateContractEnableById",type:"e",parammaps:{id:"@insertSpotList.id"}}]},{name:"updateBigcontractIsToSap",type:"e",parammaps:{contractCode:this.contractCodese}}]};Object(r["c"])(t).then((function(a){console.log("发送参数",t),"fail"===a.msg?e.$notify({title:"禁用失败",message:a.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.$notify({title:"",message:"禁用成功",type:"success",duration:2e3}))}))},handleSelectionChange:function(e){console.log(e),this.selectList=e},getTab1List2:function(){var e=this;this.tab1.detailsSpareParts.listLoading=!0,Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)if(null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.detailsSpareParts.list=t.data.list,e.tab1.detailsSpareParts.pageNum=t.data.pageNum,e.tab1.detailsSpareParts.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.detailsSpareParts.total=t.data.total:e.tab1.detailsSpareParts.total=0}else e.tab1.detailsSpareParts.list=[];setTimeout((function(){e.tab1.detailsSpareParts.listLoading=!1}),300)}))},handleTab1Filter2:function(){this.tab1.detailsSpareParts.listLoading=!0,this.tab1.detailsSpareParts.getdataListParm.offset=1,this.getTab1List2()},sparePartSearch:function(e,t){this.tab1.detailsSpareParts.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestSparePart).then((function(e){null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.tab1.detailsSpareParts.listAdd.length>0?this.tab1.detailsSpareParts.listAdd.find((function(t){return t.partCode==e.partCode}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.$set(e,"taxcode",""),this.tab1.detailsSpareParts.listAdd.unshift(e)):(null!==e.srcpath&&null!==e.picpath&&void 0!==e.srcpath&&void 0!==e.picpath?(this.$set(e,"srcpath","http://127.0.0.1:8082/"+e.srcpath),this.$set(e,"picpath","http://127.0.0.1:8082/"+e.picpath)):(e.srcpath="",e.picpath=""),this.$set(e,"myid",(new Date).getTime()),this.tab1.detailsSpareParts.listAdd.unshift(e))},brandSearch:function(e,t){var a=this;this.tab1.detailsSpareParts.requestBrand.parammaps["brandName"]=e,Object(r["e"])(this.tab1.detailsSpareParts.requestBrand).then((function(e){a.tab1.detailsSpareParts.BrandList=e.data.list,t(a.tab1.detailsSpareParts.BrandList)}))},handleSelectBrand:function(e,t){this.$set(t,"brandName",e.brandName),this.$set(t,"brandId",e.brandId),this.$forceUpdate()},handleFocusBrand:function(e){this.$set(e,"brandName",""),this.$set(e,"brandId","")},handleBlurBrand:function(e){""==e.brandId&&(this.$set(e,"brand",""),this.$set(e,"brandName",""),this.$set(e,"brandId",""))},partDelete:function(e){var t=this;console.log("备件明细-备件删除",e),d["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.tab1.detailsSpareParts.listAdd.length;a++){if(console.log(t.tab1.detailsSpareParts.listAdd[a]),t.tab1.detailsSpareParts.listAdd[a].myid===e.myid)var s=t.tab1.detailsSpareParts.listAdd.indexOf(t.tab1.detailsSpareParts.listAdd[a]);if(s>-1)return void t.tab1.detailsSpareParts.listAdd.splice(s,1)}}))},handleTab1DownloadTemp2:function(){var e=this;console.log("备件明细-备件模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注"],r=e.formatJsonTemp(i,a);t.export_json_to_excel({header:s,data:r,filename:"备件明细模板",autoWidth:!0,bookType:"xlsx"})}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;console.log(e),"ok"==e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","报错信息"],r=["备件编号","备件名称","规格型号","计量单位","品牌","计划量","单价","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"合同报错信息",autoWidth:!0,bookType:"xlsx"})}))),this.getImportExcelList()):this.$notify({title:"失败",message:"上传失败,文件格式错误",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"==e?Object(l["e"])(t[e]):t[e]}))}))},getClearImportExcelList:function(){var e=this;Object(r["k"])(this.tab1.detailsSpareParts.clearImportExcelParm).then((function(t){console.log(t.msg),"ok"==t.msg&&(e.tab1.detailsSpareParts.isDisabledImport=!1)}))},getImportExcelList:function(){var e=this;Object(r["e"])(this.tab1.detailsSpareParts.importExcelParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0==t.data.list[a].picpath?(t.data.list[a].picpath="",t.data.list[a].srcpath=""):(e.$set(t.data.list[a],"srcpath","http://127.0.0.1:8082/"+t.data.list[a].srcpath),e.$set(t.data.list[a],"picpath","http://127.0.0.1:8082/"+t.data.list[a].picpath)),t.data.list[a].myid=(new Date).getTime()+a;e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.detailsSpareParts.list=[]}))},handleTab1Create2:function(){console.log("备件明细-新增/变更"),this.dialogStatus="tab1create2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.partCode="",this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={},this.getClearImportExcelList()},add_dialog_save2:function(){var e=this;if(console.log("备件明细-新增保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:1}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Change2:function(){console.log("备件明细-变更"),this.dialogStatus="tab1change2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.detailsSpareParts.listAdd=[],this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts"},changeData2:function(){var e=this;if(console.log("备件明细-变更保存"),0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""===this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"insertBigContractV2",type:"e",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,flag:this.tab1.detailsSpareParts.detailsList.flag,providerId:this.tab1.detailsSpareParts.detailsList.providerId,providerName:this.tab1.detailsSpareParts.detailsList.providerName,startTime:this.tab1.detailsSpareParts.detailsList.startTime,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,contractCode:"",contractCode1:this.tab1.detailsSpareParts.detailsList.contractCode,creatorId:m.a.get("employeid"),creatorMan:m.a.get("employename"),creatorTime:Object(l["e"])(new Date,"{y}-{m}-{d}"),isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,remark:this.tab1.detailsSpareParts.detailsList.remark,SHtype:2}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:"@insertBigContractV2.LastInsertId",pastureId:"@insertSpotList.pastureId",pastureName:"@insertSpotList.pastureName",partId:"@insertSpotList.partId",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List2(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},handleTab1Export2:function(){var e=this;console.log("备件明细-导出"),this.$alert("备件明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t),e.tab1.detailsSpareParts.getdataListParm.pagecount=10),e.percentage=e.percentage}),1e3);this.tab1.detailsSpareParts.getdataListParm.pagecount="",Object(r["e"])(this.tab1.detailsSpareParts.getdataListParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),null!==t.data.list&&e.$nextTick((function(){var e=[{tHeader:["备件编号","备件名称","备件规格","备件品牌","计量单位","计划量","单价","备注"],filterVal:["partCode","partName","specification","brand","unit","planAmount","price","remark"],tableDatas:t.data.list,sheetName:"合同管理-备件明细"}];Object(l["d"])(e,"合同管理-备件明细",!0,"xlsx")}))}))},handleTab1ChangeRecord:function(e){console.log("变更记录"),this.tab1.detailsSpareParts.detailsList=Object.assign({},e),this.contractCodese=e.contractCode,this.isContractManagement=!1,this.isChangeRecord=!0,this.tab1.changeRecord.getdataListParm.parammaps.pastureId=e.pastureId,this.tab1.changeRecord.getdataListParm.parammaps.providerId=e.providerId,this.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.stopTime,this.tab1.changeRecord.getdataListParm.parammaps.flag=e.flag,this.tab1.changeRecord.getdataListParm.parammaps.isZeroStock=e.isZeroStock,this.tab1.changeRecord.getdataListParm.parammaps.statue=e.statue,this.tab1.changeRecord.getdataListParm.parammaps.contractCode="",this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3="",this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime="",this.tab1.changeRecord.getdataListParm.parammaps.SHtype="",this.tab1.changeRecord.getdataListParm.parammaps.stuteSH="",this.getTab1List3()},handleTab1goBack2:function(){this.isContractManagement=!0,this.isChangeRecord=!1,this.tab1.changeRecord.total=0,this.getTab1List()},getTab1List3:function(){var e=this;this.tab1.changeRecord.listLoading=!0,void 0!==this.$refs["tab1InputDatetime3"]&&null!==this.$refs["tab1InputDatetime3"].value?(this.tab1.changeRecord.getdataListParm.parammaps.startTime=this.$refs["tab1InputDatetime3"].value[0],this.tab1.changeRecord.getdataListParm.parammaps.stopTime=this.$refs["tab1InputDatetime3"].value[1]):(this.tab1.changeRecord.getdataListParm.parammaps.startTime="",this.tab1.changeRecord.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab1.changeRecord.getdataListParm).then((function(t){e.tab1.changeRecord.list=t.data.list,e.tab1.changeRecord.pageNum=t.data.pageNum,e.tab1.changeRecord.pageSize=t.data.pageSize,null!==t.data.list?e.tab1.changeRecord.total=t.data.total:e.tab1.changeRecord.total=0,setTimeout((function(){e.tab1.changeRecord.listLoading=!1}),300)}))},handleTab1Filter3:function(){this.tab1.changeRecord.listLoading=!0,null==this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3&&(this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3=""),this.tab1.changeRecord.getdataListParm.offset=1,"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},changeChangeRecordAll:function(){"全部"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=2,this.getTab1List3()):"待处理"==this.tab1.changeRecord.radioAll?(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=0,this.getTab1List3()):"已处理"==this.tab1.changeRecord.radioAll&&(this.tab1.changeRecord.getdataListParm.parammaps.SHnums=1,this.getTab1List3())},handleTab1See3:function(e){console.log("变更记录-查看"),this.tab1.changeRecord.see.temp=Object.assign({},e),this.dialogStatus="tab1See2",this.tab1.changeRecord.see.dialogFormVisible=!0,0!=e.SHtype&&1!=e.SHtype&&2!=e.SHtype||(this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See());var t="未通过原因:"+this.tab1.changeRecord.see.temp.workflowNote;2==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核"},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=1):3==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):4==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson,status:"error",reason:t},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):5==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=2):6==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核"}],this.tab1.changeRecord.see.active=3):7==this.tab1.changeRecord.see.temp.SHStatus?(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson}],this.tab1.changeRecord.see.active=4):8==this.tab1.changeRecord.see.temp.SHStatus&&(this.tab1.changeRecord.see.activeList=[{title:"合同录入",date:this.tab1.changeRecord.see.temp.creatorTime,name:this.tab1.changeRecord.see.temp.creatorMan},{title:"供应主管审核",date:this.tab1.changeRecord.see.temp.chargeDate,name:this.tab1.changeRecord.see.temp.chargePerson},{title:"设备中心审核",date:this.tab1.changeRecord.see.temp.CGChargedate,name:this.tab1.changeRecord.see.temp.CGChargePerson,status:"error",reason:t}],this.tab1.changeRecord.see.active=4)},getTab1List3See:function(){var e=this;Object(r["e"])(this.tab1.changeRecord.see.getdataListParm).then((function(t){if(null!==t.data.list){e.tab1.changeRecord.see.pageNum=t.data.pageNum,e.tab1.changeRecord.see.pageSize=t.data.pageSize,t.data.total&&(e.tab1.changeRecord.see.total=t.data.total);for(var a=0;a<t.data.list.length;a++)if(t.data.list[a].myid=(new Date).getTime()+a,null!==t.data.list[a].srcpath&&null!==t.data.list[a].picpath&&void 0!==t.data.list[a].srcpath&&void 0!==t.data.list[a].picpath){var s="http://127.0.0.1:8082/"+t.data.list[a].srcpath,i="http://127.0.0.1:8082/"+t.data.list[a].picpath;t.data.list[a].srcpath=s,t.data.list[a].picpath=i}else t.data.list[a].srcpath="",t.data.list[a].picpath="";e.tab1.changeRecord.see.list=t.data.list,e.tab1.detailsSpareParts.listAdd=t.data.list}else e.tab1.changeRecord.see.list=[],e.tab1.detailsSpareParts.listAdd=[];setTimeout((function(){e.tab1.changeRecord.see.listLoading=!1}),300)}))},handleTab1Update3:function(e){console.log("变更记录-编辑",e),this.tab1.detailsSpareParts.updateList=Object.assign({},e),this.tab1.detailsSpareParts.create.temp=Object.assign({},e),this.dialogStatus="tab1Update2",this.tab1.detailsSpareParts.create.dialogFormVisible=!0,this.tab1.changeRecord.see.getdataListParm.parammaps.id=e.id,this.getTab1List3See(),1==e.SHtype?(this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigALLParts",this.tab1.detailsSpareParts.requestSparePart.parammaps={}):(this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId=this.tab1.detailsSpareParts.detailsList.pastureId,this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId=this.tab1.detailsSpareParts.detailsList.providerId,this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime=this.tab1.detailsSpareParts.detailsList.stopTime,this.tab1.detailsSpareParts.requestSparePart.parammaps.flag=this.tab1.detailsSpareParts.detailsList.flag,this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock=this.tab1.detailsSpareParts.detailsList.isZeroStock,this.tab1.detailsSpareParts.requestSparePart.parammaps.statue=this.tab1.detailsSpareParts.detailsList.statue,this.tab1.detailsSpareParts.requestSparePart.name="getcontratListBybigParts")},edit_dialog_save2:function(){var e=this;if(console.log("编辑保存"),0==this.tab1.detailsSpareParts.updateList.SHtype||3==this.tab1.detailsSpareParts.updateList.SHtype)this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"updateBigcontractV2",type:"e",parammaps:{id:this.tab1.detailsSpareParts.create.temp.id,startTime:this.tab1.detailsSpareParts.create.temp.startTime,stopTime:this.tab1.detailsSpareParts.create.temp.stopTime,isZeroStock:this.tab1.detailsSpareParts.create.temp.isZeroStock,remark:this.tab1.detailsSpareParts.create.temp.remark,stopTimeHis:this.tab1.detailsSpareParts.create.temp.stopTimeHis}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(0==e.tab1.detailsSpareParts.updateList.SHtype&&(e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.create.temp.stopTime),e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}));else{if(0===this.tab1.detailsSpareParts.listAdd.length)return this.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var t=0;t<this.tab1.detailsSpareParts.listAdd.length;t++){if(null==this.tab1.detailsSpareParts.listAdd[t].planAmount||null==this.tab1.detailsSpareParts.listAdd[t].brand||null==this.tab1.detailsSpareParts.listAdd[t].price||""==this.tab1.detailsSpareParts.listAdd[t].planAmount||""==this.tab1.detailsSpareParts.listAdd[t].brand||""===this.tab1.detailsSpareParts.listAdd[t].brandId||""==this.tab1.detailsSpareParts.listAdd[t].price||void 0==this.tab1.detailsSpareParts.listAdd[t].brand||void 0==this.tab1.detailsSpareParts.listAdd[t].brandId)return console.log(this.tab1.detailsSpareParts.listAdd[t]),this.$message({type:"warning",message:"请检查备件品牌或计划量或单价是否为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(!a.test(parseFloat(this.tab1.detailsSpareParts.listAdd[t].planAmount)))return this.$message({type:"error",message:"计划量请输入正整数",duration:2e3}),!1;if(0==parseFloat(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"warning",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1;var s=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,5})?$/;if(0==s.test(this.tab1.detailsSpareParts.listAdd[t].price))return this.$message({type:"error",message:"价格请输入正数,最多保留小数点后五位",duration:2e3}),!1}this.postDataPramas={},this.postDataPramas.common={returnmap:"0"},this.postDataPramas.data=[],this.postDataPramas.data[0]={name:"deleteContract",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id}},this.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.detailsSpareParts.listAdd}},this.postDataPramas.data[1].children=[],2==this.tab1.detailsSpareParts.updateList.SHtype?this.postDataPramas.data[1].children[0]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId",taxcode:"@insertSpotList.taxcode"}}:(this.postDataPramas.data[1].children[0]={name:"checkcontracPartCode",type:"v",parammaps:{pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,providerId:this.tab1.detailsSpareParts.detailsList.providerId,stopTime:this.tab1.detailsSpareParts.detailsList.stopTime,flag:this.tab1.detailsSpareParts.detailsList.flag,isZeroStock:this.tab1.detailsSpareParts.detailsList.isZeroStock,statue:this.tab1.detailsSpareParts.detailsList.statue,partCode:"@insertSpotList.partCode",brandId:"@insertSpotList.brandId"}},this.postDataPramas.data[1].children[1]={name:"insertContractV2",type:"e",parammaps:{bigId:this.tab1.detailsSpareParts.updateList.id,pastureId:this.tab1.detailsSpareParts.detailsList.pastureId,pastureName:this.tab1.detailsSpareParts.detailsList.pastureName,partId:"@insertSpotList.id",partName:"@insertSpotList.partName",partCode:"@insertSpotList.partCode",specification:"@insertSpotList.specification",price:"@insertSpotList.price",brandId:"@insertSpotList.brandId",brand:"@insertSpotList.brand",planAmount:"@insertSpotList.planAmount",remark:"@insertSpotList.remark",unit:"@insertSpotList.unit",contractId:"@insertSpotList.contractId"}}),this.postDataPramas.data[2]={name:"updateBigcontract",type:"e",parammaps:{id:this.tab1.detailsSpareParts.updateList.id}},Object(r["c"])(this.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"==t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getTab1List3(),e.getPendingList(),e.tab1.detailsSpareParts.create.dialogFormVisible=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}},changeExamineStatue:function(e){this.tab1.changeRecord.examine.isReason=2==e},handleTab1Examine:function(e){console.log("变更记录-审核"),this.dialogStatus="tab1examine",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.temp=Object.assign({},e),this.tab1.changeRecord.examine.isReason=!1,void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.keyupSubmit()},keyupSubmit:function(){var e=this;"tab1examine"!=this.dialogStatus&&"tab1examine2"!=this.dialogStatus&&"tab1examine3"!=this.dialogStatus||(document.onkeydown=function(t){var a=window.event.keyCode;13===a&&("tab1examine"==e.dialogStatus?e.createExamineData():e.createExamineData3())})},createExamineData:function(){var e=this;console.log("点击了设备主管审核确认1"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.name="contractCharge",e.postDataPramas.parammaps={},e.postDataPramas.parammaps.id=e.tab1.changeRecord.examine.temp.id,1===e.tab1.changeRecord.examine.temp.statueSH?e.postDataPramas.parammaps.statue=5:e.postDataPramas.parammaps.statue=4,e.postDataPramas.parammaps.empId=m.a.get("employeid"),e.postDataPramas.parammaps.workflowNote=e.tab1.changeRecord.examine.temp.workflowNote,Object(r["k"])(e.postDataPramas).then((function(t){console.log("设备主管审核确认发送参数",e.postDataPramas),"fail"!==t.msg?(e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList()):Object(r["w"])(t,e.$notify)})))}))},handleTab1Examine3:function(e){console.log(" 变更记录-审核3"),void 0==e?(this.tab1.changeRecord.examine.temp=this.tab1.changeRecord.see.temp,this.$set(this.tab1.changeRecord.see.temp,"statueSH",1),this.$set(this.tab1.changeRecord.see.temp,"workflowNote","")):(this.tab1.changeRecord.examine.temp=Object.assign({},e),this.$set(this.tab1.changeRecord.examine.temp,"statueSH",1),this.$set(this.tab1.changeRecord.examine.temp,"workflowNote","")),this.dialogStatus="tab1examine3",this.tab1.changeRecord.examine.dialogFormVisible=!0,this.tab1.changeRecord.examine.isReason=!1,this.keyupSubmit()},createExamineData3:function(){var e=this;console.log("点击了设备中心审核确认3"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.postDataPramas={},e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],1==e.tab1.changeRecord.examine.temp.statueSH?(e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:7,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},1==e.tab1.changeRecord.examine.temp.SHtype||2==e.tab1.changeRecord.examine.temp.SHtype?e.postDataPramas.data[1]={name:"updateContractEnable",type:"e",parammaps:{id:e.tab1.changeRecord.examine.temp.id}}:3==e.tab1.changeRecord.examine.temp.SHtype&&(e.postDataPramas.data[1]={name:"updatecontractdate",type:"e",parammaps:{pastureId:e.tab1.changeRecord.examine.temp.pastureId,providerId:e.tab1.changeRecord.examine.temp.providerId,stopTimeHis:e.tab1.changeRecord.examine.temp.stopTimeHis,flag:e.tab1.changeRecord.examine.temp.flag,isZeroStock:e.tab1.changeRecord.examine.temp.isZeroStock,statue:e.tab1.changeRecord.examine.temp.statue,startTime:e.tab1.changeRecord.examine.temp.startTime,stopTime:e.tab1.changeRecord.examine.temp.stopTime,id:e.tab1.changeRecord.examine.temp.id}}),e.postDataPramas.data[2]={name:"updateBigcontractIsToSap",type:"e",parammaps:{contractCode:e.contractCodese}}):e.postDataPramas.data[0]={name:"contractCharge1",type:"e",parammaps:{statue:8,empId:m.a.get("employeid"),workflowNote:e.tab1.changeRecord.examine.temp.workflowNote,id:e.tab1.changeRecord.examine.temp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(7==e.postDataPramas.data[0].parammaps.statue?3==e.tab1.changeRecord.examine.temp.SHtype?e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTimeHis:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.changeRecord.examine.temp.stopTime:e.tab1.changeRecord.getdataListParm.parammaps.stopTime1=e.tab1.detailsSpareParts.detailsList.stopTime,e.tab1.changeRecord.examine.dialogFormVisible=!1,e.tab1.changeRecord.see.dialogFormVisible=!1,e.tab1.changeRecord.examine.isStatueReason=!1,e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getTab1List3(),e.getTab1List(),e.getPendingList())})))}))},handleTab1Delete3:function(e){var t=this;console.log("变更记录-删除"),console.log("点击了删除"),d["MessageBox"].confirm("确认删除此条信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDataPramas={},t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteBigContract",type:"e",parammaps:{id:e.id}},t.postDataPramas.data[1]={name:"deleteContract",type:"e",parammaps:{bigId:e.id}},Object(r["c"])(t.postDataPramas).then((function(e){t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getTab1List3(),t.getPendingList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},getTab2List:function(){var e=this;this.tab2.listLoading=!0,void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),Object(r["e"])(this.tab2.getdataListParm).then((function(t){null!==t.data.list?(e.tab2.list=t.data.list,e.tab2.pageNum=t.data.pageNum,e.tab2.pageSize=t.data.pageSize,t.data.total&&(e.tab2.total=t.data.total)):e.tab2.list=[],setTimeout((function(){e.tab2.listLoading=!1}),300)}))},handleTab2Filter:function(){this.listLoading2=!0,null===this.tab2.getdataListParm.parammaps.inputDatetime&&(this.tab2.getdataListParm.parammaps.inputDatetime=""),this.tab2.getdataListParm.offset=1,this.getTab2List()},handleTab2Export:function(){var e=this;this.$alert("合同明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);void 0!==this.$refs["inputDatetime"]&&null!==this.$refs["inputDatetime"].value?(this.tab2.getdataListParm.parammaps.startTime=this.$refs["inputDatetime"].value[0],this.tab2.getdataListParm.parammaps.stopTime=this.$refs["inputDatetime"].value[1]):(this.tab2.getdataListParm.parammaps.startTime="",this.tab2.getdataListParm.parammaps.stopTime=""),this.tab2.getdataListParm.pagecount="",Object(r["e"])(this.tab2.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].isZeroStock?t.data.list[a].isZeroStock="否":t.data.list[a].isZeroStock="是";e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)}else e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);e.tab2.getdataListParm.pagecount=10,e.$nextTick((function(){var e=[{tHeader:["牧场","合同编号","合同状态","供应商","合同开始日期","合同截止日期","零库存","备件编号","备件名称","规格","备件品牌","计量单位","计划量","单价","备注","录入人","录入日期"],filterVal:["pastureName","contractCode","statue","providerName","startTime","stopTime","isZeroStock","partCode","partName","specification","brand","unit","planAmount","price","remark","creatorMan","creatorTime"],tableDatas:t.data.list,sheetName:"合同明细"}];Object(l["d"])(e,"合同明细",!0,"xlsx")}))}))}}},h=u,g=(a("8fe4"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"406857d0",null);t["default"]=f.exports},f51c:function(e,t,a){"use strict";a("2574")},f588:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParmImportInfo.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"pastureName",t)},expression:"getdataListParmImportInfo.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParmImportInfo.parammaps.deptName,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"deptName",t)},expression:"getdataListParmImportInfo.parammaps.deptName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"领用单号"},model:{value:e.getdataListParmImportInfo.parammaps.useForm,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"useForm",t)},expression:"getdataListParmImportInfo.parammaps.useForm"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"备件编号"},model:{value:e.getdataListParmImportInfo.parammaps.stockNumber,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"stockNumber",t)},expression:"getdataListParmImportInfo.parammaps.stockNumber"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"备件名称"},model:{value:e.getdataListParmImportInfo.parammaps.stockName,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"stockName",t)},expression:"getdataListParmImportInfo.parammaps.stockName"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"140px",top:"-3px"},attrs:{type:"date",placeholder:"出库日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.getdataListParmImportInfo.parammaps.receiveTime,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"receiveTime",t)},expression:"getdataListParmImportInfo.parammaps.receiveTime"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{clearable:"",placeholder:"领用人"},model:{value:e.getdataListParmImportInfo.parammaps.applicatName,callback:function(t){e.$set(e.getdataListParmImportInfo.parammaps,"applicatName",t)},expression:"getdataListParmImportInfo.parammaps.applicatName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[e.isReceiveImport?a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-upload2"}},[e._v("导入")]):e._e()],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-download"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-button",{staticStyle:{position:"absolute"},attrs:{type:"danger"},on:{click:function(t){return e.form_delete(e.selection)}}},[e._v("批量删除\n ")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingImportInfo,expression:"listLoadingImportInfo"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listImportInfo,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用单编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useForm))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用部门","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.applicatName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTime))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"物料编码","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品名","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brand))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计量单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"实发数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"总价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumPrice))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"供应商","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providerName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assetName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场设备编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.equipmentNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"具体用处","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"导入人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inputName))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.totalImportInfo,page:e.getdataListParmImportInfo.offset,limit:e.getdataListParmImportInfo.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmImportInfo,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmImportInfo,"pagecount",t)},pagination:e.get_table_dataImportInfo}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatusErro],visible:e.dialogFormVisibleErro,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleErro=t}}},[a("div",{staticClass:"app-erro"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingErro,expression:"listLoadingErro"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listErro,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index","min-width":"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"错误信息","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[a("b",[e._v("错误行:")]),e._v(e._s(t.row.input))]),a("br"),a("span",[a("b",[e._v("错误信息:")]),e._v(e._s(t.row.error_msg))])]}}])})],1)],1)])],1)},i=[],r=(a("7f7f"),a("2934")),n=a("6724"),l=a("ed08"),o=(a("61f7"),a("333d")),p=a("a78e"),m=a.n(p),c=a("5c96"),d=a("5f87"),u={name:"OutRecord",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{totalImportInfo:0,listLoadingImportInfo:!0,listLoadingErro:!0,listImportInfo:[],isReceiveImport:[],isReceiveAdd:[],display:!0,tableKey:0,list:[],list2:[],listErro:[],total:0,value:!1,listLoading:!0,requestParam:{name:"insertAsset",offset:0,pagecount:0,parammaps:{}},requestParamDelete:{},requestFilterParams:{returntype:"Map",parammaps:{}},getdataListParmImportInfo:{name:"getImportStockUseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:m.a.get("pasturename"),deptName:"",useForm:"",stockNumber:"",stockName:"",receiveTime:"",fClass:"",sClass:"",applicatName:""}},getdataListParmCreate:{name:"createOddNumber",page:0,offset:0,pagecount:0,returntype:"Map",parammaps:{}},findAllProvider:[],findAllAssetType:[],findAllPasture:[],findAllDepart:[],findAllEmploye:[],getDictByName:[],getDictByName1:[],getDictByName2:[],getDictByName3:[],requestParams:[{name:"findAllProvider",offset:0,pagecount:0,params:[]},{name:"findAllAssetType",offset:0,pagecount:0,params:[]},{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["耗用类别-父"]},{name:"getDictByName1",offset:0,pagecount:0,params:["耗用类别-子"]},{name:"getDictByName2",offset:0,pagecount:0,params:["审核状态"]},{name:"getDictByName3",offset:0,pagecount:0,params:["旧品回收状态"]}],stockAAA:{stockA:"",stockNumber:"",stockName:"",specification:"",amount:"",note:""},bigAAA:{bigId:"",listTypeA:""},postDataPramas:{},temp:{inputDatetime:Object(l["e"])(new Date,"{y}-{m}-{d}"),note:"",employeId:this.$store.state.user.employeid,departmentId:this.$store.state.user.departmentid,pastureId:this.$store.state.user.pastureid},tempExamine:{},searchBtnVisible:!0,dialogFormVisibleErro:!1,dialogStatusErro:"",textMap:{erro:"导入错误信息"},dialogPvVisible:!1,rules:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"importStockUse",importParams:"牧场,领用单编号,领用日期,物料编码,品名,规格型号,品牌,计量单位,实发数量,库位,供应商,单价,总价,名称,牧场设备编号,具体用处,领用类型,领用部门,领用人,jwt_username",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_dataImportInfo()},methods:{createFilter:function(e){return function(t){return t.name.toLowerCase().indexOf(e.toLowerCase())>=0}},handleSelect:function(e){this.temp.providerId=e.id,this.temp.providerName=e.name},get_table_dataImportInfo:function(){var e=this;this.listLoadingImportInfo=!0,null===this.getdataListParmImportInfo.parammaps.receiveTime&&(this.getdataListParmImportInfo.parammaps.receiveTime=""),Object(r["e"])(this.getdataListParmImportInfo).then((function(t){e.listImportInfo=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.totalImportInfo=t.data.total),setTimeout((function(){e.listLoadingImportInfo=!1}),100)}))},form_search:function(){this.listLoadingImportInfo=!0,this.getdataListParmImportInfo.offset=1,this.get_table_dataImportInfo()},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllProvider=t.data.findAllProvider.list,e.findAllAssetType=t.data.findAllAssetType.list,e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDictByName1=t.data.getDictByName1.list,e.getDictByName2=t.data.getDictByName2.list,e.getDictByName3=t.data.getDictByName3.list}))},form_reset:function(){this.temp.note="",this.temp.inputDatetime=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.temp.employeId=this.$store.state.user.employeid,this.temp.departmentId=this.$store.state.user.departmentid,this.temp.pastureId=this.$store.state.user.pastureid,this.list2=null},handleDownloadTemp:function(){var e=this;this.requestParam.name="stockUseDownTemp",Object(r["e"])(this.requestParam).then((function(t){e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["牧场","领用单编号","领用日期","物料编码","品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],r=["牧场","领用单编号","领用日期","物料编码"," 品名","规格型号","品牌","计量单位","实发数量","单价","总价","库位","供应商","名称","牧场设备编号","具体用处","领用类型","领用部门","领用人"],n=e.formatJsonTemp(r,s);a.export_json_to_excel({header:i,data:n,filename:"领用模板",autoWidth:!0,bookType:"xlsx"})}))}))}))},formatJsonTemp:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;this.$alert("备件领用正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.requestParam.name="bigStockUseDown",this.requestParam.parammaps.useForm=this.getdataListParm.parammaps.useForm,this.requestParam.parammaps.createTime=this.getdataListParm.parammaps.createTime,this.requestParam.parammaps.createTime=this.getdataListParm.parammaps.useStatus,Object(r["d"])(this.requestParam).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(a){var s=t.data.list,i=["领用单号","类型(保养/维修)","牧场名称","部门名称","申请人","创建时间","部门主管审核状态","厂长助理审核状态","审核状态","厂长助理审核","厂长助理审核时间","审核时间","部门主管审核","维修单/保养单","领用状态","旧品状态","备件编号","备件名称","用途","规格","领用数量","单价","单件总价","耗用类别(父)","耗用类别(子)"],r=["领用单号","类型(保养/维修)","牧场名称","部门名称","申请人","创建时间","部门主管审核状态","厂长助理审核状态","审核状态","厂长助理审核","厂长助理审核时间","审核时间","部门主管审核","维修单/保养单","领用状态","旧品状态","备件编号","备件名称","用途","规格","领用数量","单价","单件总价","耗用类别(父)","耗用类别(子)"];if(null!==s){var n=e.formatJson(r,s);a.export_json_to_excel({header:i,data:n,filename:"备件领用:"+e.getdataListParm.parammaps.createTime,autoWidth:!0,bookType:"xlsx"})}else e.$notify({title:"",message:"无备件领用完成信息,无法导出!",type:"warning",duration:2e3})}))}))}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},beforeImportExcel:function(e){var t=e.size/1024/1024<20;return t||this.$message.error("上传文件大小不能超过 20MB!"),t},handleImportExcelSuccess:function(e,t){var a=this;"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.dialogFormVisibleErro=!0,this.dialogStatusErro="erro",this.listErro=e.data.result,setTimeout((function(){a.listLoadingErro=!1}),100),this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},handleImportInfo:function(){this.dialogStatusImportInfo="ImportInfo",this.dialogFormVisibleImportInfo=!0,this.get_table_dataImportInfo()},handleSelectionChange:function(e){this.selection=e},form_delete:function(e){var t=this;this.parammapsId=[];for(var a=0;a<e.length;a++)console.log(e[a]),this.parammapsId.push(e[a]);console.log(this.parammapsId),0===e.length?this.$message({type:"info",message:"请选中要删除的数据"}):c["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.parammapsId),t.requestParamDelete.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"deleteIStockLaidList",resultmaps:{list:t.parammapsId}},t.postDataPramas.data[0].children=[],t.postDataPramas.data[0].children[0]={name:"deleteIStockUse",type:"e",parammaps:{}},t.postDataPramas.data[0].children[0].parammaps.id="@deleteIStockLaidList.id",t.postDataPramas.data[0].children[0].parammaps.pastureId="@deleteIStockLaidList.pastureId",t.postDataPramas.data[0].children[0].parammaps.stockNumber="@deleteIStockLaidList.stockNumber",t.postDataPramas.data[0].children[0].parammaps.providerName="@deleteIStockLaidList.providerName",t.postDataPramas.data[0].children[0].parammaps.location="@deleteIStockLaidList.location",t.postDataPramas.data[0].children[0].parammaps.useNumber="@deleteIStockLaidList.useNumber",Object(r["c"])(t.postDataPramas).then((function(e){"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.get_table_dataImportInfo(),t.dialogFormVisible=!1,t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}))}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},h=u,g=(a("3d30"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"14f2c7aa",null);t["default"]=f.exports},f729:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-计量检验预警",use:"icon-计量检验预警-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-计量检验预警"><defs><style type="text/css"></style></defs><path d="M541.696 830.976H107.008V175.104h567.296v209.408c0 12.288 9.216 23.552 22.528 27.136h0.512c19.968 5.632 39.936-8.192 39.936-27.136V146.432c0-15.872-14.336-28.672-31.744-28.672H75.264c-17.408 0-31.744 12.8-31.744 28.672v713.216c0 15.872 14.336 28.672 31.744 28.672h453.632c31.232 0 45.568-35.328 21.504-53.76l-1.024-1.024c-2.048-1.536-5.12-2.56-7.68-2.56z" p-id="3904" fill="#ffffff" /><path d="M192.512 519.168c0 5.12 4.096 9.216 9.216 9.216h200.192c5.12 0 9.216-4.096 9.216-9.216V407.552c0-29.696-11.776-57.344-31.744-77.312-20.992-20.992-48.64-31.744-77.312-31.744-29.696 0-57.344 11.776-77.312 31.744-20.992 20.992-31.744 48.64-31.744 77.312v111.104l-0.512 0.512z m24.064-110.592c0-47.104 38.4-85.504 85.504-85.504s85.504 38.4 85.504 85.504v95.232H216.576V408.576zM315.392 248.832c0-5.12-4.096-9.216-9.216-9.216s-9.216 4.096-9.216 9.216v24.576h18.944v-24.576h-0.512zM422.912 311.808l18.944-18.944c3.584-3.584 3.584-9.216 0-13.824-3.584-3.584-9.216-3.584-13.824 0L409.6 297.984l13.312 13.824zM189.952 315.392l13.824-13.824-18.944-18.944c-3.584-3.584-9.216-3.584-13.824 0-3.584 3.584-3.584 9.216 0 13.824l18.944 18.944z" p-id="3905" fill="#ffffff" /><path d="M328.704 406.528h-38.4l16.384-33.792c2.048-5.12 0-10.24-4.096-12.8-4.096-3.072-10.24 0-12.8 4.096L266.24 411.136c-1.536 3.072-1.536 6.656 0.512 9.216 1.536 3.072 5.12 4.096 8.192 4.096h36.352l-22.528 35.328c-3.072 4.096-1.536 10.24 3.072 12.8 1.536 0.512 3.584 1.536 5.12 1.536 3.072 0 6.656-1.536 8.192-4.096l31.232-49.664c2.048-3.072 2.048-6.656 0-9.216-1.536-3.584-5.12-4.608-7.68-4.608z" p-id="3906" fill="#ffffff" /><path d="M363.008 601.6H248.32c-8.704 0-15.36 6.656-15.36 15.36s6.656 15.36 15.36 15.36h114.688c8.704 0 15.36-6.656 15.36-15.36 0-8.192-6.656-15.36-15.36-15.36zM202.752 601.6c-8.704 0-15.36 6.656-15.36 15.36s6.656 15.36 15.36 15.36 15.36-6.656 15.36-15.36c0-8.192-6.656-15.36-15.36-15.36z" p-id="3907" fill="#ffffff" /><path d="M394.752 674.816H248.32c-8.704 0-15.36 6.656-15.36 15.36s6.656 15.36 15.36 15.36h146.432c8.704 0 15.36-6.656 15.36-15.36 0-8.192-6.656-15.36-15.36-15.36zM202.752 674.816c-8.704 0-15.36 6.656-15.36 15.36s6.656 15.36 15.36 15.36 15.36-6.656 15.36-15.36c0-8.192-6.656-15.36-15.36-15.36z" p-id="3908" fill="#ffffff" /><path d="M449.024 748.032h-199.68c-8.704 0-15.36 6.656-15.36 15.36s6.656 15.36 15.36 15.36h200.192c8.704 0 15.36-6.656 15.36-15.36-0.512-8.704-7.168-15.36-15.872-15.36zM203.264 748.032c-8.704 0-15.36 6.656-15.36 15.36v0.512c0 8.192 6.656 15.36 15.36 15.36h0.512c8.192 0 15.36-6.656 15.36-15.36v-0.512c-1.024-8.704-7.68-15.36-15.872-15.36zM731.136 568.32c-49.152 0-89.088 39.936-89.088 89.088 0 49.152 39.936 89.088 89.088 89.088s89.088-39.936 89.088-89.088-39.936-89.088-89.088-89.088z m3.072 136.704c-24.576 0-44.544-19.968-44.544-44.544s19.968-44.544 44.544-44.544 44.544 19.968 44.544 44.544c0 24.576-19.968 44.544-44.544 44.544z m241.152-91.648c-3.584-17.92-14.848-29.184-29.696-29.184h-2.048c-28.16 0-51.2-22.528-51.2-50.688 0-7.168 3.072-16.384 4.608-19.456 7.168-16.384 1.024-35.84-13.824-45.568l-59.904-32.768c-14.848-6.144-32.256-2.56-43.52 8.704-7.68 7.68-27.136 23.552-40.96 23.552s-33.792-15.872-40.96-23.552c-11.264-11.264-28.672-14.848-43.52-9.216l-1.024 0.512-60.928 33.28-1.536 1.024c-14.336 9.728-19.456 28.672-12.8 44.544 0.512 1.024 4.608 10.752 4.608 19.456 0 28.16-23.04 50.688-51.2 50.688h-2.56c-14.336 0-26.112 11.264-29.184 29.184-3.072 15.36-4.608 31.232-5.12 47.104 0 19.968 4.608 44.544 5.12 47.104 3.584 17.92 14.848 29.184 29.696 29.184h2.048c28.16 0 51.2 23.04 51.2 50.688 0 7.168-3.072 16.384-4.608 19.456-7.168 16.384-1.024 35.84 13.824 45.568l58.88 32.256c15.36 6.144 32.768 2.56 44.032-9.216 7.168-7.68 27.648-25.088 41.984-25.088s34.304 16.896 41.984 25.6c11.776 12.288 30.208 15.872 45.568 8.704l59.392-32.768 1.536-1.024c14.336-9.728 19.456-28.672 12.8-44.544-2.56-6.144-4.096-12.8-4.608-19.456 0-28.16 23.04-50.688 51.2-50.688h2.56c14.336 0 26.112-11.264 29.184-29.184 0-0.512 5.12-26.112 5.12-47.104-1.024-19.456-5.632-44.032-6.144-47.104z m-45.056 78.336c-48.64 6.144-84.48 47.616-84.48 96.256 0 11.264 3.072 22.016 5.12 29.184l-42.496 23.552c-5.632-5.632-11.264-10.24-17.408-15.36-18.944-13.824-36.864-20.992-54.272-20.992-16.896 0-35.328 7.168-53.76 20.48-6.144 4.608-11.776 9.216-17.408 14.848l-40.96-23.04c2.56-7.168 5.12-18.432 5.12-29.696 0-49.152-36.352-90.112-84.48-96.768-1.536-10.24-2.56-20.48-3.072-31.232 0-10.24 1.536-23.04 3.072-31.232 48.64-6.144 84.48-47.616 84.48-96.768 0-11.264-2.56-22.016-5.12-29.184l44.032-24.064c3.584 3.584 9.728 9.216 17.408 14.336 18.432 13.312 36.352 19.968 53.248 19.968 16.384 0 34.304-6.656 52.736-19.456 7.68-5.12 13.824-10.752 17.408-13.824l41.984 23.552c-3.072 9.728-5.12 19.456-5.12 29.696 0 49.152 36.864 90.112 84.48 96.256 1.024 8.192 3.072 20.992 3.072 31.232-1.024 11.264-2.56 24.064-3.584 32.256z" p-id="3909" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},f75b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},i=[],r=(a("7f7f"),a("313e")),n=a.n(r),l=a("4c19");a("ed08");a("817d");var o={mixins:[l["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},pieDeptData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{pieDeptData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.pieDeptData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DeptData,a=e.text;this.chart.setOption({title:{text:a+"月部门统计",subtext:"",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["","","","",""]},series:[{name:a+"月",type:"pie",radius:"55%",center:["50%","60%"],data:t,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});var s=this;this.chart.on("click",(function(e){console.log(e),s.$emit("pieClickDept",e.name)}))}}},p=o,m=a("2877"),c=Object(m["a"])(p,s,i,!1,null,null,null);t["default"]=c.exports},f775:function(e,t,a){"use strict";a("7b1f")},f782:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol>'});n.a.add(l);t["default"]=l},f7a9:function(e,t,a){},f899:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-计量设备管理",use:"icon-计量设备管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-计量设备管理"><defs><style type="text/css"></style></defs><path d="M920 817.088c16-29.568 25.024-63.744 25.024-100.096 0-112.896-87.552-204.416-195.584-204.416s-195.648 91.52-195.648 204.416c0 112.96 87.616 204.48 195.648 204.48a189.44 189.44 0 0 0 119.232-42.432l70.656 73.792c15.232 16 40 16 55.296 0a42.24 42.24 0 0 0 0-57.792l-74.624-77.952z m-170.56 22.592c-64.832 0-117.376-54.912-117.376-122.688 0-67.712 52.48-122.624 117.376-122.624 64.768 0 117.376 54.912 117.376 122.624 0 67.776-52.608 122.688-117.376 122.688z m92.416-533.824V223.36a41.216 41.216 0 1 0-82.432 0v82.496a41.216 41.216 0 1 0 82.432 0z m82.496-288.64H99.648C54.144 17.216 17.28 54.144 17.28 99.648v824.704c0 45.504 36.928 82.432 82.432 82.432h453.568v-82.432H140.864a41.216 41.216 0 0 1-41.216-41.216V140.8c0-22.72 18.496-41.216 41.216-41.216H883.2c22.72 0 41.216 18.496 41.216 41.216v329.92h82.432V99.648c0-45.504-36.928-82.432-82.432-82.432z m-247.424 371.072V182.144a41.216 41.216 0 1 0-82.432 0v206.144a41.216 41.216 0 1 0 82.432 0zM466.56 595.84V182.144a41.216 41.216 0 1 0-82.496 0v415.36a41.216 41.216 0 1 0 82.496 0V595.84z m-192 0V182.144a41.216 41.216 0 1 0-82.496 0v599.04a41.216 41.216 0 1 0 82.496 0V595.84z" p-id="8693" /></symbol>'});n.a.add(l);t["default"]=l},f89a:function(e,t,a){},f9d6:function(e,t,a){"use strict";a.r(t);var s=a("e017"),i=a.n(s),r=a("21a1"),n=a.n(r),l=new i.a({id:"icon-备件退库",use:"icon-备件退库-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-备件退库"><defs><style type="text/css"></style></defs><path d="M258.701056 193.045226l512.00016 0 0 63.99952L258.701056 257.044746 258.701056 193.045226zM256.993602 321.671065l511.99916 0 0 63.99952L256.993602 385.670585 256.993602 321.671065zM256.993602 449.663108l131.31098 0 0 64.00052L256.993602 513.663628 256.993602 449.663108zM256.993602 577.665147l57.948456 0 0 64.00052-57.948456 0L256.993602 577.665147zM898.701256 0 130.701016 0C95.356326 0 66.702495 28.653831 66.702495 64.00052l0 895.998281c0 35.34469 28.653831 63.99952 63.99952 63.99952l299.403191-0.327895 0-63.99952-299.403191 0.327895L130.702015 64.00052l768.00024 0 0 611.622281 63.99952 0L962.701775 64.00052C962.700776 28.653831 934.041947 0 898.701256 0L898.701256 0z" p-id="12225" fill="#ffffff" /><path d="M962.700776 998.077615c-4.265635-63.979527-29.857446-375.345889-362.549984-392.40643l0-98.101607c0-4.265635 0-17.06154-8.53027-29.857446s-25.591811-12.795905-46.917986-4.265635l-4.265635 0-187.672945 204.734485c-4.265635 4.265635-21.326176 25.591811-21.326176 46.917986 0 25.591811 21.326176 46.917986 25.591811 46.917986l187.672945 213.264755c4.265635 4.265635 17.06154 17.06154 29.857446 17.06154 12.795905 0 21.326176-8.53027 25.591811-17.06154 4.265635-8.53027 4.265635-17.06154 4.265635-29.857446L604.417426 831.731846c55.449256 0 208.99912 8.53027 302.836092 174.877039 6.536908 14.430382 17.06154 17.06154 25.591811 17.06154l8.53027 0 6.380958-1.880398C960.551464 1017.524392 962.700776 1002.34325 962.700776 998.077615L962.700776 998.077615zM617.212332 789.078495c-21.326176 0-34.122081 0-34.122081 0l-21.326176 4.265635 0 145.019594L391.151671 742.160509c-4.265635-4.265635-12.795905-12.795905-12.795905-17.06154 0-4.265635 4.265635-12.795905 8.53027-17.06154l166.346769-179.142674 0 123.693418 21.326176 0c238.856566 0 311.366363 162.081134 332.692538 272.978647C809.149912 801.8744 676.926224 789.078495 617.212332 789.078495L617.212332 789.078495z" p-id="12226" fill="#ffffff" /></symbol>'});n.a.add(l);t["default"]=l},f9ee:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("el-link",{on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt)+" ")]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),5==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]),e._v(" "),3==s.SHStatue&&e.isDepartmentCharge&&s.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine3(s)}}},[e._v("保养审核2")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),5==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isDepartmentCharge&&e.seeTemp.departmentId==e.getdataListParm.parammaps.logindeptId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine3()}}},[e._v("保养审核2")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible_See=!1,e.get_table_data()}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||6==e.SHStatue||8==e.SHStatue?"未通过":5==e.SHStatue?"审核中":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养"},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核"},{title:"部门主管审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核"},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"部门主管审核"},{title:"设备主管审核"}]):5===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"",reason:""},{title:"设备主管审核"}],this.active=3):6===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson,status:"error",reason:t},{title:"设备主管审核"}],this.active=3):7===this.seeTemp.SHStatue?(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=4):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"完成保养",name:this.seeTemp.upkeepPerson,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"使用人审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"部门主管审核",date:this.seeTemp.deptChargeDate,name:this.seeTemp.deptChargePerson},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=4),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!0,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("d36d"),a("3d79"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"46a5a506",null);t["default"]=g.exports},f9fb:function(e,t,a){},fb26:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"检验预警状态"},model:{value:e.getdataListParm.parammaps.status,callback:function(t){e.$set(e.getdataListParm.parammaps,"status",t)},expression:"getdataListParm.parammaps.status"}},e._l(e.warningStatus,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"app-btn"},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.form_add}},[e._v("新增")]),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"info",icon:"el-icon-tickets"},on:{click:e.handleDownloadTemp}},[e._v("模板")]),e._v(" "),a("el-upload",{staticStyle:{display:"inline-block"},attrs:{headers:e.headers,data:e.uploadData,action:e.uploadExcelUrl,"show-file-list":!1,"before-upload":e.beforeImportExcel,"on-success":e.handleImportExcelSuccess}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"warning",icon:"el-icon-download"}},[e._v("导入")])],1),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("导出")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-class-name":e.tableRowClassName,"row-style":e.selectedHighlight,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.location))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"灭火器类型",width:"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.warnName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"处室","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分布位置","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.measureRange))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出厂日期",sortable:"",prop:"factoryNumber","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"检验日期","min-width":"80px",align:"center",sortable:"",prop:"lastCheckDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"有效日期","min-width":"100px",align:"center",sortable:"",prop:"validityDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"制造厂家","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cycle))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.purpose))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"负责人","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.form_edit(s)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.form_delete(s)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"115px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"编号:",prop:"location"}},[a("el-input",{ref:"location",attrs:{placeholder:"请输入编号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.location,callback:function(t){e.$set(e.createTemp,"location",t)},expression:"createTemp.location"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{ref:"pastureId",attrs:{label:"牧场:",prop:"pastureId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入牧场",disabled:"see"===e.dialogStatus},on:{change:e.changePasture},model:{value:e.createTemp.pastureId,callback:function(t){e.$set(e.createTemp,"pastureId",t)},expression:"createTemp.pastureId "}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"灭火器类型:",prop:"warnName"}},[a("el-input",{ref:"warnName",attrs:{placeholder:"请输入灭火器类型",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.warnName,callback:function(t){e.$set(e.createTemp,"warnName",t)},expression:"createTemp.warnName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"型号:",prop:"specification"}},[a("el-input",{ref:"specification",attrs:{placeholder:"请输入型号",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.specification,callback:function(t){e.$set(e.createTemp,"specification",t)},expression:"createTemp.specification"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"处室:",prop:"departmentName"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入处室",disabled:"see"===e.dialogStatus},on:{change:e.changeDepartment},model:{value:e.createTemp.departmentName,callback:function(t){e.$set(e.createTemp,"departmentName",t)},expression:"createTemp.departmentName"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"分布位置:",prop:"measureRange"}},[a("el-input",{ref:"measureRange",attrs:{placeholder:"请输入分布位置",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.measureRange,callback:function(t){e.$set(e.createTemp,"measureRange",t)},expression:"createTemp.measureRange"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"出场日期:",prop:"factoryNumber"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请输入出场日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.factoryNumber,callback:function(t){e.$set(e.createTemp,"factoryNumber",t)},expression:"createTemp.factoryNumber"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检验日期:",prop:"lastCheckDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions1,type:"date",placeholder:"请输入检验日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.lastCheckDate,callback:function(t){e.$set(e.createTemp,"lastCheckDate",t)},expression:"createTemp.lastCheckDate"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"有效日期:",prop:"validityDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions2,type:"date",placeholder:"请输入有效日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.validityDate,callback:function(t){e.$set(e.createTemp,"validityDate",t)},expression:"createTemp.validityDate"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"制造厂家:",prop:"cycle"}},[a("el-input",{ref:"cycle",attrs:{placeholder:"请输入制造厂家",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.cycle,callback:function(t){e.$set(e.createTemp,"cycle",t)},expression:"createTemp.cycle"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态:",prop:"purpose"}},[a("el-input",{ref:"purpose",attrs:{placeholder:"请输入状态",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.purpose,callback:function(t){e.$set(e.createTemp,"purpose",t)},expression:"createTemp.purpose"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"empName"}},[a("el-select",{ref:"empName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入责任人",disabled:"see"===e.dialogStatus},on:{change:e.changeEmp},model:{value:e.createTemp.empName,callback:function(t){e.$set(e.createTemp,"empName",t)},expression:"createTemp.empName"}},e._l(e.findAllEmploye,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"note"}},[a("el-input",{ref:"note",attrs:{placeholder:"请输入备注",disabled:"see"===e.dialogStatus},model:{value:e.createTemp.note,callback:function(t){e.$set(e.createTemp,"note",t)},expression:"createTemp.note"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus||"update"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){"create"===e.dialogStatus?e.add_dialog_save():e.edit_dialog_save()}}},[e._v("保存并关闭")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1,e.getdataListParm.parammaps.inputDatetime=""}}},[e._v("取消并关闭")])],1)],1)])],1)},i=[],r=(a("7514"),a("7f7f"),a("6724")),n=a("2934"),l=a("a78e"),o=a.n(l),p=a("ed08"),m=a("5c96"),c=a("5f87"),d=a("333d"),u={name:"FireExtinguisher",directives:{waves:r["a"]},components:{Pagination:d["a"]},data:function(){var e=this;return{warningStatus:[{id:0,name:"全部"},{id:1,name:"正常"},{id:2,name:"预警期"}],findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:o.a.get("pastureid")}},{name:"findAllDepart",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:o.a.get("pastureid")}}],rules:{location:[{required:!0,message:"必填",trigger:"blur"}],pastureId:[{required:!0,message:"必填",trigger:"blur"}],warnName:[{required:!0,message:"必填",trigger:"blur"}],specification:[{required:!0,message:"必填",trigger:"blur"}],lastCheckDate:[{required:!0,message:"必填",trigger:"blur"}],validityDate:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getExaminewarningList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:o.a.get("pasturename"),warningType:"灭火器"}},tableKey:0,listLoading:!1,total:0,list:[],getIndexList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},pickerOptions1:{disabledDate:function(t){return""!==e.createTemp.validityDate?Object(p["e"])(t.getTime(),"{y}-{m}-{d}")>=e.createTemp.validityDate:""}},pickerOptions2:{disabledDate:function(t){return Object(p["e"])(t.getTime(),"{y}-{m}-{d}")<=e.createTemp.lastCheckDate}},createTemp:{location:"",pastureId:this.$store.state.user.pastureid,pastureName:this.$store.state.user.pasturename,warnName:"",specification:"",departmentName:this.$store.state.user.departmentname,departmentId:this.$store.state.user.departmentid,measureRange:"",factoryNumber:"",lastCheckDate:"",validityDate:"",cycle:"",purpose:"",empId:"",empName:"",note:""},dialogFormVisible:!1,dialogStatus:"",textMap:{create:"新增",update:"编辑",see:"查看"},isokDisable:!1,postDataPramas:{},downLoadParm:{},isPercentage:!1,percentage:1}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"uploadExaminewarnMHQ",importParams:"牧场,编号,灭火器类型,型号,处室,分布位置,出厂日期,检验日期,有效日期,制造厂家,状态,负责人,备注",sheetname:"SheetJS"}},uploadExcelUrl:function(){return"http://127.0.0.1:8082/authdata/ImportExcel"}},created:function(){this.get_select_list(),this.get_table_data()},methods:{get_select_list:function(){var e=this;Object(n["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllDepart=t.data.findAllDepart.list,e.findAllEmploye=t.data.findAllEmploye.list}))},getNextDate:function(e,t){var a=new Date(e);a.setDate(a.getDate()+t);var s=a.getFullYear(),i=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,r=a.getDate()<10?"0"+a.getDate():a.getDate();return s+"-"+i+"-"+r},tableRowClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},get_table_data:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.getdataListParm).then((function(t){if(null==t.data.list||null==t.data)e.list=[];else{console.log("table数据",t.data.list),e.getIndexList=[];for(var a=0;a<t.data.list.length;a++)t.data.list[a].index=a,e.getNextDate(t.data.list[a].validityDate,-30)<=Object(p["e"])(new Date,"{y}-{m}-{d}")&&e.getIndexList.push({myindex:t.data.list[a].index});e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}setTimeout((function(){e.listLoading=!1}),100)}))},selectedHighlight:function(e){e.row;for(var t=e.rowIndex,a=0;a<this.getIndexList.length;a++)if(this.getIndexList[a].myindex===t)return{color:"red"}},form_search:function(){console.log("点击了搜索"),this.getdataListParm.offset=1,this.get_table_data()},resetCreateTemp:function(){this.createTemp.location="",this.createTemp.pastureId=this.$store.state.user.pastureid,this.createTemp.pastureName=this.$store.state.user.pasturename,this.createTemp.warnName="",this.createTemp.specification="",this.createTemp.departmentName=this.$store.state.user.departmentname,this.createTemp.departmentId=this.$store.state.user.departmentid,this.createTemp.measureRange="",this.createTemp.factoryNumber="",this.createTemp.lastCheckDate="",this.createTemp.validityDate="",this.createTemp.cycle="",this.createTemp.purpose="",this.createTemp.note="",this.createTemp.empName="",this.createTemp.empId=""},form_add:function(){console.log("点击了新增"),this.resetCreateTemp(),this.dialogStatus="create",this.dialogFormVisible=!0},changePasture:function(e){this.createTemp.pastureName=this.findAllPasture.find((function(t){return t.id===e})).name},changeDepartment:function(e){this.createTemp.departmentId=this.findAllDepart.find((function(t){return t.name===e})).id},changeEmp:function(e){this.createTemp.empId=this.findAllEmploye.find((function(t){return t.name===e})).id},add_dialog_save:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="insertExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.warningType="灭火器",Object(n["k"])(e.postDataPramas).then((function(t){console.log("新增保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_edit:function(e){console.log("点击了编辑",e),this.dialogStatus="update",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},edit_dialog_save:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){t&&(e.postDataPramas.name="updateExaminewarning",e.postDataPramas.parammaps={},e.postDataPramas.parammaps=e.createTemp,e.postDataPramas.parammaps.id=e.createTemp.id,e.postDataPramas.parammaps.warningType="灭火器",Object(n["k"])(e.postDataPramas).then((function(t){console.log("编辑保存发送参数",e.postDataPramas),"fail"!==t.msg?(e.dialogFormVisible=!1,e.get_table_data(),e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):Object(n["w"])(t,e.$notify)})))}))},form_see:function(e){console.log("点击了查看",e),this.dialogStatus="see",this.dialogFormVisible=!0,this.createTemp=Object.assign({},e),this.createTemp.pastureId=parseFloat(e.pastureId),this.createTemp.departmentId=parseFloat(e.departmentId),this.createTemp.empId=parseFloat(e.empId)},form_delete:function(e){var t=this;m["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除",e),t.postDataPramas.name="deleteExaminewarning",t.postDataPramas.parammaps={},t.postDataPramas.parammaps.id=e.id,t.postDataPramas.parammaps.warningType="灭火器",Object(n["k"])(t.postDataPramas).then((function(e){console.log("删除保存发送参数",t.postDataPramas),"fail"!==e.msg?(t.dialogFormVisible=!1,t.get_table_data(),t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):Object(n["w"])(e,t.$notify)}))}))},handleDownloadTemp:function(){var e=this;console.log("点击了模板"),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=[],s=["牧场","编号","灭火器类型","型号","处室","分布位置","出厂日期","检验日期","有效日期","制造厂家","状态","负责人","备注"],i=["牧场","编号","灭火器类型","型号","处室","分布位置","出厂日期","检验日期","有效日期","制造厂家","状态","负责人","备注"],r=e.formatJson(i,a);t.export_json_to_excel({header:s,data:r,filename:"灭火器模板",autoWidth:!0,bookType:"xlsx"})}))},beforeImportExcel:function(e){var t=e.size/1024/1024<6;return t||this.$message.error("上传文件大小不能超过 6MB!"),t},handleImportExcelSuccess:function(e,t){var s=this;this.get_table_data(),"ok"===e.msg?(this.$message({title:"成功",message:"导入成功:"+e.data.success+"条!",type:"success",duration:2e3}),e.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+e.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-39889fb2"),a.e("chunk-581b2547")]).then(a.bind(null,"4bf8d")).then((function(t){var a=e.data.result,i=["牧场","编号","灭火器类型","型号","处室","分布位置","出厂日期","检验日期","有效日期","制造厂家","状态","负责人","备注","报错信息"],r=["牧场","编号","灭火器类型","型号","处室","分布位置","出厂日期","检验日期","有效日期","制造厂家","状态","负责人","备注","error_msg"],n=s.formatJson(r,a);t.export_json_to_excel({header:i,data:n,filename:"灭火器报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(p["e"])(t[e]):t[e]}))}))},handleDownload:function(){var e=this;console.log("点击了导出"),this.$alert("灭火器正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getExaminewarningList",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(n["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log("导出table数据",e.downLoadList);var a=[{tHeader:["牧场","编号","灭火器类型","型号","处室","分布位置","出厂日期","检验日期","有效日期","制造厂家","状态","负责人","备注"],filterVal:["location","pastureName","warnName","specification","departmentName","measureRange","factoryNumber","lastCheckDate","validityDate","cycle","purpose","empName","note"],tableDatas:e.downLoadList,sheetName:"灭火器"}];Object(p["d"])(a,"灭火器",!0,"xlsx")}))}))}}},h=u,g=(a("87d3"),a("2877")),f=Object(g["a"])(h,s,i,!1,null,"3b874006",null);t["default"]=f.exports},fba8:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e.isPercentage?a("div",{staticClass:"percentage",staticStyle:{width:"210px",height:"90px",background:"#fff",position:"fixed",bottom:"0",left:"0","z-index":"9999999999999"}},[a("h4",{staticStyle:{"padding-left":"10px","line-height":"0"}},[e._v("导出进度:")]),e._v(" "),a("el-progress",{staticStyle:{"padding-left":"10px"},attrs:{"text-inside":!0,"stroke-width":26,percentage:e.percentage}})],1):e._e(),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牧场"},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"250px",top:"-3px"},attrs:{type:"month",placeholder:"选择月份",format:"yyyy-MM","value-format":"yyyy-MM"},model:{value:e.getdataListParm.parammaps.checkDate,callback:function(t){e.$set(e.getdataListParm.parammaps,"checkDate",t)},expression:"getdataListParm.parammaps.checkDate"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{position:"absolute",right:"10px"},attrs:{type:"success",icon:"el-icon-edit"},on:{click:e.handleDownload}},[e._v("导出")]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月份",sortable:"",prop:"checkDate",align:"center","min-width":"150px"}}),e._v(" "),a("el-table-column",{attrs:{label:"牧场",prop:"pastureName","min-width":"130px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘盈数量","min-width":"130px",align:"center",sortable:"",prop:"moreAount"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘盈金额",align:"center","min-width":"150px",sortable:"",prop:"moreSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘亏数量","min-width":"130px",align:"center",sortable:"",prop:"lessAount"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘亏金额","min-width":"130px",align:"center",sortable:"",prop:"lessSum"}}),e._v(" "),a("el-table-column",{attrs:{label:"盈亏净额","min-width":"130px",align:"center",sortable:"",prop:"sums"}}),e._v(" "),a("el-table-column",{attrs:{label:"盘点状态","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumStatue))]),a("br")]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}})],1)])},i=[],r=a("2934"),n=a("333d"),l=a("6724"),o=a("a78e"),p=a.n(o),m=a("ed08"),c={name:"InventorySpareParts",components:{Pagination:n["a"]},directives:{waves:l["a"]},data:function(){return{rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},rules:{},findAllPasture:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:p.a.get("pastureid")}}],getdataListParm:{name:"getcheckpartReportList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:p.a.get("pasturename"),checkDate:""}},listLoading:!1,total:0,tableKey:0,list:[],downLoadParm:{},downLoadList:[],isPercentage:!1,percentage:1}},created:function(){this.get_select_list(),this.get_table_data()},methods:{tableSort:function(e){Object(m["f"])(e,this.list)},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list}))},get_table_data:function(){var e=this;this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){console.log("table数据",t.data.list),e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,t.data.total&&(e.total=t.data.total),setTimeout((function(){e.listLoading=!1}),100)}))},form_search:function(){console.log("点击了table搜索"),null==this.getdataListParm.parammaps.checkDate&&(this.getdataListParm.parammaps.checkDate=""),this.getdataListParm.offset=1,this.get_table_data()},handleDownload:function(){var e=this;this.$alert("备件盘点报表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出",{}),this.isPercentage=!0,this.percentage=1;var t=setInterval((function(){e.percentage+=5,e.percentage>95&&(e.percentage=99,clearInterval(t)),e.percentage=e.percentage}),1e3);this.downLoadParm.name="getcheckpartReportList",this.downLoadParm.returntype="Map",this.downLoadParm.parammaps=this.getdataListParm.parammaps,Object(r["d"])(this.downLoadParm).then((function(t){""!==t.data.list&&(e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3)),e.$nextTick((function(){e.downLoadList=t.data.list,console.log(e.downLoadList);var a=[{tHeader:["月份","牧场","盘盈数量","盘亏数量","盘亏金额","盈亏净额","盘点状态"],filterVal:["checkDate","pastureName","moreAount","lessAount","lessSum","sums","sumStatue"],tableDatas:e.downLoadList,sheetName:"备件盘点报表"}];Object(m["d"])(a,"备件盘点报表",!0,"xlsx")}))}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,s,i,!1,null,null,null);t["default"]=h.exports},fbe0:function(e,t,a){},fc59:function(e,t,a){"use strict";a("f11e")},fca6:function(e,t,a){},fccd:function(e,t,a){},fd2f:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container common-list-page"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:e.sumAmountDCL,name:"first"}},[a("el-table",{attrs:{data:e.listDCL,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1},on:{"cell-click":e.cellClickDCL}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalDCL>0,expression:"totalDCL>0"}],attrs:{total:e.totalDCL,page:e.getdataListParmDCL.offset,limit:e.getdataListParmDCL.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmDCL,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmDCL,"pagecount",t)},pagination:e.get_table_dataDCL}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.sumAmountAll,name:"second"}},[a("el-table",{attrs:{data:e.listAll,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalAll>0,expression:"totalAll>0"}],attrs:{total:e.totalAll,page:e.getdataListParmAll.offset,limit:e.getdataListParmAll.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmAll,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmAll,"pagecount",t)},pagination:e.get_table_dataALL}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:e.sumAmountYCL,name:"third"}},[a("el-table",{attrs:{data:e.listYCL,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalYCL>0,expression:"totalYCL>0"}],attrs:{total:e.totalYCL,page:e.getdataListParmYCL.offset,limit:e.getdataListParmYCL.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmYCL,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmYCL,"pagecount",t)},pagination:e.get_table_dataYCL}})],1)],1)],1)},i=[],r=(a("4917"),a("7f7f"),a("2934")),n=a("333d"),l=(a("a78e"),{components:{Pagination:n["a"]},data:function(){return{activeName:"first",rowStyle:{maxHeight:"40px",height:"35px"},cellStyle:{padding:"0px"},tableKey:0,getNoMesCountParm:{name:"getNoMesCount",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},sumAmountDCL:null,getAllMesCountParm:{name:"getAllMesCount",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},sumAmountAll:"",getMesCountParm:{name:"getMesCount",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},sumAmountYCL:"",getdataListParmDCL:{name:"getNoMesList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},listDCL:[],totalDCL:0,pageNumDCL:"",pageSizeDCL:"",listLoadingDCL:!0,getdataListParmAll:{name:"getAllMesList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},listAll:[],totalAll:0,pageNumAll:"",pageSizeAll:"",listLoadingAll:!0,getdataListParmYCL:{name:"getMesList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{empId:this.$store.state.user.employeid,pastureId:this.$store.state.user.pastureid,deptId:this.$store.state.user.departmentid}},listYCL:[],totalYCL:0,pageNumYCL:"",pageSizeYCL:"",listLoadingYCL:!0}},created:function(){this.get_table_dataDCL(),this.getNoMesCount(),this.getAllMesCount(),this.getMesCount()},methods:{getNoMesCount:function(){var e=this;Object(r["e"])(this.getNoMesCountParm).then((function(t){console.log("待处理数据",t.data.list),e.sumAmountDCL="待处理("+t.data.list[0].sumAmount+")"}))},getAllMesCount:function(){var e=this;Object(r["e"])(this.getAllMesCountParm).then((function(t){console.log("全部数据",t.data.list),e.sumAmountAll="全部数据("+t.data.list[0].sumAmount+")"}))},getMesCount:function(){var e=this;Object(r["e"])(this.getMesCountParm).then((function(t){console.log("已处理",t.data.list),e.sumAmountYCL="已处理("+t.data.list[0].sumAmount+")"}))},handleClick:function(e){"second"===e.name?this.get_table_dataALL():"third"===e.name?this.get_table_dataYCL():this.get_table_dataDCL()},get_table_dataDCL:function(){var e=this;this.listLoadingDCL=!0,Object(r["e"])(this.getdataListParmDCL).then((function(t){console.log("待处理table数据",t.data.list),e.listDCL=t.data.list,e.pageNumDCL=t.data.pageNum,e.pageSizeDCL=t.data.pageSize,t.data.total&&(e.totalDCL=t.data.total),setTimeout((function(){e.listLoadingDCL=!1}),100)}))},get_table_dataALL:function(){var e=this;this.listLoadingAll=!0,Object(r["e"])(this.getdataListParmAll).then((function(t){console.log("全部table数据",t.data.list),e.listAll=t.data.list,e.pageNumAll=t.data.pageNum,e.pageSizeAll=t.data.pageSize,t.data.total&&(e.totalAll=t.data.total),setTimeout((function(){e.listLoadingAll=!1}),100)}))},get_table_dataYCL:function(){var e=this;this.listLoadingYCL=!0,Object(r["e"])(this.getdataListParmYCL).then((function(t){console.log("已处理table数据",t.data.list),e.listYCL=t.data.list,e.pageNumYCL=t.data.pageNum,e.pageSizeYCL=t.data.pageSize,t.data.total&&(e.totalYCL=t.data.total),setTimeout((function(){e.listLoadingYCL=!1}),100)}))},cellClickDCL:function(e){console.log(e);var t=/\【(.+?)\】/g,a=e.remark.match(t)[0],s=a.substring(1,a.length-1);if("合同审核"===s){var i=/\:(.*)/,r=e.repairCode.match(i)[1],n=r.substring(0,12);this.$router.push({path:"/customs/ContractManagement",query:{contractCode:n}})}else"申购审核"===s?this.$router.push("/customs/Subscribe"):"采购配单"===s?this.$router.push("/customs/Purchase"):"领用审核"===s?this.$router.push("/customs/Receive"):"退货审核"===s?this.$router.push("/customs/Returngoods"):"设备审核"===s?this.$router.push({path:"/asset/Basics",query:{tabName:"second"}}):"设备保养"===s||"保养审核"===s?this.$router.push("/maintenance/Maintain"):"维修接单"===s||"维修派单"===s||"维修审核"===s?this.$router.push("/maintenance/Repair"):"备件审核"===s?this.$router.push({path:"/customs/Basic",query:{tabName:"second"}}):"配单审核"===s&&this.$router.push({path:"/customs/Purchase",query:{activeName:"fouth"}})}}}),o=l,p=a("2877"),m=Object(p["a"])(o,s,i,!1,null,"0bd4a34b",null);t["default"]=m.exports},fd62:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场"},on:{change:e.changePastureName},model:{value:e.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.getdataListParm.parammaps,"pastureName",t)},expression:"getdataListParm.parammaps.pastureName"}},e._l(e.findAllPasture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"保养单号",clearable:""},model:{value:e.getdataListParm.parammaps.upkeepCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"upkeepCode",t)},expression:"getdataListParm.parammaps.upkeepCode"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:e.getdataListParm.parammaps.eqName,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqName",t)},expression:"getdataListParm.parammaps.eqName"}}),e._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备内部编号",clearable:""},model:{value:e.getdataListParm.parammaps.eqCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"eqCode",t)},expression:"getdataListParm.parammaps.eqCode"}}),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"部门"},model:{value:e.getdataListParm.parammaps.departmentId,callback:function(t){e.$set(e.getdataListParm.parammaps,"departmentId",t)},expression:"getdataListParm.parammaps.departmentId"}},e._l(e.findAllDepart,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"处理状态"},model:{value:e.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.getdataListParm.parammaps,"statue",t)},expression:"getdataListParm.parammaps.statue"}},e._l(e.statues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.getdataListParm.parammaps.SHStatue,callback:function(t){e.$set(e.getdataListParm.parammaps,"SHStatue",t)},expression:"getdataListParm.parammaps.SHStatue"}},e._l(e.SHStatues,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"datetimerange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.getdataListParm.parammaps,"inputDatetime",t)},expression:"getdataListParm.parammaps.inputDatetime"}}),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.form_search}},[e._v("搜索")]),e._v(" "),a("div",[a("el-radio-group",{staticStyle:{"margin-top":"-9px"},on:{change:function(t){return e.changeAll()}},model:{value:e.radioAll,callback:function(t){e.radioAll=t},expression:"radioAll"}},[a("el-radio-button",{attrs:{label:"全部"}}),e._v(" "),a("el-badge",{staticClass:"item",attrs:{value:e.pending.total}},[a("el-radio-button",{attrs:{label:"待处理"}})],1),e._v(" "),a("el-radio-button",{attrs:{label:"已处理"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.tableCellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养单号","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"牧场","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备内部编号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"设备名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"规格型号","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部门","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.departmentName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"责任人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.upkeepPerson))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养人","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useEmpName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"保养日期",sortable:"",prop:"plantime","min-width":"80px",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"处理状态","min-width":"100px",align:"center",formatter:e.statue}}),e._v(" "),a("el-table-column",{attrs:{label:"领用单状态","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LYStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"旧品录入状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.LRStatue))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"80px",align:"center",formatter:e.SHStatue}}),e._v(" "),a("el-table-column",{attrs:{prop:"img",label:"保养过程",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["已录制"==t.row.videoTxt?a("a",{staticStyle:{"border-bottom":"1px solid #333"},on:{click:function(a){return e.preview(t.row)}}},[e._v(e._s(t.row.videoTxt))]):e._e(),e._v(" "),"未录制"==t.row.videoTxt?a("el-link",[e._v("未录制 ")]):e._e(),e._v(" "),"已录制未上传"==t.row.videoTxt?a("el-link",[e._v("已录制未上传 ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[e.isSee?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.form_see(s)}}},[e._v("查看")]):e._e(),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||"未领用"!=s.LYStatue||0===s.statue||!e.isLingYong||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{width:"80px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleReceivingSpareParts(s)}}},[e._v("保养及领用")]),e._v(" "),1!=s.SHStatue&&4!=s.SHStatue&&6!=s.SHStatue&&8!=s.SHStatue||0===s.statue||!e.isComplete||s.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]):a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleCompleteMaintenance(s)}}},[e._v("完成保养")]),e._v(" "),2==s.SHStatue&&e.isCharge&&s.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine(s)}}},[e._v("保养审核")]),e._v(" "),3==s.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{width:"70px",display:"inline-block"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success",size:"mini"},on:{click:function(t){return e.handleExamine2(s)}}},[e._v("保养审核3")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.get_table_data}}),e._v(" "),e.dialogFormVisible_See?a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_See,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_See=t}}},[a("div",{staticClass:"app-see"},[e.statue1?a("div",{staticClass:"see"},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1):e._e(),e._v(" "),e.statue2?a("div",{staticClass:"see"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"保养信息",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养单号:",prop:"upkeepCode"}},[a("el-input",{ref:"upkeepCode",attrs:{disabled:""},model:{value:e.seeTemp.upkeepCode,callback:function(t){e.$set(e.seeTemp,"upkeepCode",t)},expression:"seeTemp.upkeepCode"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备名称:",prop:"eqName"}},[a("el-input",{ref:"eqName",attrs:{disabled:""},model:{value:e.seeTemp.eqName,callback:function(t){e.$set(e.seeTemp,"eqName",t)},expression:"seeTemp.eqName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"设备内部编号:",prop:"eqCode"}},[a("el-input",{ref:"eqCode",attrs:{disabled:""},model:{value:e.seeTemp.eqCode,callback:function(t){e.$set(e.seeTemp,"eqCode",t)},expression:"seeTemp.eqCode"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"牧场:",prop:"pastureName"}},[a("el-input",{ref:"pastureName",attrs:{disabled:""},model:{value:e.seeTemp.pastureName,callback:function(t){e.$set(e.seeTemp,"pastureName",t)},expression:"seeTemp.pastureName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"部门:",prop:"departmentName"}},[a("el-input",{ref:"departmentName",attrs:{disabled:""},model:{value:e.seeTemp.departmentName,callback:function(t){e.$set(e.seeTemp,"departmentName",t)},expression:"seeTemp.departmentName"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"责任人:",prop:"employeName"}},[a("el-input",{ref:"employeName",attrs:{disabled:""},model:{value:e.seeTemp.employeName,callback:function(t){e.$set(e.seeTemp,"employeName",t)},expression:"seeTemp.employeName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机修:",prop:"upkeepPerson"}},[a("el-input",{ref:"upkeepPerson",attrs:{disabled:""},model:{value:e.seeTemp.upkeepPerson,callback:function(t){e.$set(e.seeTemp,"upkeepPerson",t)},expression:"seeTemp.upkeepPerson"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养日期:",prop:"plantime"}},[a("el-input",{ref:"plantime",attrs:{disabled:""},model:{value:e.seeTemp.plantime,callback:function(t){e.$set(e.seeTemp,"plantime",t)},expression:"seeTemp.plantime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"保养人:",prop:"useEmpName"}},[a("el-input",{ref:"useEmpName",attrs:{disabled:""},model:{value:e.seeTemp.useEmpName,callback:function(t){e.$set(e.seeTemp,"useEmpName",t)},expression:"seeTemp.useEmpName"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.seeTemp.upNameLevel,callback:function(t){e.$set(e.seeTemp,"upNameLevel",t)},expression:"seeTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}],null,!1,2975714744)}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}],null,!1,1294061650)}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}],null,!1,2627516349)}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.active))])]}}],null,!1,2193521354)})],1),e._v(" "),a("el-form",{ref:"seeTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.seeTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"流程进度"}}),e._v(" "),a("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"success"}},e._l(e.activeList,(function(t,s){return a("el-step",{key:s,attrs:{title:t.title,status:t.status}},[a("template",{slot:"description"},[a("div",{staticClass:"step-row"},[a("div",[e._v(e._s(t.name)+"  "+e._s(t.date))]),e._v(" "),a("div",[e._v(e._s(t.reason))]),e._v(" "),a("div",[e._v(e._s(t.scores))])])])],2)})),1)],1)],1),e._v(" "),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"操作:"}},[1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||"未领用"!=e.seeTemp.LYStatue||0===e.seeTemp.statue||!e.isLingYong||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleReceivingSpareParts()}}},[e._v("保养及领用")]),e._v(" "),1!=e.seeTemp.SHStatue&&4!=e.seeTemp.SHStatue&&6!=e.seeTemp.SHStatue&&8!=e.seeTemp.SHStatue||0===e.seeTemp.statue||!e.isComplete||e.seeTemp.upkeepPersonId!=e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]):a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleCompleteMaintenance()}}},[e._v("完成保养")]),e._v(" "),2==e.seeTemp.SHStatue&&e.isCharge&&e.seeTemp.useEmpId==e.getdataListParm.parammaps.loginId?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine()}}},[e._v("保养审核")]),e._v(" "),3==e.seeTemp.SHStatue&&e.isLeaderCharge?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")]):a("el-button",{staticStyle:{width:"70px",display:"none"},attrs:{type:"success"},on:{click:function(t){return e.handleExamine2()}}},[e._v("保养审核3")])],1)],1)],1)],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"领用记录",name:"second"}},[a("el-form",{ref:"collarUseTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.collarUseTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.collarUseTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.collarUseTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.collarUseTemp.createDate))])])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"领用状态:",prop:"statueName"}},[a("span",[e._v(e._s(e.collarUseTemp.statueName))])])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"cell-click":e.openDetails,"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reportery",label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}],null,!1,4185218246)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"amount",label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.amount))])]}}],null,!1,1167497322)}),e._v(" "),a("el-table-column",{attrs:{label:"用途","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.note))])]}}],null,!1,535653238)})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"旧品录入记录",name:"third"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingOldProducts,expression:"listLoadingOldProducts"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listOldProducts,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.tableSort}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}],null,!1,2293023789)}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}],null,!1,2680662646)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"acturalAmount",label:"录入数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.acturalAmount))])]}}],null,!1,974349014)})],1)],1)],1)],1):e._e()]),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.close_diago()}}},[e._v("关闭")])],1)]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_ReceivingSpareParts,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.dialogFormVisible_ReceivingSpareParts=t}}},[a("el-tabs",{model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[a("el-tab-pane",{attrs:{label:"保养",name:"first"}},[a("el-form",{ref:"maintainTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"使用人:",prop:"employeeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"使用人"},model:{value:e.maintainTemp.employeeId,callback:function(t){e.$set(e.maintainTemp,"employeeId",t)},expression:"maintainTemp.employeeId"}},e._l(e.empdeptList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.empname,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"保养内容:",prop:"upNameLevel"}},[a("el-input",{ref:"upNameLevel",attrs:{disabled:""},model:{value:e.maintainTemp.upNameLevel,callback:function(t){e.$set(e.maintainTemp,"upNameLevel",t)},expression:"maintainTemp.upNameLevel"}})],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingMaintenanceContent,expression:"listLoadingMaintenanceContent"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"element-loading-text":"给我一点时间",data:e.listMaintenanceContent,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"部位","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.positionName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"项目","min-width":"140px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.program))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标准","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执行动作","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%"},model:{value:t.row.active,callback:function(a){e.$set(t.row,"active",a)},expression:"scope.row.active"}},e._l(e.getDictByName,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"备件领用",name:"second"}},[a("div",{staticClass:"app-receivingSpareParts"},[a("el-form",{ref:"receivingTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.receivingTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用单号:",prop:"applyCode"}},[a("span",[e._v(e._s(e.receivingTemp.applyCode))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用部门:",prop:"departmentName"}},[a("span",[e._v(e._s(e.receivingTemp.departmentName))])])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"领用日期:",prop:"createDate"}},[a("span",[e._v(e._s(e.receivingTemp.createDate))])])],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{label:"所需备件:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.sparePartSearch,placeholder:"请输入备件编号或备件名称或备件规格"},on:{select:e.handleSelectSparePart},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}]),model:{value:e.receivingTemp.partCode,callback:function(t){e.$set(e.receivingTemp,"partCode",t)},expression:"receivingTemp.partCode"}})],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoadingCollarUse,expression:"listLoadingCollarUse"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.listCollarUse,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"库存数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reportery))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领用数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"amount"}},[a("el-input",{ref:"amount",staticStyle:{"margin-top":"15px"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.sparePartsDelete(s)}}},[e._v("删除")])]}}])})],1)],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},["first"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData1()}}},[e._v("确认")]):e._e(),e._v(" "),"second"==e.activeName2?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createReceivingSparePartseData2()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_ReceivingSpareParts=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_maintainComplete,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.dialogFormVisible_maintainComplete=t}}},[a("div",{staticClass:"maintainComplete"},[a("el-form",{ref:"maintainCompleteTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.rules,model:e.maintainCompleteTemp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"是否录入旧品:",prop:"isOldProducts"}},[a("el-radio-group",{on:{change:e.changeIsOldProducts},model:{value:e.maintainCompleteTemp.isOldProducts,callback:function(t){e.$set(e.maintainCompleteTemp,"isOldProducts",t)},expression:"maintainCompleteTemp.isOldProducts"}},[a("el-radio",{attrs:{label:0,checked:""}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1)],1),e._v(" "),e.No2?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"旧品录入:",prop:"partCode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"name","fetch-suggestions":e.oldProductsSearch,placeholder:"请输入备件编号或备件名称或备件规格 "},on:{select:e.handleSelectOldProducts},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.item;return[a("b",[e._v("备件编号:")]),a("span",{staticClass:"name"},[e._v(e._s(s.partCode))]),e._v("\n |"),a("b",[e._v("备件名称:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.partName))]),e._v("\n |"),a("b",{staticStyle:{"padding-left":"3em"}},[e._v("备件规格:")]),a("span",{staticClass:"addr"},[e._v(e._s(s.specification))])]}}],null,!1,1926878259),model:{value:e.maintainCompleteTemp.partCode,callback:function(t){e.$set(e.maintainCompleteTemp,"partCode",t)},expression:"maintainCompleteTemp.partCode"}})],1)],1)],1):e._e()],1),e._v(" "),e.No2?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{"element-loading-text":"给我一点时间",data:e.listAdd,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.rowStyle}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50px"}}),e._v(" "),a("el-table-column",{attrs:{label:"备件编号","min-width":"90px",prop:"partCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partCode))])]}}],null,!1,2641318204)}),e._v(" "),a("el-table-column",{attrs:{label:"备件名称","min-width":"60px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.partName))]),a("br")]}}],null,!1,3777971287)}),e._v(" "),a("el-table-column",{attrs:{label:"备件规格",prop:"specification",align:"center","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specification))])]}}],null,!1,1834134747)}),e._v(" "),a("el-table-column",{attrs:{label:"录入数量",prop:"brand",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row,rules:e.rules}},[a("el-form-item",{attrs:{prop:"acturalAmount"}},[a("el-input",{ref:"acturalAmount",staticStyle:{"margin-top":"15px"},model:{value:t.row.acturalAmount,callback:function(a){e.$set(t.row,"acturalAmount",a)},expression:"scope.row.acturalAmount"}})],1)],1)]}}],null,!1,3823136029)}),e._v(" "),a("el-table-column",{attrs:{label:"用途",prop:"note",align:"center","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{attrs:{model:t.row}},[a("el-form-item",{attrs:{prop:"note"}},[a("el-input",{ref:"note",staticStyle:{"margin-top":"15px"},model:{value:t.row.note,callback:function(a){e.$set(t.row,"note",a)},expression:"scope.row.note"}})],1)],1)]}}],null,!1,2357200587)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"60","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("a",{staticClass:"del",on:{click:function(t){return e.partDelete(s)}}},[e._v("删除")])]}}],null,!1,1984826408)})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){e.dialogStatus,e.createMaintainCompleteData()}}},[e._v("确认")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_maintainComplete=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_examine,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible_examine=t}}},[a("div",{staticClass:"app-examine"},[a("h3",{staticStyle:{width:"100%",margin:"0 auto","line-height":"50px"}},[e._v("请确认保养审核结果:")]),e._v(" "),a("el-form",{ref:"examineTemp",staticStyle:{width:"60%",height:"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.examineTemp,"label-position":"right"}},[a("el-row",{staticStyle:{width:"88%",margin:"0 auto"}},[a("el-col",{attrs:{span:20}},[a("el-form-item",[a("el-radio-group",{on:{change:e.changeIsStatue},model:{value:e.examineTemp.isStatue,callback:function(t){e.$set(e.examineTemp,"isStatue",t)},expression:"examineTemp.isStatue"}},[a("el-radio",{attrs:{label:3}},[e._v("通过")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("不通过")])],1)],1)],1),e._v(" "),e.isStatueReason?a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入保养不通过的原因"},model:{value:e.examineTemp.workflowNote,callback:function(t){e.$set(e.examineTemp,"workflowNote",t)},expression:"examineTemp.workflowNote"}})],1):e._e()],1),e._v(" "),2==e.examineTemp.SHStatue&&3==e.examineTemp.isStatue?a("el-row",{staticStyle:{width:"90%",margin:"0 auto"}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"评分:",prop:"scores"}},[a("el-rate",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{"show-text":"",texts:["1分","2分","3分","4分","5分"]},model:{value:e.examineTemp.scores,callback:function(t){e.$set(e.examineTemp,"scores",t)},expression:"examineTemp.scores"}})],1)],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["examine"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData()}}},[e._v("确认")]):e._e(),e._v(" "),"examine2"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData2()}}},[e._v("确认")]):e._e(),e._v(" "),"examine3"===e.dialogStatus?a("el-button",{attrs:{type:"primary",disabled:e.isokDisable},on:{click:function(t){return e.createExamineData3()}}},[e._v("确认")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){e.dialogFormVisible_examine=!1}}},[e._v("关闭")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible_video,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.dialogFormVisible_video=t}}},[a("div",{staticClass:"app-video"},[a("el-form",{ref:"videoTemp",staticStyle:{width:"80%","min-height":"150px",margin:"0 auto"},attrs:{rules:e.rules,model:e.videoTemp,"label-position":"right"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"",prop:"scores"}},[a("video",{staticStyle:{width:"90%",height:"450px",margin:"0 auto"},attrs:{src:e.videoTemp.videoPath,controls:"controls"}})])],1)],1)],1)],1)])],1)},i=[],r=(a("7f7f"),a("7514"),a("2934")),n=a("6724"),l=a("ed08"),o=a("333d"),p=a("a78e"),m=a.n(p),c=a("5c96"),d={name:"Maintain",components:{Pagination:o["a"]},directives:{waves:n["a"]},data:function(){return{active:0,activeList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},isokDisable:!1,rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}]},findAllPasture:[],findAllDepart:[],findAllEmploye:[],requestParams:[{name:"findAllPasture",offset:0,pagecount:0,returntype:"Map",parammaps:{id:m.a.get("pastureid")}},{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},{name:"findAllEmploye",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["保养模板执行动作"]}],getDepartParam:{name:"findAllDepart1",offset:0,pagecount:0,parammaps:{pastureId:m.a.get("pastureid"),eId:m.a.get("employeid")}},statues:[{id:"0",name:"已逾期"},{id:"1",name:"保养中"},{id:"2",name:"保养完成"}],SHStatues:[{id:"0",name:"审核中"},{id:"1",name:"已通过"},{id:"2",name:"未通过"}],empdeptList:[],getDictByName:[],radio2:"全部",textMap:{see:"查看详情",receivingSpareParts:"保养及领用",maintainComplete:"完成保养",examine:"保养审核",examine2:"保养审核2",examine3:"保养审核3",video:"视频"},dialogStatus:"",radioAll:"全部",getdataListParm:{name:"getBigupkeepList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[],dialogFormVisible_See:!1,seeTemp:{},statue1:!1,statue2:!1,activeName:"first",listLoadingMaintenanceContent:!1,listMaintenanceContent:[],getMaintenanceContentParm:{name:"getUpkeepTemplateListbyeqV2",returntype:"Map",parammaps:{}},Reason:!1,getCollarUseParm:{name:"getPartsapplybyMt",returntype:"Map",parammaps:{}},collarUseTemp:{},getCollarUseListParm:{name:"getpartapplyListBybig",returntype:"Map",parammaps:{}},listLoadingCollarUse:!1,listCollarUse:[],getOldProductsParm:{name:"getMaintainRefuse",returntype:"Map",parammaps:{}},listLoadingOldProducts:!1,listOldProducts:[],dialogFormVisible_ReceivingSpareParts:!1,activeName2:"first",maintainTemp:{},receivingTemp:{},getEmpdeptParm:{name:"getEmpdept",returntype:"Map",parammaps:{deptId:""}},getAutoCreatCodeParm:{name:"autoCreatCode",returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),codeType:"LY"}},requestSparePart:{name:"getPartsListLY",page:1,offset:1,pagecount:20,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid")}},postDataPramas:{},dialogFormVisible_maintainComplete:!1,maintainCompleteTemp:{},requestOldProducts:{name:"getAllPartsListWB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},No2:!1,listAdd:[],dialogFormVisible_examine:!1,requestParam:{},examineTemp:{isStatue:3},isStatueReason:!1,isSee:[],isLingYong:[],isComplete:[],isCharge:[],isLeaderCharge:[],isDepartmentCharge:[],buttons:[],pending:{total:0,getdataListParm:{name:"getBigupkeepWebListNO",page:1,offset:1,getTotal:"total3",pagecount:10,returntype:"Map",parammaps:{}}},dialogFormVisible_video:!1,videoTemp:{},requestParam2:{}}},computed:{space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,a=t.steps.length,s="number"===typeof this.space?this.space+"px":this.space?this.space:100/(a-(this.isCenter?0:1))+"%";return e.flexBasis=s,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},created:function(){var e=this;Object(r["e"])({name:"getUserPCButtons",parammaps:{jwt_username:m.a.get("name")}}).then((function(t){e.buttons=t.data.list,e.get_auto_buttons()})),void 0!==this.$route.query.myPath&&"MaintenancePlan"==this.$route.query.myPath&&(this.getdataListParm.parammaps.eqCode=this.$route.query.eqCode,this.getdataListParm.parammaps.inputDatetime=[this.$route.query.time,this.$route.query.time],this.getdataListParm.parammaps.startTime=this.$route.query.time,this.getdataListParm.parammaps.stopTime=this.$route.query.time),this.get_select_list(),this.get_table_data(),this.getPendingList()},methods:{tableSort:function(e){"second"==this.activeName?Object(l["f"])(e,this.listCollarUse):"third"==this.activeName&&Object(l["f"])(e,this.listOldProducts)},get_auto_buttons:function(){var e="maintenance:maintain:see",t=Object(r["v"])(JSON.parse(sessionStorage.buttons),e);this.isSee=t;var a="maintenance:maintain:lingyong",s=Object(r["v"])(JSON.parse(sessionStorage.buttons),a);this.isLingYong=s;var i="maintenance:maintain:complete",n=Object(r["v"])(JSON.parse(sessionStorage.buttons),i);this.isComplete=n;var l="maintenance:maintain:charge",o=Object(r["v"])(JSON.parse(sessionStorage.buttons),l);this.isCharge=o;var p="maintenance:maintain:leaderCharge",m=Object(r["v"])(JSON.parse(sessionStorage.buttons),p);this.isLeaderCharge=m;var c="maintenance:maintain:deptcharge",d=Object(r["v"])(JSON.parse(sessionStorage.buttons),c);this.isDepartmentCharge=d},get_select_list:function(){var e=this;Object(r["f"])(this.requestParams).then((function(t){e.findAllPasture=t.data.findAllPasture.list,e.findAllEmploye=t.data.findAllEmploye.list,e.getDictByName=t.data.getDictByName.list,e.getDepartDownList()}))},getDepartDownList:function(){var e=this;Object(r["e"])(this.getDepartParam).then((function(t){e.findAllDepart=t.data.list}))},changePastureName:function(e){this.getDepartParam.parammaps.pastureId=this.findAllPasture.find((function(t){return t.name==e})).id,this.getdataListParm.parammaps.departmentId="",this.getDepartDownList()},close_diago:function(){console.log(0xa1b01d4b1c7),this.dialogFormVisible_See=!1},getPendingList:function(){var e=this;this.pending.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},Object(r["e"])(this.pending.getdataListParm).then((function(t){e.pending.total=t.data.total3}))},get_table_data:function(){var e=this;void 0!==this.getdataListParm.parammaps.inputDatetime&&""!==this.getdataListParm.parammaps.inputDatetime?(this.getdataListParm.parammaps.startTime=this.getdataListParm.parammaps.inputDatetime[0],this.getdataListParm.parammaps.stopTime=this.getdataListParm.parammaps.inputDatetime[1]):(this.getdataListParm.parammaps.startTime="",this.getdataListParm.parammaps.stopTime=""),this.listLoading=!0,Object(r["e"])(this.getdataListParm).then((function(t){if(null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"img","视频");e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize}else e.list=[];e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},tableCellStyle:function(e){var t=e.row,a=(e.column,e.rowIndex,e.columnIndex);return 0==t.statue&&10===a?{background:"red",color:"#fff"}:{background:""}},changeAll:function(){console.log(this.radioAll),"全部"===this.radioAll?(this.getdataListParm.name="getBigupkeepList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:"",upkeepCode:"",eqName:"",eqCode:"",departmentId:"",statue:"",pastureName:m.a.get("pasturename"),loginId:m.a.get("employeid"),menu:"Maintain",SHStatue:"",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid")},this.get_table_data()):"待处理"===this.radioAll?(this.getdataListParm.name="getBigupkeepWebListNO",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data()):"已处理"===this.radioAll&&(this.getdataListParm.name="getBigupkeepWebList",this.getdataListParm.offset=1,this.getdataListParm.parammaps={inputDatetime:this.getdataListParm.parammaps.inputDatetime,pastureName:this.getdataListParm.parammaps.pastureName,SHStatue:this.getdataListParm.parammaps.SHStatue,upkeepCode:this.getdataListParm.parammaps.upkeepCode,eqName:this.getdataListParm.parammaps.eqName,eqCode:this.getdataListParm.parammaps.eqCode,departmentId:this.getdataListParm.parammaps.departmentId,statue:this.getdataListParm.parammaps.statue,loginId:m.a.get("employeid"),menu:"Maintain",logindeptId:m.a.get("departmentid"),loginpastureId:m.a.get("pastureid"),empId:m.a.get("employeid"),pastureId:m.a.get("pastureid"),deptId:m.a.get("departmentid")},this.get_table_data())},statue:function(e){return 0==e.statue?"已逾期":1==e.statue?"保养中":2==e.statue?"已完成":void 0},SHStatue:function(e){return 1==e.SHStatue?"":2==e.SHStatue||3==e.SHStatue?"审核中":4==e.SHStatue||8==e.SHStatue?"未通过":7==e.SHStatue?"已通过":void 0},form_search:function(){console.log("点击了table搜索"),this.listLoading=!0,null===this.getdataListParm.parammaps.inputDatetime&&(this.getdataListParm.parammaps.inputDatetime=""),this.getdataListParm.offset=1,this.get_table_data(),this.getPendingList()},form_see:function(e){this.seeTemp=Object.assign({},e),console.log("查看",this.seeTemp);var t="未通过原因:"+this.seeTemp.workflowNote,a="评分:"+this.seeTemp.scores+"分";1===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核"},{title:"机修审核"},{title:"设备主管审核"}],this.active=0):2===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.useEmpName,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核"},{title:"设备主管审核"}],this.active=1):3===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.useEmpName,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核"}]):4===this.seeTemp.SHStatue?(this.active=2,this.activeList=[{title:"保养人审核",name:this.seeTemp.useEmpName,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"error",reason:t},{title:"设备主管审核"}]):7===this.seeTemp.SHStatue?(this.activeList=[{title:"保养人审核",name:this.seeTemp.useEmpName,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson}],this.active=3):8===this.seeTemp.SHStatue&&(this.activeList=[{title:"保养人审核",name:this.seeTemp.useEmpName,date:this.seeTemp.finishedTime,status:"",reason:""},{title:"机修审核",date:this.seeTemp.useChargeDate,name:this.seeTemp.useChargePerson,status:"",reason:"",scores:a},{title:"设备主管审核",date:this.seeTemp.chargeDate,name:this.seeTemp.chargePerson,status:"error",reason:t}],this.active=3),this.dialogStatus="see",this.dialogFormVisible_See=!0,1!==this.seeTemp.SHStatue?(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()):1==this.seeTemp.SHStatue&&"未领用"==this.seeTemp.LYStatue&&"未录入"==this.seeTemp.LRStatue?(this.statue1=!0,this.statue2=!1,this.getMaintenanceContentList()):(this.statue1=!1,this.statue2=!0,this.getMaintenanceContentList()),this.collarUseTemp={},this.listCollarUse=[],this.getCollarUse(),this.getOldProductsList()},getMaintenanceContentList:function(){var e=this;this.getMaintenanceContentParm.parammaps.id=this.seeTemp.id,this.listLoadingMaintenanceContent=!1,Object(r["e"])(this.getMaintenanceContentParm).then((function(t){console.log("保养内容table数据",t.data.list),e.listMaintenanceContent=t.data.list,e.$forceUpdate(),setTimeout((function(){e.listLoadingMaintenanceContent=!1}),100)}))},openDetails:function(e,t,a,s){"操作"!==t.label&&this.$router.push({path:"/customs/Receive",query:{applyCode:this.collarUseTemp.applyCode}})},getCollarUse:function(){var e=this;this.getCollarUseParm.parammaps.RUCode=this.seeTemp.upkeepCode,Object(r["e"])(this.getCollarUseParm).then((function(t){e.collarUseTemp=t.data.list[0],t.data.list.length>0&&(console.log("领用记录数据",t.data.list[0]),0==t.data.list[0].statue?e.$set(e.collarUseTemp,"statueName","未领用"):e.$set(e.collarUseTemp,"statueName","已领用")),e.getCollarUseList()}))},getCollarUseList:function(){var e=this;this.getCollarUseListParm.parammaps.id=this.collarUseTemp.id,this.listLoadingCollarUse=!0,Object(r["e"])(this.getCollarUseListParm).then((function(t){console.log("领用table数据",t.data.list),e.listCollarUse=t.data.list,setTimeout((function(){e.listLoadingCollarUse=!1}),100)}))},getOldProductsList:function(){var e=this;this.getOldProductsParm.parammaps.repairCode=this.seeTemp.upkeepCode,this.listLoadingOldProducts=!0,Object(r["e"])(this.getOldProductsParm).then((function(t){console.log("旧品录入记录table数据",t.data.list),e.listOldProducts=t.data.list,setTimeout((function(){e.listLoadingOldProducts=!1}),100)}))},handleReceivingSpareParts:function(e){console.log("点击了保养及领用"),this.receivingTemp=void 0==e?this.seeTemp:Object.assign({},e),this.maintainTemp=this.receivingTemp,this.maintainTemp.employeeId=String(this.maintainTemp.useEmpId),this.seeTemp=this.maintainTemp,this.listCollarUse=[],this.getAutoCreatCode(),this.receivingTemp.createDate=Object(l["e"])(new Date,"{y}-{m}-{d}"),this.getEmpdeptList(),this.getCollarUse(),this.getMaintenanceContentList(),this.dialogStatus="receivingSpareParts",this.dialogFormVisible_ReceivingSpareParts=!0},getEmpdeptList:function(){var e=this;this.getEmpdeptParm.parammaps.deptId=this.maintainTemp.departmentId,Object(r["e"])(this.getEmpdeptParm).then((function(t){console.log("保养使用人",t.data.list),null!==t.data.list?e.empdeptList=t.data.list:e.empdeptList=[]}))},getAutoCreatCode:function(){var e=this;Object(r["e"])(this.getAutoCreatCodeParm).then((function(t){console.log("领用领用单号",t.data.list[0]),e.receivingTemp.applyCode=t.data.list[0].orderCode,e.$forceUpdate()}))},sparePartSearch:function(e,t){console.log("备件模糊查询输入值",e),this.requestSparePart.parammaps["partCode"]=e,Object(r["e"])(this.requestSparePart).then((function(e){console.log("备件模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectSparePart:function(e){console.log("备件模糊查询选中值",e),this.listCollarUse.length>0?this.listCollarUse.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此备件已存在,请重新选择备件"}):this.listCollarUse.unshift(e):(this.listCollarUse=[],this.listCollarUse.unshift(e))},createReceivingSparePartseData1:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainTemp"].validate((function(t){t&&(e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"updateEquseEmpId",type:"e",parammaps:{employeeId:e.maintainTemp.employeeId,id:e.maintainTemp.id}},e.postDataPramas.data[1]={name:"deleteutupbyBigid",type:"e",parammaps:{id:e.maintainTemp.id}},e.postDataPramas.data[2]={name:"insertSpotList",resultmaps:{list:e.listMaintenanceContent}},e.postDataPramas.data[2].children=[],e.postDataPramas.data[2].children[0]={name:"insertutup",type:"e",parammaps:{id:e.maintainTemp.id,positionName:"@insertSpotList.positionName",program:"@insertSpotList.program",standard:"@insertSpotList.standard",active:"@insertSpotList.active"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},createReceivingSparePartseData2:function(){var e=this;console.log("点击了保养及领用保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["receivingTemp"].validate((function(t){if(t){if(0===e.listCollarUse.length)return e.$notify({title:"",message:"请选择备件",type:"warning",duration:2e3}),!1;for(var a=0;a<e.listCollarUse.length;a++){if(console.log(e.listCollarUse[a].amount),void 0===e.listCollarUse[a].amount)return e.$message({type:"error",message:"请检查领用数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(e.listCollarUse[a].amount))return e.$message({type:"error",message:"领用数量请输入正数,最多保留两位小数",duration:2e3}),!1;if(parseFloat(e.listCollarUse[a].amount)>parseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n<e.listCollarUse.length;n++)i+=parseFloat(e.listCollarUse[n].price)*parseFloat(e.listCollarUse[n].amount);e.receivingTemp.SHStatus=i>500?2:9,e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertBigpartapply",type:"e",parammaps:{pastureId:e.$store.state.user.pastureid,applyCode:e.receivingTemp.applyCode,applyType:2,departmentId:e.receivingTemp.departmentId,empId:e.receivingTemp.upkeepPersonId,applyDate:e.receivingTemp.createDate,RUCode:e.receivingTemp.upkeepCode,SHStatus:e.receivingTemp.SHStatus}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.listCollarUse}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertpartapply",type:"e",parammaps:{bigId:"@insertBigpartapply.LastInsertId",pastureId:"@insertSpotList.pastureId",partId:"@insertSpotList.partId",partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",specification:"@insertSpotList.specification",brandId:"@insertSpotList.brandId",price:"@insertSpotList.price",amount:"@insertSpotList.amount",eqName:e.receivingTemp.eqName,eqCode:e.receivingTemp.eqCode,providerId:"@insertSpotList.providerId",note:"@insertSpotList.note",reportery:"@insertSpotList.reportery",contractId:"@insertSpotList.contractId",locationId:"@insertSpotList.locationId"}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("添加领用保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_ReceivingSpareParts=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))}}))},handleCompleteMaintenance:function(e){console.log("点击了完成保养",e),void 0==e?(this.$set(this.seeTemp,"isOldProducts",0),this.maintainCompleteTemp=this.seeTemp):(this.maintainCompleteTemp=Object.assign({},e),this.$set(this.maintainCompleteTemp,"isOldProducts",0)),this.dialogStatus="maintainComplete",this.No2=!1,this.dialogFormVisible_maintainComplete=!0,this.listAdd=[]},changeIsOldProducts:function(e){console.log(e),this.No2=1==e},oldProductsSearch:function(e,t){console.log("旧品录入模糊查询输入值",e),this.requestOldProducts.parammaps.partCode=e,this.requestOldProducts.parammaps.RUCode=this.maintainCompleteTemp.upkeepCode,Object(r["e"])(this.requestOldProducts).then((function(e){console.log("旧品录入模糊查询搜索data",e.data.list),t(e.data.list)}))},handleSelectOldProducts:function(e){this.maintainCompleteTemp.partCode="",console.log("旧品录入模糊查询选中值",e),this.listAdd.length>0&&this.listAdd.find((function(t){return t.id===e.id}))?this.$message({type:"warning",message:"此旧品已存在,请重新选择旧品"}):(null==e.checkoutNumber&&this.$set(e,"checkoutNumber",e.reportery),this.listAdd.unshift(e))},sparePartsDelete:function(e){var t=this;c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listCollarUse.length;a++){if(console.log(t.listCollarUse[a]),t.listCollarUse[a].id===e.id)var s=t.listCollarUse.indexOf(t.listCollarUse[a]);if(s>-1)return void t.listCollarUse.splice(s,1)}}))},partDelete:function(e){var t=this;console.log(this.listAdd),c["MessageBox"].confirm("设备名称:"+e.partName,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=0;a<t.listAdd.length;a++){if(console.log(t.listAdd[a]),t.listAdd[a].id===e.id)var s=t.listAdd.indexOf(t.listAdd[a]);if(s>-1)return void t.listAdd.splice(s,1)}}))},createMaintainCompleteData:function(){var e=this;console.log("点击了完成保养确认",this.maintainCompleteTemp),console.log("点击了完成保养确认",this.maintainCompleteTemp.laidcou),0==this.maintainCompleteTemp.laidcou?0==this.maintainCompleteTemp.isOldProducts?(console.log("否"),this.requestParam.name="completeUpkeep",this.requestParam.parammaps={},this.requestParam.parammaps.id=this.maintainCompleteTemp.id,Object(r["k"])(this.requestParam).then((function(t){"fail"!==t.msg?"1"==e.maintainCompleteTemp.isVideoBtnShow?"已录制"==e.maintainCompleteTemp.videoTxt&&(e.requestParam2.name="upkeepChargDone",e.requestParam2.parammaps={},e.requestParam2.parammaps.id=e.maintainCompleteTemp.id,e.requestParam2.parammaps.statue=7,e.requestParam2.parammaps.orderStatue=2,e.requestParam2.parammaps.empId=m.a.get("employeid"),Object(r["k"])(e.requestParam2).then((function(t){"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.getPendingList(),e.$notify({title:"成功",message:"成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)}))):(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.$notify({title:"成功",message:"成功",type:"success",duration:2e3}),e.get_table_data(),e.getPendingList()):Object(r["w"])(t,e.$notify)}))):(console.log("是"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["maintainCompleteTemp"].validate((function(t){if(t){if(0!==e.listAdd.length){for(var a=0;a<e.listAdd.length;a++){if(null==e.listAdd[a].acturalAmount||""==e.listAdd[a].acturalAmount)return e.$message({type:"warning",message:"请录入数量是否未填写",duration:2e3}),!1;var s=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!s.test(parseFloat(e.listAdd[a].acturalAmount)))return e.$message({type:"error",message:"录入数量请输入正数,最多保留两位小数点",duration:2e3}),!1}return e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"insertSpotList",resultmaps:{list:e.listAdd}},e.postDataPramas.data[0].children=[],e.postDataPramas.data[0].children[0]={name:"insertRepirsRefuse",type:"e",parammaps:{pastureId:m.a.get("pastureid"),deptId:e.maintainCompleteTemp.departmentId,partCode:"@insertSpotList.partCode",partName:"@insertSpotList.partName",partId:"@insertSpotList.id",specification:"@insertSpotList.specification",unit:"@insertSpotList.unit",acturalAmount:"@insertSpotList.acturalAmount",eqId:e.maintainCompleteTemp.eqId,eqCode:e.maintainCompleteTemp.eqCode,eqName:e.maintainCompleteTemp.eqName,repairCode:e.maintainCompleteTemp.upkeepCode,listType:1}},e.postDataPramas.data[1]={name:"completeUpkeep",type:"e",parammaps:{id:e.maintainCompleteTemp.id}},Object(r["c"])(e.postDataPramas).then((function(t){console.log("完成维修-是-保存发送参数",e.postDataPramas),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.dialogFormVisible_maintainComplete=!1,e.dialogFormVisible_See=!1,e.get_table_data(),e.getPendingList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})),!0}return e.$notify({title:"",message:"请完善旧品信息",type:"warning",duration:2e3}),!1}}))):this.$notify({message:"备件未领用不可完成保养",type:"warning",duration:2e3})},handleExamine:function(e){console.log("点击了保养审核"),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote",""),this.$set(this.examineTemp,"scores","")),this.dialogStatus="examine",this.dialogFormVisible_examine=!0},changeIsStatue:function(e){console.log(e),this.isStatueReason=4==e},createExamineData:function(){var e=this;console.log("点击了保养审核确认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=e.examineTemp.isStatue,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,4==e.requestParam.parammaps.statue?e.requestParam.parammaps.scores=5:e.requestParam.parammaps.scores=e.examineTemp.scores,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))},handleExamine2:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine2",this.dialogFormVisible_examine=!0},createExamineData2:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核2确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepChargDone",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=7,e.requestParam.parammaps.orderStatue=2,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核2确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge1",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=8,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},handleExamine3:function(e){console.log("点击了保养审核------",e),void 0==e?(this.examineTemp=this.seeTemp,this.$set(this.seeTemp,"isStatue",3),this.$set(this.seeTemp,"workflowNote","")):(this.examineTemp=Object.assign({},e),this.$set(this.examineTemp,"isStatue",3),this.$set(this.examineTemp,"workflowNote","")),this.dialogStatus="examine3",this.dialogFormVisible_examine=!0},createExamineData3:function(){var e=this;3==this.examineTemp.isStatue?(console.log("点击了保养审核3确认-通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=5,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.getPendingList(),e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))}))):(console.log("点击了保养审核3确认-不通过"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["examineTemp"].validate((function(t){t&&(e.requestParam.name="upkeepCharge3",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.examineTemp.id,e.requestParam.parammaps.statue=6,e.requestParam.parammaps.empId=m.a.get("employeid"),e.requestParam.parammaps.workflowNote=e.examineTemp.workflowNote,Object(r["k"])(e.requestParam).then((function(t){console.log("保养审核确认发送参数",e.requestParam),"fail"!==t.msg?(null===e.getdataListParm.parammaps.inputDatetime&&(e.getdataListParm.parammaps.inputDatetime=""),e.get_table_data(),e.getPendingList(),e.dialogFormVisible_examine=!1,e.dialogFormVisible_See=!1,e.isStatueReason=!1,e.$notify({title:"成功",message:"审核成功",type:"success",duration:2e3})):Object(r["w"])(t,e.$notify)})))})))},preview:function(e){console.log(e,"=====666"),this.dialogStatus="video",this.dialogFormVisible_video=!0,this.videoTemp=Object.assign({},e)}}},u=d,h=(a("5ab9"),a("b14e"),a("2877")),g=Object(h["a"])(u,s,i,!1,null,"63fb0906",null);t["default"]=g.exports},fd98:function(e,t,a){},feca:function(e,t,a){var s={"./404.vue":"8cdb","./asset/SST/index.vue":"9205","./asset/assetDesignee/index.vue":"5623","./asset/assetDesignee/index1.vue":"1413","./asset/basics/index.vue":"d88d","./asset/basics/index1.vue":"34ef","./asset/basics/index2.vue":"3273","./asset/basics/index3.vue":"85e5","./asset/complain/index.vue":"75a4","./asset/equipmentAllocation/index.vue":"0559","./asset/install/index.vue":"d35d","./asset/installrecord/index.vue":"eecb","./asset/mailrepair/index.vue":"5198","./asset/order/index.vue":"02be","./asset/ordersend/index.vue":"bafe","./asset/service/index.vue":"9f84","./asset/standardAssetAllocation/index.vue":"2ae7","./asset/statistics/index.vue":"8796","./asset/telvisit/index.vue":"81d6","./asset/template/components/baoyang.vue":"0420","./asset/template/components/bumeng.vue":"d2d2","./asset/template/components/buwei.vue":"d2cb","./asset/template/components/buwei1.vue":"3093","./asset/template/components/dianjian.vue":"6e96","./asset/template/components/guzhang.vue":"c154","./asset/template/components/miaoshu.vue":"01bd","./asset/template/components/yunxing.vue":"d3103","./asset/template/index.vue":"e15d","./basic/assetStandardManagement/index.vue":"6e84","./basic/brand/index.vue":"cbe5b","./basic/maintenanceWorkerCategory/index.vue":"839c","./basic/otherinfo/index - 副本.vue":"8f2b","./basic/otherinfo/index.vue":"8eae","./basic/product/index.vue":"7f96b","./basic/productclass/index.vue":"8f3b","./basic/standardStock/index.vue":"1f02","./basic/warehouse/index.vue":"3ac0","./business/visit/index.vue":"d9bd","./changpwd/changpwd.vue":"e8f4","./console/apisql/index.vue":"3c49","./console/assetType/index.vue":"10c5","./console/dept/index.vue":"5346","./console/dict/index.vue":"afd5","./console/emp/index.vue":"f33f","./console/feedings/index.vue":"e60f","./console/menu/index.vue":"eddc","./console/ranchManagement/index.vue":"0b8f","./console/role/index.vue":"55ad","./console/safetyStock/index.vue":"d0104","./console/stockType/index.vue":"718e","./console/user/index.vue":"f183","./console/user/index备份.vue":"54ec","./console/user/index改好 - 副本.vue":"cbb7","./console/user/index改好.vue":"57b8","./cost/biomassConsum/index.vue":"0ff8","./cost/budget/index.vue":"ba11","./cost/coalConsum/index.vue":"79a7","./cost/coalConsum/index1.vue":"bfab","./cost/diesel/index.vue":"f00c","./cost/elec/index.vue":"3ecc","./cost/gas/index.vue":"aedd","./cost/gasolineConsum/index.vue":"99aa","./cost/generation/index.vue":"0af4","./cost/methane/index.vue":"0080","./cost/other/index.vue":"707d","./cost/steam/index.vue":"1574","./cost/water/index.vue":"bd9e1","./custom/allot/index.vue":"1735","./custom/allot/index1.vue":"45b5","./custom/basic/index.vue":"e147","./custom/contract/index.vue":"5241","./custom/contractManagement/index.vue":"f4c1","./custom/contractManagement/index1.vue":"be1a","./custom/contractManagement/index2.vue":"16a4","./custom/custom/index.vue":"5839","./custom/inventory/index.vue":"98de","./custom/outRecord/index.vue":"f588","./custom/outStock/index.vue":"03bc","./custom/outStock/index1.vue":"d6e9","./custom/purchase/index.vue":"cbe0","./custom/purchase/index1.vue":"450d","./custom/purchase/index2.vue":"a78d","./custom/receive/index.vue":"95ba","./custom/receive/index1.vue":"6a3f","./custom/record/index.vue":"4528","./custom/refuse/index.vue":"a04a","./custom/retreat/index.vue":"21d3","./custom/returngoods/index.vue":"acea","./custom/returngoods/index1.vue":"aee8","./custom/saplog/index.vue":"974e","./custom/storage/index.vue":"0d8c","./custom/subscribe/index.vue":"a40e","./custom/subscribe/index1.vue":"e365","./custom/subscribe/index2.vue":"5e61","./custom/subscribe/index3.vue":"7a8b","./custom/writeoff/index.vue":"0966","./custom/writeoff/index1.vue":"97e9","./custom/writeoff/index2.vue":"7d4a","./customviews/ChartView.vue":"ecac","./customviews/FormView.vue":"ee1f","./customviews/ModuleView.vue":"9f53","./customviews/Pannel.vue":"5af4","./customviews/PannelView.vue":"bfd4","./customviews/Simple.vue":"15c9","./customviews/TableView.vue":"2bc1","./customviews/TreeView.vue":"8f62","./customviews/VeForm.vue":"c1ca","./customviews/VeTable.vue":"cead","./customviews/VeTree.vue":"28b6","./customviews/View.vue":"a328","./customviews/elements/ElAside.vue":"7101","./customviews/elements/ElAutoput.vue":"29c8","./customviews/elements/ElBtn.vue":"68a0","./customviews/elements/ElChart.vue":"dac8","./customviews/elements/ElCommand.vue":"25e1","./customviews/elements/ElFormField.vue":"180e","./customviews/elements/ElItem.vue":"6a7a","./customviews/elements/ElItemGroup.vue":"b11e","./customviews/elements/ElItemInsert.vue":"3e56","./customviews/elements/ElPair.vue":"5bf6","./customviews/elements/ElTableCell.vue":"13f2","./customviews/elements/ElVerify.vue":"b04b","./customviews/elements/ItemArray.vue":"3738","./dashboard/admin/components/BarChart.vue":"5f84","./dashboard/admin/components/BoxCard.vue":"8269","./dashboard/admin/components/LineChart.vue":"36ef","./dashboard/admin/components/PanelGroup.vue":"6768","./dashboard/admin/components/PieChart.vue":"2044","./dashboard/admin/components/RaddarChart.vue":"7b75","./dashboard/admin/components/TodoList/Todo.vue":"ced4","./dashboard/admin/components/TodoList/index.vue":"2544","./dashboard/admin/components/TransactionTable.vue":"2f3f","./dashboard/admin/index.vue":"3f2c","./dashboard/editor/index.vue":"5851","./dashboard/editor/index1.vue":"65cf","./dashboard/index.vue":"9406","./electro/electroData/index.vue":"50ca","./evaluationVerification/assessment/index.vue":"a313","./evaluationVerification/assessment/index1.vue":"7ec9","./form/index.vue":"371d","./knowledgeBase/file/index.vue":"0c46","./login/index.vue":"9ed6","./maintenance/maintain/index.vue":"1468","./maintenance/maintain/index1.vue":"d2cb9","./maintenance/maintain/index2.vue":"fd62","./maintenance/maintain/index备份.vue":"7de8","./maintenance/maintain/index改好.vue":"f9ee","./maintenance/maintain/index流程改了一半.vue":"eaf9","./maintenance/maintain/index流程改完了3.vue":"d9d07","./maintenance/maintenancePlan/index.vue":"3784","./maintenance/maintenancePlan/index1.vue":"5ea3","./maintenance/milkMaintenance/index.vue":"46ce","./maintenance/repair/index.vue":"b3f5","./maintenance/repair/index1.vue":"4141","./maintenance/spotCheck/index.vue":"db28","./maintenance/subcontractingMainten/index.vue":"4497","./maintenance/subcontractingMainten/tabPage/tab1.vue":"a3bd","./maintenance/subcontractingMainten/tabPage/tab11.vue":"7188","./maintenance/subcontractingMainten/tabPage/tab2.vue":"c4de","./maintenance/upkeep/index.vue":"4396","./nested/menu1/index.vue":"e9bc","./nested/menu1/menu1-1/index.vue":"91b3","./nested/menu1/menu1-2/index.vue":"55cd","./nested/menu1/menu1-2/menu1-2-1/index.vue":"65825","./nested/menu1/menu1-2/menu1-2-2/index.vue":"b6fb","./nested/menu1/menu1-3/index.vue":"8d8b","./nested/menu2/index.vue":"dbb3","./news/news.vue":"fd2f","./report/cattle/index.vue":"6d02","./report/completionRateMaintenance/index.vue":"ba59","./report/consume/index.vue":"6cb5","./report/energyConsum/index.vue":"570d","./report/equipment/index.vue":"6633","./report/equipmentIndex/index.vue":"aa38","./report/equipmentIndex/index1.vue":"c2d8","./report/equipmentIndex/index2.vue":"2f27","./report/equipmentOperation/index.vue":"39b9","./report/equipmentOverview/index.vue":"5654","./report/farmEquipment/index.vue":"602c","./report/inventorySpareParts/index.vue":"fba8","./report/inventorySummary/index.vue":"d4f9","./report/inventorySummary/index1.vue":"b18d","./report/inventoryTurnover/index.vue":"632b","./report/maintenanceCategoryAnalysis/index.vue":"69a0","./report/maintenanceCycle/index.vue":"97c9","./report/maintenanceCycle/index1.vue":"58cc","./report/maintenanceFault/index.vue":"1711","./report/purchaseAndwarehousing/index.vue":"6c85","./report/purchaseRateStatistics/index.vue":"b050","./report/purchaseScrap/index.vue":"b35f","./report/queryCombustion/index.vue":"9609","./report/queryCombustion/index11.vue":"96b8","./report/queryElec/components/BarChartDept.vue":"4672","./report/queryElec/components/BarChartPasture.vue":"301f","./report/queryElec/components/BarChartPastureMonth.vue":"2950","./report/queryElec/components/Contrast.vue":"c6f7","./report/queryElec/components/PieChartDepartment.vue":"8efe","./report/queryElec/components/PieChartType.vue":"2327","./report/queryElec/components/TodoList/Todo.vue":"1360","./report/queryElec/components/TodoList/index.vue":"6517","./report/queryElec/index.vue":"bd50","./report/queryElec/index11.vue":"e69c","./report/queryRepair/components/BarChartDept.vue":"238f","./report/queryRepair/components/BarChartPasture.vue":"5315","./report/queryRepair/components/BarChartPastureMonth.vue":"7488","./report/queryRepair/components/Contrast.vue":"5805","./report/queryRepair/components/PieChartDepartment.vue":"ac15","./report/queryRepair/components/PieChartType.vue":"8970","./report/queryRepair/components/TodoList/Todo.vue":"b762","./report/queryRepair/components/TodoList/index.vue":"9a92","./report/queryRepair/index.vue":"41fe","./report/queryRepair/index11.vue":"2a05","./report/queryWater/components/BarChartDept.vue":"31d8","./report/queryWater/components/BarChartPasture.vue":"0e42","./report/queryWater/components/BarChartPastureMonth.vue":"4119","./report/queryWater/components/Contrast.vue":"0cf7","./report/queryWater/components/PieChartDepartment.vue":"f75b","./report/queryWater/components/PieChartType.vue":"bfe5","./report/queryWater/components/TodoList/Todo.vue":"472a","./report/queryWater/components/TodoList/index.vue":"2efb","./report/queryWater/index.vue":"2c77","./report/queryWater/index11.vue":"7f6e","./report/repairRateStatistics/index.vue":"8939","./report/repairRecord/index.vue":"59be","./report/rundatatrack/index.vue":"47e1","./report/sparePartReceive/index.vue":"eaa2","./report/sparePartsSafety/index.vue":"d9f5","./report/standingBook/index.vue":"9065","./report/stopRecord/index.vue":"8d11","./report/stopRecord/index2.vue":"3a2a","./report/timelyArrivalRate/index.vue":"dad9","./report/timelyDeliveryRate/index.vue":"2fd8","./special/earlyWarning/components/fireExtinguisher.vue":"fb26","./special/earlyWarning/components/insulatAingAppliances.vue":"11c2","./special/earlyWarning/components/pressureGauge.vue":"de6b","./special/earlyWarning/components/safetyValve.vue":"4126","./special/earlyWarning/components/specialEquipment.vue":"9223","./special/earlyWarning/components/thermometer.vue":"04b5","./special/earlyWarning/index.vue":"45e4","./special/measure/index.vue":"0f40","./specialEquipment/basic/index.vue":"401e","./specialEquipment/check/index.vue":"22c3","./table/index.vue":"90fe","./tree/index.vue":"69dd"};function i(e){var t=r(e);return a(t)}function r(e){var t=s[e];if(!(t+1)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t}i.keys=function(){return Object.keys(s)},i.resolve=r,e.exports=i,i.id="feca"},feec:function(e,t,a){"use strict";a("7c34")}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);