(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")):a95&&(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:''});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-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:''});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;a0)if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"});for(var t=0;t-1){t.listAdd.splice(s,1),console.log(t.listAdd);for(var i=0;iparseFloat(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;tparseFloat(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;tparseFloat(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;s95&&(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-1)return void t.listMaintenance.splice(s,1)}}))},maintenanceSave:function(e){var t=this;if(0!==this.listMaintenance.length){for(var a=0;a-1)return void t.listSparePart.splice(s,1)}}))},partSave:function(){var e=this;if(0!==this.listSparePart.length){for(var t=0;t0&&(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;a0&&(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:''});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:''});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;t0,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;a0){this.checkeds=[];for(var t=0;t0?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;e0||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;a0?this.selectionList.length>0?(console.log(this.selectionList),c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t0&&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;a0&&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-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;e0){for(var t=[],a=0;a0){for(var a=0;as)return this.$message({type:"error",message:"本次入库数量不可大于未入库数",duration:2e3}),!1}for(var i=0;is?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;a95&&(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;s95&&(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:''});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;a0&&(""===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;a0&&(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:''});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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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;s0,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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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;a0,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")):a95&&(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:''});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}")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;e0?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-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;a95&&(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;a95&&(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"),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;tparseFloat(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-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'});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:''});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:''});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-1)return void this.table.list.splice(a,1)}},form_edit:function(e){for(var t=0;t95&&(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;i0&&(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}
{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;ai)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-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;a95&&(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:''});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}
{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:''});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:''});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:''});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:''});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:''});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=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}
{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:''});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:''});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}
{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:''});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:''});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'});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:''});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-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-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'});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;a0?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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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'});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'});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:''});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;a0?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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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'});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:''});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:''});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;a0||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=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;a0&&(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;a95&&(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;a95&&(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:''});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;t0?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:''});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")):a95&&(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;a0&&(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;a0&&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-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-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;a0&&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-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;aparseFloat(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;g500?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=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}
{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:''});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:''});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:''});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;ii||ss?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=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;a0,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;tparseFloat(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-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;a0&&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:''});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'});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:''});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:''});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:''});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:''});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:''});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:''});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:''});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;a0?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-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-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;a0?(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:''});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:''});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'});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:''});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;aDate.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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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"),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}
{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;a0,!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[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'});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.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;a95&&(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;a0,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;a95&&(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()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:''});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:''});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-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;a95&&(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=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;a0&&(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:''});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'});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;a0,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:''});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:''});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:''});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;a0&&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;aparseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}else for(a=0;aparseFloat(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;i500?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-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;aparseFloat(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;i500?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='月份',i="";a.forEach((function(e){s+=''.concat(e.name,"")}));for(var r=''.concat(s," "),n=0;n'.concat(a[l].data[n],"");r+='").concat(i,""),i=""}return r+="
'.concat(t[n],"
",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='月份',i="";a.forEach((function(e){s+=''.concat(e.name,"")}));for(var r=''.concat(s," "),n=0;n'.concat(a[l].data[n],"");r+='").concat(i,""),i=""}return r+="
'.concat(t[n],"
",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-1)return void this.table.list.splice(a,1)}},form_edit:function(e){for(var t=0;t0&&(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:''});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:''});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;t0&&(""===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:''});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:''});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:''});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:''});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:''});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-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;a95&&(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:''});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:''});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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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'});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;a95&&(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;a2?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;a2?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;a0&&(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-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;a5&&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:''});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;a0?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;a4)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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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'});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);l0?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);s0?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}
{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:''});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:''});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;a0&&(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;a0&&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}
{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:''});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;s95&&(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'});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;a0,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;a0&&(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:''});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:''});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;a0&&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;aparseFloat(this.listAdd[a].reportery))return this.$message({type:"error",message:"领用数量不可大于库存数量",duration:2e3}),!1}else for(a=0;aparseFloat(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;i500?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-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;aparseFloat(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;i500?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}
{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:''});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}
{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:''});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;a95&&(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;a0,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()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;t0,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;a0&&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:''});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:''});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:''});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:''});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:''});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:''});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:''});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:''});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;a95&&(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;a2?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;a2?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;a95&&(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;a0&&(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-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;a0,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;t0,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-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;a95&&(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:''});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;in||is?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'});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;a0&&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}
{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;as?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;tparseFloat(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-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;aparseFloat(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")):a95&&(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;tparseFloat(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-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;aparseFloat(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;s0?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:''});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;t0)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;ae.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-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-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;a0&&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-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;aparseFloat(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;g500?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'});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;s0&&(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"),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:''});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}
{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")):a95&&(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}")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;e0?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-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;a95&&(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;a95&&(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;a0,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}
{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:''});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:''});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-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;a0&&(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:c1&&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'});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'});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:''});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;t500?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-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;t500?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-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-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:''});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:''});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:''});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:''});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;a0,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-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;tparseFloat(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;ir||is?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;a0,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:''});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-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-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;t0,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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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;a0,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;a95&&(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;a0)if(this.listAdd.find((function(t){return t.id===e.id}))){this.$message({type:"warning",message:"此备件已存在,请重新选择备件"});for(var t=0;t-1){t.listAdd.splice(s,1),console.log(t.listAdd);for(var i=0;iparseFloat(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;tparseFloat(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;tparseFloat(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:''});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;a0?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;a4)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=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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"年设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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+"元
":(t=(parseFloat(e[0].value)+parseFloat(e[1].value)).toFixed(2),a=e[0].name+"月设备总费用:"+t+"元
",a+="维修费用:"+e[0].data+"元
",a+="保养费用:"+e[1].data+"元
"),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'});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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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;a0,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;a0,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;a95&&(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;a0)for(var a=0;a0,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:''});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:''});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:''});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;a0&&(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:''});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:''});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;a0?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=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;t0){for(var e=0;e'});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:''});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-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;a95&&(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}
{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:''});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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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'});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;p0?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'});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:''});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=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:''});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'});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}")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;e0?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-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;a95&&(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;a95&&(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;a0,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'});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}
{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:''});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:''});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:''});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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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;a0,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;a0&&(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;a0&&(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;aparseFloat(e.listCollarUse[a].reportery))return e.$message({type:"error",message:"领用数量不可大于库存数",duration:2e3}),!1}for(var i=0,n=0;n500?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-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-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