602e6e7a8fb4d68d597985642557945bd04c0ec4.svn-base 1.5 MB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e){},"00b7":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-用户管理",use:"icon-用户管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-用户管理"><defs><style type="text/css"></style></defs><path d="M515.541449 7.082899c-280.359429 0-508.458551 228.120391-508.458551 508.458551s228.120391 508.458551 508.458551 508.458551 508.458551-228.120391 508.458551-508.458551S795.900879 7.082899 515.541449 7.082899zM515.541449 981.864196c-257.132626 0-466.301477-209.190121-466.301477-466.322747 0-257.132626 209.168851-466.322747 466.301477-466.322747s466.301477 209.190121 466.301477 466.322747S772.674075 981.864196 515.541449 981.864196zM614.574414 524.177056 614.574414 524.177056c47.751075-31.96876 79.230625-86.398604 79.230625-148.187857 0-98.437405-79.804915-178.24232-178.24232-178.24232-98.437405 0-178.24232 79.804915-178.24232 178.24232 0 61.810523 31.479551 116.219097 79.251895 148.187857-100.266622 39.519598-171.244501 137.170014-171.244501 251.453545 0 0.23397 0 0.446669 0.02127 0.659369 0 0.04254-0.02127 0.10635-0.02127 0.14889 0 15.612155 12.65563 28.246516 28.267786 28.246516 15.590885 0 21.886796-12.63436 21.886796-28.246516 0-0.340319-0.08508-0.659369-0.10635-1.020958 0.10635-118.005774 102.159649-219.995264 220.207964-219.995264 118.112124 0 220.207964 102.095839 220.207964 220.207964 0 0.14889-1.467628 29.054774 21.971875 29.054774 15.505806 0 28.076356-12.57055 28.076356-28.055086 0-0.06381-0.02127-0.12762-0.02127-0.2127 0-0.25524 0.02127-0.510479 0.02127-0.786989C785.797645 661.34707 714.798496 563.696654 614.574414 524.177056zM515.541449 510.734437c-74.402343 0-134.723968-60.321625-134.723968-134.723968 0-74.423613 60.321625-134.723968 134.723968-134.723968 74.423613 0 134.723968 60.321625 134.723968 134.723968S589.943792 510.734437 515.541449 510.734437z" p-id="78640" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"019f":function(t,e,a){},"021f":function(t,e,a){},"028b":function(t,e,a){"use strict";var i=a("3f4d"),s=a.n(i);s.a},"02fe":function(t,e,a){},"0434":function(t,e,a){},"047c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{ref:"template",staticClass:"template"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]),a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]),a("el-button",{staticClass:"warning",on:{click:t.handleCopy}},[t._v("复制")]),a("el-button",{staticClass:"success",on:{click:t.handleRecipeRecord}},[t._v("配方记录")]),a("el-button",{staticClass:"success",on:{click:t.handleHistory}},[t._v("生成历史")]),a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-right":"80px"},on:{click:t.handleImport}},[t._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.ccname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"ccname",e)},expression:"table.getdataListParm.parammaps.ccname"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"配方类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.fttype,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"fttype",e)},expression:"table.getdataListParm.parammaps.fttype"}},t._l(t.formulaTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",placeholder:"请点击选择搜索条件"}}),t.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[t._v("配方名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table.getdataListParm.parammaps.tname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tname",e)},expression:"table.getdataListParm.parammaps.tname"}})],1),a("li",[a("a",[t._v("备注")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table.getdataListParm.parammaps.remark,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"remark",e)},expression:"table.getdataListParm.parammaps.remark"}})],1),a("li",[a("a",[t._v("来源")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"source",e)},expression:"table.getdataListParm.parammaps.source"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.tableRowClick,"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.tname,callback:function(a){t.$set(e.row,"tname",a)},expression:"scope.row.tname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:e.row.NoEdit},model:{value:e.row.tcolor,callback:function(a){t.$set(e.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ccname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"牲畜类别"},on:{change:t.changeLivestockType},model:{value:e.row.ccid,callback:function(a){t.$set(e.row,"ccid",a)},expression:"scope.row.ccid"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.fttype))]):t._e(),e.row.Edit&&1==e.row.isCreate?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方类型"},on:{change:t.changeFormulaType},model:{value:e.row.fttypeid,callback:function(a){t.$set(e.row,"fttypeid",a)},expression:"scope.row.fttypeid"}},t._l(t.formulaTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e(),e.row.Edit&&1==e.row.isUpdateSave?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"",filterable:"",placeholder:"配方类型"},on:{change:t.changeFormulaType},model:{value:e.row.fttypeid,callback:function(a){t.$set(e.row,"fttypeid",a)},expression:"scope.row.fttypeid"}},t._l(t.formulaTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1)]),t.isDetail?a("div",{ref:"detail",staticClass:"detail",staticStyle:{"margin-top":"30px"}},[a("p",{staticClass:"recipeDetail"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate2}},[t._v("新增")]),a("el-button",{staticClass:"danger",on:{click:t.handleDelete2}},[t._v("删除")]),a("el-button",{staticClass:"success",on:{click:t.handleSyntheticPremix}},[t._v("合成预混料")]),a("div",{ref:"selectInput2",staticClass:"filter-item selectInput",staticStyle:{margin:"0 10px"}},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown2?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp2?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp2?a("ul",{staticClass:"selectUl",staticStyle:{width:"400px"}},[a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("饲料名称")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:t.table2.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"fname",e)},expression:"table2.getdataListParm.parammaps.fname"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.fname}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("饲料组名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table2.getdataListParm.parammaps.feedgroup,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"feedgroup",e)},expression:"table2.getdataListParm.parammaps.feedgroup"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("重量")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table2.getdataListParm.parammaps.fweight,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"fweight",e)},expression:"table2.getdataListParm.parammaps.fweight"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("搅拌延时")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:"",clearable:""},model:{value:t.table2.getdataListParm.parammaps.autosecondname,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"autosecondname",e)},expression:"table2.getdataListParm.parammaps.autosecondname"}},t._l(t.mixingDelayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("是否锁定牛头数比例")]),a("el-select",{staticStyle:{width:"245px"},attrs:{placeholder:"",clearable:""},model:{value:t.table2.getdataListParm.parammaps.islockcount,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"islockcount",e)},expression:"table2.getdataListParm.parammaps.islockcount"}},t._l(t.lockBullsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("顺序")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.table2.getdataListParm.parammaps.sort,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"sort",e)},expression:"table2.getdataListParm.parammaps.sort"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp2=!1,t.arrowDown2=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleSearch2}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh2}},[t._v("重置")])],1),a("div",{staticClass:"table2",staticStyle:{"min-height":"400px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,ref:"table2",staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{id:"table2","element-loading-text":"给我一点时间",data:t.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","show-summary":""},on:{"selection-change":t.handleSelectionChange2}},[a("el-table-column",{attrs:{type:"selection",width:"60"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.groupNoEdit?a("span",[t._v(t._s(e.row.feedgroup))]):t._e(),e.row.groupEdit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isGroupDisabled,type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.feedgroup,callback:function(a){t.$set(e.row,"feedgroup",a)},expression:"scope.row.feedgroup"}}):t._e()]}}],null,!1,2511738122)}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.fname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeFname(a,e.row)}},model:{value:e.row.fid,callback:function(a){t.$set(e.row,"fid",a)},expression:"scope.row.fid"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.id}})})),1):t._e()]}}],null,!1,1456748671)}),a("el-table-column",{attrs:{label:"重量(KG)",prop:"fweight","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.fweight))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"重量",step:"0.01",type:"number"},model:{value:e.row.fweight,callback:function(a){t.$set(e.row,"fweight",a)},expression:"scope.row.fweight"}}):t._e()]}}],null,!1,1017651411)}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.autosecond))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"搅拌延时"},model:{value:e.row.autosecond,callback:function(a){t.$set(e.row,"autosecond",a)},expression:"scope.row.autosecond"}},t._l(t.mixingDelayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}],null,!1,3712506139)}),t.lockCount.isLockCount?a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit&&"0"==e.row.islockcount?a("span",[t._v("否")]):t._e(),e.row.NoEdit&&"1"==e.row.islockcount?a("span",[t._v("是")]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:""},model:{value:e.row.islockcount,callback:function(a){t.$set(e.row,"islockcount",a)},expression:"scope.row.islockcount"}},t._l(t.lockBullsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}],null,!1,3243371266)}):t._e(),a("el-table-column",{attrs:{label:"顺序","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.sort))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number","min-number":"0"},on:{blur:function(a){return t.blurSort(e.row)}},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort",a)},expression:"scope.row.sort"}}):t._e()]}}],null,!1,3696663391)}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.createData2(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel2(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate2(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete2(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.updateData2(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel2(i)}}},[t._v("取消")]):t._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleSplitPremix(i)}}},[t._v("拆分预混料")]):t._e()]}}],null,!1,1391369653)})],1)],1)]):t._e(),a("el-dialog",{attrs:{title:t.textMap[t.template.dialogStatus],"destroy-on-close":!0,visible:t.template.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.template,"dialogFormVisible",e)}}},[a("div",{staticStyle:{height:"400px",overflow:"auto","margin-bottom":"30px"}},[a("div",{ref:"templateDialog",staticClass:"templateDialog"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-date-picker",{staticStyle:{width:"180px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.template.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"date",e)},expression:"template.table.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleApplication}},[t._v("应用")])],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牲畜类别",clearable:""},model:{value:t.template.table.getdataListParm.parammaps.ccname,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"ccname",e)},expression:"template.table.getdataListParm.parammaps.ccname"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"配方类型",clearable:""},model:{value:t.template.table.getdataListParm.parammaps.fttype,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"fttype",e)},expression:"template.table.getdataListParm.parammaps.fttype"}},t._l(t.formulaTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:t.template.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"enable",e)},expression:"template.table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[t._v("配方名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table.getdataListParm.parammaps.tname,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"tname",e)},expression:"template.table.getdataListParm.parammaps.tname"}})],1),a("li",[a("a",[t._v("备注")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table.getdataListParm.parammaps.remark,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"remark",e)},expression:"template.table.getdataListParm.parammaps.remark"}})],1),a("li",[a("a",[t._v("来源")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.template.table.getdataListParm.parammaps,"source",e)},expression:"template.table.getdataListParm.parammaps.source"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleDialogSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleDialogSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleDialogRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.template.table.listLoading,expression:"template.table.listLoading"}],key:t.template.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.template.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.tableRowClickDialog}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.template.table.pageNum-1)*t.template.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tname))])]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:""},model:{value:e.row.tcolor,callback:function(a){t.$set(e.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ccname))])]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fttype))])]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])})],1)],1)]),t.isDetailDialog?a("div",{staticClass:"detailDialog",staticStyle:{"margin-top":"30px"}},[a("p",{staticClass:"recipeDetail"}),a("div",{staticClass:"operation"},[a("div",{ref:"selectInput2",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown2?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp2?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp2?a("ul",{staticClass:"selectUl",staticStyle:{width:"400px"}},[a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("饲料名称")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:t.template.table2.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"fname",e)},expression:"template.table2.getdataListParm.parammaps.fname"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.fname}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("饲料组名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table2.getdataListParm.parammaps.feedgroup,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"feedgroup",e)},expression:"template.table2.getdataListParm.parammaps.feedgroup"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("重量")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table2.getdataListParm.parammaps.fweight,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"fweight",e)},expression:"template.table2.getdataListParm.parammaps.fweight"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("搅拌延时")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:t.template.table2.getdataListParm.parammaps.autosecondname,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"autosecondname",e)},expression:"template.table2.getdataListParm.parammaps.autosecondname"}},t._l(t.mixingDelayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("是否锁定牛头数比例")]),a("el-select",{staticStyle:{width:"245px"},attrs:{placeholder:""},model:{value:t.template.table2.getdataListParm.parammaps.islockcount,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"islockcount",e)},expression:"template.table2.getdataListParm.parammaps.islockcount"}},t._l(t.lockBullsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("顺序")]),a("el-input",{staticStyle:{width:"245px"},model:{value:t.template.table2.getdataListParm.parammaps.sort,callback:function(e){t.$set(t.template.table2.getdataListParm.parammaps,"sort",e)},expression:"template.table2.getdataListParm.parammaps.sort"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp2=!1,t.arrowDown2=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleDialogSearch2}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleDialogSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleDialogRefresh2}},[t._v("重置")])],1),a("div",{staticClass:"table2"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.template.table2.listLoading,expression:"template.table2.listLoading"}],key:t.template.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.template.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id"}},[a("el-table-column",{attrs:{label:"饲料组","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedgroup))])]}}],null,!1,4177192955)}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}],null,!1,4063637959)}),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fweight))])]}}],null,!1,2905787776)}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.autosecondname))])]}}],null,!1,4277231678)}),a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.islockcount?a("span",[t._v("否")]):t._e(),"1"==e.row.islockcount?a("span",[t._v("是")]):t._e()]}}],null,!1,467972028)}),a("el-table-column",{attrs:{label:"顺序","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}],null,!1,753807644)})],1)],1)]):t._e(),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.template.dialogFormVisible=!1}}},[t._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:t.textMap[t.detail.dialogStatus],"destroy-on-close":!0,visible:t.detail.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.detail,"dialogFormVisible",e)}}},[a("div",{staticClass:"detailDialog"},[a("h2",[t._v("饲料")]),a("div",{staticClass:"table1"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.detail.listLoading,expression:"detail.listLoading"}],key:t.detail.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.detail.list,fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"show-summary":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{prop:"fweight",sortable:"",label:"重量(KG)"}}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.autosecond))])]}}])}),t.lockCount.isLockCount?a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.islockcount?a("span",[t._v("否")]):t._e(),"1"==e.row.islockcount?a("span",[t._v("是")]):t._e()]}}],null,!1,467972028)}):t._e(),a("el-table-column",{attrs:{label:"顺序","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])})],1)],1),a("h2",[t._v("合成预混料")]),a("div",{staticClass:"table2",staticStyle:{"margin-bottom":"50px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.detail.listLoading2,expression:"detail.listLoading2"}],key:t.detail.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.detail.list2,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32",disabled:t.detail.disabled},model:{value:e.row.tname,callback:function(a){t.$set(e.row,"tname",a)},expression:"scope.row.tname"}})]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:t.detail.disabled},model:{value:e.row.tcolor,callback:function(a){t.$set(e.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"选择牲畜父类",disabled:t.detail.disabled},on:{change:t.changeLivestockType2},model:{value:e.row.ccid,callback:function(a){t.$set(e.row,"ccid",a)},expression:"scope.row.ccid"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fttype))])]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32",disabled:t.detail.disabled},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}})]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,disabled:t.detail.disabled},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"-50px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.detail.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.syntheticPremixData()}}},[t._v("确认")])],1)])])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("b680"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("aa47"),n=a("5c96"),o=a("a78e"),c=a.n(o),d={name:"RecipeTemplate",data:function(){return{requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]},{name:"getDictByName2",offset:0,pagecount:0,params:["配方类型"]},{name:"getFeedAndPre",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],enableList:[{id:"0",name:"否"},{id:"1",name:"是"}],lockBullsList:[{id:"0",name:"否"},{id:"1",name:"是"}],livestockTypeList:[],formulaTypeList:[],feedNameList:[],mixingDelayList:[{id:"0",name:"0"},{id:"1",name:"1"},{id:"2",name:"2"},{id:"3",name:"3"},{id:"4",name:"4"},{id:"5",name:"5"},{id:"6",name:"6"},{id:"7",name:"7"},{id:"8",name:"8"},{id:"9",name:"9"},{id:"10",name:"10"},{id:"11",name:"11"},{id:"12",name:"12"},{id:"13",name:"13"},{id:"14",name:"14"},{id:"15",name:"15"}],selectHistoryTimeList:[{id:0,name:"2020-06-10"},{id:1,name:"2020-06-11"},{id:2,name:"2020-06-12"},{id:3,name:"2020-06-13"}],sourceList:[{id:0,name:"自定义"},{id:1,name:"集团下发"},{id:2,name:"导入"}],arrowDown:!0,arrowUp:!1,table:{getdataListParm:{name:"getFTList",page:1,offset:1,pagecount:30,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttypeid:"",fttype:"",remark:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},lockCount:{getdataListParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:30,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isLockCount"}},isLockCount:!1},isDetail:!1,arrowDown2:!0,arrowUp2:!1,table2:{getdataListParm:{name:"getFTdetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),fname:"",feedgroup:"",fweight:"",autosecondname:"",islockcount:"",sort:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},isDetailDialog:!1,template:{dialogFormVisible:!1,dialogStatus:"",table:{getdataListParm:{name:"getFTListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttype:"",remark:"",enable:"",date:"",source:""}},tableKey:0,total:0,listLoading:!0,list:[]},table2:{getdataListParm:{name:"getFTdetailListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),fname:"",fweight:"",islockcount:"",sort:"",feedgroup:"",autosecondname:""}},tableKey:0,total:0,listLoading:!0,list:[]},getdataDateParm:{name:"getFTMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},detail:{dialogFormVisible:!1,dialogStatus:"",tableKey:0,total:0,listLoading:!0,list:[],tableKey2:0,total2:0,listLoading2:!1,list2:[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],getdataListParm:{name:"getFTDetailCompare",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},list3:[],disabled:!1,getdataListParm2:{name:"getFTCompare",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},selectList:[],selectList2:[],textMap:{RecipeRecord:"配方记录",SyntheticPremix:"合成预混料"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dropState:!1}},mounted:function(){var t=this;document.addEventListener("click",(function(e){void 0!==t.$refs.selectInput&&(t.$refs.selectInput.contains(e.target)?(t.arrowDown=!1,t.arrowUp=!0):(t.arrowDown=!0,t.arrowUp=!1)),void 0!==t.$refs.selectInput2&&(t.$refs.selectInput2.contains(e.target)?(t.arrowDown2=!1,t.arrowUp2=!0):(t.arrowDown2=!0,t.arrowUp2=!1))}))},created:function(){this.getList(),this.getDownList(),this.getIsLockCount()},methods:{handleHistory:function(){var t=this;n["MessageBox"].confirm("是否确认生成历史?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="creatFTdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["f"])(t.requestParam).then((function(e){console.log("生成历史保存发送参数",t.requestParam),"fail"!==e.msg?t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):Object(r["j"])(e,t.$notify)}))}))},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.livestockTypeList=e.data.getDictByName.list,t.formulaTypeList=e.data.getDictByName2.list,t.feedNameList=e.data.getFeedAndPre.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.ccid="",this.table.getdataListParm.parammaps.ccname="",this.table.getdataListParm.parammaps.fttype="",this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.remark="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.source="",this.getList()},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,tname:"",tcolor:"#ccc",ccid:"",ccname:"",fttype:"",fttypeid:"",source:"自定义",remark:""}),console.log(this.table.list)},changeLivestockType:function(t){this.table.temp.ccname=this.livestockTypeList.find((function(e){return e.value===t})).label},changeFormulaType:function(t){this.table.temp.fttype=this.formulaTypeList.find((function(e){return e.value===t})).label},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.tname=t.tname,this.table.temp.tcolor=t.tcolor,this.table.temp.ccid=t.ccid,this.table.temp.ccname=this.table.temp.ccname,this.table.temp.fttype=this.table.temp.fttype,this.table.temp.fttypeid=t.fttypeid,this.table.temp.source=t.source,this.table.temp.remark=t.remark,this.table.temp.enable=t.enable,this.table.temp.pastureid=c.a.get("pastureid"),""==this.table.temp.tname&&""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方名称/牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方类型不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;console.log(this.table.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertFT",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.ccid=String(t.ccid),t.fttypeid=String(t.fttypeid),this.table.temp.ccname=t.ccname,this.table.temp.fttype=t.fttype},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.tname=t.tname,this.table.temp.tcolor=t.tcolor,this.table.temp.ccid=t.ccid,this.table.temp.fttypeid=t.fttypeid,this.table.temp.source=t.source,this.table.temp.remark=t.remark,this.table.temp.enable=t.enable,this.table.temp.ccname=this.table.temp.ccname,this.table.temp.fttype=this.table.temp.fttype,this.table.temp.pastureid=t.pastureid,this.table.temp.id=t.id,""==this.table.temp.tname&&""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方名称/牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方类型不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;console.log(this.table.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateFT",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkdeleteFT",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteFT",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方",duration:2e3}):n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"checkdeleteFT",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteFT",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择配方",duration:2e3}):n["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"copyFT",type:"e",parammaps:{ftid:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("复制保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"复制失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"复制成功",type:"success",duration:2e3}),t.getList())}))}))},handleRecipeRecord:function(){console.log("点击了配方记录"),this.template.dialogStatus="RecipeRecord",this.template.dialogFormVisible=!0,this.template.table.getdataListParm.parammaps.ccname="",this.template.table.getdataListParm.parammaps.fttype="",this.template.table.getdataListParm.parammaps.enable="",this.template.table.getdataListParm.parammaps.tname="",this.template.table.getdataListParm.parammaps.remark="",this.template.table.getdataListParm.parammaps.source="",this.template.table.getdataListParm.offset=1,this.getDateList(),this.isDetailDialog=!1},getDateList:function(){var t=this;Object(r["d"])(this.template.getdataDateParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.template.table.getdataListParm.parammaps.date=e.data.list[0].maxdate,t.getTemplateDialogList()):t.template.table.getdataListParm.parammaps.date=""}))},getTemplateDialogList:function(){var t=this;this.template.table.listLoading=!0,Object(r["d"])(this.template.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.template.table.list=e.data.list,t.template.table.pageNum=e.data.pageNum,t.template.table.pageSize=e.data.pageSize,t.template.table.total=e.data.total):t.template.table.list=[],setTimeout((function(){t.template.table.listLoading=!1}),100)}))},handleDialogSearch:function(){this.template.table.getdataListParm.offset=1,this.getTemplateDialogList(),this.arrowDown=!0,this.arrowUp=!1},handleDialogRefresh:function(){this.template.table.getdataListParm.parammaps.ccname="",this.template.table.getdataListParm.parammaps.fttype="",this.template.table.getdataListParm.parammaps.enable="",this.template.table.getdataListParm.parammaps.tname="",this.template.table.getdataListParm.parammaps.remark="",this.template.table.getdataListParm.parammaps.source="",this.template.table.getdataListParm.offset=1,this.getTemplateDialogList()},tableRowClickDialog:function(t,e,a){console.log("配方记录-模板行点击"),this.isDetailDialog=!0,this.template.table2.getdataListParm.parammaps.ftid=t.id,this.getDialogList(),this.getDownList()},getDialogList:function(){var t=this;this.template.table2.listLoading=!0,Object(r["d"])(this.template.table2.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.template.table2.list=e.data.list,t.template.table2.pageNum=e.data.pageNum,t.template.table2.pageSize=e.data.pageSize,t.template.table2.total=e.data.total):t.template.table2.list=[],setTimeout((function(){t.template.table2.listLoading=!1}),100)}))},handleDialogSearch2:function(){console.log("点击了查询"),this.arrowDown2=!0,this.arrowUp2=!1,this.template.table2.getdataListParm.offset=1,this.getDialogList2()},handleDialogRefresh2:function(){console.log("点击了重置"),this.template.table2.getdataListParm.parammaps.fname="",this.template.table2.getdataListParm.parammaps.feedgroup="",this.template.table2.getdataListParm.parammaps.fweight="",this.template.table2.getdataListParm.parammaps.autosecondname="",this.template.table2.getdataListParm.parammaps.islockcount="0",this.template.table2.getdataListParm.parammaps.sort="",this.template.table2.getdataListParm.offset=1,this.getDialogList2()},getDialogList2:function(){var t=this;this.template.table2.listLoading=!0,Object(r["d"])(this.template.table2.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.template.table2.list=e.data.list,t.template.table2.pageNum=e.data.pageNum,t.template.table2.pageSize=e.data.pageSize,t.template.table2.total=e.data.total):t.template.table2.list=[],t.$nextTick((function(){window.scrollTo({top:this.$refs.templateDialog.clientHeight})})),setTimeout((function(){t.template.table2.listLoading=!1}),100)}))},handleImport:function(){console.log("点击了导入")},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},changeDate:function(){this.getTemplateDialogList()},handleApplication:function(){var t=this;console.log("点击了应用"),n["MessageBox"].confirm("是否确认将"+this.template.table.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFTdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=c.a.get("pastureid"),t.requestParam.parammaps.date=t.template.table.getdataListParm.parammaps.date,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getTemplateDialogList(),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消应用"})}))},tableRowClick:function(t,e,a){console.log(t,e,a);for(var i=0;i<this.table.list.length;i++)if(1==this.table.list[i].Edit)return!1;"操作"!==e.label&&(this.isDetail=!0,this.table2.getdataListParm.parammaps.ftid=t.id,this.table2.getdataListParm.parammaps.fttypeid=t.fttypeid,this.getList2(),this.getDownList())},getIsLockCount:function(){var t=this;Object(r["d"])(this.lockCount.getdataListParm).then((function(e){console.log(e.data.list),0==e.data.list[0].inforvalue?t.lockCount.isLockCount=!1:t.lockCount.isLockCount=!0}))},getList2:function(){var t=this;this.table2.listLoading=!0,Object(r["d"])(this.table2.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"groupEdit",!1),t.$set(e.data.list[a],"isGroupDisabled",!1),t.$set(e.data.list[a],"groupNoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table2.list=e.data.list,t.table2.pageNum=e.data.pageNum,t.table2.pageSize=e.data.pageSize,t.table2.total=e.data.total,t.rowDrop()}else t.table2.list=[];t.$nextTick((function(){console.log(this.$refs),console.log(this.$refs.template.clientHeight),window.scrollTo({top:this.$refs.template.clientHeight})})),setTimeout((function(){t.table2.listLoading=!1}),100)}))},rowDrop:function(){console.log(1111),console.log(document.querySelector("#table2 .el-table__body-wrapper tbody"));var t=document.querySelector("#table2 .el-table__body-wrapper tbody"),e=this,a=l["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1==e.dropState&&a.destroy()},onEnd:function(t){var a=t.newIndex,i=t.oldIndex,s=e.table2.list.splice(i,1)[0];if(e.table2.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",e.table2.list[a-1]),console.log("下",e.table2.list[a+1]),void 0===e.table2.list[a-1]){for(var l=0;l<e.table2.list.length;l++)e.table2.list[l].sort=parseInt(e.table2.list[l].sort)+1;s.sort=0,s.feedgroup=s.fname,console.log("拖动至最上方无值")}else if(s.sort==e.table2.list[a-1].sort)s.sort=e.table2.list[a-1].sort,console.log("拖动值顺序等于上值顺序");else if(void 0==e.table2.list[a+1])s.sort=parseInt(e.table2.list[a-1].sort)+1,s.feedgroup=s.fname,console.log("拖动至最下方无值");else if(s.sort==e.table2.list[a+1].sort)s.sort,e.table2.list[a+1].sort,console.log("拖动值顺序等于下值顺序");else if(e.table2.list[a-1].sort==e.table2.list[a+1].sort)s.sort=e.table2.list[a-1].sort,s.feedgroup=e.table2.list[a-1].feedgroup,console.log("拖动至上下顺序一致");else if(void 0!==e.table2.list[a-1].sort&&void 0!==e.table2.list[a+1].sort){if(console.log("上下"),parseInt(e.table2.list[a-1].sort)+1==e.table2.list[a+1].sort){console.log(a);for(var n=a;n<e.table2.list.length;n++)e.table2.list[n].sort=parseInt(e.table2.list[n].sort)+1}s.sort=parseInt(e.table2.list[a-1].sort)+1,s.feedgroup=s.fname,console.log(e.table2.list[a+1].sort)}e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.table2.list}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"updateFTdetailSort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort",feedgroup:"@insertSpotList.feedgroup"}},Object(r["b"])(e.requestParam).then((function(t){console.log("顺序切换保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"顺序切换失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"顺序切换成功",type:"success",duration:2e3}),e.getList2())}))}});console.log(a.option("disabled"))},handleSearch2:function(){console.log("点击了查询"),this.arrowDown2=!0,this.arrowUp2=!1,this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh2:function(){console.log("点击了重置"),this.table2.getdataListParm.parammaps.fname="",this.table2.getdataListParm.parammaps.feedgroup="",this.table2.getdataListParm.parammaps.fweight="",this.table2.getdataListParm.parammaps.autosecondname="",this.table2.getdataListParm.parammaps.islockcount="0",this.table2.getdataListParm.parammaps.sort="",this.table2.getdataListParm.offset=1,this.getList2()},handleCreate2:function(){console.log("点击了详情新增",this.table2.list),console.log(11);for(var t=0;t<this.table2.list.length;t++)if(!0===this.table2.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;if(console.log(this.table2.list),0==this.table2.list.length)var e=0;else e=parseInt(this.table2.list[this.table2.list.length-1].sort)+1;this.table2.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,groupEdit:!1,groupNoEdit:!0,enable:1,feedgroup:"",fid:"",fname:"",fweight:"",autosecond:"0",islockcount:"0",sort:e}),console.log(this.table2.list)},changeFname:function(t,e){if(console.log(t,e),this.table2.temp.fname=this.feedNameList.find((function(e){return e.id==t})).fname,e.fname=this.feedNameList.find((function(e){return e.id==t})).fname,"0"==this.feedNameList.find((function(e){return e.id==t})).ispreft?this.table2.temp.preftid="0":this.table2.temp.preftid=t,""==e.sort)e.feedgroup=this.table2.temp.fname;else if(1==e.isCreate)for(var a=1;a<this.table2.list.length;a++){if(this.table2.list[a].sort==e.sort){console.log(this.table2.list[a]),e.feedgroup=this.table2.list[a].feedgroup;break}e.feedgroup=this.table2.temp.fname}else if(1==e.isUpdateSave){for(var i=[],s=0;s<this.table2.list.length;s++)i.push(this.table2.list[s].sort);for(var r=0,l=0;l<i.length;l++)i[l]==e.sort&&r++;for(var n=0;n<this.table2.list.length;n++){if(r>1){e.feedgroup=this.table2.list[n].feedgroup,console.log(111,this.table2.list[n].feedgroup);break}1==r&&(e.feedgroup=this.table2.temp.fname,console.log(222,this.table2.temp.fname))}}},blurSort:function(t){if(1==t.isCreate)if(""!==t.sort)for(var e=1;e<this.table2.list.length;e++){if(this.table2.list[e].sort==parseInt(t.sort))return t.feedgroup=this.table2.list[e].feedgroup,!1;t.feedgroup=t.fname}else t.feedgroup=t.fname;else if(1==t.isUpdateSave)if(""!==t.sort)for(var a=0;a<this.table2.list.length;a++)if(this.table2.list[a].sort==t.sort){if(console.log("失去焦点,行内顺序与表格某顺序相同时",this.table2.list[a]),this.table2.list[a].id!==t.id){t.isGroupDisabled=!0,t.feedgroup=this.table2.list[a].feedgroup;break}}else console.log("失去焦点,行内顺序与表格某顺序不相同时"),t.isGroupDisabled=!0,t.feedgroup=t.fname;else t.feedgroup=t.fname},createData2:function(t){var e=this;if(console.log("点击了详情新增保存",t),this.table2.temp.pastureid=c.a.get("pastureid"),this.table2.temp.ftid=this.table2.getdataListParm.parammaps.ftid,this.table2.temp.fid=t.fid,this.table2.temp.fname=this.table2.temp.fname,this.table2.temp.fweight=t.fweight,this.table2.temp.islockcount=t.islockcount,this.table2.temp.sort=t.sort,this.table2.temp.feedgroup=t.feedgroup,this.table2.temp.preftid=this.table2.temp.preftid,this.table2.temp.autosecond=t.autosecond,""==this.table2.temp.fid&&""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"饲料名称/重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fid)return this.$message({type:"error",message:"饲料名称不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight)return this.$message({type:"error",message:"重量不能为空",duration:2e3}),!1;if(""==this.table2.temp.autosecond)return this.$message({type:"error",message:"搅拌延时不能为空",duration:2e3}),!1;if(""!==this.table2.temp.sort?this.table2.temp.sort=this.table2.temp.sort:(console.log(this.table2.list.length),1==this.table2.list.length?this.table2.temp.sort=0:(this.table2.temp.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1,t.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1)),2==this.table2.getdataListParm.parammaps.fttypeid&&parseInt(this.table2.temp.preftid)>0)return this.$message({type:"error",message:"饲料名称不能选择预混配方",duration:2e3}),!1;var a=/^\d+$/;if(!a.test(this.table2.temp.sort))return this.$message({type:"error",message:"饲料顺序不可为负数或小数",duration:2e3}),!1;var i=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!i.test(this.table2.temp.fweight))return this.$message({type:"error",message:"重量请输入正数,最多保留俩位小数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertFTdetail",type:"e",parammaps:{pastureid:this.table2.temp.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,fid:t.fid,fname:this.table2.temp.fname,fweight:t.fweight,islockcount:t.islockcount,sort:t.sort,feedgroup:t.feedgroup,preftid:this.table2.temp.preftid,autosecond:t.autosecond}},this.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:this.table2.temp.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,type:this.table2.getdataListParm.parammaps.fttypeid}},Object(r["b"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2()):Object(r["j"])(t,e.$notify)}))},createCancel2:function(t){console.log("点击了详情新增取消");for(var e=0;e<this.table2.list.length;e++){if(t.myId===this.table2.list[e].myId)var a=this.table2.list.indexOf(this.table2.list[e]);if(a>-1)return void this.table2.list.splice(a,1)}this.getDialogList()},handleUpdate2:function(t){console.log("详情编辑",t),this.dropState=!0,t.isGroupDisabled=!1,t.islockcount=String(t.islockcount),t.fid=String(t.fid),t.autosecond=String(t.autosecond),this.table2.temp.fname=t.fname,this.table2.temp.preftid=t.preftid;for(var e=[],a=0;a<this.table2.list.length;a++){if(1==this.table2.list[a].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.push(this.table2.list[a].sort)}for(var i=0,s=0;s<e.length;s++)e[s]==t.sort&&i++;if(1==i)t.groupEdit=!1,t.groupNoEdit=!0,t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0;else if(i>1)return t.groupEdit=!0,t.groupNoEdit=!1,console.log(222),t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,!1},updateData2:function(t){var e=this;if(console.log("点击了详情编辑保存111",t),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.table2.temp.pastureid=t.pastureid,this.table2.temp.ftid=this.table2.getdataListParm.parammaps.ftid,this.table2.temp.fid=t.fid,this.table2.temp.fname=this.table2.temp.fname,this.table2.temp.fweight=t.fweight,this.table2.temp.islockcount=t.islockcount,this.table2.temp.sort=t.sort,this.table2.temp.feedgroup=t.feedgroup,this.table2.temp.preftid=this.table2.temp.preftid,this.table2.temp.autosecond=t.autosecond,this.table2.temp.id=t.id,""==this.table2.temp.fid&&""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"饲料名称/重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fid)return this.$message({type:"error",message:"饲料名称不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight)return this.$message({type:"error",message:"重量不能为空",duration:2e3}),!1;if(""==this.table2.temp.autosecond)return this.$message({type:"error",message:"搅拌延时不能为空",duration:2e3}),!1;if(""!==this.table2.temp.sort?this.table2.temp.sort=this.table2.temp.sort:this.table2.temp.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1,2==this.table2.getdataListParm.parammaps.fttypeid&&parseInt(this.table2.temp.preftid)>0)return this.$message({type:"error",message:"饲料名称不能选择预混配方",duration:2e3}),!1;var a=/^\d+$/;if(!a.test(this.table2.temp.sort))return this.$message({type:"error",message:"饲料顺序不可为负数或小数",duration:2e3}),!1;var i=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!i.test(this.table2.temp.fweight))return this.$message({type:"error",message:"重量请输入正数,最多保留俩位小数",duration:2e3}),!1;this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateFTdetail",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,fid:t.fid,fname:this.table2.temp.fname,fweight:t.fweight,islockcount:t.islockcount,sort:t.sort,feedgroup:t.feedgroup,preftid:this.table2.temp.preftid,autosecond:t.autosecond,id:t.id}},this.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,type:this.table2.getdataListParm.parammaps.fttypeid}},this.requestParam.data[2]={name:"updateFTdetailbySort",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,sort:t.sort,feedgroup:t.feedgroup}},Object(r["b"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},updateCancel2:function(t){console.log("点击了详情编辑取消"),t.groupEdit=!1,t.groupNoEdit=!0,t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList2(),this.dropState=!1},handleRowDelete2:function(t){var e=this;console.log("点击了行内删除"),n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.pastureid,ftid:e.table2.getdataListParm.parammaps.ftid,type:e.table2.getdataListParm.parammaps.fttypeid}},Object(r["b"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.getList2())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange2:function(t){console.log("勾选数据",t),this.selectList2=t},handleDelete2:function(){var t=this;console.log("点击了删除"),0==this.selectList2.length?this.$message({type:"error",message:"请选择配方详情",duration:2e3}):n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList2}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteFTdetail",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList2())}))}))},handleSplitPremix:function(t){var e=this;console.log("点击了拆分预混料"),n["MessageBox"].confirm("是否确认拆分当前预混料?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="splitFTpre",e.requestParam.parammaps={},e.requestParam.parammaps.ftid=e.table2.getdataListParm.parammaps.ftid,e.requestParam.parammaps.preftid=t.preftid,e.requestParam.parammaps.ftdid=t.id,e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.feedgroup=t.feedgroup,e.requestParam.parammaps.sort=t.sort,e.requestParam.parammaps.fweight=t.fweight,Object(r["f"])(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.getList2())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSyntheticPremix:function(){var t=this;if(console.log("点击了合成预混料",this.selectList2),2==this.table2.getdataListParm.parammaps.fttypeid)return this.$message({type:"error",message:"预混配方不可合成预混料",duration:2e3}),!1;if(!(this.selectList2.length>1))return this.$message({type:"error",message:"请选择俩条及以上饲料进行合成",duration:2e3}),!1;for(var e=0;e<this.selectList2.length;e++)if(parseInt(this.selectList2[e].preftid)>0)return this.$message({type:"error",message:"不可选择预混料",duration:2e3}),!1;void 0!==this.selectList2[0].splitftpreid?(this.detail.getdataListParm.parammaps.ftid=this.selectList2[0].splitftpreid,this.detail.getdataListParm.parammaps.pastureid=this.selectList2[0].pastureid,Object(r["d"])(this.detail.getdataListParm).then((function(e){if(null!==e.data.list){t.detail.list3=e.data.list;for(var a=[],i=0,s=0;s<t.selectList2.length;s++){var l={};l.fid=t.selectList2[s].fid,l.fweight=t.selectList2[s].fweight,i+=parseFloat(t.selectList2[s].fweight),a.push(l)}a.sort((function(t,e){return t.fid.localeCompare(e.fid)}));var n=0;if(t.detail.list3.length==a.length){for(var o=0;o<t.detail.list3.length;o++)t.detail.list3[o].fid==a[o].fid&&(t.detail.list3[o].fweight/t.detail.list3[o].sumWeight).toFixed(2)==(a[o].fweight/i).toFixed(2)&&n++;n==t.detail.list3.length?(t.detail.getdataListParm2.parammaps.ftid=t.selectList2[0].splitftpreid,t.detail.getdataListParm2.parammaps.pastureid=t.selectList2[0].pastureid,Object(r["d"])(t.detail.getdataListParm2).then((function(e){null!==e.data.list?(t.detail.dialogStatus="SyntheticPremix",t.detail.dialogFormVisible=!0,t.detail.list=t.selectList2,t.detail.list2=e.data.list,t.detail.disabled=!0,setTimeout((function(){t.detail.listLoading=!1}),100)):t.detail.list2=[]}))):(t.detail.dialogStatus="SyntheticPremix",t.detail.dialogFormVisible=!0,t.detail.list=t.selectList2,t.detail.disabled=!1,t.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){t.detail.listLoading=!1}),100))}else t.detail.dialogStatus="SyntheticPremix",t.detail.dialogFormVisible=!0,t.detail.list=t.selectList2,t.detail.disabled=!1,t.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){t.detail.listLoading=!1}),100)}else t.detail.list3=[],t.detail.dialogStatus="SyntheticPremix",t.detail.dialogFormVisible=!0,t.detail.list=t.selectList2,t.detail.disabled=!1,t.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){t.detail.listLoading=!1}),100)}))):(this.detail.dialogStatus="SyntheticPremix",this.detail.dialogFormVisible=!0,this.detail.list=this.selectList2,this.detail.disabled=!1,this.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){t.detail.listLoading=!1}),100))},changeLivestockType2:function(t){this.detail.list2[0].ccname=this.livestockTypeList.find((function(e){return e.value===t})).label},syntheticPremixData:function(){var t=this;if(console.log("点击了合成预混料确认"),1==this.detail.disabled){for(var e=0,a=0;a<this.detail.list.length;a++)e+=parseFloat(this.detail.list[a].fweight);e=e.toFixed(2),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:this.detail.list}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id"}},this.requestParam.data[1]={name:"insertSpotList2",resultmaps:{list:this.detail.list2}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertFTdetail",type:"e",parammaps:{pastureid:c.a.get("pastureid"),ftid:this.table2.getdataListParm.parammaps.ftid,fid:this.detail.list2[0].id,fname:"@insertSpotList2.tname",fweight:e,islockcount:"0",sort:parseInt(this.table2.list[this.table2.list.length-1].sort)+1,feedgroup:"@insertSpotList2.tname",preftid:this.detail.list2[0].id,autosecond:this.detail.list[0].autosecond}},Object(r["b"])(this.requestParam).then((function(e){if(console.log("合成预混料保存发送参数",t.requestParam),"fail"===e.msg){var a=new RegExp("key 'tname'");a.test(e.data)?t.$message({type:"error",message:"预混配方已存在,不可重复生成",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}else t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.detail.dialogFormVisible=!1,t.getList(),t.getList2(),t.getDownList()}))}else{if(""==this.detail.list2[0].tname&&""==this.detail.list2[0].ccid)return this.$message({type:"error",message:"配方名称/牲畜类别/不能为空",duration:2e3}),!1;if(""==this.detail.list2[0].tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.detail.list2[0].ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(i.test(this.detail.list2[0].tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;for(var s=0,l=0;l<this.detail.list.length;l++)s+=parseFloat(this.detail.list[l].fweight);s=s.toFixed(2),console.log(s),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertFT",type:"e",parammaps:{pastureid:c.a.get("pastureid"),tcode:this.detail.list2[0].tcode,tname:this.detail.list2[0].tname,tcolor:this.detail.list2[0].tcolor,ccid:this.detail.list2[0].ccid,ccname:this.detail.list2[0].ccname,fttype:this.detail.list2[0].fttype,fttypeid:this.detail.list2[0].fttypeid,source:this.detail.list2[0].source,remark:this.detail.list2[0].remark,enable:this.detail.list2[0].enable}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:this.detail.list}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertFTdetail",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",ftid:"@insertFT.LastInsertId",fid:"@insertSpotList.fid",fname:"@insertSpotList.fname",fweight:"@insertSpotList.fweight",islockcount:"@insertSpotList.islockcount",sort:"@insertSpotList.sort",feedgroup:"@insertSpotList.feedgroup",preftid:"@insertSpotList.preftid",autosecond:"@insertSpotList.autosecond"}},this.requestParam.data[1].children[1]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id"}},this.requestParam.data[2]={name:"insertSpotList2",resultmaps:{list:this.detail.list2}},this.requestParam.data[2].children=[],this.requestParam.data[2].children[0]={name:"insertFTdetail",type:"e",parammaps:{pastureid:c.a.get("pastureid"),ftid:this.table2.getdataListParm.parammaps.ftid,fid:"@insertFT.LastInsertId",fname:"@insertSpotList2.tname",fweight:s,islockcount:"0",sort:parseInt(this.table2.list[this.table2.list.length-1].sort)+1,feedgroup:"@insertSpotList2.tname",preftid:"@insertFT.LastInsertId",autosecond:this.detail.list[0].autosecond}},Object(r["b"])(this.requestParam).then((function(e){if(console.log("合成预混料保存发送参数",t.requestParam),"fail"===e.msg){var a=new RegExp("key 'tname'");a.test(e.data)?t.$message({type:"error",message:"预混配方已存在,不可重复生成",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}else t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.detail.dialogFormVisible=!1,t.getList(),t.getList2(),t.getDownList()}))}}}},m=d,p=(a("ab9b"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"485d9f02",null);e["default"]=u.exports},"047d":function(t,e,a){},"05f7":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._v(" 实时监控 ")])},s=[],r={name:"RealTimeMonitoring",data:function(){return{}},created:function(){},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},"0781":function(t,e,a){"use strict";a.r(e);var i=a("83d6"),s=a.n(i),r=s.a.showSettings,l=s.a.tagsView,n=s.a.fixedHeader,o=s.a.sidebarLogo,c={showSettings:r,tagsView:l,fixedHeader:n,sidebarLogo:o},d={CHANGE_SETTING:function(t,e){var a=e.key,i=e.value;t.hasOwnProperty(a)&&(t[a]=i)}},m={changeSetting:function(t,e){var a=t.commit;a("CHANGE_SETTING",e)}};e["default"]={namespaced:!0,state:c,mutations:d,actions:m}},"0842":function(t,e,a){},"09c4":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-牲畜类别",use:"icon-牲畜类别-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牲畜类别"><defs><style type="text/css"></style></defs><path d="M320 512H192c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V640c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H192c-35.2 0-64-28.8-64-64V640c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128zM768 64H640c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V192c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H640c-35.2 0-64-28.8-64-64V192c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128z m-64 192H640c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V640c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H640c-35.2 0-64-28.8-64-64V640c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128zM320 64H192c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V192c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H192c-35.2 0-64-28.8-64-64V192c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128z" p-id="62619" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"0c30":function(t,e,a){},"0c62":function(t,e,a){"use strict";var i=a("6f44"),s=a.n(i);s.a},"0ea2":function(t,e,a){"use strict";var i=a("7d6f"),s=a.n(i);s.a},"0ee2":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存管理",use:"icon-库存管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存管理"><defs><style type="text/css"></style></defs><path d="M89.15968 508.00128c152.3712-152.3968 304.74752-304.768 457.1136-457.1392h-36.20352c152.47872 152.48384 304.95232 304.96768 457.42592 457.47712 23.36256 23.38304 59.56608-12.85632 36.1984-36.22912L546.26816 14.65856c-9.86112-9.86112-26.3424-9.86112-36.20352 0L52.94592 471.77728c-23.35744 23.36768 12.84608 59.60704 36.21376 36.224z" p-id="20930" fill="#ffffff" /><path d="M829.88544 937.40032H225.94048c-29.96224 0-31.232-27.20256-31.232-49.00864v-367.68256c0-33.01888-51.2-33.01888-51.2 0v369.94048c0 31.02208 5.504 59.7504 31.6416 80.36352 19.6864 15.52896 42.0608 17.59232 65.7664 17.59232h588.96896c33.01376-0.00512 33.01376-51.20512 0-51.20512zM860.60544 520.704v312.17152c0 33.01376 51.2 33.01376 51.2 0V520.704c0-33.01888-51.2-33.01888-51.2 0z" p-id="20931" fill="#ffffff" /><path d="M415.57504 602.5472H289.28l25.6 25.6V501.85216l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0V501.85216c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2zM636.47744 826.89024H510.17728l25.6 25.6v-126.29504l-25.6 25.6h126.30016l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.648-25.6-25.6-25.6H510.17728c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.30016c33.01376 0 33.01376-51.2 0-51.2zM415.57504 825.42592H289.28l25.6 25.6v-126.29504l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2z" p-id="20932" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"0f10":function(t,e,a){},"0f994":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[t._v(" 操作日志 ")])},s=[],r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text_group"},[a("div",{staticClass:"input_group",class:{"is-invalid":t.error}},[a("input",{attrs:{type:t.type,placeholder:t.placeholder,name:t.name},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),t.btnTitle?a("button",{attrs:{disabled:t.disabled},on:{click:function(e){return t.$emit("btnClick")}}},[t._v(t._s(t.btnTitle))]):t._e()]),t.error?a("div",{staticClass:"invalid-feedback"},[t._v(t._s(t.error))]):t._e()])},l=[],n={name:"InputGroup",props:{type:{type:String,default:"text"},placeholder:String,value:String,name:String,disabled:Boolean,btnTitle:String,error:String}},o=n,c=a("2877"),d=Object(c["a"])(o,r,l,!1,null,null,null),m=d.exports,p={name:"Operation",components:{InputGroup:m},data:function(){return{phone:"",verifyCode:"",btnTitle:"获取验证码",disabled:!1,errors:{}}},computed:{isClick:function(){return!this.phone||!this.verifyCode}},created:function(){},methods:{getVerifyCode:function(){this.validatePhone()&&(this.validateBtn(),this.$axios.post("/api/posts/sms_send",{tpl_id:"",key:"",phone:this.phone}).then((function(t){console.log(t)})))},validatePhone:function(){if(this.phone){if(/^1[345678]\d{9}$/.test(this.phone))return this.errors={},!0;this.errors={phone:"请输入正确是手机号"}}else this.errors={phone:"手机号码不能为空"}},validateBtn:function(){var t=this,e=60,a=setInterval((function(){0==e?(clearInterval(a),t.disabled=!1,t.btnTitle="获取验证码"):(t.btnTitle=e+"秒后重试",t.disabled=!0,e--)}),1e3)},handleLogin:function(){var t=this;this.errors={},this.$axios.post("http://192.168.1.84:8081/authdata/api/posts/sms_back",{phone:this.phone,code:this.verifyCode}).then((function(e){console.log(e),localStorage.setItem("ele_login",!0),t.$router.push("/")})).catch((function(e){t.errors={code:e.response.data.msg}}))}}},u=p,h=Object(c["a"])(u,i,s,!1,null,null,null);e["default"]=h.exports},"0f9a":function(t,e,a){"use strict";a.r(e);a("b0c0"),a("d3b7"),a("498a");var i=a("b775");function s(t){return Object(i["a"])({url:"/auth",method:"post",data:t})}function r(){return Object(i["a"])({url:"/authdata/userinfo",method:"get"})}function l(){return Object(i["a"])({url:"/authdata/logout",method:"post"})}var n=a("2934"),o=a("5f87"),c=a("a18c"),d=a("5c96"),m=a("a78e"),p=a.n(m),u={token:Object(o["a"])(),name:"",avatar:"",pastureid:"",pasturename:"",pasturenumber:"",employename:"",employeid:"",dashchartid:"",dashchartidisedit:"",roles:[],buttons:[]},h={SET_DASHCHARTID:function(t,e){t.dashchartid=e},SET_DASHCHARTIDISEDIT:function(t,e){t.dashchartidisedit=e},SET_TOKEN:function(t,e){t.token=e},SET_NAME:function(t,e){t.name=e,p.a.set("name",e)},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_PASTUREID:function(t,e){p.a.set("pastureid",e),t.pastureid=e},SET_PASTURENAME:function(t,e){p.a.set("pasturename",e),t.pasturename=e},SET_PASTURENUMBER:function(t,e){p.a.set("pasturenumber",e),t.pasturenumber=e},SET_EMPLOYEID:function(t,e){p.a.set("employeid",e),t.employeid=e},SET_EMPLOYENAME:function(t,e){p.a.set("employename",e),t.employename=e},SET_DEPARTMENTID:function(t,e){p.a.set("departmentid",e),t.departmentid=e},SET_BUTTONS:function(t,e){p.a.set("buttons",e),sessionStorage.setItem("buttons",JSON.stringify(e)),t.buttons=e}},f={login:function(t,e){var a=t.commit,i=e.username,r=e.password;return new Promise((function(t,e){s({username:i.trim(),password:r}).then((function(i){var s=i.data,r=i.msg;"ok"!==r&&(Object(d["Message"])({message:s,type:"error",duration:5e3}),e(s)),a("SET_TOKEN",s.token),null==p.a&&console.log(1),Object(o["c"])(s.token),t()})).catch((function(t){e(t)}))}))},getInfo:function(t){var e=t.commit,a=t.state;return new Promise((function(t,i){r(a.token).then((function(a){var s=a.data;s||i("Verification failed, please Login again.");var r=s.role,l=s.username,o=s.avatar;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),Object(n["d"])({name:"findByUserPastureName",parammaps:{jwt_username:l}}).then((function(t){null!==t.data.list&&(e("SET_PASTUREID",t.data.list[0].pastureId),e("SET_PASTURENAME",t.data.list[0].pastureName),e("SET_PASTURENUMBER",t.data.list[0].pastureNumber),e("SET_EMPLOYEID",t.data.list[0].employeId),e("SET_EMPLOYENAME",t.data.list[0].employeName),Object(n["d"])({name:"getUserPCButtons",parammaps:{username:l,pastureid:t.data.list[0].pastureId}}).then((function(t){e("SET_BUTTONS",t.data.list)})))})),e("SET_ROLES",r),e("SET_NAME",l),e("SET_AVATAR",o),t(s)})).catch((function(t){i(t)}))}))},logout:function(t){var e=t.commit,a=t.state;return new Promise((function(t,i){l(a.token).then((function(){e("SET_BUTTONS",[]),e("SET_TOKEN",""),e("SET_ROLES",[]),p.a.remove("employename"),p.a.remove("employeid"),p.a.remove("pastureid"),Object(o["b"])(),Object(c["c"])(),t(),location.reload()})).catch((function(t){i(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),t()}))}};e["default"]={namespaced:!0,state:u,mutations:h,actions:f}},"0f9d":function(t,e,a){},1:function(t,e,a){t.exports=a("56d7")},1009:function(t,e,a){"use strict";var i=a("f51c"),s=a.n(i);s.a},"12a5":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol>'});l.a.add(n);e["default"]=n},1494:function(t,e,a){},"14cd":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-linebar_chart",use:"icon-linebar_chart-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-linebar_chart"><defs><style type="text/css"></style></defs><path d="M690.266 337.946v624.009h-133.716v-624.009h133.716zM422.834 739.095v222.861h-133.716v-222.861h133.716zM199.974 605.379v356.576h-133.716v-356.576h133.716zM957.699 70.513v891.442h-133.716v-891.442h133.716z" fill="#29c287" p-id="4441" /><path d="M235.764 486.46l-117.537-127.208 14.619-16.849 108.756 117.714 105.368-34.053 107.107 16.671 119.274-344.007 121.949-13.996 109.469 44.171 105.77-34.232 5.839 22.553-112.322 36.326-111.385-44.929-104.343 11.99-120.657 347.93-119.141-18.542z" fill="#29c287" p-id="4442" /><path d="M229.48 511.777l-140.492-152.036 43.414-49.965 115.487 124.981 97.389-31.512 94.672 14.753 117.849-339.908 140.313-16.090 107.419 43.279 119.855-38.734 17.026 65.61-139.154 44.974-113.392-45.775-85.98 9.894-122.039 352.030-131.666-20.503z" fill="#29c287" p-id="4443" /></symbol>'});l.a.add(n);e["default"]=n},"14f9":function(t,e,a){"use strict";var i=a("ce24"),s=a.n(i);s.a},1521:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"体况、粪便评分标准",name:"first"}},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table1"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table1.listLoading,expression:"table1.listLoading"}],key:t.table1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftname))])]}}])}),a("el-table-column",{attrs:{label:"体况评分标准",align:"center","min-width":"300px"}},[a("el-table-column",{attrs:{label:"体况评分标准(分)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bodystandard))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bodysource))])]}}])})],1),a("el-table-column",{attrs:{label:"粪便评分标准",align:"center","min-width":"300px"}},[a("el-table-column",{attrs:{label:"粪便评分标准(分)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dungstandard))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dungsource))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e()]}}])})],1)],1)]),a("el-tab-pane",{attrs:{label:"宾州筛、粪便筛标准范围",name:"second"}},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table2"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"牲畜类别",align:"center","min-width":"200px"}},[a("el-table-column",{attrs:{label:"牲畜父类","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.parentname))])]}}])}),a("el-table-column",{attrs:{label:"牲畜子类","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowname))])]}}])})],1),a("el-table-column",{attrs:{label:"宾州筛",align:"center","min-width":"200px"}},[a("el-table-column",{attrs:{label:"宾州筛一层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bzonemin)+" - "+t._s(e.row.bzonemax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛二层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bztwomin)+" - "+t._s(e.row.bztwomax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛三层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bzthreemin)+" - "+t._s(e.row.bzthreemax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛四层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bzfourmin)+" - "+t._s(e.row.bzfourmax))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bzsource))])]}}])})],1),a("el-table-column",{attrs:{label:"粪便筛",align:"center","min-width":"300px"}},[a("el-table-column",{attrs:{label:"粪便筛一层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fbonemin)+" - "+t._s(e.row.fbonemax))])]}}])}),a("el-table-column",{attrs:{label:"粪便筛二层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fbtwomin)+" - "+t._s(e.row.fbtwomax))])]}}])}),a("el-table-column",{attrs:{label:"粪便筛三层(%)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fbthreemin)+" - "+t._s(e.row.fbthreemax))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fbsource))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e()]}}])})],1)],1)])],1),a("el-dialog",{attrs:{title:t.textMap[t.table1.dialogStatus],visible:t.table1.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.table1,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:t.table1.rules,model:t.table1.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("配方")])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"配方名称:",prop:"ftname"}},[a("span",[t._v(t._s(t.table1.temp.ftname))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("体况评分标准")])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"体况评分标准(分):",prop:"bodystandard"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"评分标准"},model:{value:t.table1.temp.bodystandard,callback:function(e){t.$set(t.table1.temp,"bodystandard",e)},expression:"table1.temp.bodystandard"}},t._l(t.physicalList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"数据来源:",prop:"bodysource"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"1-255字符",autosize:{minRows:1,maxRows:4},maxlength:"255"},model:{value:t.table1.temp.bodysource,callback:function(e){t.$set(t.table1.temp,"bodysource",e)},expression:"table1.temp.bodysource"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("粪便评分标准")])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"粪便评分标准(分):",prop:"dungstandard"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"粪便评分标准"},model:{value:t.table1.temp.dungstandard,callback:function(e){t.$set(t.table1.temp,"dungstandard",e)},expression:"table1.temp.dungstandard"}},t._l(t.faecesList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"数据来源:",prop:"dungsource"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"1-255字符",autosize:{minRows:1,maxRows:4},maxlength:"255"},model:{value:t.table1.temp.dungsource,callback:function(e){t.$set(t.table1.temp,"dungsource",e)},expression:"table1.temp.dungsource"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.table1.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1)]),a("el-dialog",{attrs:{title:t.textMap[t.table2.dialogStatus],visible:t.table2.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.table2,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:t.table2.rules,model:t.table2.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("牲畜类别")])])],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"牲畜父类:",prop:"parentname"}},[a("span",[t._v(t._s(t.table2.temp.parentname))])])],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"牲畜子类:",prop:"cowname"}},[a("span",[t._v(t._s(t.table2.temp.cowname))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("宾州筛")])])],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"宾州筛第一层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.bzonemin,callback:function(e){t.$set(t.table2.temp,"bzonemin",e)},expression:"table2.temp.bzonemin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.bzonemax,callback:function(e){t.$set(t.table2.temp,"bzonemax",e)},expression:"table2.temp.bzonemax"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"宾州筛第二层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.bztwomin,callback:function(e){t.$set(t.table2.temp,"bztwomin",e)},expression:"table2.temp.bztwomin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.bztwomax,callback:function(e){t.$set(t.table2.temp,"bztwomax",e)},expression:"table2.temp.bztwomax"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"宾州筛第三层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.bzthreemin,callback:function(e){t.$set(t.table2.temp,"bzthreemin",e)},expression:"table2.temp.bzthreemin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.bzthreemax,callback:function(e){t.$set(t.table2.temp,"bzthreemax",e)},expression:"table2.temp.bzthreemax"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"宾州筛第四层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.bzfourmin,callback:function(e){t.$set(t.table2.temp,"bzfourmin",e)},expression:"table2.temp.bzfourmin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.bzfourmax,callback:function(e){t.$set(t.table2.temp,"bzfourmax",e)},expression:"table2.temp.bzfourmax"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"数据来源:",prop:"bzsource"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"1-255字符",autosize:{minRows:1,maxRows:4},maxlength:"255"},model:{value:t.table2.temp.bzsource,callback:function(e){t.$set(t.table2.temp,"bzsource",e)},expression:"table2.temp.bzsource"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[t._v("粪便筛")])])],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"粪便筛第一层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.fbonemin,callback:function(e){t.$set(t.table2.temp,"fbonemin",e)},expression:"table2.temp.fbonemin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.fbonemax,callback:function(e){t.$set(t.table2.temp,"fbonemax",e)},expression:"table2.temp.fbonemax"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"粪便筛第二层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.fbtwomin,callback:function(e){t.$set(t.table2.temp,"fbtwomin",e)},expression:"table2.temp.fbtwomin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.fbtwomax,callback:function(e){t.$set(t.table2.temp,"fbtwomax",e)},expression:"table2.temp.fbtwomax"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"粪便筛第三层(%):"}},[a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最小值"},model:{value:t.table2.temp.fbthreemin,callback:function(e){t.$set(t.table2.temp,"fbthreemin",e)},expression:"table2.temp.fbthreemin"}}),a("span",{staticStyle:{width:"1%"}},[t._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:t.table2.temp.fbthreemax,callback:function(e){t.$set(t.table2.temp,"fbthreemax",e)},expression:"table2.temp.fbthreemax"}})],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"数据来源:",prop:"fbsource"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"1-255字符",autosize:{minRows:1,maxRows:4},maxlength:"255"},model:{value:t.table2.temp.fbsource,callback:function(e){t.$set(t.table2.temp,"fbsource",e)},expression:"table2.temp.fbsource"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.table2.dialogFormVisible=!1,t.getList2()}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o={name:"StandardParameters",data:function(){return{isRoleEdit:[],activeName:"first",requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["评分标准"]},{name:"getDictByName2",offset:0,pagecount:0,params:["粪便评分标准"]}],physicalList:[],faecesList:[],table1:{getdataListParm:{name:"getOptscoreList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},tableKey:0,list:[],total:0,listLoading:!0,dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{bodystandard:[{type:"string",required:!0,message:"必填",trigger:"blur"}],dungstandard:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},table2:{getdataListParm:{name:"getOptrangeList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{}},textMap:{update:"编辑"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="StandardParameters",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.physicalList=e.data.getDictByName.list,t.faecesList=e.data.getDictByName2.list}))},handleTabClick:function(t,e){console.log(t,e),"first"===t.name?this.getList():"second"===t.name&&this.getList2()},getList:function(){var t=this;this.table1.listLoading=!0,Object(r["d"])(this.table1.getdataListParm).then((function(e){console.log("table1数据",e.data.list),null!==e.data.list?(t.table1.list=e.data.list,t.table1.total=e.data.total):t.table1.list=[],setTimeout((function(){t.table1.listLoading=!1}),100)}))},getList2:function(){var t=this;this.table2.listLoading=!0,Object(r["d"])(this.table2.getdataListParm).then((function(e){console.log("table1数据",e.data.list),null!==e.data.list?(t.table2.list=e.data.list,e.data.total&&(t.table2.total=e.data.total)):t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))},handleUpdate:function(t){"first"===this.activeName?(console.log("点击了体况、粪便评分标准编辑"),this.table1.dialogStatus="update",this.table1.dialogFormVisible=!0,this.table1.temp=Object.assign({},t)):"second"===this.activeName&&(console.log("点击了宾州筛、粪便筛标准范围编辑"),this.table2.dialogStatus="update",this.table2.dialogFormVisible=!0,this.table2.temp=Object.assign({},t))},updateData:function(){var t=this;if("first"===this.activeName)console.log("点击了体况、粪便评分标准编辑保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){e&&(t.requestParam.name="updateOptscore",t.requestParam.parammaps=t.table1.temp,Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.table1.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)})))}));else if("second"===this.activeName){if(console.log("点击了宾州筛、粪便筛标准范围编辑保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),parseFloat(this.table2.temp.bzonemin)>parseFloat(this.table2.temp.bzonemax))return this.$message({type:"error",message:"宾州筛第一层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.bztwomin)>parseFloat(this.table2.temp.bztwomax))return this.$message({type:"error",message:"宾州筛第二层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.bzthreemin)>parseFloat(this.table2.temp.bzthreemax))return this.$message({type:"error",message:"宾州筛第三层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.bzfourmin)>parseFloat(this.table2.temp.bzfourmax))return this.$message({type:"error",message:"宾州筛第四层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.fbonemin)>parseFloat(this.table2.temp.fbonemax))return this.$message({type:"error",message:"粪便筛第一层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.fbtwomin)>parseFloat(this.table2.temp.fbtwomax))return this.$message({type:"error",message:"粪便筛第二层最大值不可小于等于最小值",duration:2e3}),!1;if(parseFloat(this.table2.temp.fbthreemin)>parseFloat(this.table2.temp.fbthreemax))return this.$message({type:"error",message:"粪便筛第三层最大值不可小于等于最小值",duration:2e3}),!1;""!=this.table2.temp.bzonemin&&void 0!=this.table2.temp.bzonemin||(this.table2.temp.bzonemin="0"),""!=this.table2.temp.bzonemax&&void 0!=this.table2.temp.bzonemax||(this.table2.temp.bzonemax="0"),""!=this.table2.temp.bztwomin&&void 0!=this.table2.temp.bztwomin||(this.table2.temp.bztwomin="0"),""!=this.table2.temp.bztwomax&&void 0!=this.table2.temp.bztwomax||(this.table2.temp.bztwomax="0"),""!=this.table2.temp.bzthreemin&&void 0!=this.table2.temp.bzthreemin||(this.table2.temp.bzthreemin="0"),""!=this.table2.temp.bzthreemax&&void 0!=this.table2.temp.bzthreemax||(this.table2.temp.bzthreemax="0"),""!=this.table2.temp.bzfourmin&&void 0!=this.table2.temp.bzfourmin||(this.table2.temp.bzfourmin="0"),""!=this.table2.temp.bzfourmax&&void 0!=this.table2.temp.bzfourmax||(this.table2.temp.bzfourmax="0"),""!=this.table2.temp.fbonemin&&void 0!=this.table2.temp.fbonemin||(this.table2.temp.fbonemin="0"),""!=this.table2.temp.fbonemax&&void 0!=this.table2.temp.fbonemax||(this.table2.temp.fbonemax="0"),""!=this.table2.temp.fbtwomin&&void 0!=this.table2.temp.fbtwomin||(this.table2.temp.fbtwomin="0"),""!=this.table2.temp.fbtwomax&&void 0!=this.table2.temp.fbtwomax||(this.table2.temp.fbtwomax="0"),""!=this.table2.temp.fbthreemin&&void 0!=this.table2.temp.fbthreemin||(this.table2.temp.fbthreemin="0"),""!=this.table2.temp.fbthreemax&&void 0!=this.table2.temp.fbthreemax||(this.table2.temp.fbthreemax="0");var e=/^([0-9]{1,2}|100)$/;if(!e.test(parseFloat(this.table2.temp.bzonemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bzonemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bztwomin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bztwomax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bzthreemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bzthreemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bzfourmin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.bzfourmax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbonemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbonemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbtwomin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbtwomax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbthreemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!e.test(parseFloat(this.table2.temp.fbthreemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;this.requestParam.name="insertOptrange",this.requestParam.parammaps=this.table2.temp,this.$refs["temp"].validate((function(e){e&&Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.table2.dialogFormVisible=!1,t.getList2(),t.activeName="second"):(Object(r["j"])(e,t.$notify),"0"==t.table2.temp.bzonemin&&(t.table2.temp.bzonemin=""),"0"==t.table2.temp.bzonemax&&(t.table2.temp.bzonemax=""),"0"==t.table2.temp.bztwomin&&(t.table2.temp.bztwomin=""),"0"==t.table2.temp.bztwomax&&(t.table2.temp.bztwomax=""),"0"==t.table2.temp.bzthreemin&&(t.table2.temp.bzthreemin=""),"0"==t.table2.temp.bzthreemax&&(t.table2.temp.bzthreemax=""),"0"==t.table2.temp.bzfourmin&&(t.table2.temp.bzfourmin=""),"0"==t.table2.temp.bzfourmax&&(t.table2.temp.bzfourmax=""),"0"==t.table2.temp.fbonemin&&(t.table2.temp.fbonemin=""),"0"==t.table2.temp.fbonemax&&(t.table2.temp.fbonemax=""),"0"==t.table2.temp.fbtwomin&&(t.table2.temp.fbtwomin=""),"0"==t.table2.temp.fbtwomax&&(t.table2.temp.fbtwomax=""),"0"==t.table2.temp.fbthreemin&&(t.table2.temp.fbthreemin=""),"0"==t.table2.temp.fbthreemax&&(t.table2.temp.fbthreemax=""))}))}))}},handleExport:function(){"first"===this.activeName?console.log("体况、粪便评分标准/导出"):"second"===this.activeName&&console.log("宾州筛、粪便筛标准范围/导出")},handleImport:function(){"first"===this.activeName?console.log("体况、粪便评分标准/导入"):"second"===this.activeName&&console.log("宾州筛、粪便筛标准范围/导入")}}},c=o,d=(a("19d0"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"4f1355b7",null);e["default"]=m.exports},1698:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"标准分数(分)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"牛头数(头)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"评分",align:"center"}},[a("el-table-column",{attrs:{label:"1分(头)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score1)+"("+t._s(e.row.score1rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"2分(头)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score2)+"("+t._s(e.row.score2rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3分(头)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score3)+"("+t._s(e.row.score3rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"4分(头)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score4)+"("+t._s(e.row.score4rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"5分(头)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score5)+"("+t._s(e.row.score5rate)+"%)")])]}}])})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("评分")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"标准分数(分):",prop:"standardscore"}},[a("el-input",{ref:"standardscore",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.create.temp.standardscore,callback:function(e){t.$set(t.create.temp,"standardscore",e)},expression:"create.temp.standardscore"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牛头数(头):",prop:"cowsum"}},[a("el-input",{ref:"cowsum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.create.temp.cowsum,callback:function(e){t.$set(t.create.temp,"cowsum",e)},expression:"create.temp.cowsum"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"1分",prop:"score1"}},[a("el-input",{ref:"score1",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score1,callback:function(e){t.$set(t.create.temp,"score1",e)},expression:"create.temp.score1"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"2分",prop:"score2"}},[a("el-input",{ref:"score2",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score2,callback:function(e){t.$set(t.create.temp,"score2",e)},expression:"create.temp.score2"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"3分",prop:"score3"}},[a("el-input",{ref:"score3",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score3,callback:function(e){t.$set(t.create.temp,"score3",e)},expression:"create.temp.score3"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"4分",prop:"score4"}},[a("el-input",{ref:"score4",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score4,callback:function(e){t.$set(t.create.temp,"score4",e)},expression:"create.temp.score4"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"5分",prop:"score5"}},[a("el-input",{ref:"score5",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score5,callback:function(e){t.$set(t.create.temp,"score5",e)},expression:"create.temp.score5"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("操作详情")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作日期:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeOperatetime},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"1-255字符",maxlength:"255"},model:{value:t.create.temp.remark,callback:function(e){t.$set(t.create.temp,"remark",e)},expression:"create.temp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"DungScores",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getDungscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score1:"",score2:"",score3:"",score4:"",score5:"",remark:"",ftid:"",ftname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score1:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score2:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score3:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score4:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score5:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getDungscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungAndBodyScore",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="DungScores",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=this.table.getdataListParm.parammaps.inputDatetime[0]-864e5,e=this.table.getdataListParm.parammaps.inputDatetime[1]-864e5;this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=this.table.getdataListParm.parammaps.inputDatetime[0]+864e5,e=this.table.getdataListParm.parammaps.inputDatetime[1]+864e5;this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"score1rate",(parseFloat(e.data.list[a].score1)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score2rate",(parseFloat(e.data.list[a].score2)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score4rate",(parseFloat(e.data.list[a].score4)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score5rate",(100-e.data.list[a].score1rate-e.data.list[a].score2rate-e.data.list[a].score3rate-e.data.list[a].score4rate).toFixed(2));t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score1:"",score2:"",score3:"",score4:"",score5:"",remark:"",ftid:"",ftname:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var t=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(e){null!==e.data.list?(t.create.temp.standardscore=e.data.list[0].dungstandard,t.create.temp.ftid=e.data.list[0].ftid,t.create.temp.ftname=e.data.list[0].ftname):(t.create.temp.standardscore="",t.create.temp.ftid="",t.create.temp.ftname="")}))},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},blurScore:function(){""!==this.create.temp.score1&&""!==this.create.temp.score2&&""!==this.create.temp.score3&&""!==this.create.temp.score4&&""!==this.create.temp.score5&&(this.create.temp.cowsum=parseInt(this.create.temp.score1)+parseInt(this.create.temp.score2)+parseInt(this.create.temp.score3)+parseInt(this.create.temp.score4)+parseInt(this.create.temp.score5))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score1))||!a.test(parseFloat(t.create.temp.score2))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score4))||!a.test(parseFloat(t.create.temp.score5)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="insertDungscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score1))||!a.test(parseFloat(t.create.temp.score2))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score4))||!a.test(parseFloat(t.create.temp.score5)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="insertDungscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList()):Object(r["j"])(e,t.$notify)}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),t.score1=String(t.score1),t.score2=String(t.score2),t.score3=String(t.score3),t.score4=String(t.score4),t.score5=String(t.score5),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score1))||!a.test(parseFloat(t.create.temp.score2))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score4))||!a.test(parseFloat(t.create.temp.score5)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="updateDungscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteDungscore",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便评分",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteDungscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便评分",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copyDungscore",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条粪便评分",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("2486"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"f1d25948",null);e["default"]=h.exports},1725:function(t,e,a){},1745:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{ref:"list",staticClass:"list"},[a("div",{staticClass:"list-t"},[a("span",[t._v("班次:")]),a("el-radio-group",{attrs:{size:"small"},on:{change:t.changeMenu},model:{value:t.menuRadio,callback:function(e){t.menuRadio=e},expression:"menuRadio"}},[t.maxTime.isTime1?a("el-radio-button",{attrs:{label:"一班"}},[t._v("一班")]):t._e(),t.maxTime.isTime2?a("el-radio-button",{attrs:{label:"二班"}},[t._v("二班")]):t._e(),t.maxTime.isTime3?a("el-radio-button",{attrs:{label:"三班"}},[t._v("三班")]):t._e(),t.maxTime.isTime4?a("el-radio-button",{attrs:{label:"四班"}},[t._v("四班")]):t._e()],1)],1),a("ul",{staticClass:"draggableList"},t._l(t.MenuList,(function(e){return a("li",{key:e.arrid},[e.isShowTitle?a("span",{staticClass:"draggableTitle"},[t._v(t._s(e.ftname)+":")]):t._e(),a("draggable",{staticClass:"list-group1",attrs:{id:"1","data-source":"juju1",list:e.arrList,draggable:".item",group:"a",move:t.move},on:{change:t.changeLog,start:t.start,end:t.end}},t._l(e.arrList,(function(e){return a("div",{key:e.id,staticClass:"list-group-item1 item",staticStyle:{width:"80px",float:"left",margin:"5px 5px",height:"35px","border-radius":"7px"},style:{background:e.background}},[a("el-tooltip",{staticClass:"list-group-item1 item",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"draggableName"},[t._v(t._s(e.barname))])]),a("div",{staticClass:"draggableWeight"},[t._v(t._s(e.weight))])],1)})),0)],1)})),0)]),a("div",{ref:"listRight",staticClass:"list-r"},[t.isLeftButton?a("div",{staticClass:"rightButton",on:{click:t.handleLeftButton}},[a("i",{staticClass:"el-icon-arrow-left left"}),a("span",[t._v("栏舍统计")])]):t._e(),t.isRightButton?a("div",{staticClass:"rightButton",on:{click:t.handleRightButton}},[a("i",{staticClass:"el-icon-arrow-right right"}),a("div",{staticClass:"smallTable"},[a("el-table",{attrs:{"list-loading":t.smallMenu.listLoading,"element-loading-text":"给我一点时间",data:t.smallMenu.list,"row-style":t.rowStyle2,"cell-style":t.cellStyle2,"header-row-style":t.headerRowStyle2,"header-cell-style":t.headerCellStyle2,height:150,"show-summary":"","sum-text":"总栏舍"}},[a("el-table-column",{attrs:{label:"配方/班次","min-width":"80px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"总数","min-width":"50px",align:"center",prop:"usedsum"}}),t.maxTime.isTime1?a("el-table-column",{attrs:{label:"第一班未分配","min-width":"105px",align:"center",prop:"onetime"}}):t._e(),t.maxTime.isTime2?a("el-table-column",{attrs:{label:"第二班未分配","min-width":"105px",align:"center",prop:"twotime"}}):t._e(),t.maxTime.isTime3?a("el-table-column",{attrs:{label:"第三班未分配","min-width":"105px",align:"center",prop:"threetime"}}):t._e(),t.maxTime.isTime4?a("el-table-column",{attrs:{label:"第四班未分配","min-width":"105px",align:"center",prop:"fourtime"}}):t._e()],1)],1)]):t._e()]),a("div",{staticClass:"operation",staticStyle:{width:"100%","border-top":"2px solid #d8dce5","box-shadow":"0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04)"}},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCreate}},[t._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:t.handleReduceTrains}},[t._v("减少车次")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleAutomaticGeneration}},[t._v("自动生成")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleHistoryRecord}},[t._v("历史记录")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,ref:"table",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:t.table.list,border:"","highlight-current-row":"",height:t.height,"row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id"},on:{"selection-change":t.handleSelect}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"车次",width:"85px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.sort))]):t._e(),e.row.Edit?a("el-input",{staticClass:"filter-item",staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"number",placeholder:"车次"},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort",a)},expression:"scope.row.sort"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tmrname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{placeholder:"TMR编号"},on:{change:function(a){t.changeTMRNumber(a,e.row)}},model:{value:e.row.tmrid,callback:function(a){t.$set(e.row,"tmrid",a)},expression:"scope.row.tmrid"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.eqcode,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.display))]):t._e(),e.row.Edit?a("el-input",{staticClass:"filter-item",staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"描述",maxlength:"255"},model:{value:e.row.display,callback:function(a){t.$set(e.row,"display",a)},expression:"scope.row.display"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"生效",width:"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleTakeEffectChange(e.$index,e.row)}},model:{value:e.row.sel,callback:function(a){t.$set(e.row,"sel",a)},expression:"scope.row.sel"}})]}}])}),a("el-table-column",{attrs:{label:"班次",width:"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.timesstr))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{disabled:e.row.Disabled,placeholder:"班次"},model:{value:e.row.times,callback:function(a){t.$set(e.row,"times",a)},expression:"scope.row.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"时间",width:"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.begintime))]):t._e(),e.row.Edit?a("el-time-picker",{staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"datetime",placeholder:"选择时间",format:"HH:mm","value-format":"HH:mm"},model:{value:e.row.begintime,callback:function(a){t.$set(e.row,"begintime",a)},expression:"scope.row.begintime"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"最大重量",width:"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"合计重量",width:"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sumweight))])]}}])}),a("el-table-column",{attrs:{label:"模板配方",width:"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{disabled:e.row.Disabled,placeholder:"模板配方"},on:{change:function(a){t.changeTemplateFormulation(a,e.row)}},model:{value:e.row.ftid,callback:function(a){t.$set(e.row,"ftid",a)},expression:"scope.row.ftid"}},t._l(t.templateFormulationList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"发料",width:"950px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("draggable",{staticClass:"list-group2",attrs:{id:"2","data-source":"juju",list:e.row.arrList,draggable:".item",group:"a",move:t.move2},on:{change:function(a){return t.changeLog2(e.row)},start:t.start2,end:function(a){return t.end2(e.row)}}},t._l(e.row.arrList,(function(i){return a("div",{key:i.name,staticClass:"list-group-item2 item",staticStyle:{width:"100px",float:"left","border-radius":"5px",margin:"5px 5px",padding:"0",height:"60px"},style:{background:i.background}},[a("span",{staticStyle:{display:"block",height:"20px","line-height":"20px","border-radius":"5px",position:"relative",color:"#fff"},style:{background:i.background}},[t._v(" "+t._s(i.barname)+" "),a("i",{staticClass:"el-icon-close",staticStyle:{position:"absolute",right:"0"},on:{click:function(a){return t.handleFLDelete(i,e.row)}}})]),a("div",{staticStyle:{"margin-top":"7px"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(i.tmrname))]),a("el-select",{staticClass:"filter-item2",staticStyle:{display:"inline-block",width:"55px"},attrs:{placeholder:"发料设备"},on:{change:function(a){t.changeEquipment(a,e.row,i.fttype,i.id)}},model:{value:i.tmrid,callback:function(e){t.$set(i,"tmrid",e)},expression:"element.tmrid"}},t._l(t.equipmentList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1),a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(i.weight))]),a("el-input",{staticClass:"filter-item2",staticStyle:{display:"inline-block",width:"40px"},attrs:{type:"number",placeholder:"重量"},on:{blur:function(a){t.blurWeight(e.row,i.fttype,i.id)}},model:{value:i.weight,callback:function(e){t.$set(i,"weight",e)},expression:"element.weight"}})],1)],1)])})),0)]}}])}),a("el-table-column",{attrs:{align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.automaticGeneration.dialogStatus],"destroy-on-close":!0,visible:t.automaticGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(e){return t.$set(t.automaticGeneration,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-automaticGeneration",staticStyle:{margin:"0 auto"}},[a("div",{staticStyle:{width:"210px",margin:"60px auto 100px"}},[t._v(" 请选择自动生成方式"),a("br"),t._v(" 1、清空计划生产新计划"),a("br"),t._v(" 2、当前计划基础上继续生成计划"),a("br")]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.automaticGeneration.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.continueData()}}},[t._v("继续生成")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.emptyPlanData()}}},[t._v("清空计划")])],1)])])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("310e"),n=a.n(l),o=a("aa47"),c=a("a78e"),d=a.n(c),m=a("5c96"),p={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{draggable:n.a},data:function(){return{requestParams:{name:"getTMRListEnable",offset:0,parammaps:{pastureid:d.a.get("pastureid"),eqtype:"1"}},requestParams2:{name:"getTMRListEnable",offset:0,parammaps:{pastureid:d.a.get("pastureid"),eqtype:"2"}},requestParams3:{name:"getFTSWList",offset:0,parammaps:{pastureid:d.a.get("pastureid")}},equipmentList:[],TMRNumberList:[],frequencyList:[],templateFormulationList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inforname:"times"}},isTime1:!1,isTime2:!1,isTime3:!1,isTime4:!1},table:{getdataListParm:{name:"getLppList",name1:"getLppdList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},list:[],total:0,tableKey:0,listLoading:!1,tabClickIndex:null,tabClickLabel:"",temp:{},move1:"",changeList:[],startObj:{},isGoing:!1},selectList:[],menuRadio:"一班",MenuList:[],getdataListParmTimes:{name:"geFTListByFP",name1:"geFTListByFPDetail",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),times:"1"}},listLoadingTimes:!1,isLeftButton:!0,isRightButton:!1,rowStyle2:{maxHeight:"20px",height:"20px"},cellStyle2:{padding:"0px"},headerRowStyle2:{maxHeight:"20px",height:"20px"},headerCellStyle2:{padding:"0px"},smallMenu:{getdataListParm:{name:"getLppUseSUMList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[]},automaticGeneration:{dialogFormVisible:!1,dialogStatus:""},textMap:{automaticGeneration:"提示"},isokDisable:!1,requestParam:{},height:document.body.clientHeight-255-50,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getIsDisplay(),this.getDownList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.TMRNumberList=e.data.list})),Object(r["d"])(this.requestParams2).then((function(e){t.equipmentList=e.data.list})),Object(r["d"])(this.requestParams3).then((function(e){t.templateFormulationList=e.data.list}))},getIsDisplay:function(){var t=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(e){console.log(e.data.list[0].inforvalue),1==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"}]:2==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==e.data.list[0].inforvalue&&(t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}]),null!==e.data.list?1==e.data.list[0].inforvalue?(t.maxTime.isTime1=!0,t.maxTime.isTime2=!1,t.maxTime.isTime3=!1,t.maxTime.isTime4=!1):2==e.data.list[0].inforvalue?(t.maxTime.isTime1=!0,t.maxTime.isTime2=!0,t.maxTime.isTime3=!1,t.maxTime.isTime4=!1):3==e.data.list[0].inforvalue?(t.maxTime.isTime1=!0,t.maxTime.isTime2=!0,t.maxTime.isTime3=!0,t.maxTime.isTime4=!1):4==e.data.list[0].inforvalue&&(t.maxTime.isTime1=!0,t.maxTime.isTime2=!0,t.maxTime.isTime3=!0,t.maxTime.isTime4=!0):(t.maxTime.isTime1=!1,t.maxTime.isTime2=!1,t.maxTime.isTime3=!1,t.maxTime.isTime4=!1)})),this.getList(),this.getSmallMenuList(),this.getTimesList()},getTimesList:function(){var t=this;this.listLoadingTimes=!0,Object(r["c"])(this.getdataListParmTimes).then((function(e){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"isShowTitle",!0),null==e.data.list[a].arrList&&t.$set(e.data.list[a],"isShowTitle",!1);t.MenuList=e.data.list}))},changeMenu:function(t){console.log(t),"一班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="1",this.getTimesList()):"二班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="2",this.getTimesList(),this.MenuList=this.twoMenuList):"三班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="3",this.getTimesList()):"四班"===this.menuRadio&&(this.getdataListParmTimes.parammaps.times="4",this.getTimesList())},getSmallMenuList:function(){var t=this;this.smallMenu.listLoading=!0,Object(r["d"])(this.smallMenu.getdataListParm).then((function(e){if(console.log("smallMenu数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0==e.data.list[a].onetime?t.$set(e.data.list[a],"onetime",0):e.data.list[a].onetime=parseFloat(e.data.list[a].onetime),void 0==e.data.list[a].twotime?t.$set(e.data.list[a],"twotime",0):e.data.list[a].twotime=parseFloat(e.data.list[a].twotime),void 0==e.data.list[a].threetime?t.$set(e.data.list[a],"threetime",0):e.data.list[a].threetime=parseFloat(e.data.list[a].threetime),void 0==e.data.list[a].fourtime?t.$set(e.data.list[a],"fourtime",0):e.data.list[a].fourtime=parseFloat(e.data.list[a].fourtime),t.$set(e.data.list[a],"usedsum",e.data.list[a].onetime+e.data.list[a].twotime+e.data.list[a].threetime+e.data.list[a].fourtime),t.$set(e.data.list[a],"all","");t.smallMenu.list=e.data.list,t.smallMenu.total=e.data.total}else t.smallMenu.list=[];setTimeout((function(){t.smallMenu.listLoading=!1}),100)}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1),t.$set(e.data.list[a],"Disabled",!0),null==e.data.list[a].arrList&&(t.$set(e.data.list[a],"Disabled",!1),t.$set(e.data.list[a],"arrList",[]));t.table.list=e.data.list,t.rowDrop(),t.table.changeList=[],t.table.startObj={},e.data.total&&(t.table.total=e.data.total)}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var t=document.querySelector("#table .el-table__body-wrapper tbody"),e=this,a=o["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1==e.dropState&&a.destroy()},onEnd:function(t){var a=t.newIndex,i=t.oldIndex,s=e.table.list.splice(i,1)[0];e.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",e.table.list[a-1]),console.log("下",e.table.list[a+1])}})},changeTMRNumber:function(t,e){e.tmrname=this.TMRNumberList.find((function(e){return e.id===t})).eqcode,e.maxweight=this.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed},changeTemplateFormulation:function(t,e){e.ftname=this.templateFormulationList.find((function(e){return e.id===t})).tname},handleCreate:function(){for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,tmrname:"",tmrid:"",sort:parseInt(this.table.list[this.table.list.length-1].sort)+1,sel:1,times:"",display:"",begintime:"",ftname:"",ftid:"",sumweight:"",sumcowcount:"",maxweight:"",arrList:[]}),this.$refs.table.bodyWrapper.scrollTop=0,this.dropState=!0},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=d.a.get("pastureid"),this.table.temp.tmrname=t.tmrname,this.table.temp.tmrid=t.tmrid,this.table.temp.sort=t.sort,this.table.temp.sel=t.sel,this.table.temp.times=t.times,this.table.temp.display=t.display,this.table.temp.begintime=t.begintime,this.table.temp.ftname=t.ftname,this.table.temp.ftid=t.ftid,this.table.temp.sumweight=0,this.table.temp.maxweight=t.maxweight,""==this.table.temp.sort&&""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"车次/TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.myId!==this.table.list[a].myId)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==this.table.temp.sort&&!i.test(parseFloat(this.table.temp.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.name="insertLpp",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消"),this.dropState=!1;for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){console.log(t,"点击了行编辑");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.times=String(t.times),void 0==t.sort&&(t.sort=""),void 0!=t.tmrid&&void 0!=t.tmrname||(t.tmrid="",t.tmrname=""),void 0==t.display&&(t.display=""),void 0==t.times&&(t.times=""),void 0==t.begintime&&(t.begintime=""),void 0!=t.ftid&&void 0!=t.ftname||(t.ftid="",t.ftname=""),this.dropState=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=t.pastureid,this.table.temp.id=t.id,this.table.temp.tmrname=t.tmrname,this.table.temp.tmrid=t.tmrid,this.table.temp.sort=t.sort,this.table.temp.sel=t.sel,this.table.temp.times=t.times,this.table.temp.display=t.display,this.table.temp.begintime=t.begintime,this.table.temp.ftname=t.ftname,this.table.temp.ftid=t.ftid,this.table.temp.sumweight=t.sumweight,this.table.temp.sumcowcount=t.sumcowcount,this.table.temp.maxweight=t.maxweight,""==this.table.temp.sort&&""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"车次/TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"模板配方不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==this.table.temp.sort&&!i.test(parseFloat(this.table.temp.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.name="updateLpp",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.dropState=!1},handleAutomaticGeneration:function(){this.automaticGeneration.dialogStatus="automaticGeneration",this.automaticGeneration.dialogFormVisible=!0},continueData:function(){console.log("点击继续生成")},emptyPlanData:function(){console.log("点击清空计划")},handleCheck:function(){console.log("点击检验")},handleHistoryRecord:function(){console.log("点击历史记录")},changeLog:function(t){console.log("change1",t)},start:function(t){console.log("start1",t),this.$set(this.table.startObj,"from",t.from.className),this.$set(this.table.startObj,"to",t.from.className)},end:function(t){console.log("end1",t)},move:function(t,e){if("list-group-item1 item"===e.target.className||"draggableWeight"===e.target.className)return!1;console.log(t),this.table.move1=t.draggedContext.element},start2:function(t){console.log("start2",t),this.$set(this.table.startObj,"from",t.from.className),this.$set(this.table.startObj,"to",t.from.className)},move2:function(t,e){if("list-group-item1 item"===e.target.className||"draggableWeight"===e.target.className)return!1;this.table.move1=t.draggedContext.element},end2:function(t){console.log("end2",t)},changeLog2:function(t){var e=this;if(console.log(t,"evt-----"),this.table.changeList.push(t),t=this.table.changeList[0],1==t.arrList.length)t.arrList[0].sort=0;else if(t.arrList.length>1)for(var a=0;a<t.arrList.length;a++)t.arrList[a].id==this.table.move1.id&&t.arrList[a].fttype==this.table.move1.fttype&&(void 0==t.arrList[a-1]?(t.arrList[a].sort=0,t.sort=0):(t.arrList[a].sort=parseFloat(t.arrList[a-1].sort)+1,t.sort=parseFloat(t.arrList[a-1].sort)+1));console.log(t.arrList),"list-group1"==this.table.startObj.from&&"list-group1"==this.table.startObj.to?(this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"v",parammaps:{pastureid:this.table.move1.pastureid,barid:this.table.move1.barid,lppid:t.id,times:t.times,ftid:this.table.move1.ftid,ptsid:this.table.move1.ptsid,ptid:this.table.move1.ptid,fttype:this.table.move1.fttype,timesTem:this.table.move1.times}},this.requestParam.data[1]={name:"updateLpplandtlSorts",type:"e",parammaps:{pastureid:t.pastureid,sort:t.sort,lppid:t.id}},this.requestParam.data[2]={name:"insertLppd",type:"e",parammaps:{pastureid:t.pastureid,lppid:t.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:this.table.move1.background,ccountradio:this.table.move1.ccountradio,cowcount:this.table.move1.cowcount}},this.requestParam.data[3]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:this.table.move1.pastureid,id:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight}},console.log("发料位上-下新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(t){console.log("发料位新增保存发送参数",e.requestParam),"fail"===t.msg?(e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getTimesList(),e.getSmallMenuList(),e.getList()):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.getSmallMenuList())}))):"list-group2"==this.table.startObj.from&&"list-group2"==this.table.startObj.to&&(1==this.table.changeList.length?(this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"v",parammaps:{pastureid:this.table.move1.pastureid,barid:this.table.move1.barid,lppid:t.id,times:t.times,ftid:this.table.move1.ftid,ptsid:this.table.move1.ptsid,ptid:this.table.move1.ptid,fttype:this.table.move1.fttype,timesTem:t.times}},this.requestParam.data[1]={name:"updateLpplandtlSorts",type:"e",parammaps:{pastureid:t.pastureid,sort:t.sort,lppid:t.id}},this.requestParam.data[2]={name:"deleteLppd",type:"e",parammaps:{pastureid:t.pastureid,id:this.table.move1.id}},this.requestParam.data[3]={name:"insertLppd",type:"e",parammaps:{pastureid:t.pastureid,lppid:t.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.fpdid,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:this.table.move1.background,ccountradio:this.table.move1.ccountradio,cowcount:this.table.move1.cowcount}},console.log("发料位下-下新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(t){console.log("发料位新增保存发送参数",e.requestParam),"fail"===t.msg?(e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getTimesList(),e.getSmallMenuList(),e.getList()):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.getSmallMenuList())}))):1==this.table.changeList.length&&(1==this.table.isGoing?(console.log(11111),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"e",parammaps:{pastureid:t.pastureid,sort:t.sort,lppid:t.id}},this.requestParam.data[1]={name:"deleteLppd",type:"e",parammaps:{pastureid:t.pastureid,id:this.table.move1.id}},this.requestParam.data[2]={name:"insertLppd",type:"e",parammaps:{pastureid:t.pastureid,lppid:t.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:this.table.move1.background}},this.requestParam.data[3]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:this.table.move1.pastureid,id:this.table.move1.id,fttype:this.table.move1.fttype,statue:1}},console.log("发料位新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(t){console.log("发料位新增保存发送参数",e.requestParam),"fail"===t.msg?(e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getTimesList(),e.getList()):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.getList())})),this.table.isGoing=!1):this.table.isGoing=!0))},changeEquipment:function(t,e,a,i){for(var s=this,l={},n=0;n<e.arrList.length;n++)e.arrList[n].tmrname=this.equipmentList.find((function(e){return e.id===t})).tname,e.arrList[n].fttype==a&&e.arrList[n].id==i&&(l=e.arrList[n]);this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateLppd",type:"e",parammaps:{pastureid:e.pastureid,lppid:e.id,barid:l.barid,barname:l.barname,fpdid:l.fpdid,fttype:l.fttype,lweight:l.weight,sort:l.sort,tmrid:l.tmrid,tmrname:l.tmrname,background:l.background,id:l.id}},Object(r["b"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",s.requestParam),"fail"===t.msg?s.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(s.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),s.getList(),s.getTimesList())}))},blurWeight:function(t,e,a){for(var i=this,s={},l=0;l<t.arrList.length;l++)t.arrList[l].fttype==e&&t.arrList[l].id==a&&(s=t.arrList[l]);""==s.weight&&(s.weight=0),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkFPdLeftW",type:"v",parammaps:{pastureid:s.pastureid,fpdid:s.fpdid,fttype:s.fttype,lweight:String(parseFloat(s.weight)-parseFloat(s.lweight))}},this.requestParam.data[1]={name:"updateLppd",type:"e",parammaps:{pastureid:t.pastureid,lppid:t.id,barid:s.barid,barname:s.barname,fpdid:s.fpdid,fttype:s.fttype,lweight:s.weight,sort:s.sort,tmrid:s.tmrid,tmrname:s.tmrname,background:s.background,id:s.id}},this.requestParam.data[2]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:s.pastureid,id:s.fpdid,fttype:s.fttype,lweight:String(parseFloat(s.weight)-parseFloat(s.lweight))}},Object(r["b"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",i.requestParam),"fail"===t.msg?(i.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),i.getList(),i.getTimesList()):(i.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),i.getList(),i.getTimesList())}))},handleTakeEffectChange:function(){console.log("点击了生效")},handleFLDelete:function(t,e){var a=this;console.log(t,e,"点击了发料删除"),this.selectList=[],this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLppd",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},this.requestParam.data[1]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:"-"+parseFloat(t.weight)}},Object(r["b"])(this.requestParam).then((function(t){console.log("删除保存发送参数",a.requestParam),"fail"===t.msg?a.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(a.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),a.getList(),a.getTimesList())}))},handleSelect:function(t){console.log("勾选数据",t),this.selectList=t},handleReduceTrains:function(){var t=this;if(0==this.selectList.length)return this.$message({type:"error",message:"请选择车次",duration:2e3}),!1;for(var e=0;e<this.selectList.length;e++)if(this.selectList[e].arrList.length>0)return this.$message({type:"error",message:"本车次已添加栏舍不可删除",duration:2e3}),!1;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteLpp",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleRowDelete:function(t){var e=this;if(console.log(t,"点击了行删除"),0!=t.arrList.length)return this.$message({type:"error",message:"本车次已添加栏舍不可删除",duration:2e3}),!1;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deleteLpp",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleLeftButton:function(){this.isLeftButton=!1,this.isRightButton=!0,this.$refs.listRight.style.zIndex=4,this.getSmallMenuList()},handleRightButton:function(){this.isLeftButton=!0,this.isRightButton=!1,this.$refs.listRight.style.zIndex=1}}},u=p,h=(a("14f9"),a("f4b6"),a("a4b5"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"026f861f",null);e["default"]=f.exports},"18f0":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="M116.426 2.821l8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol>'});l.a.add(n);e["default"]=n},"19d0":function(t,e,a){"use strict";var i=a("459a"),s=a.n(i);s.a},"19fe":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-体况评分",use:"icon-体况评分-usage",viewBox:"0 0 1145 1024",content:'<symbol class="icon" viewBox="0 0 1145 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-体况评分"><defs><style type="text/css"></style></defs><path d="M1027.245511 0a120.263111 120.263111 0 0 0-115.598222 118.670222 123.676444 123.676444 0 0 0 25.6 72.988445l-188.416 380.017777a137.955556 137.955556 0 0 0-54.158222 12.515556l-182.784-147.342222a81.123556 81.123556 0 0 0 4.437333-32.426667 115.598222 115.598222 0 1 0-231.196444 0 146.318222 146.318222 0 0 0 12.117333 55.751111l-143.587556 187.733334a73.955556 73.955556 0 0 0-31.402666-4.551112 118.670222 118.670222 0 1 0 115.598222 118.328889 143.473778 143.473778 0 0 0-12.060445-55.182222l143.587556-187.733333a73.955556 73.955556 0 0 0 31.402667 4.551111 138.183111 138.183111 0 0 0 54.215111-12.515556l182.044444 146.773334a98.304 98.304 0 0 0-3.527111 32.995555 115.598222 115.598222 0 1 0 231.139556 0 125.952 125.952 0 0 0-32.426667-80.782222l188.131556-372.622222h7.168A118.613333 118.613333 0 0 0 1027.245511 0z m-254.805333 690.574222a23.665778 23.665778 0 1 1-23.665778-24.462222 21.902222 21.902222 0 0 1 23.665778 24.519111z m278.755555-571.904a23.665778 23.665778 0 1 1-23.665777-24.291555 22.016 22.016 0 0 1 23.381333 24.348444z m-905.102222 642.844445a23.665778 23.665778 0 1 1-23.665778-23.893334 22.072889 22.072889 0 0 1 23.381334 24.120889z m278.755556-357.262223a23.665778 23.665778 0 1 1-47.331556 0 23.665778 23.665778 0 1 1 46.762667 0.227556z m-302.136889 190.008889a44.544 44.544 0 0 0 45.966222-47.217777v-381.155556h649.728a47.160889 47.160889 0 0 0 0-94.321778H156.959289a78.336 78.336 0 0 0-80.782222 82.887111v392.533334a44.544 44.544 0 0 0 45.966222 47.502222z m905.102222-237.226666a44.544 44.544 0 0 0-45.966222 47.217777v524.515556H191.775289a47.217778 47.217778 0 0 0 0 94.435556h800.654222a78.392889 78.392889 0 0 0 80.782222-83.057778v-535.893334a44.544 44.544 0 0 0-45.966222-46.990222z" fill="#ffffff" p-id="30331" /></symbol>'});l.a.add(n);e["default"]=n},"1a53":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增盘点单")]),a("el-button",{staticClass:"success",on:{click:t.handleInventoryList}},[t._v("下载盘点单")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"盘点日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.inventorydate))])]}}])}),a("el-table-column",{attrs:{label:"盘点人","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createuser))])]}}])}),a("el-table-column",{attrs:{label:"盘盈库存(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.moreWeight))])]}}])}),a("el-table-column",{attrs:{label:"盘亏库存(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lessWeight))])]}}])}),a("el-table-column",{attrs:{label:"盈亏净值(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.differWeight))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(a){return t.handleSee(e.row)}}},[t._v("查看")]),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1?a("el-button",{staticClass:"miniDanger",on:{click:function(a){return t.handleRowDelete(e.row)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:t.create.rules,model:t.create.createTemp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点日期:",prop:"inventorydate"}},[a("el-date-picker",{staticClass:"filter-item",attrs:{type:"date",placeholder:"盘点日期",disabled:"see"===t.create.dialogStatus,"picker-options":t.create.pickerOptions1,clearable:!1},model:{value:t.create.createTemp.inventorydate,callback:function(e){t.$set(t.create.createTemp,"inventorydate",e)},expression:"create.createTemp.inventorydate"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"盘点人:",prop:"createuser"}},[a("el-input",{ref:"createuser",staticClass:"filter-item",attrs:{placeholder:"盘点人",type:"text",disabled:""},model:{value:t.create.createTemp.createuser,callback:function(e){t.$set(t.create.createTemp,"createuser",e)},expression:"create.createTemp.createuser"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",attrs:{placeholder:"备注",type:"text",disabled:"see"===t.create.dialogStatus},model:{value:t.create.createTemp.remark,callback:function(e){t.$set(t.create.createTemp,"remark",e)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoading,expression:"create.listLoading"}],key:t.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:t.create.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"实际重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["create"===t.create.dialogStatus?a("el-input",{ref:"input",staticStyle:{width:"80%",padding:"10px 0"},on:{blur:function(a){return t.blurFactweight(e.row)}},model:{value:e.row.factweight,callback:function(a){t.$set(e.row,"factweight",a)},expression:"scope.row.factweight"}}):a("span",[t._v(" "+t._s(e.row.factweight))])]}}])}),a("el-table-column",{attrs:{label:"差值(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.differ))])]}}])})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),m={name:"InventoryList",components:{Pagination:l["a"]},data:function(){return{table:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增",see:"查看盘点单"},create:{pickerOptions1:{disabledDate:function(t){return t.getTime()>Date.now()}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["e"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")},rules:{},getdataListParm:{name:"getFeedstorageWeightList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),emp:d.a.get("employename")}},tableKey:0,list:[],total:0,listLoading:!0},see:{getdataListParm:{name:"getInventoryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["e"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")}},handleCreate:function(){console.log("点击了新增盘点单"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getCreateList()},getCreateList:function(){var t=this;this.create.listLoading=!0,Object(r["d"])(this.create.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"factweight",""),t.$set(e.data.list[a],"differ","");t.create.list=e.data.list,t.create.pageNum=e.data.pageNum,t.create.pageSize=e.data.pageSize,t.create.total=e.data.total}else t.create.list=[];setTimeout((function(){t.create.listLoading=!1}),100)}))},blurFactweight:function(t){t.differ=parseFloat(t.factweight)-parseFloat(t.stockweight)},createData:function(){var t=this;this.$refs["createTemp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var a=[],i=0;i<t.create.list.length;i++)""!==t.create.list[i].factweight&&a.push(t.create.list[i]);t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertBigInventory",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,inventorydate:Object(n["e"])(t.create.createTemp.inventorydate,"{y}-{m}-{d}"),createuser:t.create.createTemp.createuser,remark:t.create.createTemp.remark}},t.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:a}},t.requestParam.data[1].children=[],t.requestParam.data[1].children[0]={name:"insertInventory",type:"e",parammaps:{invid:"@insertBigInventory.LastInsertId",pastureid:"@insertSpotList.pastureid",feedname:"@insertSpotList.feedname",feedid:"@insertSpotList.feedid",stockweight:"@insertSpotList.stockweight",factweight:"@insertSpotList.factweight"}},Object(r["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(r["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}))},handleInventoryList:function(){console.log("点击了下载盘点单")},handleSee:function(t){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.see.getdataListParm.parammaps.pastureid=t.pastureid,this.see.getdataListParm.parammaps.id=t.id,this.getSeeList()},getSeeList:function(){var t=this;this.create.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.create.list=e.data.list,t.create.pageNum=e.data.pageNum,t.create.pageSize=e.data.pageSize,t.create.total=e.data.total):t.create.list=[],setTimeout((function(){t.create.listLoading=!1}),100)}))},handleRowDelete:function(t){var e=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteBigInventory",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}},p=m,u=(a("a910"),a("60b1"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"29b793e3",null);e["default"]=h.exports},"1b21":function(t,e,a){"use strict";var i=a("3cac"),s=a.n(i);s.a},"1c1e":function(t,e,a){"use strict";a("d3b7");var i=a("bc3a"),s=a.n(i),r=a("5c96"),l=(a("a78e"),a("4360"),s.a.create({baseURL:"http://139.196.88.215:8083/"}));l.interceptors.request.use((function(t){return t.withCredentials=!0,t}),(function(t){console.log(t),Promise.reject(t)})),l.interceptors.response.use((function(t){var e=t.data;return 2e4!==e.code?(Object(r["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject("request error")):t.data}),(function(t){return"cancel"!==t.message&&(console.log("err:"+t),Object(r["Message"])({message:t.message,type:"error",duration:5e3})),Promise.reject(t)})),e["a"]=l},"1e09":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"汇总统计",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.tab.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("配方名称")]),a("el-radio",{attrs:{label:"2"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("牲畜类别")]),a("el-radio",{attrs:{label:"4"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("车次")]),t.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方名称"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜名称"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"车次"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"班次"},model:{value:t.tab.table.getdataListParm.parammaps.source2,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source2",e)},expression:"tab.table.getdataListParm.parammaps.source2"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"TMR名称"},model:{value:t.tab.table.getdataListParm.parammaps.source3,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source3",e)},expression:"tab.table.getdataListParm.parammaps.source3"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",on:{click:t.handleDownload}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("h4",[t._v("混料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.table.listLoading,expression:"tab.table.listLoading"}],key:t.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center",prop:"A13"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"A14"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"驾驶员","min-width":"110px",align:"center",prop:"A15"}}):t._e(),a("el-table-column",{attrs:{label:"理论重量","min-width":"110px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center",prop:"A3"}}),a("el-table-column",{attrs:{label:"计划混料操作数","min-width":"110px",align:"center",prop:"A4"}}),a("el-table-column",{attrs:{label:"已混料操作数","min-width":"110px",align:"center",prop:"A5"}}),a("el-table-column",{attrs:{label:"混料操作率","min-width":"110px",align:"center",prop:"A6"}}),a("el-table-column",{attrs:{label:"混料误差值","min-width":"110px",align:"center",prop:"A7"}}),a("el-table-column",{attrs:{label:"混料误差率","min-width":"110px",align:"center",prop:"A8"}}),a("el-table-column",{attrs:{label:"混料自动跳转次数","min-width":"110px",align:"center",prop:"A9"}}),a("el-table-column",{attrs:{label:"混料手动跳转次数","min-width":"110px",align:"center",prop:"A10"}}),a("el-table-column",{attrs:{label:"去除取消重量","min-width":"110px",align:"center",prop:"A11"}}),a("el-table-column",{attrs:{label:"方差","min-width":"110px",align:"center",prop:"A12"}})],1),a("h4",[t._v("撒料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.table2.listLoading,expression:"tab.table2.listLoading"}],key:t.tab.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center",prop:"A11"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"A12"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{attrs:{label:"驾驶员","min-width":"110px",align:"center",prop:"A13"}}):t._e(),a("el-table-column",{attrs:{label:"理论重量","min-width":"110px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center",prop:"A3"}}),a("el-table-column",{attrs:{label:"计划撒料操作数","min-width":"110px",align:"center",prop:"A4"}}),a("el-table-column",{attrs:{label:"已撒料操作数","min-width":"110px",align:"center",prop:"A5"}}),a("el-table-column",{attrs:{label:"撒料操作率","min-width":"110px",align:"center",prop:"A6"}}),a("el-table-column",{attrs:{label:"撒料误差值","min-width":"110px",align:"center",prop:"A7"}}),a("el-table-column",{attrs:{label:"撒料误差率","min-width":"110px",align:"center",prop:"A8"}}),a("el-table-column",{attrs:{label:"撒料自动跳转次数","min-width":"110px",align:"center",prop:"A9"}}),a("el-table-column",{attrs:{label:"撒料手动跳转次数","min-width":"110px",align:"center",prop:"A10"}})],1)],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("计划统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart2.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart2.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine2"}}),t.tab.chart2.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart2")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart2.table.listLoading,expression:"tab.chart2.table.listLoading"}],key:t.tab.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划执行重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划准确率","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划正确数","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划数","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划正确率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("配方准确率")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart1.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"enable",e)},expression:"tab.chart1.getdataListParm.parammaps.enable"}},t._l(t.tab.chart1.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange filter-item","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart1.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart1.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine1"}}),t.tab.chart1.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart1")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart1.table.listLoading,expression:"tab.chart1.table.listLoading"}],key:t.tab.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"实际重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("牛群准确率")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart3.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"enable",e)},expression:"tab.chart3.getdataListParm.parammaps.enable"}},t._l(t.tab.chart3.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange filter-item","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart3.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart3.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine3"}}),t.tab.chart3.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart3")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart3.table.listLoading,expression:"tab.chart3.table.listLoading"}],key:t.tab.chart3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart3.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"实际重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("车辆准确率(重量)")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart4.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"enable",e)},expression:"tab.chart4.getdataListParm.parammaps.enable"}},t._l(t.tab.chart4.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart4.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart4.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine4"}}),t.tab.chart4.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart4")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart4.table.listLoading,expression:"tab.chart4.table.listLoading"}],key:t.tab.chart4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart4.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"计划重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"实际重量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("混料统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart5.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart5.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine5"}}),t.tab.chart5.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart5")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart5.table.listLoading,expression:"tab.chart5.table.listLoading"}],key:t.tab.chart5.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart5.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"自动跳转次数","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"手动跳转次数","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"自动跳转理论重量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"自动跳转实际重量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"自动跳转准确率","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"手动跳转理论重量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"手动跳转实际重量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"手动跳转准确率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("混料计划取消次数")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart6.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart6.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart6")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine6"}}),t.tab.chart6.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart6")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart6.table.listLoading,expression:"tab.chart6.table.listLoading"}],key:t.tab.chart6.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart6.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"混料计划取消次数","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:24}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("栏舍撒料时间统计")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart7.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"enable",e)},expression:"tab.chart7.getdataListParm.parammaps.enable"}},t._l(t.tab.chart7.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart7.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart7.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart7")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine7"}}),t.tab.chart7.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart7")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart7.table.listLoading,expression:"tab.chart7.table.listLoading"}],key:t.tab.chart7.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart7.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"栏舍01(撒料时间)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"栏舍02(撒料时间)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"栏舍03(撒料时间)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"栏舍04(撒料时间)","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1)],1)]),a("el-tab-pane",{attrs:{label:"混料统计",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab2.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"fname",e)},expression:"tab2.table.getdataListParm.parammaps.fname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"驾驶员",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.fname2,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"fname2",e)},expression:"tab2.table.getdataListParm.parammaps.fname2"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"150px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.fclassid,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"fclassid",e)},expression:"tab2.table.getdataListParm.parammaps.fclassid"}},t._l(t.tab2.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.fname3,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"fname3",e)},expression:"tab2.table.getdataListParm.parammaps.fname3"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}},t._l(t.tab2.jumpModeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleRefresh2}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleExport2}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:t.tab2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab2.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"饲料","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"理论重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"误差率","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"计划时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])}),a("el-table-column",{attrs:{label:"开始时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A12))])]}}])}),a("el-table-column",{attrs:{label:"结束时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A13))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A14))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A15))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A16))])]}}])})],1)],1)]),a("el-tab-pane",{attrs:{label:"撒料统计",name:"third"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab3.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"fname",e)},expression:"tab3.table.getdataListParm.parammaps.fname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"驾驶员",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.fname2,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"fname2",e)},expression:"tab3.table.getdataListParm.parammaps.fname2"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.fclassid,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"fclassid",e)},expression:"tab3.table.getdataListParm.parammaps.fclassid"}},t._l(t.tab3.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.fname3,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"fname3",e)},expression:"tab3.table.getdataListParm.parammaps.fname3"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.fname4,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"fname4",e)},expression:"tab3.table.getdataListParm.parammaps.fname4"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"source",e)},expression:"tab3.table.getdataListParm.parammaps.source"}},t._l(t.tab3.jumpModeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleSearch3}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleRefresh3}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleExport3}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:t.tab3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab3.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"理论重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"误差率","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"开始时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])}),a("el-table-column",{attrs:{label:"结束时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A12))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A13))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A14))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A15))])]}}])})],1)],1)])],1)],1)},s=[],r=(a("b0c0"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),m=a("333d");a("817d");var p={name:"ErrorAnalysis",components:{Pagination:m["a"]},data:function(){return{activeName:"first",tab:{radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,isTrainNumber:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:"",source:"",source2:"",source3:""}},tableKey:1,list:[{id:1,A1:"新产牛",A2:"3869.53",A3:"3843.00",A4:"9",A5:"9",A6:"100%",A7:"26.53",A8:"0.69%",A9:"9",A10:"0",A11:"0",A12:"1.6"},{id:2,A1:"高产牛",A2:"3371.02",A3:"3359.00",A4:"9",A5:"9",A6:"100%",A7:"12.02",A8:"0.36%",A9:"9",A10:"0",A11:"0",A12:"2.5"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3176.00",A4:"5",A5:"5",A6:"100%",A7:"6.9",A8:"0.22%",A9:"5",A10:"0",A11:"0",A12:"1.9"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3632.00",A4:"7",A5:"7",A6:"100%",A7:"8.8",A8:"0.24%",A9:"7",A10:"0",A11:"0",A12:"1.55"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2924.00",A4:"5",A5:"5",A6:"100%",A7:"5.3",A8:"0.18%",A9:"5",A10:"0",A11:"0",A12:"2.1"},{id:6,A1:"小育成",A2:"3426.38",A3:"3407.00",A4:"5",A5:"5",A6:"100%",A7:"19.38",A8:"0.57%",A9:"5",A10:"0",A11:"0",A12:"3.5"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3390.00",A4:"7",A5:"7",A6:"100%",A7:"6.05",A8:"0.18%",A9:"7",A10:"0",A11:"0",A12:"2.2"}],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:"",fname:"",fname2:"",fname3:"",source:"",fclassid:""}},tableKey:2,list:[{id:1,A1:"新产牛",A2:"3869.52",A3:"3836.00",A4:"5",A5:"5",A6:"100%",A7:"3.52",A8:"0.19%",A9:"5",A10:"0"},{id:2,A1:"高产牛",A2:"3371.03",A3:"3343.00",A4:"1",A5:"1",A6:"100%",A7:"28.03",A8:"0.85%",A9:"1",A10:"0"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3160.00",A4:"3",A5:"3",A6:"100%",A7:"22.90",A8:"0.81%",A9:"3",A10:"0"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3631.00",A4:"1",A5:"1",A6:"100%",A7:"9.80",A8:"0.31%",A9:"1",A10:"0"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2917.00",A4:"2",A5:"2",A6:"100%",A7:"1.70",A8:"0.09%",A9:"2",A10:"0"},{id:6,A1:"小育成",A2:"3426.38",A3:"3405.00",A4:"4",A5:"4",A6:"100%",A7:"11.38",A8:"0.42%",A9:"4",A10:"0"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3381.00",A4:"2",A5:"2",A6:"100%",A7:"15.05",A8:"0.41%",A9:"2",A10:"0"}],total:0,listLoading:!0,temp:{}},chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart6:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart7:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}}},tab2:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"2020-09-16",A2:"4",A3:"1",A4:"第一班",A5:"新产牛",A6:"进口燕麦草,1号苜蓿,棉籽,青贮苜蓿,湿储玉米,啤酒糟,水",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:37:00",A12:" 06:34:09",A13:" 06:48:28",A14:"自动跳转",A15:"0",A16:"3830"},{id:2,A1:"2020-09-16",A2:"1",A3:"2",A4:"第二班",A5:"高产牛",A6:"国产燕麦草,麦秸秆,青贮玉米,湿储玉米,水",A7:"3371.02",A8:"3359.00",A9:"10.02",A10:"0.57%",A11:" 06:34:25",A12:" 06:35:04",A13:" 06:46:57",A14:"自动跳转",A15:"3",A16:"3356"},{id:3,A1:"2020-09-16",A2:"4",A3:"3",A4:"第三班",A5:"干奶牛",A6:"国产燕麦草,麦秸秆,青贮玉米,干奶牛料,水",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:37:00",A12:" 06:37:09",A13:" 06:42:28",A14:"自动跳转",A15:"5",A16:"3260"},{id:4,A1:"2020-09-16",A2:"3",A3:"4",A4:"第一班",A5:"小公牛",A6:"剩料,花生秧,湿储玉米,青贮玉米,水",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:40:00",A12:" 06:41:09",A13:" 06:59:22",A14:"自动跳转",A15:"5",A16:"3255"},{id:5,A1:"2020-09-17",A2:"1",A3:"5",A4:"第二班",A5:"小育成",A6:"国产燕麦草,麦秸秆,青贮玉米,湿储玉米,后备料,水",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:31:00",A12:" 06:31:09",A13:" 06:35:65",A14:"自动跳转",A15:"2",A16:"3108"},{id:6,A1:"2020-09-17",A2:"4",A3:"6",A4:"第三班",A5:"高产牛",A6:"国产燕麦草,麦秸秆,青贮玉米,湿储玉米,水",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:34:00",A12:" 06:34:09",A13:" 06:45:38",A14:"自动跳转",A15:"0",A16:"2988"},{id:7,A1:"2020-09-17",A2:"4",A3:"7",A4:"第一班",A5:"新产牛",A6:"进口燕麦草,1号苜蓿,棉籽,青贮苜蓿,湿储玉米,啤酒糟,青贮玉米",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:45:00",A12:" 06:46:09",A13:" 06:58:28",A14:"自动跳转",A15:"4",A16:"3005"}],total:0,listLoading:!0,temp:{}},frequencyList:[{id:"0",name:"第一班"},{id:"1",name:"第二班"},{id:"2",name:"第三班"}],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}]},tab3:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:"",fname:"",fname2:"",fname3:"",fname4:"",source:"",fclassid:""}},tableKey:1,list:[{id:1,A1:"2020-09-16",A2:"4",A3:"1",A4:"第一班",A5:"新产牛",A6:"17号",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:" 06:34:09",A12:" 06:48:28",A13:"自动跳转",A14:"0",A15:"3830"},{id:2,A1:"2020-09-16",A2:"1",A3:"2",A4:"第二班",A5:"高产牛",A6:"5号南",A7:"3371.02",A8:"3359.00",A9:"10.02",A10:"0.57%",A11:" 06:34:25",A12:" 06:46:57",A13:"自动跳转",A14:"3",A15:"3356"},{id:3,A1:"2020-09-16",A2:"4",A3:"3",A4:"第三班",A5:"干奶牛",A6:"3南东",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:37:00",A12:" 06:42:28",A13:"自动跳转",A14:"5",A15:"3260"},{id:4,A1:"2020-09-16",A2:"3",A3:"4",A4:"第一班",A5:"小公牛",A6:"3南西",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:40:00",A12:" 06:59:22",A13:"自动跳转",A14:"5",A15:"3255"},{id:5,A1:"2020-09-17",A2:"1",A3:"5",A4:"第二班",A5:"小育成",A6:"1号南",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:31:00",A12:" 06:35:65",A13:"自动跳转",A14:"2",A15:"3108"},{id:6,A1:"2020-09-17",A2:"4",A3:"6",A4:"第三班",A5:"高产牛",A6:"3北西",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:34:00",A12:" 06:45:38",A13:"自动跳转",A14:"0",A16:"2988"},{id:7,A1:"2020-09-17",A2:"4",A3:"7",A4:"第一班",A5:"新产牛",A6:"2号北",A7:"3869.53",A8:"3843.00",A9:"0.4",A10:"0.27%",A11:"06:45:00",A12:" 06:58:28",A13:"自动跳转",A14:"4",A15:"3005"}],total:0,listLoading:!0,temp:{}},frequencyList:[{id:"0",name:"第一班"},{id:"1",name:"第二班"},{id:"2",name:"第三班"}],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()},mounted:function(){},methods:{handleDownload:function(){if("1"==this.tab.radio){var t=[{tHeader:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料误差率","混料自动跳转次数","混料手动跳转次数","去除取消重量","方差"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料误差率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(t,"汇总统计-配方名称",!0,"xlsx")}else if("2"==this.tab.radio){var e=[{tHeader:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料误差率","混料自动跳转次数","混料手动跳转次数","去除取消重量","方差"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料误差率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(e,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){var a=[{tHeader:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料误差率","混料自动跳转次数","混料手动跳转次数","去除取消重量","方差"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料误差率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(a,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){var i=[{tHeader:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料误差率","混料自动跳转次数","混料手动跳转次数","去除取消重量","方差"],filterVal:["A1","A13","A14","A15","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料误差率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(i,"汇总统计-车次",!0,"xlsx")}},handleTabClick:function(){this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.source="",this.tab.table.getdataListParm.parammaps.source2="",this.tab.table.getdataListParm.parammaps.source3="",this.tab2.table.getdataListParm.parammaps.fname="",this.tab2.table.getdataListParm.parammaps.fname2="",this.tab2.table.getdataListParm.parammaps.fname3="",this.tab2.table.getdataListParm.parammaps.source="",this.tab2.table.getdataListParm.parammaps.fclassid="",this.tab2.table.getdataListParm.parammaps.inputDatetime="",this.tab3.table.getdataListParm.parammaps.fname="",this.tab3.table.getdataListParm.parammaps.fname2="",this.tab3.table.getdataListParm.parammaps.fname3="",this.tab3.table.getdataListParm.parammaps.fname4="",this.tab3.table.getdataListParm.parammaps.fclassid="",this.tab3.table.getdataListParm.parammaps.source="",this.tab3.table.getdataListParm.parammaps.inputDatetime="","first"==this.activeName?(this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()):"second"==this.activeName?this.getTab2List():"third"==this.activeName&&this.getTab3List()},changeRadio:function(){console.log(this.tab.radio),this.tab.table.getdataListParm.parammaps.source="",this.tab.table.getdataListParm.parammaps.source2="",this.tab.table.getdataListParm.parammaps.source3="","1"==this.tab.radio?(console.log("配方名称"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"新产牛",A2:"3869.53",A3:"3843.00",A4:"9",A5:"9",A6:"100%",A7:"26.53",A8:"0.69%",A9:"9",A10:"0",A11:"0",A12:"1.6"},{id:2,A1:"高产牛",A2:"3371.02",A3:"3359.00",A4:"9",A5:"9",A6:"100%",A7:"12.02",A8:"0.36%",A9:"9",A10:"0",A11:"0",A12:"2.5"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3176.00",A4:"5",A5:"5",A6:"100%",A7:"6.9",A8:"0.22%",A9:"5",A10:"0",A11:"0",A12:"1.9"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3632.00",A4:"7",A5:"7",A6:"100%",A7:"8.8",A8:"0.24%",A9:"7",A10:"0",A11:"0",A12:"1.55"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2924.00",A4:"5",A5:"5",A6:"100%",A7:"5.3",A8:"0.18%",A9:"5",A10:"0",A11:"0",A12:"2.1"},{id:6,A1:"小育成",A2:"3426.38",A3:"3407.00",A4:"5",A5:"5",A6:"100%",A7:"19.38",A8:"0.57%",A9:"5",A10:"0",A11:"0",A12:"3.5"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3390.00",A4:"7",A5:"7",A6:"100%",A7:"6.05",A8:"0.18%",A9:"7",A10:"0",A11:"0",A12:"2.2"}],this.tab.table2.list=[{id:1,A1:"新产牛",A2:"3869.52",A3:"3836.00",A4:"5",A5:"5",A6:"100%",A7:"3.52",A8:"0.19%",A9:"5",A10:"0"},{id:2,A1:"高产牛",A2:"3371.03",A3:"3343.00",A4:"1",A5:"1",A6:"100%",A7:"28.03",A8:"0.85%",A9:"1",A10:"0"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3160.00",A4:"3",A5:"3",A6:"100%",A7:"22.90",A8:"0.81%",A9:"3",A10:"0"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3631.00",A4:"1",A5:"1",A6:"100%",A7:"9.80",A8:"0.31%",A9:"1",A10:"0"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2917.00",A4:"2",A5:"2",A6:"100%",A7:"1.70",A8:"0.09%",A9:"2",A10:"0"},{id:6,A1:"小育成",A2:"3426.38",A3:"3405.00",A4:"4",A5:"4",A6:"100%",A7:"11.38",A8:"0.42%",A9:"4",A10:"0"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3381.00",A4:"2",A5:"2",A6:"100%",A7:"15.05",A8:"0.41%",A9:"2",A10:"0"}]):"2"==this.tab.radio?(console.log("栏舍名称"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"17号",A2:"3869.53",A3:"3843.00",A4:"9",A5:"9",A6:"100%",A7:"26.53",A8:"0.69%",A9:"9",A10:"0",A11:"0",A12:"1.6"},{id:2,A1:"5号南",A2:"3371.02",A3:"3359.00",A4:"9",A5:"9",A6:"100%",A7:"12.02",A8:"0.36%",A9:"9",A10:"0",A11:"0",A12:"2.5"},{id:3,A1:"3南东",A2:"3182.90",A3:"3176.00",A4:"5",A5:"5",A6:"100%",A7:"6.9",A8:"0.22%",A9:"5",A10:"0",A11:"0",A12:"1.9"},{id:4,A1:"3南东",A2:"3640.80",A3:"3632.00",A4:"7",A5:"7",A6:"100%",A7:"8.8",A8:"0.24%",A9:"7",A10:"0",A11:"0",A12:"1.55"},{id:5,A1:"1号南",A2:"2918.70",A3:"2924.00",A4:"5",A5:"5",A6:"100%",A7:"5.3",A8:"0.18%",A9:"5",A10:"0",A11:"0",A12:"2.1"}],this.tab.table2.list=[{id:1,A1:"17号",A2:"3869.52",A3:"3836.00",A4:"5",A5:"5",A6:"100%",A7:"3.52",A8:"0.19%",A9:"5",A10:"0"},{id:2,A1:"5号南",A2:"3371.03",A3:"3343.00",A4:"1",A5:"1",A6:"100%",A7:"28.03",A8:"0.85%",A9:"1",A10:"0"},{id:3,A1:"3南东",A2:"3182.90",A3:"3160.00",A4:"3",A5:"3",A6:"100%",A7:"22.90",A8:"0.81%",A9:"3",A10:"0"},{id:4,A1:"3南东",A2:"3640.80",A3:"3631.00",A4:"1",A5:"1",A6:"100%",A7:"9.80",A8:"0.31%",A9:"1",A10:"0"},{id:5,A1:"1号南",A2:"2918.70",A3:"2917.00",A4:"2",A5:"2",A6:"100%",A7:"1.70",A8:"0.09%",A9:"2",A10:"0"}]):"3"==this.tab.radio?(console.log(" 牲畜类别"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"新产牛",A2:"3869.53",A3:"3843.00",A4:"9",A5:"9",A6:"100%",A7:"26.53",A8:"0.69%",A9:"9",A10:"0",A11:"0",A12:"1.6"},{id:2,A1:"高产牛",A2:"3371.02",A3:"3359.00",A4:"9",A5:"9",A6:"100%",A7:"12.02",A8:"0.36%",A9:"9",A10:"0",A11:"0",A12:"2.5"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3176.00",A4:"5",A5:"5",A6:"100%",A7:"6.9",A8:"0.22%",A9:"5",A10:"0",A11:"0",A12:"1.9"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3632.00",A4:"7",A5:"7",A6:"100%",A7:"8.8",A8:"0.24%",A9:"7",A10:"0",A11:"0",A12:"1.55"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2924.00",A4:"5",A5:"5",A6:"100%",A7:"5.3",A8:"0.18%",A9:"5",A10:"0",A11:"0",A12:"2.1"},{id:6,A1:"小育成",A2:"3426.38",A3:"3407.00",A4:"5",A5:"5",A6:"100%",A7:"19.38",A8:"0.57%",A9:"5",A10:"0",A11:"0",A12:"3.5"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3390.00",A4:"7",A5:"7",A6:"100%",A7:"6.05",A8:"0.18%",A9:"7",A10:"0",A11:"0",A12:"2.2"}],this.tab.table2.list=[{id:1,A1:"新产牛",A2:"3869.52",A3:"3836.00",A4:"5",A5:"5",A6:"100%",A7:"3.52",A8:"0.19%",A9:"5",A10:"0"},{id:2,A1:"高产牛",A2:"3371.03",A3:"3343.00",A4:"1",A5:"1",A6:"100%",A7:"28.03",A8:"0.85%",A9:"1",A10:"0"},{id:3,A1:"干奶牛",A2:"3182.90",A3:"3160.00",A4:"3",A5:"3",A6:"100%",A7:"22.90",A8:"0.81%",A9:"3",A10:"0"},{id:4,A1:"低产牛",A2:"3640.80",A3:"3631.00",A4:"1",A5:"1",A6:"100%",A7:"9.80",A8:"0.31%",A9:"1",A10:"0"},{id:5,A1:"小公牛",A2:"2918.70",A3:"2917.00",A4:"2",A5:"2",A6:"100%",A7:"1.70",A8:"0.09%",A9:"2",A10:"0"},{id:6,A1:"小育成",A2:"3426.38",A3:"3405.00",A4:"4",A5:"4",A6:"100%",A7:"11.38",A8:"0.42%",A9:"4",A10:"0"},{id:7,A1:"青年牛",A2:"3396.05",A3:"3381.00",A4:"2",A5:"2",A6:"100%",A7:"15.05",A8:"0.41%",A9:"2",A10:"0"}]):"4"==this.tab.radio&&(console.log("车次"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"1",A2:"3869.53",A3:"3843.00",A4:"9",A5:"9",A6:"100%",A7:"26.53",A8:"0.69%",A9:"9",A10:"0",A11:"0",A12:"1.6",A13:"第一班",A14:"1",A15:"张晓伟"},{id:2,A1:"2",A2:"3371.02",A3:"3359.00",A4:"9",A5:"9",A6:"100%",A7:"12.02",A8:"0.36%",A9:"9",A10:"0",A11:"0",A12:"2.5",A13:"第二班",A14:"3",A15:"顾振成"},{id:3,A1:"3",A2:"3182.90",A3:"3176.00",A4:"5",A5:"5",A6:"100%",A7:"6.9",A8:"0.22%",A9:"5",A10:"0",A11:"0",A12:"1.9",A13:"第三班",A14:"4",A15:"李凯"}],this.tab.table2.list=[{id:1,A1:"1",A2:"3869.52",A3:"3836.00",A4:"5",A5:"5",A6:"100%",A7:"3.52",A8:"0.19%",A9:"5",A10:"0",A11:"第一班",A12:"1",A13:"张晓伟"},{id:2,A1:"2",A2:"3371.03",A3:"3343.00",A4:"1",A5:"1",A6:"100%",A7:"28.03",A8:"0.85%",A9:"1",A10:"0",A11:"第二班",A12:"3",A13:"顾振成"},{id:3,A1:"3",A2:"3182.90",A3:"3160.00",A4:"3",A5:"3",A6:"100%",A7:"22.90",A8:"0.81%",A9:"3",A10:"0",A11:"第三班",A12:"4",A13:"李凯"}])},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(n["d"])(this.tab.table.getdataListParm).then((function(e){console.log("汇总统计/混料table数据",e.data.list),null!==e.data.list||(t.tab.table.list=[]),setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},getTabList2:function(){var t=this;this.tab.table2.listLoading=!0,Object(n["d"])(this.tab.table2.getdataListParm).then((function(e){console.log("汇总统计/撒料table数据",e.data.list),null!==e.data.list||(t.tab.table2.list=[]),setTimeout((function(){t.tab.table2.listLoading=!1}),100)}))},changeDate:function(){""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList()},handleSearch:function(){"1"==this.tab.radio?(console.log("配方名称/查询"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2()):"2"==this.tab.radio?(console.log("栏舍名称/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2()):"3"==this.tab.radio?(console.log(" 牲畜类别/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2()):"4"==this.tab.radio&&(console.log("车次/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2())},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0,Object(n["d"])(this.tab.chart1.getdataListParm).then((function(e){console.log("配方准确率图表数据",e.data.list),null!==e.data.list?(t.tab.chart1.chartLine_data={data1:["新产牛","高产牛","干奶牛","低产牛","小公牛","小育成","青年牛"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[92,96.5,98,96,94.3,90.25,90,98.1,95.27,91.25,91.5,94,93,95,95]},{data:[93,94.2,97,88.69,94.9,91.5,90.9,96.7,95,92,91,94.5,95.3,94,95.6]},{data:[92.88,93.5,95,96,93,90,92.5,98,97.5,94,90.7,94.3,96,93.8,97]},{data:[92.5,96,98.5,96,94.3,91.25,93.6,98,96.88,91.25,91.8,94.7,88.5,89,91.8]},{data:[93.3,94.9,97.4,92,94.9,95.5,91.9,94.7,95.8,92,91,92.5,95.3,94.22,90.6]},{data:[94,95.8,98,98.2,93.5,90,90,95.1,92.7,91.11,91.5,94,93.95,96,95.8]},{data:[96,96,97,90,95.2,95,90.9,96,95.6,92,91.5,94,97,94.5,97.6]}]},t.tab.chart1.total=e.data.total,t.roadChartLine1(t.tab.chart1.chartLine_data)):t.tab.chart1.list=[],setTimeout((function(){t.tab.chart1.listLoading=!1}),100)}))},getChart1Table:function(){var t=this;this.tab.chart1.table.listLoading=!0,Object(n["d"])(this.tab.chart1.table.getdataListParm).then((function(e){console.log("配方准确率table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart1.table.list=e.data.list,t.tab.chart1.table.total=e.data.total):t.tab.chart1.table.list=[],setTimeout((function(){t.tab.chart1.table.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=l.a.init(document.getElementById("chartLine1"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart1.chartLine.setOption(e),window.onresize=function(){this.tab.chart1.chartLine.resize()}},getChart2:function(){var t=this;this.tab.chart2.listLoading=!0,Object(n["d"])(this.tab.chart2.getdataListParm).then((function(e){console.log("计划统计图表数据",e.data.list),null!==e.data.list?(t.tab.chart2.chartLine_data={data1:["计划准确率","计划正确率","计划准确率(去除取消重量)"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[95.6,94.1,89.8,95.5,93.6,95.7,90.2,94.53,96.88,91,89.5,87,93.2,95,97.23]},{data:[97,96,88,91,93,97.7,90,92,91,91,95,94.5,91.6,92,92]},{data:[91.2,95,89,97,95.9,92.7,89,96,98,91,85,82,95,96,90,94]}]},t.tab.chart2.total=e.data.total,t.roadChartLine2(t.tab.chart2.chartLine_data)):t.tab.chart2.list=[],setTimeout((function(){t.tab.chart2.listLoading=!1}),100)}))},getChart2Table:function(){var t=this;this.tab.chart2.table.listLoading=!0,Object(n["d"])(this.tab.chart2.table.getdataListParm).then((function(e){console.log("计划统计table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart2.table.list=e.data.list,t.tab.chart2.table.total=e.data.total):t.tab.chart2.table.list=[],setTimeout((function(){t.tab.chart2.table.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=l.a.init(document.getElementById("chartLine2"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart2.chartLine.setOption(e),window.onresize=function(){this.tab.chart2.chartLine.resize()}},getChart3:function(){var t=this;this.tab.chart3.listLoading=!0,Object(n["d"])(this.tab.chart3.getdataListParm).then((function(e){console.log("牛群准确率图表数据",e.data.list),null!==e.data.list?(t.tab.chart3.chartLine_data={data1:["新产牛","高产牛","干奶牛","低产牛","小公牛","小育成","青年牛"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[96,91.5,97,90,95.2,95,90.9,96,95.6,92,91.5,94,97,94.5,97.6]},{data:[89,91.5,92,94,91,95,95,91,97,89,92.5,97,95,91,92]},{data:[95,99,91,91.7,96,90,91,98,91,94,90.7,96,96,91,97]},{data:[91,92,95,94,92,97,93.6,98,96.95,91.25,98,94.7,85,97,91.8]},{data:[96.5,97,94,96,91,97,91.9,94.7,88,92,91,94,95.3,94.22,90.6]},{data:[97,91,98,95,97.5,95,96,92.6,92.7,96,91.5,94,93.95,96,95.8]},{data:[86,92,88,87,91,91,96,93,91.6,96,97.5,91,98,99,91.6]}]},t.tab.chart3.total=e.data.total,t.roadChartLine3(t.tab.chart3.chartLine_data)):t.tab.chart3.list=[],setTimeout((function(){t.tab.chart3.listLoading=!1}),100)}))},getChart3Table:function(){var t=this;this.tab.chart3.table.listLoading=!0,Object(n["d"])(this.tab.chart3.table.getdataListParm).then((function(e){console.log("牛群准确率table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart3.table.list=e.data.list,t.tab.chart3.table.total=e.data.total):t.tab.chart3.table.list=[],setTimeout((function(){t.tab.chart3.table.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=l.a.init(document.getElementById("chartLine3"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart3.chartLine.setOption(e),window.onresize=function(){this.tab.chart3.chartLine.resize()}},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0,Object(n["d"])(this.tab.chart4.getdataListParm).then((function(e){console.log("车辆准确率(重量)图表数据",e.data.list),null!==e.data.list?(t.tab.chart4.chartLine_data={data1:["1","2","3","4"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[92.88,93.5,95,96,93,90,92.5,98,97.5,94,90.7,94.3,96,93.8,97]},{data:[97,96,88,91,93,97.7,90,92,91,91,95,94.5,91.6,92,92]},{data:[91.2,95,89,97,95.9,92.7,89,96,98,91,85,82,95,96,90,94]},{data:[86,92,88,87,91,91,96,93,91.6,96,97.5,91,98,99,91.6]}]},t.tab.chart4.total=e.data.total,t.roadChartLine4(t.tab.chart4.chartLine_data)):t.tab.chart4.list=[],setTimeout((function(){t.tab.chart4.listLoading=!1}),100)}))},getChart4Table:function(){var t=this;this.tab.chart4.table.listLoading=!0,Object(n["d"])(this.tab.chart4.table.getdataListParm).then((function(e){console.log("车辆准确率(重量)table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart4.table.list=e.data.list,t.tab.chart4.table.total=e.data.total):t.tab.chart4.table.list=[],setTimeout((function(){t.tab.chart4.table.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=l.a.init(document.getElementById("chartLine4"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart4.chartLine.setOption(e),window.onresize=function(){this.tab.chart4.chartLine.resize()}},getChart5:function(){var t=this;this.tab.chart5.listLoading=!0,Object(n["d"])(this.tab.chart5.getdataListParm).then((function(e){console.log("混料统计图表数据",e.data.list),null!==e.data.list?(t.tab.chart5.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[9,6,5,9,9,5,3,7,7,9,5,7,9,7,5],data3:[0,1,1,1,0,0,0,2,2,1,12,1,2,0],data4:[92.88,93.5,95,96,93,90,92.5,98,97.5,94,90.7,94.3,96,93.8,97],data5:[97,96,88,91,93,97.7,90,92,91,91,95,94.5,91.6,92,92]},t.tab.chart5.total=e.data.total,t.roadChartLine5(t.tab.chart5.chartLine_data)):t.tab.chart5.list=[],setTimeout((function(){t.tab.chart5.listLoading=!1}),100)}))},getChart5Table:function(){var t=this;this.tab.chart5.table.listLoading=!0,Object(n["d"])(this.tab.chart5.table.getdataListParm).then((function(e){console.log("混料统计table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart5.table.list=e.data.list,t.tab.chart5.table.total=e.data.total):t.tab.chart5.table.list=[],setTimeout((function(){t.tab.chart5.table.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=l.a.init(document.getElementById("chartLine5"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{}},legend:{data:["自动跳转次数","手动跳转次数","自动跳转准确率","手动跳转准确率"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"跳转次数",axisLabel:{formatter:"{value}"}},{type:"value",name:"混料准确率",min:0,max:100,interval:10,axisLabel:{formatter:"{value} %"}}],series:[{name:"自动跳转次数",type:"bar",data:t.data2},{name:"手动跳转次数",type:"bar",data:t.data3},{name:"自动跳转准确率",type:"line",yAxisIndex:1,data:t.data4},{name:"手动跳转准确率",type:"line",yAxisIndex:1,data:t.data5}]};this.tab.chart5.chartLine.setOption(e),window.onresize=function(){this.tab.chart5.chartLine.resize()}},getChart6:function(){var t=this;this.tab.chart6.listLoading=!0,Object(n["d"])(this.tab.chart6.getdataListParm).then((function(e){console.log("混料计划取消次数图表数据",e.data.list),null!==e.data.list?(t.tab.chart6.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[1,2,1,1,1,0,0,0,1,0,1,2,1,0,1]},t.tab.chart6.total=e.data.total,t.roadChartLine6(t.tab.chart6.chartLine_data)):t.tab.chart6.list=[],setTimeout((function(){t.tab.chart6.listLoading=!1}),100)}))},getChart6Table:function(){var t=this;this.tab.chart6.table.listLoading=!0,Object(n["d"])(this.tab.chart6.table.getdataListParm).then((function(e){console.log("车辆准确率(重量)table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart6.table.list=e.data.list,t.tab.chart6.table.total=e.data.total):t.tab.chart6.table.list=[],setTimeout((function(){t.tab.chart6.table.listLoading=!1}),100)}))},roadChartLine6:function(t){null!=this.tab.chart6.chartLine&&this.tab.chart6.chartLine.dispose(),this.tab.chart6.chartLine=l.a.init(document.getElementById("chartLine6"));var e={color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"8%",right:"8%",bottom:"3%",containLabel:!0},legend:{data:["取消次数"]},xAxis:[{name:"日期",type:"category",data:t.data1,axisTick:{alignWithLabel:!0}}],yAxis:[{name:"次数",type:"value"}],series:[{name:"取消次数",type:"bar",barWidth:"60%",data:t.data2}]};this.tab.chart6.chartLine.setOption(e),window.onresize=function(){this.tab.chart6.chartLine.resize()}},getChart7:function(){var t=this;this.tab.chart7.listLoading=!0,Object(n["d"])(this.tab.chart7.getdataListParm).then((function(e){console.log("栏舍撒料时间统计图表数据",e.data.list),null!==e.data.list?(t.tab.chart7.chartLine_data={data1:["17号","5号南","3南东","3南西","1号南"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[6.58,6.55,7,6.43,6.55,7.02,7.15,7,6.55,6.59,7.1,6.5,6.58,7.1,7.22]},{data:[7.04,7.1,7.03,6.47,7.01,7.1,7.22,7.04,7.01,7.07,7.17,6.59,7.05,7.16,7.31]},{data:[7.1,7.15,7.08,6.53,7.12,7.16,7.3,7.11,7.6,7.15,7.25,7.12,7.09,7.25,7.4]},{data:[7.15,7.17,7.12,6.59,7.2,7.22,7.34,7.17,7.13,7.25,7.33,7.15,7.18,7.31,7.45]}]},t.tab.chart7.total=e.data.total,t.roadChartLine7(t.tab.chart7.chartLine_data)):t.tab.chart7.list=[],setTimeout((function(){t.tab.chart7.listLoading=!1}),100)}))},getChart7Table:function(){var t=this;this.tab.chart7.table.listLoading=!0,Object(n["d"])(this.tab.chart7.table.getdataListParm).then((function(e){console.log("栏舍撒料时间统计table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart7.table.list=e.data.list,t.tab.chart7.table.total=e.data.total):t.tab.chart7.table.list=[],setTimeout((function(){t.tab.chart7.table.listLoading=!1}),100)}))},roadChartLine7:function(t){null!=this.tab.chart7.chartLine&&this.tab.chart7.chartLine.dispose(),this.tab.chart7.chartLine=l.a.init(document.getElementById("chartLine7"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"5%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:[{type:"",name:"时间",mix:0,max:24,interval:2,axisLabel:{formatter:function(t){var e=[];return t<10?e.push("0"+t+":00"):e.push(t+":00"),e}}}],series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart7.chartLine.setOption(e),window.onresize=function(){this.tab.chart7.chartLine.resize()}},handleExport:function(t){"chart1"==t?(console.log("配方准确率导出"),this.getChart1Table()):"chart2"==t?(console.log("计划统计导出"),this.getChart2Table()):"chart3"==t?(console.log("牛群准确率导出"),this.getChart3Table()):"chart4"==t?(console.log("车辆准确率(重量)导出"),this.getChart4Table()):"chart5"==t?(console.log("混料统计导出"),this.getChart5Table()):"chart6"==t?(console.log("混料计划取消次数导出"),this.getChart6Table()):"chart7"==t&&(console.log("栏舍撒料时间统计导出"),this.getChart7Table())},handleTable:function(t){"chart1"==t?(console.log("配方准确率表格"),this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1,this.getChart1Table()):"chart2"==t?(console.log("计划统计表格"),this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1,this.getChart2Table()):"chart3"==t?(console.log("牛群准确率表格"),this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1,this.getChart3Table()):"chart4"==t?(console.log("车辆准确率(重量)表格"),this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1,this.getChart4Table()):"chart5"==t?(console.log("混料统计表格"),this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1,this.getChart5Table()):"chart6"==t?(console.log("混料计划取消次数表格"),this.tab.chart6.isTable=!0,this.tab.chart6.isChart=!1,this.getChart6Table()):"chart7"==t&&(console.log("栏舍撒料时间统计表格"),this.tab.chart7.isTable=!0,this.tab.chart7.isChart=!1,this.getChart7Table())},handleChart:function(t){"chart1"==t?(console.log("配方准确率图表"),this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0):"chart2"==t?(console.log("计划统计图表"),this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0):"chart3"==t?(console.log("牛群准确率图表"),this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0):"chart4"==t?(console.log("车辆准确率(重量)图表"),this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0):"chart5"==t?(console.log("混料统计图表"),this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0):"chart6"==t?(console.log("混料计划取消次数图表"),this.tab.chart6.isTable=!1,this.tab.chart6.isChart=!0):"chart7"==t&&(console.log("栏舍撒料时间统计图表"),this.tab.chart7.isTable=!1,this.tab.chart7.isChart=!0)},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(n["d"])(this.tab2.table.getdataListParm).then((function(e){console.log("混料统计table数据",e.data.list),null!==e.data.list||(t.tab2.table.list=[]),setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},handleSearch2:function(){this.getTab2List()},handleRefresh2:function(){this.getTab2List()},handleExport2:function(){var t=[{tHeader:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","误差率","计划时间","开始时间","结束时间"," 跳转方式"," 开始重量"," 结束重量"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15","A16"],tableDatas:this.tab2.table.list,sheetName:"混料统计"}];Object(d["d"])(t,"混料统计",!0,"xlsx")},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,Object(n["d"])(this.tab3.table.getdataListParm).then((function(e){console.log("撒料统计table数据",e.data.list),null!==e.data.list||(t.tab3.table.list=[]),setTimeout((function(){t.tab3.table.listLoading=!1}),100)}))},handleSearch3:function(){this.getTab3List()},handleRefresh3:function(){this.getTab3List()},handleExport3:function(){var t=[{tHeader:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","误差率","开始时间","结束时间"," 跳转方式"," 开始重量"," 结束重量"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15"],tableDatas:this.tab3.table.list,sheetName:"撒料统计"}];Object(d["d"])(t,"撒料统计",!0,"xlsx")}}},u=p,h=(a("60f6"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"aea01e3a",null);e["default"]=f.exports},"1ed7":function(t,e,a){"use strict";var i=a("42bb"),s=a.n(i);s.a},2:function(t,e){},2017:function(t,e,a){"use strict";var i=a("cafe"),s=a.n(i);s.a},2044:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o={mixins:[n["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 t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["Industries","Technology","Forex","Gold","Forecasts"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"Industries"},{value:240,name:"Technology"},{value:149,name:"Forex"},{value:100,name:"Gold"},{value:59,name:"Forecasts"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=m.exports},"218b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.bname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"bname",e)},expression:"table.getdataListParm.parammaps.bname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"栏舍编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.bcode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"bcode",e)},expression:"table.getdataListParm.parammaps.bcode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[t._v("允许误差数")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.allowratio,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"allowratio",e)},expression:"table.getdataListParm.parammaps.allowratio"}})],1),a("li",[a("a",[t._v("跳转重量域")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.autozone,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"autozone",e)},expression:"table.getdataListParm.parammaps.autozone"}})],1),a("li",[a("a",[t._v("跳转延时")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{filterable:"",clearable:""},model:{value:t.table.getdataListParm.parammaps.autosecond,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"autosecond",e)},expression:"table.getdataListParm.parammaps.autosecond"}},t._l(t.jumpDelayList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.bname,callback:function(a){t.$set(e.row,"bname",a)},expression:"scope.row.bname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"栏舍编号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bcode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.bcode,callback:function(a){t.$set(e.row,"bcode",a)},expression:"scope.row.bcode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"允许误差数(kg)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.allowratio))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:e.row.allowratio,callback:function(a){t.$set(e.row,"allowratio",a)},expression:"scope.row.allowratio"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"跳转重量域(kg)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.autozone))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"0"==e.row.autosecond},model:{value:e.row.autozone,callback:function(a){t.$set(e.row,"autozone",a)},expression:"scope.row.autozone"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"跳转延时(s)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.autosecondname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:""},on:{change:t.changeAutosecond},model:{value:e.row.autosecond,callback:function(a){t.$set(e.row,"autosecond",a)},expression:"scope.row.autosecond"}},t._l(t.jumpDelayList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"确认开始","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleConfirmStartChange(e.$index,e.row)}},model:{value:e.row.isstart,callback:function(a){t.$set(e.row,"isstart",a)},expression:"scope.row.isstart"}})]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"GroupColumn",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["跳转延时"]}],enableList:[{id:"1",name:"是"},{id:"0",name:"否"}],jumpDelayList:[],table:{getdataListParm:{name:"getBarList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),bcode:"",bname:"",allowratio:"",autozone:"",autosecond:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],arrowDown:!0,arrowUp:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},mounted:function(){var t=this;document.addEventListener("click",(function(e){void 0!==t.$refs.selectInput&&(t.$refs.selectInput.contains(e.target)?(t.arrowDown=!1,t.arrowUp=!0):(t.arrowDown=!0,t.arrowUp=!1))}))},methods:{getButtons:function(){var t="GroupColumn",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.jumpDelayList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.bcode="",this.table.getdataListParm.parammaps.bname="",this.table.getdataListParm.parammaps.allowratio="",this.table.getdataListParm.parammaps.autozone="",this.table.getdataListParm.parammaps.autosecond="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeAutosecond:function(t){this.table.temp.autosecondname=this.jumpDelayList.find((function(e){return e.value===t})).label,console.log(this.table.temp.autosecondname)},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.temp.autosecondname="",this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,isstart:1,bname:"",bcode:"",allowratio:"",autozone:"",autosecond:"0",autosecondname:"禁用"})},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.bcode=t.bcode,this.table.temp.bname=t.bname,this.table.temp.allowratio=t.allowratio,this.table.temp.autozone=t.autozone,this.table.temp.autosecond=t.autosecond,""==this.table.temp.autosecondname?this.table.temp.autosecondname=t.autosecondname:this.table.temp.autosecondname=this.table.temp.autosecondname,this.table.temp.isstart=t.isstart,this.table.temp.enable=t.enable,""==this.table.temp.bname&&""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍名称/栏舍编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bname)return this.$message({type:"error",message:"栏舍名称不能为空",duration:2e3}),!1;if(""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍编号不能为空",duration:2e3}),!1;if(this.table.temp.bcode.length>8)return this.$message({type:"error",message:"栏舍编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.allowratio){console.log(this.table.temp.allowratio);var a=/^[0-9]\d*$/;if(!a.test(parseFloat(this.table.temp.allowratio)))return this.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1}else this.table.temp.allowratio="0";if(""!==this.table.temp.autozone){console.log(this.table.temp.autozone);var i=/^([0-9]|(1[0-9]|(20)))$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else this.table.temp.autozone="0";var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertBar",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){console.log("点击了编辑",t);for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.autosecond=String(t.autosecond),this.table.temp.autosecondname=t.autosecondname,this.table.temp.autosecond=t.autosecond},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.bcode=t.bcode,this.table.temp.bname=t.bname,this.table.temp.allowratio=t.allowratio,this.table.temp.autozone=t.autozone,this.table.temp.autosecond=t.autosecond,this.table.temp.autosecondname=this.table.temp.autosecondname,this.table.temp.isstart=t.isstart,this.table.temp.enable=t.enable,this.table.temp.id=t.id,""==this.table.temp.bname&&""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍名称/栏舍编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bname)return this.$message({type:"error",message:"栏舍名称不能为空",duration:2e3}),!1;if(""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍编号不能为空",duration:2e3}),!1;if(this.table.temp.bcode.length>8)return this.$message({type:"error",message:"栏舍编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.allowratio){console.log(this.table.temp.allowratio);var a=/^[0-9]\d*$/;if(!a.test(parseFloat(this.table.temp.allowratio)))return this.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1}else this.table.temp.allowratio="0";if(""!==this.table.temp.autozone){console.log(this.table.temp.autozone);var i=/^([0-9]|(1[0-9]|(20)))$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else this.table.temp.autozone="0";var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateBar",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteBar",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择舍组栏信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteBar",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("a23d"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"b25407a2",null);e["default"]=u.exports},"228b":function(t,e,a){},"22db":function(t,e,a){},"22e1":function(t,e,a){},2415:function(t,e,a){"use strict";var i=a("eea3"),s=a.n(i);s.a},2452:function(t,e,a){"use strict";var i=a("e871"),s=a.n(i);s.a},2486:function(t,e,a){"use strict";var i=a("d9d2"),s=a.n(i);s.a},2502:function(t,e,a){"use strict";var i=a("d05e"),s=a.n(i);s.a},2544:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo(e)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,i){return a("todo",{key:i,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},t._l(t.filters,(function(e,i){return a("li",{key:i},[a("a",{class:{selected:t.visibility===i},on:{click:function(e){e.preventDefault(),t.visibility=i}}},[t._v(t._s(t._f("capitalize")(i)))])])})),0)])])},s=[],r=(a("a623"),a("4de4"),a("4160"),a("c975"),a("fb6a"),a("a434"),a("498a"),a("159b"),a("ced4")),l="todos",n={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.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}],c={components:{Todo:r["default"]},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:n,todos:o}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return n[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(l,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,a=t.value;e.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,a=t.done;this.todos.forEach((function(t){t.done=a,e.setLocalStorage()}))}}},d=c,m=(a("76f2"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,null,null);e["default"]=p.exports},"256c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleNutritional}},[t._v("营养评估")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"}},[t._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleHistoryRecords}},[t._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"header-click":t.headerClick,"cell-click":t.cellClick,"selection-change":t.handleSelect}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{key:2,attrs:{label:"栏舍名称","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{key:3,attrs:{label:"软件牛头数","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.softccount))])]}}])}),a("el-table-column",{key:4,attrs:{label:"实际牛头数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ccount))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurCcount(e.row)}},model:{value:e.row.ccount,callback:function(a){t.$set(e.row,"ccount",a)},expression:"scope.row.ccount"}}):t._e()]}}])}),a("el-table-column",{key:5,attrs:{label:"系数(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ratio))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurRatio(e.row)}},model:{value:e.row.ratio,callback:function(a){t.$set(e.row,"ratio",a)},expression:"scope.row.ratio"}}):t._e()]}}])}),a("el-table-column",{key:6,attrs:{label:"系数头数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ccountratio))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurCcountratio(e.row)}},model:{value:e.row.ccountratio,callback:function(a){t.$set(e.row,"ccountratio",a)},expression:"scope.row.ccountratio"}}):t._e()]}}])}),a("el-table-column",{key:7,attrs:{label:"配方模板","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方模板"},on:{change:function(a){t.changeRecipeTemplate(a,e.row)}},model:{value:e.row.ftid,callback:function(a){t.$set(e.row,"ftid",a)},expression:"scope.row.ftid"}},t._l(t.recipeTemplateList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),t.table.isPtsfname?a("el-table-column",{key:8,attrs:{label:"补料配方","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ptsfname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{clearable:"",filterable:"",placeholder:"补料配方"},on:{change:function(a){t.changeFeedingFormula(a,e.row)}},model:{value:e.row.ptsfid,callback:function(a){t.$set(e.row,"ptsfid",a)},expression:"scope.row.ptsfid"}},t._l(t.feedingFormulaList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}],null,!1,881076484)}):t._e(),t.table.isRW1?a("el-table-column",{key:9,attrs:{label:"第一班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isOneWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r1,callback:function(a){t.$set(e.row,"r1",a)},expression:"scope.row.r1"}}):t._e()]}}],null,!1,995467629)}):t._e(),t.table.isRW1?a("el-table-column",{key:10,attrs:{label:"第一班重量","min-width":"130px",align:"center","render-header":t.renderHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isOneWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW(e.row)},focus:function(a){return t.focusW(e.row)}},model:{value:e.row.w1,callback:function(a){t.$set(e.row,"w1",a)},expression:"scope.row.w1"}}):t._e()]}}],null,!1,578237569)}):t._e(),t.table.isRW2?a("el-table-column",{key:11,attrs:{label:"第二班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isTwoWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r2,callback:function(a){t.$set(e.row,"r2",a)},expression:"scope.row.r2"}}):t._e()]}}],null,!1,1521340005)}):t._e(),t.table.isRW2?a("el-table-column",{key:12,attrs:{label:"第二班重量","min-width":"130px",align:"center","render-header":t.renderHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW2(e.row)},focus:function(a){return t.focusW2(e.row)}},model:{value:e.row.w2,callback:function(a){t.$set(e.row,"w2",a)},expression:"scope.row.w2"}}):t._e()]}}],null,!1,3566672329)}):t._e(),t.table.isRW3?a("el-table-column",{key:13,attrs:{label:"第三班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isThreeWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r3,callback:function(a){t.$set(e.row,"r3",a)},expression:"scope.row.r3"}}):t._e()]}}],null,!1,2808300679)}):t._e(),t.table.isRW3?a("el-table-column",{key:14,attrs:{label:"第三班重量","min-width":"130px",align:"center","render-header":t.renderHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isThreeWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW3(e.row)},focus:function(a){return t.focusW3(e.row)}},model:{value:e.row.w3,callback:function(a){t.$set(e.row,"w3",a)},expression:"scope.row.w3"}}):t._e()]}}],null,!1,4064722827)}):t._e(),t.table.isRW4?a("el-table-column",{key:15,attrs:{label:"第四班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isFourWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r4,callback:function(a){t.$set(e.row,"r4",a)},expression:"scope.row.r4"}}):t._e()]}}],null,!1,4090104935)}):t._e(),t.table.isRW4?a("el-table-column",{key:16,attrs:{label:"第四班重量","min-width":"130px",align:"center","render-header":t.renderHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isFourWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW4(e.row)},focus:function(a){return t.focusW4(e.row)}},model:{value:e.row.w4,callback:function(a){t.$set(e.row,"w4",a)},expression:"scope.row.w4"}}):t._e()]}}],null,!1,3133848811)}):t._e(),a("el-table-column",{key:17,attrs:{label:"总比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sumr))])]}}])}),a("el-table-column",{key:18,attrs:{label:"投喂量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedweight))])]}}])}),a("el-table-column",{key:19,attrs:{label:"配方重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftweight))])]}}])}),t.table.isPtsfname?a("el-table-column",{key:20,attrs:{label:"补料重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.supplyweight))])]}}],null,!1,2371522197)}):t._e(),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;e.column,e.event;return[i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.history.dialogStatus],"destroy-on-close":!0,visible:t.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.history,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-history"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"180px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.history.getdataListParm.parammaps.date,callback:function(e){t.$set(t.history.getdataListParm.parammaps,"date",e)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleApplication}},[t._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.history.listLoading,expression:"history.listLoading"}],key:t.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.history.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.history.pageNum-1)*t.history.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"软件牛头数","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.softccount))])]}}])}),a("el-table-column",{attrs:{label:"实际牛头数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ccount))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurCcount(e.row)}},model:{value:e.row.ccount,callback:function(a){t.$set(e.row,"ccount",a)},expression:"scope.row.ccount"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"系数(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ratio))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurRatio(e.row)}},model:{value:e.row.ratio,callback:function(a){t.$set(e.row,"ratio",a)},expression:"scope.row.ratio"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"系数头数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ccountratio))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return t.blurCcountratio(e.row)}},model:{value:e.row.ccountratio,callback:function(a){t.$set(e.row,"ccountratio",a)},expression:"scope.row.ccountratio"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"配方模板","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方模板"},on:{change:function(a){t.changeRecipeTemplate(a,e.row)}},model:{value:e.row.ftid,callback:function(a){t.$set(e.row,"ftid",a)},expression:"scope.row.ftid"}},t._l(t.recipeTemplateList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),t.history.isPtsfname?a("el-table-column",{attrs:{label:"补料配方","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ptsfname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"补料配方"},on:{change:function(a){t.changeFeedingFormula(a,e.row)}},model:{value:e.row.ptsfid,callback:function(a){t.$set(e.row,"ptsfid",a)},expression:"scope.row.ptsfid"}},t._l(t.feedingFormulaList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}],null,!1,3757162177)}):t._e(),t.history.isRW1?a("el-table-column",{attrs:{label:"第一班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isOneWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r1,callback:function(a){t.$set(e.row,"r1",a)},expression:"scope.row.r1"}}):t._e()]}}],null,!1,3332630957)}):t._e(),t.history.isRW1?a("el-table-column",{attrs:{label:"第一班重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW(e.row)}},model:{value:e.row.w1,callback:function(a){t.$set(e.row,"w1",a)},expression:"scope.row.w1"}}):t._e()]}}],null,!1,219125184)}):t._e(),t.table.isRW2?a("el-table-column",{attrs:{label:"第二班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isTwoWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r2,callback:function(a){t.$set(e.row,"r2",a)},expression:"scope.row.r2"}}):t._e()]}}],null,!1,1521340005)}):t._e(),t.history.isRW2?a("el-table-column",{attrs:{label:"第二班重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW2(e.row)}},model:{value:e.row.w2,callback:function(a){t.$set(e.row,"w2",a)},expression:"scope.row.w2"}}):t._e()]}}],null,!1,3154295090)}):t._e(),t.history.isRW3?a("el-table-column",{attrs:{label:"第三班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:e.row.isThreeWeight},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r3,callback:function(a){t.$set(e.row,"r3",a)},expression:"scope.row.r3"}}):t._e()]}}],null,!1,2808300679)}):t._e(),t.history.isRW3?a("el-table-column",{attrs:{label:"第三班重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isThreeWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW3(e.row)}},model:{value:e.row.w3,callback:function(a){t.$set(e.row,"w3",a)},expression:"scope.row.w3"}}):t._e()]}}],null,!1,647352753)}):t._e(),t.table.isRW4?a("el-table-column",{attrs:{label:"第四班比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.r4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:"scope.row.isFourWeight"},on:{blur:function(a){return t.blurR(e.row)}},model:{value:e.row.r4,callback:function(a){t.$set(e.row,"r4",a)},expression:"scope.row.r4"}}):t._e()]}}],null,!1,2476780071)}):t._e(),t.history.isRW4?a("el-table-column",{attrs:{label:"第四班重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.w4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:e.row.isFourWeight,step:"0.01",type:"number"},on:{blur:function(a){return t.blurW4(e.row)}},model:{value:e.row.w4,callback:function(a){t.$set(e.row,"w4",a)},expression:"scope.row.w4"}}):t._e()]}}],null,!1,492430774)}):t._e(),a("el-table-column",{attrs:{label:"总比例(%)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sumr))])]}}])}),a("el-table-column",{attrs:{label:"投喂量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedweight))])]}}])}),a("el-table-column",{attrs:{label:"配方重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftweight))])]}}])}),t.history.isPtsfname?a("el-table-column",{attrs:{label:"补料重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.supplyweight))])]}}],null,!1,2371522197)}):t._e()],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.history.total>0,expression:"history.total>0"}],attrs:{total:t.history.total,page:t.history.getdataListParm.offset,limit:t.history.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.history.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.history.getdataListParm,"pagecount",e)},pagination:t.getHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:t.textMap[t.nutritional.dialogStatus],"destroy-on-close":!0,visible:t.nutritional.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.nutritional,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-nutritional"},[a("h4",{staticStyle:{position:"absolute",top:"-5px",left:"140px",font:"18px/24px ''",color:"#303133"}},[t._v("栏舍:")]),a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:t.rules,model:t.nutritional.temp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"类别",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:t.nutritional.disabledCowclass,filterable:"",placeholder:""},model:{value:t.nutritional.temp.cowclassid,callback:function(e){t.$set(t.nutritional.temp,"cowclassid",e)},expression:"nutritional.temp.cowclassid"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"月龄",prop:"avgmonthage"}},[a("el-input",{ref:"avgmonthage",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.avgmonthage,callback:function(e){t.$set(t.nutritional.temp,"avgmonthage",e)},expression:"nutritional.temp.avgmonthage"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"体重(kg)",prop:"bw"}},[a("el-input",{ref:"bw",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.bw,callback:function(e){t.$set(t.nutritional.temp,"bw",e)},expression:"nutritional.temp.bw"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"日增重(kg)",prop:"dayw"}},[a("el-input",{ref:"dayw",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.dayw,callback:function(e){t.$set(t.nutritional.temp,"dayw",e)},expression:"nutritional.temp.dayw"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"胎次(次)",prop:"fetal"}},[a("el-input",{ref:"fetal",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.fetal,callback:function(e){t.$set(t.nutritional.temp,"fetal",e)},expression:"nutritional.temp.fetal"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"泌乳天数(天)",prop:"avgdim"}},[a("el-input",{ref:"avgdim",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.avgdim,callback:function(e){t.$set(t.nutritional.temp,"avgdim",e)},expression:"nutritional.temp.avgdim"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"怀孕天数(天)",prop:"dayspre"}},[a("el-input",{ref:"dayspre",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.dayspre,callback:function(e){t.$set(t.nutritional.temp,"dayspre",e)},expression:"nutritional.temp.dayspre"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"产奶量(kg)",prop:"product"}},[a("el-input",{ref:"product",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.product,callback:function(e){t.$set(t.nutritional.temp,"product",e)},expression:"nutritional.temp.product"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳脂率(%)",prop:"fat"}},[a("el-input",{ref:"fat",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.fat,callback:function(e){t.$set(t.nutritional.temp,"fat",e)},expression:"nutritional.temp.fat"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳蛋白率(%)",prop:"pro"}},[a("el-input",{ref:"pro",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.pro,callback:function(e){t.$set(t.nutritional.temp,"pro",e)},expression:"nutritional.temp.pro"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳糖率(%)",prop:"lactose"}},[a("el-input",{ref:"lactose",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.lactose,callback:function(e){t.$set(t.nutritional.temp,"lactose",e)},expression:"nutritional.temp.lactose"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"温度(℃)",prop:"tem"}},[a("el-input",{ref:"tem",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:t.nutritional.temp.tem,callback:function(e){t.$set(t.nutritional.temp,"tem",e)},expression:"nutritional.temp.tem"}})],1)],1)],1)],1),a("div",{staticStyle:{position:"relative",height:"50px"}},[a("el-button",{staticClass:"success",staticStyle:{position:"absolute",left:"0",right:"0",margin:"0 auto"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.assessmentData()}}},[t._v("评估")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.listLoading,expression:"nutritional.listLoading"}],key:t.nutritional.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.nutritional.pageNum-1)*t.nutritional.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"指标","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.standard))])]}}])}),a("el-table-column",{attrs:{label:"奶牛需要","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowneed))])]}}])}),a("el-table-column",{attrs:{label:"饲料提供","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedprov))])]}}])}),a("el-table-column",{attrs:{label:"实际执行","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actprov))])]}}])}),a("el-table-column",{attrs:{label:"相差","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.diff))])]}}])}),a("el-table-column",{attrs:{label:"粗料提供","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cprov))])]}}])}),a("el-table-column",{attrs:{label:"精料提供","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.jprov))])]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.nutritional.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("ac1f"),a("1276"),a("2934")),l=a("333d"),n=(a("ed08"),a("5c96")),o=a("a78e"),c=a.n(o),d={inject:["reload"],name:"DhedFormula",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"getFTSWList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getFTBLList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],recipeTemplateList:[],feedingFormulaList:[],livestockTypeList:[],rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},table:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},rwList:[],isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isEnableSupplyFeed"}},isRW1:!1,isRW2:!1,isRW3:!1,isRW4:!1,getdataListParm3:{name:"getSysoptEnable1",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}},RWLength:""},selectList:[],nutritional:{dialogFormVisible:!1,dialogStatus:"",listLoading1:!0,getdataListParm1:{name:"getnurj",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:""}},disabledCowclass:!1,temp:{},tableKey:0,list:[],total2:0,listLoading2:!0,getdataListParm2:{name:"judgenurV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",cowclassid:""}}},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFPListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isEnableSupplyFeed"}},isRW1:!1,isRW2:!1,isRW3:!1,isRW4:!1,getdataListParm3:{name:"getSysoptEnable1",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}},getdataDateParm:{name:"getFPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},textMap:{Nutritional:"营养评估",history:"历史记录"},focusWRow:{},focusWRow2:{},focusWRow3:{},focusWRow4:{},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getIsDisplay(),this.getDownList()},methods:{getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.recipeTemplateList=e.data.getFTSWList.list,t.feedingFormulaList=e.data.getFTBLList.list,t.livestockTypeList=e.data.getCowclassListEnable.list}))},getIsDisplay:function(){var t=this;Object(r["d"])(this.table.getdataListParm2).then((function(e){console.log(e.data.list[0].inforvalue),null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(r["d"])(this.table.getdataListParm3).then((function(e){console.log(e.data.list[0].inforvalue),null!==e.data.list?(t.table.RWLength=e.data.list[0].inforvalue,1==e.data.list[0].inforvalue?(t.table.isRW1=!0,t.table.isRW2=!1,t.table.isRW3=!1,t.table.isRW4=!1):2==e.data.list[0].inforvalue?(t.table.isRW1=!0,t.table.isRW2=!0,t.table.isRW3=!1,t.table.isRW4=!1):3==e.data.list[0].inforvalue?(t.table.isRW1=!0,t.table.isRW2=!0,t.table.isRW3=!0,t.table.isRW4=!1):4==e.data.list[0].inforvalue&&(t.table.isRW1=!0,t.table.isRW2=!0,t.table.isRW3=!0,t.table.isRW4=!0)):(t.table.isRW1=!1,t.table.isRW2=!1,t.table.isRW3=!1,t.table.isRW4=!1)})),this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)if(t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1),void 0!=e.data.list[a].ftid&&""!=e.data.list[a].ftname||(t.$set(e.data.list[a],"ftid",""),t.$set(e.data.list[a],"ftname","")),void 0!=e.data.list[a].ptsfid&&""!=e.data.list[a].ptsfname||(t.$set(e.data.list[a],"ptsfid",""),t.$set(e.data.list[a],"ptsfname","")),void 0==e.data.list[a].ccount&&t.$set(e.data.list[a],"ccount",""),void 0==e.data.list[a].softccount&&t.$set(e.data.list[a],"softccount",""),void 0==e.data.list[a].ratio&&t.$set(e.data.list[a],"ratio",100),void 0==e.data.list[a].ccountratio&&t.$set(e.data.list[a],"ccountratio",""),void 0==e.data.list[a].r1&&t.$set(e.data.list[a],"r1",""),void 0==e.data.list[a].r2&&t.$set(e.data.list[a],"r2",""),void 0==e.data.list[a].r3&&t.$set(e.data.list[a],"r3",""),void 0==e.data.list[a].r4&&t.$set(e.data.list[a],"r4",""),void 0==e.data.list[a].w1&&t.$set(e.data.list[a],"w1",""),void 0==e.data.list[a].w2&&t.$set(e.data.list[a],"w2",""),void 0==e.data.list[a].w3&&t.$set(e.data.list[a],"w3",""),void 0==e.data.list[a].w4&&t.$set(e.data.list[a],"w4",""),void 0==e.data.list[a].supplyweight&&t.$set(e.data.list[a],"supplyweight",""),void 0==e.data.list[a].feedweight&&t.$set(e.data.list[a],"feedweight",""),void 0==e.data.list[a].Bfweight&&t.$set(e.data.list[a],"Bfweight",""),void 0==e.data.list[a].Sfweight&&t.$set(e.data.list[a],"Sfweight",""),void 0==e.data.list[a].isOneWeight&&t.$set(e.data.list[a],"isOneWeight",!1),void 0==e.data.list[a].isTwoWeight&&t.$set(e.data.list[a],"isTwoWeight",!1),void 0==e.data.list[a].isThreeWeight&&t.$set(e.data.list[a],"isThreeWeight",!1),void 0==e.data.list[a].isFourWeight&&t.$set(e.data.list[a],"isFourWeight",!1),void 0!==e.data.list[a].timesopt)for(var i=e.data.list[a].timesopt.split(","),s=0;s<i.length;s++)e.data.list[a]["r"+i[s].split(":")[0]]=i[s].split(":")[1],e.data.list[a]["w"+i[s].split(":")[0]]=i[s].split(":")[2];for(var r=0;r<e.data.list.length;r++)""==e.data.list[r].r1&&(e.data.list[r].r1=0),""==e.data.list[r].r2&&(e.data.list[r].r2=0),""==e.data.list[r].r3&&(e.data.list[r].r3=0),""==e.data.list[r].r4&&(e.data.list[r].r4=0),t.$set(e.data.list[r],"sumr",parseFloat(e.data.list[r].r1)+parseFloat(e.data.list[r].r2)+parseFloat(e.data.list[r].r3)+parseFloat(e.data.list[r].r4)),e.data.list[r].sumr=e.data.list[r].sumr.toFixed(2);t.table.list=e.data.list,console.log(t.table.list,"this.table.list"),t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},renderHeader:function(t,e){var a=e.column;e.$index;return t("div",[t("span",a.label),t("i",{class:"el-icon-unlock",ref:"el-icon-unlock",style:"margin-left:5px;"})])},headerClick:function(t,e){if(console.log(t,e),"第一班重量"==t.label)for(var a=0;a<this.table.list.length;a++)1==this.table.list[a].Edit&&('<i class="el-icon-unlock" style="margin-left: 5px;"></i>'==e.target.outerHTML?(e.target.className="el-icon-lock",this.$set(this.table.list[a],"isOneWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==e.target.outerHTML&&(e.target.className="el-icon-unlock",this.$set(this.table.list[a],"isOneWeight",!1)));else if("第二班重量"==t.label)for(var i=0;i<this.table.list.length;i++)1==this.table.list[i].Edit&&('<i class="el-icon-unlock" style="margin-left: 5px;"></i>'==e.target.outerHTML?(e.target.className="el-icon-lock",this.$set(this.table.list[i],"isTwoWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==e.target.outerHTML&&(e.target.className="el-icon-unlock",this.$set(this.table.list[i],"isTwoWeight",!1)));else if("第三班重量"==t.label)for(var s=0;s<this.table.list.length;s++)1==this.table.list[s].Edit&&('<i class="el-icon-unlock" style="margin-left: 5px;"></i>'==e.target.outerHTML?(e.target.className="el-icon-lock",this.$set(this.table.list[s],"isThreeWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==e.target.outerHTML&&(e.target.className="el-icon-unlock",this.$set(this.table.list[s],"isThreeWeight",!1)));else if("第四班重量"==t.label)for(var r=0;r<this.table.list.length;r++)1==this.table.list[r].Edit&&('<i class="el-icon-unlock" style="margin-left: 5px;"></i>'==e.target.outerHTML?(e.target.className="el-icon-lock",this.$set(this.table.list[r],"isFourWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==e.target.outerHTML&&(e.target.className="el-icon-unlock",this.$set(this.table.list[r],"isFourWeight",!1)))},changeRecipeTemplate:function(t,e){console.log(e.supplyweight,"row.supplyweight"),e.ftname=this.recipeTemplateList.find((function(e){return e.id==t})).tname,e.Sfweight=this.recipeTemplateList.find((function(e){return e.id==t})).Sfweight,e.SfweightLock=this.recipeTemplateList.find((function(e){return e.id==t})).SfweightLock,console.log(e.Sfweight,"row.Sfweight"),console.log(e.ccountratio,"系数头数"),console.log(e.SfweightLock,"SfweightLock"),console.log(e.ccount,"实际牛头数"),""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount)).toFixed(2)):e.ftweight="",0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight).toFixed(2):("NaN"==e.supplyweight&&(e.supplyweight=0),console.log(e.supplyweight),""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""!==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),""!==e.ccountratio&&""!==e.ftweight&&(e.ftweight=(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount)).toFixed(2)),""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount)).toFixed(2)):e.ftweight=""),console.log(e.supplyweight),"NaN"==e.supplyweight&&(e.supplyweight=0),""!==e.r1&&this.$set(e,"w1",(parseFloat(e.feedweight)*(parseFloat(e.r1)/100)).toFixed(2)),""!==e.r2&&this.$set(e,"w2",(parseFloat(e.feedweight)*(parseFloat(e.r2)/100)).toFixed(2)),""!==e.r3&&this.$set(e,"w3",(parseFloat(e.feedweight)*(parseFloat(e.r3)/100)).toFixed(2)),""!==e.r4&&this.$set(e,"w4",(parseFloat(e.feedweight)*(parseFloat(e.r4)/100)).toFixed(2))},changeFeedingFormula:function(t,e){console.log(t,"========="),""!==t?(console.log(456),e.ptsfname=this.feedingFormulaList.find((function(e){return e.id==t})).tname,e.BLweight=this.feedingFormulaList.find((function(e){return e.id==t})).Sfweight,e.BLSfweightLock=this.feedingFormulaList.find((function(e){return e.id==t})).SfweightLock):(console.log(123),e.ptsfname="",e.BLweight=0,e.BLSfweightLock=0),""!==e.ccountratio&&""!==e.ccount&&""!==e.ccount.BLweight&&""!==e.BLSfweightLock?this.$set(e,"supplyweight",(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLSfweightLock)*parseFloat(e.ccount)).toFixed(2)):e.supplyweight="",0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight):""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),""!==e.r1&&this.$set(e,"w1",(parseFloat(e.feedweight)*(parseFloat(e.r1)/100)).toFixed(2)),""!==e.r2&&this.$set(e,"w2",(parseFloat(e.feedweight)*(parseFloat(e.r2)/100)).toFixed(2)),""!==e.r3&&this.$set(e,"w3",(parseFloat(e.feedweight)*(parseFloat(e.r3)/100)).toFixed(2)),""!==e.r4&&this.$set(e,"w4",(parseFloat(e.feedweight)*(parseFloat(e.r4)/100)).toFixed(2))},blurCcount:function(t){console.log(t),"-1"!==t.ftid&&""!==t.ftid&&(console.log(this.recipeTemplateList.find((function(e){return e.id==t.ftid})).Sfweight),t.Sfweight=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).Sfweight,t.SfweightLock=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).SfweightLock),"-1"!==t.ptsfid&&""!==t.ptsfid&&1==this.table.isPtsfname&&(t.BLweight=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),t.BLweightLock=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock)),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.Sfweight&&""!==t.ccount&&(t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount)),""!==t.ccount&&""!==t.ratio?t.ccountratio=parseFloat(t.ccount)*parseFloat(t.ratio)/100:""!==t.ratio&&""!==t.ccountratio?t.ccount=100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100:""===t.ccount&&""===t.ratio||(t.ccountratio=""),console.log(t.ccountratio,t.BLweight),"undefined"==t.BLweight&&this.$set(t,"BLweight",""),console.log("BLweight",t.BLweight),console.log("ccountratio",t.ccountratio),console.log("BLweightLock",t.BLweightLock),console.log("ccount",t.ccount),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),0==this.table.isPtsfname?t.feedweight=parseFloat(t.ftweight):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""!==t.supplyweight&&""==t.ftweight?t.feedweight=parseFloat(t.supplyweight).toFixed(2):""==t.supplyweight&&""!==t.ftweight&&(t.feedweight=parseFloat(t.ftweight).toFixed(2)),""!==t.ccountratio&&""!==t.ftweight&&(t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount)),""!==t.ccountratio&&""!==t.BLweight&&(t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2))),""!==t.r1&&this.$set(t,"w1",(parseFloat(t.feedweight)*(parseFloat(t.r1)/100)).toFixed(2)),""!==t.r2&&this.$set(t,"w2",(parseFloat(t.feedweight)*(parseFloat(t.r2)/100)).toFixed(2)),""!==t.r3&&this.$set(t,"w3",(parseFloat(t.feedweight)*(parseFloat(t.r3)/100)).toFixed(2)),""!==t.r4&&this.$set(t,"w4",(parseFloat(t.feedweight)*(parseFloat(t.r4)/100)).toFixed(2))},blurRatio:function(t){console.log(t,"--------------"),"-1"!==t.ftid&&""!==t.ftid&&(t.Sfweight=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).Sfweight,t.SfweightLock=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).SfweightLock),"-1"!==t.ptsfid&&""!==t.ptsfid&&1==this.table.isPtsfname&&(t.BLweight=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),t.BLweightLock=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock)),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccount&&""!==t.ratio&&""!==t.ccountratio?t.ccountratio=parseFloat(t.ccount)*parseFloat(t.ratio)/100:""!==t.ccount&&""!==t.ccountratio?t.ratio=(100*parseFloat(t.ccountratio)/parseFloat(t.ccount)).toFixed(2):""===t.ccount&&""===t.ccountratio||(t.ratio=""),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),console.log(t.supplyweight,"补料重量"),console.log(t.ftweight,"配方重量"),0==this.table.isPtsfname?t.feedweight=parseFloat(t.ftweight).toFixed(2):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&this.$set(t,"w1",(parseFloat(t.feedweight)*(parseFloat(t.r1)/100)).toFixed(2)),""!==t.r2&&this.$set(t,"w2",(parseFloat(t.feedweight)*(parseFloat(t.r2)/100)).toFixed(2)),""!==t.r3&&this.$set(t,"w3",(parseFloat(t.feedweight)*(parseFloat(t.r3)/100)).toFixed(2)),""!==t.r4&&this.$set(t,"w4",(parseFloat(t.feedweight)*(parseFloat(t.r4)/100)).toFixed(2))},blurCcountratio:function(t){"-1"!==t.ftid&&""!==t.ftid&&(t.Sfweight=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).Sfweight,t.SfweightLock=this.recipeTemplateList.find((function(e){return e.id==t.ftid})).SfweightLock),"-1"!==t.ptsfid&&""!==t.ptsfid&&1==this.table.isPtsfname&&(t.BLweight=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),t.BLweightLock=parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock)),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccountratio&&""!==t.ccount&&""!==t.ratio?t.ratio=(100*parseFloat(t.ccountratio)/parseFloat(t.ccount)).toFixed(2):""!==t.ccount&&""!==t.ratio?t.ccountratio=parseFloat(t.ccount)*parseFloat(t.ratio)/100:""!==t.ccountratio&&""!==t.ccount?t.ratio=(100*parseFloat(t.ccountratio)/parseFloat(t.ccount)).toFixed(2):""!==t.ccountratio&&""!==t.ratio&&(t.ccount=100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),0==this.table.isPtsfname?(console.log(t),t.feedweight=parseFloat(t.ftweight).toFixed(2)):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount)).toFixed(2):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&this.$set(t,"w1",(parseFloat(t.feedweight)*(parseFloat(t.r1)/100)).toFixed(2)),""!==t.r2&&this.$set(t,"w2",(parseFloat(t.feedweight)*(parseFloat(t.r2)/100)).toFixed(2)),""!==t.r3&&this.$set(t,"w3",(parseFloat(t.feedweight)*(parseFloat(t.r3)/100)).toFixed(2)),""!==t.r4&&this.$set(t,"w4",(parseFloat(t.feedweight)*(parseFloat(t.r4)/100)).toFixed(2))},blurR:function(t){""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),""!==t.r1&&(t.w1=parseFloat(t.feedweight)*parseFloat(t.r1)/100,t.w1=t.w1.toFixed(2)),""!==t.r2&&(t.w2=parseFloat(t.feedweight)*parseFloat(t.r2)/100,t.w2=t.w2.toFixed(2)),""!==t.r3&&(t.w3=parseFloat(t.feedweight)*parseFloat(t.r3)/100,t.w3=t.w3.toFixed(2)),""!==t.r4&&(t.w4=parseFloat(t.feedweight)*parseFloat(t.r4)/100,t.w4=t.w4.toFixed(2)),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))},focusW:function(t){console.log(t),this.focusWRow=Object.assign({},t)},focusW2:function(t){console.log(t),this.focusWRow2=Object.assign({},t)},focusW3:function(t){console.log(t),this.focusWRow3=Object.assign({},t)},focusW4:function(t){console.log(t),this.focusWRow4=Object.assign({},t)},blurW:function(t){""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),console.log(t,"=======投喂量feedweight"),4==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4))),1==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isTwoWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4)).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4)).toFixed(2),t.r2=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w1))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2)))):3==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3)).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2)))):2==this.table.RWLength&&(""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),0==t.isTwoWeight?(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)).toFixed(2))):(t.r1=parseFloat(t.w1)/parseFloat(t.feedweight)*100,this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)).toFixed(2))))},blurW2:function(t){""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),console.log(t,"=======投喂量feedweight"),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4)).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=(parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4)).toFixed(2),t.r1=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(t.r2))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r3))).toFixed(2),t.r1=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r1)+parseFloat(t.r3))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2)))):3==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=(parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),1==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r3))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2)))):2==this.table.RWLength&&(0==t.isTwoWeight?(t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=parseFloat(t.feedweight)-parseFloat(t.w2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)).toFixed(2))):(t.r2=parseFloat(t.w2)/parseFloat(t.feedweight)*100,this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)).toFixed(2))))},blurW3:function(t){""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),console.log(t,"=======投喂量feedweight"),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isFourWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=(parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4)).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&1==t.isOneWeight&&1==t.isFourWeight&&(t.r3=parseFloat(t.w3)/parseFloat(t.feedweight)*100,t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4)).toFixed(2),t.r2=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(t.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&1==t.isOneWeight&&0==t.isFourWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&0==t.isOneWeight&&1==t.isFourWeight&&(t.r3=parseFloat(t.w3)/parseFloat(t.feedweight)*100,t.w2=((parseFloat(t.feedweight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r1)+parseFloat(t.r2))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w4=((parseFloat(t.feedweight)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2)))):3==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=(parseFloat(t.feedweight)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),1==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3)).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))),0==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)).toFixed(2))))},blurW4:function(t){""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),console.log(t,"=======投喂量feedweight"),4==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=(parseFloat(t.feedweight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3)).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4)).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=(parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4)).toFixed(2),t.r2=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r1))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r1))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),1==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))),0==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=(parseFloat(t.w4)/parseFloat(t.feedweight)*100).toFixed(2),t.w1=((parseFloat(t.feedweight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r1=(parseFloat(t.w1)/parseFloat(t.feedweight)*100).toFixed(2),t.w2=((parseFloat(t.feedweight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r2=(parseFloat(t.w2)/parseFloat(t.feedweight)*100).toFixed(2),t.w3=((parseFloat(t.feedweight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),t.r3=(parseFloat(t.w3)/parseFloat(t.feedweight)*100).toFixed(2),t.w1<=0&&(t.w1=0,t.r1=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)).toFixed(2))))},handleUpdate:function(t){console.log(t);for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.ftid=String(t.ftid),"-1"==t.ptsfid&&(t.ptsfid=""),t.ptsfid=String(t.ptsfid),this.table.temp.ftid=t.ftid,this.table.temp.ftname=t.ftname,this.table.temp.ptsfid=t.ptsfid,this.table.temp.ptsfname=t.ptsfname},updateData:function(t){var e=this;console.log(t),"NaN"==t.r1&&this.$set(t,"r1",0),"NaN"==t.r2&&this.$set(t,"r2",0),"NaN"==t.r3&&this.$set(t,"r3",0),"NaN"==t.r4&&this.$set(t,"r4",0),"NaN"==t.w1&&this.$set(t,"w1",0),"NaN"==t.w2&&this.$set(t,"w2",0),"NaN"==t.w3&&this.$set(t,"w3",0),"NaN"==t.w4&&this.$set(t,"w4",0),console.log(t);for(var a=[],i=1;i<=this.table.RWLength;i++){var s={};s["times"]=i,s["pastureid"]=t.pastureid,s["barid"]=t.barid,s["cowcount"]=t.ccount,s["ccountradio"]=t.ccountradio,s["ptid"]=t.ftid,""!==t.ptsfid?s["ptsid"]=t.ptsfid:s["ptsid"]="-1",s["weight"]=t["w"+i],s["tratio"]=Math.round(t["r"+i]),a.push(s)}if((0==this.table.isPtsfname||""==t.ptsfid)&&(t.ptsfid="-1",t.ptsfname=""),""==t.supplyweight&&(t.supplyweight="0"),0==this.table.isPtsfname&&(t.supplyweight="0"),console.log(t,"============"),this.$set(t,"ratio",Math.floor(100*parseFloat(t.ratio))/100),this.$set(t,"ccountratio",Math.floor(100*parseFloat(t.ccountratio))/100),t.ratio=String(t.ratio),t.ccountratio=String(t.ccountratio),t.sumr=Math.round(t.sumr),this.table.rwList=a,console.log("点击了编辑保存",t),this.table.temp.pastureid=t.pastureid,this.table.temp.id=t.id,this.table.temp.barname=t.barname,this.table.temp.barid=t.barid,this.table.temp.ccount=t.ccount,this.table.temp.ratio=t.ratio,this.table.temp.ccountratio=t.ccountratio,this.table.temp.ftid=t.ftid,this.table.temp.ftname=t.ftname,this.table.temp.ptsfid=t.ptsfid,this.table.temp.ptsfname=t.ptsfname,this.table.temp.ftweight=t.ftweight,this.table.temp.supplyweight=t.supplyweight,this.table.temp.feedweight=t.feedweight,this.table.temp.owner=t.owner,this.table.temp.sumr=t.sumr,""==t.softccount&&(t.softccount=0),""==t.r1&&(t.r1=0),""==t.r2&&(t.r2=0),""==t.r3&&(t.r3=0),""==t.r4&&(t.r4=0),""==t.w1&&(t.w1=0),""!=t.w2&&NaN!=t.w4||(t.w2=0),""!=t.w3&&NaN!=t.w4||(t.w3=0),""!=t.w4&&NaN!=t.w4||(t.w4=0),console.log(t,"==========="),this.table.temp.softccount=t.softccount,this.table.temp.r1=Math.round(t.r1),this.table.temp.r2=Math.round(t.r2),this.table.temp.r3=Math.round(t.r3),this.table.temp.r4=Math.round(t.r4),this.table.temp.w1=t.w1,this.table.temp.w2=t.w2,this.table.temp.w3=t.w3,this.table.temp.w4=t.w4,""==this.table.temp.ccount&&""==this.table.temp.ratio&&""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"实际牛头数/系数/系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ratio&&""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"系数/系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ccount)return this.$message({type:"error",message:"实际牛头数不能为空",duration:2e3}),!1;if(""==this.table.temp.ratio)return this.$message({type:"error",message:"系数不能为空",duration:2e3}),!1;if(""==this.table.temp.ccountratio)return this.$message({type:"error",message:"系数头数不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"配方模版不能为空",duration:2e3}),!1;var l=/^[1-9]\d*$/;if(!l.test(parseFloat(this.table.temp.ccount)))return this.$message({type:"error",message:"实际牛头数请输入正整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateBigFP",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,barname:t.barname,barid:t.barid,softccount:t.softccount,ccount:t.ccount,ratio:t.ratio,ccountratio:t.ccountratio,ftid:t.ftid,ftname:t.ftname,ptsfid:t.ptsfid,ptsfname:t.ptsfname,ftweight:t.ftweight,supplyweight:t.supplyweight,feedweight:t.feedweight,owner:t.owner,sumr:t.sumr}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:this.table.rwList}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"updateBigFPDetail",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",barname:t.barname,barid:"@insertSpotList.barid",times:"@insertSpotList.times",tratio:"@insertSpotList.tratio",weight:"@insertSpotList.weight",cowcount:"@insertSpotList.cowcount",ccountradio:t.ccountratio,ptid:"@insertSpotList.ptid",ptsid:"@insertSpotList.ptsid",feedweight:t.feedweight,supplyweight:t.supplyweight,ratio:t.ratio}},this.requestParam.data[2]={name:"updateLPPbyFPChange",type:"e",parammaps:{pastureid:t.pastureid,fpid:t.id}},Object(r["b"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList())}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.reload()},cellClick:function(t,e,a){console.log(e)},handleSelect:function(t){console.log("勾选数据",t),this.selectList=t},handleNutritional:function(){if(console.log("点击了营养评估"),1!==this.selectList.length)return this.$message({type:"error",message:"请选择一条栏舍信息进行营养评估",duration:2e3}),!1;console.log(this.nutritional.temp),this.nutritional.dialogStatus="Nutritional",this.nutritional.dialogFormVisible=!0,this.nutritional.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList()},getNutritionalList:function(){var t=this;this.nutritional.listLoading1=!0,Object(r["d"])(this.nutritional.getdataListParm1).then((function(e){console.log("评估上方数据",e.data.list),null!==e.data.list?(e.data.list[0].cowclassid=String(e.data.list[0].cowclassid),t.nutritional.temp=e.data.list[0],t.nutritional.disabledCowclass=!0):(t.nutritional.temp=[],t.nutritional.disabledCowclass=!1),setTimeout((function(){t.nutritional.listLoading=!1}),100)}))},assessmentData:function(){var t=this;console.log("评估保存"),this.$refs["temp"].validate((function(e){e&&(t.nutritional.getdataListParm2.parammaps.pastureid=t.selectList[0].pastureid,t.nutritional.getdataListParm2.parammaps.cowclassid=t.nutritional.temp.cowclassid,t.getNutritionalList2())}))},getNutritionalList2:function(){var t=this;this.nutritional.listLoading2=!0,Object(r["d"])(this.nutritional.getdataListParm2).then((function(e){console.log("评估下方数据",e.data.list),null!==e.data.list?(t.nutritional.list=e.data.list,t.nutritional.pageNum=e.data.pageNum,t.nutritional.pageSize=e.data.pageSize,t.nutritional.total=e.data.total):t.nutritional.list=[],setTimeout((function(){t.nutritional.listLoading2=!1}),100)}))},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["d"])(this.history.getdataDateParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.history.getdataListParm.parammaps.date=e.data.list[0].maxdate,t.getHistoryIsDisplay()):t.history.getdataListParm.parammaps.date=""}))},getHistoryIsDisplay:function(){var t=this;Object(r["d"])(this.table.getdataListParm2).then((function(e){console.log(e.data.list[0].inforvalue),null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(r["d"])(this.table.getdataListParm3).then((function(e){null!==e.data.list?1==e.data.list[0].inforvalue?(t.history.isRW1=!0,t.history.isRW2=!1,t.history.isRW3=!1,t.history.isRW4=!1):2==e.data.list[0].inforvalue?(t.history.isRW1=!0,t.history.isRW2=!0,t.history.isRW3=!1,t.history.isRW4=!1):3==e.data.list[0].inforvalue?(t.history.isRW1=!0,t.history.isRW2=!0,t.history.isRW3=!0,t.history.isRW4=!1):4==e.data.list[0].inforvalue&&(t.history.isRW1=!0,t.history.isRW2=!0,t.history.isRW3=!0,t.history.isRW4=!0):(t.history.isRW1=!1,t.history.isRW2=!1,t.history.isRW3=!1,t.history.isRW4=!1)})),this.getHistoryList()},getHistoryList:function(){var t=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){console.log("table数据",e.data.list);for(var a=0;a<e.data.list.length;a++)if(t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1),void 0!=e.data.list[a].ftid&&""!=e.data.list[a].ftname||(t.$set(e.data.list[a],"ftid",""),t.$set(e.data.list[a],"ftname","")),void 0!=e.data.list[a].ptsfid&&""!=e.data.list[a].ptsfname||(t.$set(e.data.list[a],"ptsfid",""),t.$set(e.data.list[a],"ptsfname","")),void 0==e.data.list[a].ccount&&t.$set(e.data.list[a],"ccount",""),void 0==e.data.list[a].ratio&&t.$set(e.data.list[a],"ratio","100"),void 0==e.data.list[a].ccountratio&&t.$set(e.data.list[a],"ccountratio",""),void 0==e.data.list[a].r1&&t.$set(e.data.list[a],"r1",""),void 0==e.data.list[a].r2&&t.$set(e.data.list[a],"r2",""),void 0==e.data.list[a].r3&&t.$set(e.data.list[a],"r3",""),void 0==e.data.list[a].r4&&t.$set(e.data.list[a],"r4",""),void 0==e.data.list[a].w1&&t.$set(e.data.list[a],"w1",""),void 0==e.data.list[a].w2&&t.$set(e.data.list[a],"w2",""),void 0==e.data.list[a].w3&&t.$set(e.data.list[a],"w3",""),void 0==e.data.list[a].w4&&t.$set(e.data.list[a],"w4",""),void 0==e.data.list[a].feedweight&&t.$set(e.data.list[a],"feedweight",""),void 0==e.data.list[a].Bfweight&&t.$set(e.data.list[a],"Bfweight",""),void 0==e.data.list[a].Sfweight&&t.$set(e.data.list[a],"Sfweight",""),void 0!==e.data.list[a].timesopt)for(var i=e.data.list[a].timesopt.split(","),s=0;s<i.length;s++)e.data.list[a]["r"+i[s].split(":")[0]]=i[s].split(":")[1],e.data.list[a]["w"+i[s].split(":")[0]]=i[s].split(":")[2];t.history.list=e.data.list;for(var r=0;r<e.data.list.length;r++)""==e.data.list[r].r1&&(e.data.list[r].r1=0),""==e.data.list[r].r2&&(e.data.list[r].r2=0),""==e.data.list[r].r3&&(e.data.list[r].r3=0),""==e.data.list[r].r4&&(e.data.list[r].r4=0),t.$set(e.data.list[r],"sumr",Math.round(parseFloat(e.data.list[r].r1)+parseFloat(e.data.list[r].r2)+parseFloat(e.data.list[r].r3)+parseFloat(e.data.list[r].r4)));t.history.pageNum=e.data.pageNum,t.history.pageSize=e.data.pageSize,t.history.total=e.data.total}else t.history.list=[];setTimeout((function(){t.history.listLoading=!1}),100)}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var t=this;console.log("点击了应用"),n["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFPdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=c.a.get("pastureid"),t.requestParam.parammaps.date=t.history.getdataListParm.parammaps.date,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getHistoryIsDisplay(),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消应用"})}))},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},m=d,p=(a("b98b"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"68a70993",null);e["default"]=u.exports},2625:function(t,e,a){},"26c4":function(t,e,a){},"26c41":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-steam",use:"icon-steam-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-steam"><defs><style type="text/css"></style></defs><path d="M740.224 691.2H793.6a51.2 51.2 0 1 1 0 102.4H230.4a51.2 51.2 0 1 1 0-102.4h53.376a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0h55.552a38.4 38.4 0 1 0 72.448 0zM307.2 230.4a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 281.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 409.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 537.6 256a25.6 25.6 0 0 1 25.6-25.6z m128 0a25.6 25.6 0 0 1 25.6 25.6 161.9456 161.9456 0 0 1 25.6 100.608c0 49.408-51.2 80.384-51.2 129.792a167.68 167.68 0 0 0 25.6 102.4 25.6 25.6 0 0 1-51.2 0 168.96 168.96 0 0 1-25.6-102.656c0-49.408 51.2-80.384 51.2-129.536A161.9456 161.9456 0 0 0 665.6 256a25.6 25.6 0 0 1 25.6-25.6z" p-id="3604" /></symbol>'});l.a.add(n);e["default"]=n},"26fc":function(t,e,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},2774:function(t,e,a){"use strict";var i=a("6172"),s=a.n(i);s.a},"280c":function(t,e,a){"use strict";var i=a("8bd2"),s=a.n(i);s.a},2934:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return r})),a.d(e,"i",(function(){return l})),a.d(e,"n",(function(){return n})),a.d(e,"l",(function(){return o})),a.d(e,"e",(function(){return c})),a.d(e,"f",(function(){return d})),a.d(e,"c",(function(){return m})),a.d(e,"b",(function(){return p})),a.d(e,"k",(function(){return u})),a.d(e,"j",(function(){return h})),a.d(e,"g",(function(){return f})),a.d(e,"m",(function(){return g})),a.d(e,"h",(function(){return b}));a("caad"),a("d81d"),a("d3b7"),a("2532"),a("3ca3"),a("ddb0"),a("2b3d");var i=a("b775");a("ed08");function s(t){return Object(i["a"])({url:"/authdata/GetDataByName",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/authdata/exesql",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/authdata/Dashboards",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/authdata/Updatedashboard",method:"post",data:t})}function o(t,e){return Object(i["a"])({url:"/authdata/"+e,method:"post",data:t})}function c(t){return Object(i["a"])({url:"/authdata/GetDataByNames",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/authdata/PostDataByName",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/authdata/GetArrList",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/authdata/ExecDataByConfig",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/authdata/GetRecuDataByName",method:"post",data:t})}function h(t,e){t.data.includes("Duplicate")?e({title:"失败",message:"不可以录入重复数据",type:"error",duration:2e3}):e({title:"失败",message:"数据存在错误,请校验好重新录入,不可以录入数据",type:"error",duration:2e3})}function f(t){return Object(i["a"])({url:"/authdata/UpdateDataRelation",method:"post",data:t})}function g(t,e,a,i){for(var s=[],r={},l=e,n=a,o=i,c=0,d=0,m=t.length;c<m;c++)r[t[c][l]]=t[c];for(;d<m;d++){var p=t[d],u=r[p[n]];u?(!u[o]&&(u[o]=[]),u[o].push(p)):s.push(p)}return s}function b(t,e){for(var a=0;a<t.length;a++)if(t[a].path===e&&1===t[a].editbutton)return!0;return!1}},"2a3d":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-password"><path d="M108.8 44.322H89.6v-5.36c0-9.04-3.308-24.163-25.6-24.163-23.145 0-25.6 16.881-25.6 24.162v5.361H19.2v-5.36C19.2 15.281 36.798 0 64 0c27.202 0 44.8 15.281 44.8 38.961v5.361zm-32 39.356c0-5.44-5.763-9.832-12.8-9.832-7.037 0-12.8 4.392-12.8 9.832 0 3.682 2.567 6.808 6.407 8.477v11.205c0 2.718 2.875 4.962 6.4 4.962 3.524 0 6.4-2.244 6.4-4.962V92.155c3.833-1.669 6.393-4.795 6.393-8.477zM128 64v49.201c0 8.158-8.645 14.799-19.2 14.799H19.2C8.651 128 0 121.359 0 113.201V64c0-8.153 8.645-14.799 19.2-14.799h89.6c10.555 0 19.2 6.646 19.2 14.799z" /></symbol>'});l.a.add(n);e["default"]=n},"2e2e":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍剩料记录",use:"icon-栏舍剩料记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍剩料记录"><defs><style type="text/css"></style></defs><path d="M958.6 486.2c-0.1 0.9-0.3 1.8-0.5 2.8-1.8-54.1-13.5-106.6-34.9-156.3-22.6-52.3-54.8-99.3-95.9-139.6-41.1-40.3-89-72-142.3-94.1-55.3-22.9-113.9-34.6-174.2-34.6-60.5 0-119.1 11.6-174.2 34.6-53.3 22.1-101.2 53.8-142.3 94.1s-73.4 87.3-95.9 139.6c-17.9 41-29 83.8-33.3 127.8-2.2 3.1-2.1 16.3-2.1 45.5 0 64.1 12 124.8 35.5 180.2 7.1 16.8 15.8 33.7 24.6 49.5 19.4 34.8 44.3 66.2 71.8 94.1 80.9 81.7 192.5 130.8 315.8 130 155.6-1.1 296.7-80.1 376.9-204.7 19.1-29.7 35.7-65.4 47.9-99.1 18.3-48.6 22.9-99.7 22.9-152.2v-6.1c0-5 0-8.7 0.2-11.5zM868.6 607.2c-28.9 15.9-66.8 27.9-116.5 31.4-120.5 8.4-180.8-194.3-275.6-152-178.9 79.8-280.5 64.9-338 34.8-0.3-5.9-0.4-11.8-0.4-17.8 0-201.7 167.3-365.8 372.9-365.8s373 164 373 365.7c-0.1 36-5.5 70.8-15.4 103.7z" fill="#ffffff" p-id="8596" /></symbol>'});l.a.add(n);e["default"]=n},"2e3f":function(t,e,a){},"2e48":function(t,e,a){"use strict";var i=a("d880"),s=a.n(i);s.a},"2edb":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-water",use:"icon-water-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-water"><defs><style type="text/css"></style></defs><path d="M384 714.656C384 779.456 441.312 832 512 832s128-52.544 128-117.344c0-43.2-42.656-121.408-128-234.656-85.344 113.248-128 191.456-128 234.656z" p-id="2195" /><path d="M864 64H160c-35.296 0-64 28.704-64 64v768c0 35.296 28.704 64 64 64h704c35.296 0 64-28.704 64-64V128c0-35.296-28.704-64-64-64zM256 128h512v224H256V128zM160 896V128h32v288h640V128h32l0.064 768H160z" p-id="2196" /><path d="M328 192h64v96h-64zM488 192h64v96h-64zM648 192h64v96h-64z" p-id="2197" /></symbol>'});l.a.add(n);e["default"]=n},"2f11":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol>'});l.a.add(n);e["default"]=n},"2f3f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("orderNoFilter")(e.row.order_no))+" ")]}}])}),a("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" ¥"+t._s(t._f("toThousandFilter")(e.row.price))+" ")]}}])}),a("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-tag",{attrs:{type:t._f("statusFilter")(i.status)}},[t._v(" "+t._s(i.status)+" ")])]}}])})],1)},s=[],r=(a("fb6a"),a("b775"));function l(t){return Object(r["a"])({url:"/transaction/list",method:"get",params:t})}var n={filters:{statusFilter:function(t){var e={success:"success",pending:"danger"};return e[t]},orderNoFilter:function(t){return t.substring(0,30)}},data:function(){return{list:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;l().then((function(e){t.list=e.data.items.slice(0,8)}))}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["default"]=d.exports},3:function(t,e){},3014:function(t,e,a){},3046:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol>'});l.a.add(n);e["default"]=n},"30ac":function(t,e,a){"use strict";var i=a("8a34"),s=a.n(i);s.a},"30c3":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol>'});l.a.add(n);e["default"]=n},"317d":function(t,e,a){"use strict";var i=a("b2bd"),s=a.n(i);s.a},"31c2":function(t,e,a){"use strict";a.r(e),a.d(e,"filterAsyncRoutes",(function(){return d}));a("99af"),a("4160"),a("caad"),a("45fc"),a("d3b7"),a("2532"),a("159b");var i=a("be94"),s=a("a18c"),r=a("61f7"),l=a("2934"),n=a("c1f7");function o(t){var e=[];return t.forEach((function(t){if(!Object(r["d"])(t.component)){var i={meta:{title:"",icon:""},children:[]};"Iframe"!==t.component&&("Layout"===t.component?i.component=n["a"]:i.component=a("feca")("./"+t.component+".vue").default,i.name=t.path,i.id=t.id||null,""!==t.redirect?(i.redirect=t.redirect||null,i.path="/"+t.path):i.path=t.path,1!=t.seebutton&&2!=t.seebutton||(i.meta.icon=t.icon,i.meta.title=t.title,i.meta.noCache=!0,i.children=Object(r["d"])(t.children)?[]:o(t.children),e.push(i)))}})),e}function c(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function d(t,e){var a=[];return t.forEach((function(t){var s=Object(i["a"])({},t);c(e,s)&&(s.children&&(s.children=d(s.children,e)),a.push(s))})),a}var m={routes:[],addRoutes:[],data1:{name:"getmenu",idname:"id",parammaps:{id:-1}}},p={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=s["a"].concat(e)}},u={generateRoutes:function(t,e){var a=t.commit;return new Promise((function(t,e){Object(l["d"])(m.data1).then((function(i){var s=Object(l["m"])(i.data.list,"id","parentId","children");0===s.length&&e("menus data is null");var r=o(s);r.push({path:"*",redirect:"/404",hidden:!0}),a("SET_ROUTES",r),t(r)}))}))}};e["default"]={namespaced:!0,state:m,mutations:p,actions:u}},"31f0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"角色名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.rolename,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"rolename",e)},expression:"table.getdataListParm.parammaps.rolename"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"创建人",clearable:""},model:{value:t.table.getdataListParm.parammaps.createmp,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"createmp",e)},expression:"table.getdataListParm.parammaps.createmp"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"角色名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.rolename))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.rolename,callback:function(a){t.$set(e.row,"rolename",a)},expression:"scope.row.rolename"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createdtime))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createmp))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.NoEdit&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleRole(i)}}},[t._v("页面权限")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.role.dialogStatus],visible:t.role.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.role,"dialogFormVisible",e)}}},[a("div",{staticClass:"role-details inside-base"},[a("div",{staticClass:"inside-base-main clearfix"},[a("div",{staticClass:"inside-base-cont"},[a("div",{staticClass:"role-cont clearfix"},[a("div",[a("el-table",{ref:"table",staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:t.tableData,"row-key":"id",border:"",indent:10,"select-on-indeterminate":!0,"default-expand-all":!1,"show-checkbox":"","checked-keys":t.defaultCheckedKeys,"tree-props":{children:"childList",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"name",label:"页面"}}),a("el-table-column",{attrs:{label:"查看","render-header":t.renderSeeHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-checkbox",{attrs:{indeterminate:e.row.indeterminate.seebutton,label:"查看"},on:{change:function(a){return t.fnCheckEv(e,"seebutton")}},model:{value:e.row.fnCheck.seebutton,callback:function(a){t.$set(e.row.fnCheck,"seebutton",a)},expression:"scope.row.fnCheck.seebutton"}})]}}])}),a("el-table-column",{attrs:{label:"编辑","render-header":t.renderEditHeader},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-checkbox",{attrs:{indeterminate:e.row.indeterminate.editbutton,label:"编辑"},on:{change:function(a){return t.fnCheckEv(e,"editbutton")}},model:{value:e.row.fnCheck.editbutton,callback:function(a){t.$set(e.row.fnCheck,"editbutton",a)},expression:"scope.row.fnCheck.editbutton"}})]}}])})],1)],1)])])])]),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.role.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),"role"===t.role.dialogStatus?a("el-button",{attrs:{type:"success",disabled:t.isokDisable},on:{click:function(e){return t.roleData()}}},[t._v("确认")]):t._e()],1)])],1)},s=[],r=(a("4160"),a("caad"),a("c975"),a("a434"),a("b0c0"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),m={name:"Role",components:{Pagination:d["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getRoleList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),rolename:"",createmp:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},selectList:[],role:{dialogFormVisible:!1,dialogStatus:"",temp:{}},getRecuListParm:{name:"getMenuByRole",parammaps:{pastureid:n.a.get("pastureid")}},tableData:[],defaultCheckedKeys:[],isokDisable:!1,textMap:{role:"权限管理"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="Role",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.rolename="",this.table.getdataListParm.parammaps.createmp="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,confirmStart:1,createdtime:Object(o["e"])(new Date,"{y}-{m}-{d}"),createmp:n.a.get("employename"),rolename:""})},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.empname=t.empname,this.table.temp.rolename=t.rolename,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.createmp=t.createmp,""==this.table.temp.rolename)return this.$message({type:"error",message:"角色名称不能为空",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="createRole",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("Duplicate entry");a.test(t.data)?e.$message({type:"error",message:"角色名称不可重复",duration:2e3}):Object(r["j"])(t,e.$notify)}}))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){console.log("点击了编辑");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.id=t.id,this.table.temp.empname=t.empname,this.table.temp.rolename=t.rolename,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,""==this.table.temp.rolename)return this.$message({type:"error",message:"角色名称不能为空",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateRole",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkroleuser",type:"v",parammaps:{pastureid:t.pastureid,roleid:t.id}},e.requestParam.data[1]={name:"deleteRole",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择角色信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[];for(var e=0;e<t.selectList.length;e++)t.requestParam.data[e]={name:"checkroleuser",type:"v",parammaps:{pastureid:t.selectList[e].pastureid,roleid:t.selectList[e].id}};t.requestParam.data[t.selectList.length]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[t.selectList.length].children=[],t.requestParam.data[t.selectList.length].children[0]={name:"deleteRole",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleRole:function(t){this.role.temp=Object.assign({},t),console.log("点击了行内页面权限"),this.role.dialogStatus="role",this.role.dialogFormVisible=!0,this.tableData=[],this.getRecuListParm.parammaps.roleid=t.id,this.getRoleList()},getRoleList:function(){var t=this;Object(r["d"])(this.getRecuListParm).then((function(e){null!==e.data.list&&(t.tableData=Object(r["m"])(e.data.list,"id","pid","children"),console.log(t.tableData),t.tableData.forEach((function(e,a){e.childList=e.children,t.$set(e,"fnCheck",{}),t.$set(e,"indeterminate",{seebutton:!1,editbutton:!1}),1==e.seebutton?t.$set(e.fnCheck,"seebutton",!0):0==e.seebutton?t.$set(e.fnCheck,"seebutton",!1):2==e.seebutton?t.$set(e.indeterminate,"seebutton",!0):3==e.seebutton&&t.$set(e.indeterminate,"seebutton",!1),1==e.editbutton?t.$set(e.fnCheck,"editbutton",!0):0==e.editbutton?t.$set(e.fnCheck,"editbutton",!1):2==e.seebutton?t.$set(e.indeterminate,"editbutton",!0):3==e.seebutton&&t.$set(e.indeterminate,"editbutton",!1),2==e.seebutton?t.$set(e.indeterminate,"seebutton",!0):0==e.seebutton&&t.$set(e.indeterminate,"seebutton",!1),3==e.editbutton?t.$set(e.indeterminate,"editbutton",!0):0==e.editbutton&&t.$set(e.indeterminate,"editbutton",!1),void 0!==e.childList&&e.childList.length>0&&e.childList.forEach((function(e,a){t.$set(e,"fnCheck",{}),t.$set(e,"indeterminate",{seebutton:!1,editbutton:!1}),1==e.seebutton?t.$set(e.fnCheck,"seebutton",!0):0==e.seebutton&&t.$set(e.fnCheck,"seebutton",!1),1==e.editbutton?t.$set(e.fnCheck,"editbutton",!0):0==e.editbutton&&t.$set(e.fnCheck,"editbutton",!1)}))})),console.log(t.tableData))}))},getParent:function(t,e){var a=[];if(0===t.length)return e&&a.push(t),a;var i=function e(i,s){for(var r=0,l=i.length;r<l;r++){var n=i[r];if(n.id===s){a.push(n),e(t,n.pid);break}n.childList&&e(n.childList,s)}return a};return a=i(t,e),a},fnCheckEv:function(t,e){t.row.childList&&(console.log(t.row),this.handleFnAll(t.row,t.row.fnCheck[e],t.row.indeterminate[e],e)),this.getParent(this.tableData,t.row.id).forEach((function(a,i){if("seebutton"==e)if(a.childList){var s=0;if(a.childList.forEach((function(t,a){!0===t.fnCheck[e]&&(s+=1)})),s===a.childList.length)console.log(a),a.fnCheck[e]=!0,a.indeterminate[e]=!1;else{a.fnCheck[e]=!1,a.fnCheck["editbutton"]=!1;var r=[],l=[];if(console.log(a.childList),a.childList.forEach((function(t,a){console.log(t),console.log(t.fnCheck),console.log(t.fnCheck.editbutton),r.push(t.fnCheck[e]),l.push(t.fnCheck["editbutton"])})),console.log(l),r.includes(!0))a.indeterminate[e]=!0,a.fnCheck["editbutton"]=!1,console.log(l),l.includes(!0)?a.indeterminate["editbutton"]=!0:a.indeterminate["editbutton"]=!1,a.childList.length>0&&a.childList.forEach((function(t,a){!1===t.fnCheck["editbutton"]?t.fnCheck["editbutton"]=!1:t.fnCheck["editbutton"]=t.fnCheck[e]}));else{a.indeterminate[e]=!1,console.log(a);var n=[];a.childList.length>0&&a.childList.forEach((function(t,a){t.fnCheck["editbutton"]=t.fnCheck[e],n.push(t.fnCheck["editbutton"])})),n.includes(!0)?a.indeterminate["editbutton"]=!0:a.indeterminate["editbutton"]=!1}}}else console.log(a),a.fnCheck[e]=t.row.fnCheck[e];else if("editbutton"==e)if(a.childList){var o=0;if(a.childList.forEach((function(t,a){!0===t.fnCheck[e]&&(o+=1)})),o===a.childList.length)a.fnCheck[e]=!0,a.fnCheck["seebutton"]=!0,a.indeterminate[e]=!1,a.indeterminate["seebutton"]=!1,a.childList.forEach((function(t,e){console.log(t),!1===t.fnCheck["seebutton"]&&(t.fnCheck["seebutton"]=t.fnCheck["editbutton"])})),console.log(a);else{console.log(a),a.fnCheck[e]=!1,console.log(a.fnCheck["seebutton"]),!1===a.fnCheck["seebutton"]&&(a.fnCheck["seebutton"]=!1);for(var c=[],d=0;d<a.childList.length;d++)c.push(a.childList[d].fnCheck[e]);c.includes(!0),c.includes(!0)?(!1===a.fnCheck["seebutton"]&&(a.indeterminate["seebutton"]=!0),a.indeterminate[e]=!0):a.indeterminate[e]=!1,a.childList.forEach((function(t,e){!1===t.fnCheck["seebutton"]&&(t.fnCheck["seebutton"]=t.fnCheck["editbutton"])})),console.log(a)}}else a.fnCheck[e]=t.row.fnCheck[e]}))},handleFnAll:function(t,e,a,i){if(console.log(t,e,a,i),t.fnCheck[i]=e,t.childList){var s=this;t.childList.forEach((function(r,l){t.indeterminate[i]=!1,console.log(e,a),s.handleFnAll(t.childList[l],e,a,i)}))}},dataCheckEv:function(t,e){console.log(t);var a=t.row.dataCheck[e];for(var i in console.log(t,e),t.row.dataCheck)t.row.dataCheck[i]=!1;t.row.dataCheck[e]=a,t.row.childList&&this.handleDataAll(t.row,t.row.dataCheck[e],e),this.getParent(this.tableData,t.row.id).forEach((function(t,i){for(var s in console.log(t,"==============674"),t.dataCheck)t.dataCheck[s]=!1;if(t.childList){var r=0;t.childList.forEach((function(t,a){!0===t.dataCheck[e]&&(r+=1)})),r===t.childList.length?(console.log(t,"==============689"),t.dataCheck[e]=!0):(console.log(t,"==============691"),t.dataCheck[e]=!1)}else console.log(t,"==============679"),t.dataCheck[e]=a}))},handleDataAll:function(t,e,a){for(var i in t.dataCheck)t.dataCheck[i]=!1;if(t.dataCheck[a]=e,t.childList){console.log(t,e,a);var s=this;t.childList.forEach((function(i,r){s.handleDataAll(t.childList[r],e,a)}))}else console.log(t,e,a)},renderSeeHeader:function(t,e){var a=this,i=e.column;return t("div",[t("span",i.label),t("el-checkbox",{style:"display:inline-flex;margin-left:5px;",on:{change:function(t,e){return a.selectSee(t,e,"see")}}})])},renderEditHeader:function(t,e){var a=this,i=e.column;return t("div",[t("span",i.label),t("el-checkbox",{style:"display:inline-flex;margin-left:5px;",on:{change:function(t,e){return a.selectEdit(t,e,"edit")}}})])},selectSee:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.targetEv,a=arguments.length>2?arguments[2]:void 0,i=this;e&&(this.targetEv=e),this.flag=!0!==t,this.targetEv.target.checked=t,this.targetEv.target.parentNode.className=t?"el-checkbox__input is-checked":"el-checkbox__input",i.tableData.forEach((function(e,s){i.$set(i.tableData[s],"check",t.toString()),"see"===a&&(!0===t?(e.fnCheck["seebutton"]=!0,e.childList.length>0&&e.childList.forEach((function(t,e){t.fnCheck["seebutton"]=!0}))):(e.fnCheck["seebutton"]=!1,e.childList.length>0&&e.childList.forEach((function(t,e){t.fnCheck["seebutton"]=!1}))))}))},selectEdit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.targetEv,a=arguments.length>2?arguments[2]:void 0,i=this;e&&(this.targetEv=e),console.log("进来就错了",t),this.flag=!0!==t,this.targetEv.target.checked=t,this.targetEv.target.parentNode.className=t?"el-checkbox__input is-checked":"el-checkbox__input",i.tableData.forEach((function(e,s){i.$set(i.tableData[s],"check",t.toString()),"edit"===a&&(!0===t?(e.fnCheck["editbutton"]=!0,!1===e.fnCheck["seebutton"]&&(e.fnCheck["seebutton"]=!0),e.childList.length>0&&e.childList.forEach((function(t,e){t.fnCheck["editbutton"]=!0,!1===t.fnCheck["seebutton"]&&(t.fnCheck["seebutton"]=!0)}))):(e.fnCheck["editbutton"]=!1,e.childList.length>0&&e.childList.forEach((function(t,e){t.fnCheck["editbutton"]=!1}))))}))},roleData:function(t){var e=this;console.log("点击了权限确认",this.tableData);var a=[],i=[],s=[];this.tableData.forEach((function(t,e){!0===t.fnCheck.seebutton?t.seebutton=1:t.seebutton=0,!0===t.fnCheck.editbutton?t.editbutton=1:t.editbutton=0,!0===t.indeterminate.seebutton&&(t.seebutton=2),!0===t.indeterminate.editbutton&&(t.editbutton=3),t.childList.length>0&&t.childList.forEach((function(t,e){!0===t.fnCheck.seebutton?t.seebutton=1:t.seebutton=0,!0===t.fnCheck.editbutton?t.editbutton=1:t.editbutton=0,s.push({menuid:t.menu_id,seebutton:t.seebutton,editbutton:t.editbutton})})),i.push({menuid:t.menu_id,seebutton:t.seebutton,editbutton:t.editbutton})})),i.forEach((function(t,e){a.push({menuid:t.menuid,seebutton:t.seebutton,editbutton:t.editbutton})})),s.forEach((function(t,e){a.push({menuid:t.menuid,seebutton:t.seebutton,editbutton:t.editbutton})})),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:a}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"insertRolemenu",type:"e",parammaps:{pastureid:this.role.temp.pastureid,roleid:this.role.temp.id,menuid:"@insertSpotList.menuid",seebutton:"@insertSpotList.seebutton",editbutton:"@insertSpotList.editbutton"}},Object(r["b"])(this.requestParam).then((function(t){console.log("权限菜单保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.role.dialogFormVisible=!1,e.getList())}))}}},p=m,u=(a("cad6"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"85b39154",null);e["default"]=h.exports},"333d":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},s=[];a("a9e3");Math.easeInOutQuad=function(t,e,a,i){return t/=i/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function l(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var i=n(),s=t-i,o=20,c=0;e="undefined"===typeof e?500:e;var d=function t(){c+=o;var n=Math.easeInOutQuad(c,i,s,e);l(n),c<e?r(t):a&&"function"===typeof a&&a()};d()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50,100]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&o(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&o(0,800)}}},d=c,m=(a("8de3"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"030595c8",null);e["a"]=p.exports},3392:function(t,e,a){},3415:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"剩料量(kg)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remain))])]}}])}),a("el-table-column",{attrs:{label:"应用班次","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"处理时间","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"剩料量:",prop:"remain"}},[a("el-input",{ref:"remain",staticClass:"filter-item",attrs:{placeholder:"剩料量",type:"number"},model:{value:t.create.temp.remain,callback:function(e){t.$set(t.create.temp,"remain",e)},expression:"create.temp.remain"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"班次"},model:{value:t.create.temp.times,callback:function(e){t.$set(t.create.temp,"times",e)},expression:"create.temp.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"处理时间:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,type:"datetime",placeholder:"选择处理时间",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",clearable:!1},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"MaterialRemainingRecord",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getBarfeedremainList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],remain:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBarfeedremainEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="MaterialRemainingRecord",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.remain)))return t.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;t.requestParam.name="insertBarfeedremain",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify)}}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.remain)))return t.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;t.requestParam.name="insertBarfeedremain",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify)}}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.remain)))return t.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;t.requestParam.name="updateBarfeedremain",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteBarfeedremain",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍剩料记录",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteBarfeedremain",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍剩料记录",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copybarfeedremain",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}else t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条栏舍剩料记录",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("997b"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"66b9e268",null);e["default"]=h.exports},3537:function(t,e,a){"use strict";a("c740"),a("d81d"),a("a434");var i=a("a5e0"),s=a("aa35"),r={debug:!1,state:{dimensions:[],caculCols:[],caculCols2:[],allCols:[]},addDimensionAction:function(t){this.debug&&console.log("adddimensionAction triggered with",t),t.isDimension=!0},deleteDimensionAction:function(t){this.debug&&console.log("deleteDimensionAction triggered with",t);var e=this.state.dimensions.findIndex((function(e){return e.Column===t.Column}));this.state.dimensions[e].isDimension=!1,this.state.dimensions.splice(e,1)},setDimensionsAction:function(t){this.debug&&console.log("setDimensionsAction triggered"),this.state.dimensions=t},addCaculColAction:function(t){this.debug&&console.log("addCaculColAction triggered with",t);var e=Object(i["c"])(t.Type),a=this.state.caculCols.findIndex((function(e){return e.Column===t.Column})),r={Column:t.Column,Comment:t.Comment,calculFunc:e.availableFunc[0],Type:t.Type,availableFunc:e.availableFunc.map((function(t){return{name:s["c"][t],func:t}}))};this.state.caculCols.splice(a,1,r)},addCaculColAction2:function(t){this.debug&&console.log("addCaculColAction2 triggered with",t);var e=Object(i["c"])(t.Type),a=this.state.caculCols2.findIndex((function(e){return e.Column===t.Column})),r={Column:t.Column,Comment:t.Comment,calculFunc:e.availableFunc[0],Type:t.Type,availableFunc:e.availableFunc.map((function(t){return{name:s["c"][t],func:t}}))};this.state.caculCols2.splice(a,1,r)},deleteCaculColAction:function(t){this.debug&&console.log("deleteCaculColAction triggered with",t);var e=this.state.caculCols.findIndex((function(e){return e.Column===t.Column}));this.state.caculCols.splice(e,1)},deleteCaculColAction2:function(t){this.debug&&console.log("deleteCaculColAction2 triggered with",t);var e=this.state.caculCols2.findIndex((function(e){return e.Column===t.Column}));this.state.caculCols2.splice(e,1)},setCaculColsAction:function(t){this.debug&&console.log("setCaculColsAction triggered"),this.state.caculCols=t},setCaculColsAction2:function(t){this.debug&&console.log("setCaculColsAction2 triggered"),this.state.caculCols2=t},setAllColsAction:function(t){this.debug&&console.log("setAllColsAction triggered width",t),this.state.allCols=t}};e["a"]=r},"36a6":function(t,e,a){"use strict";var i=a("668c"),s=a.n(i);s.a},"36ef":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o={mixins:[n["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(t){this.setOptions(t),console.log("watch拿到的val",t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.setOptions(this.chartData),console.log("methods拿到的this.chartData",this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.expectedData,a=t.actualData;console.log("setOptions拿到的expectedData",e),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:e,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"}]})}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=m.exports},3839:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-horizontal_bar",use:"icon-horizontal_bar-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-horizontal_bar"><defs><style type="text/css"></style></defs><path d="M496.398222 129.292929l0 147.105616-323.635717 0L172.762505 129.292929z" fill="#29C287" p-id="1978" /><path d="M894.249374 335.614707l0 147.106909-676.692041 1e-8L217.557333 335.614707z" fill="#706EE7" p-id="1979" /><path d="M614.085818 541.191758l0 147.105616-441.323313 0L172.762505 541.191758z" fill="#29C287" p-id="1980" /><path d="M732.661657 129.292929l0 147.104324-235.37389899 0L497.287758 129.292929z" fill="#706EE7" p-id="1981" /><path d="M614.575838 335.616l0 147.10561601L173.252525 482.721616 173.252525 335.616z" fill="#29C287" p-id="1982" /><path d="M682.640808 540.902141L682.640808 688.006465l-235.373899 0L447.266909 540.902141z" fill="#706EE7" p-id="1983" /><path d="M612.822626 745.015596L612.822626 892.121212l-441.323313 0L171.499313 745.015596z" fill="#29C287" p-id="1984" /><path d="M692.984242 745.015596l1e-8 147.104323-235.37389901 0L457.610343 745.01559599z" fill="#706EE7" p-id="1985" /></symbol>'});l.a.add(n);e["default"]=n},"3a04":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"供应商名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.providerName,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"providerName",e)},expression:"table.getdataListParm.parammaps.providerName"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"供应商编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.providerNumber,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"providerNumber",e)},expression:"table.getdataListParm.parammaps.providerNumber"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"供应商名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.providerName))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.providerName,callback:function(a){t.$set(e.row,"providerName",a)},expression:"scope.row.providerName"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"供应商编号","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.providerNumber))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-8位数字",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"8"},model:{value:e.row.providerNumber,callback:function(a){t.$set(e.row,"providerNumber",a)},expression:"scope.row.providerNumber"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.linkman))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.linkman,callback:function(a){t.$set(e.row,"linkman",a)},expression:"scope.row.linkman"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"联系方式","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.telphone))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"11位数字",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"11"},model:{value:e.row.telphone,callback:function(a){t.$set(e.row,"telphone",a)},expression:"scope.row.telphone"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-255个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>0,expression:"table.total>0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"Supplier",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),providerName:"",providerNumber:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="Supplier",e=Object(r["h"])(this.$store.state.user.buttons,t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.providerName="",this.table.getdataListParm.parammaps.providerNumber="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log(11);for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,providerName:"",providerNumber:"",linkman:"",telphone:"",remark:""})},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.providerNumber=t.providerNumber,this.table.temp.providerName=t.providerName,this.table.temp.linkman=t.linkman,this.table.temp.telphone=t.telphone,this.table.temp.remark=t.remark,this.table.temp.enable=t.enable,""==this.table.temp.providerName&&""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商名称/供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerName)return this.$message({type:"error",message:"供应商名称不能为空",duration:2e3}),!1;var a=/(^[\-0-9][0-9]*(.[0-9]+)?)$/;if(!a.test(parseInt(this.table.temp.providerNumber)))return console.log(this.table.temp.providerNumber),this.$message({type:"error",message:"供应商编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.telphone){var i=/^\d{11}$/;if(!i.test(this.table.temp.telphone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertProvider",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.providerNumber=t.providerNumber,this.table.temp.providerName=t.providerName,this.table.temp.linkman=t.linkman,this.table.temp.telphone=t.telphone,this.table.temp.remark=t.remark,this.table.temp.enable=t.enable,this.table.temp.id=t.id,""==this.table.temp.providerName&&""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商名称/供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerName)return this.$message({type:"error",message:"供应商名称不能为空",duration:2e3}),!1;var a=/(^[\-0-9][0-9]*(.[0-9]+)?)$/;if(!a.test(parseInt(this.table.temp.providerNumber)))return console.log(this.table.temp.providerNumber),this.$message({type:"error",message:"供应商编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.telphone){var i=/^\d{11}$/;if(!i.test(this.table.temp.telphone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateProvider",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteProvider",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择供应商信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteProvider",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("a8e8"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"e14bd516",null);e["default"]=u.exports},"3ac9":function(t,e,a){},"3b4a":function(t,e,a){},"3c0e":function(t,e,a){},"3c49":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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",[t._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:t.jump}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"},on:{click:function(e){return t.getList()}}})],1)],1)],1),a("div",{staticClass:"component-item"},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:t.parent,props:t.defaultProps},on:{"node-click":t.handleNodeClick}})],1)])],1),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:t.handleCreate}},[t._v(" 新增 ")]),a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"接口名称",clearable:""},model:{value:t.interfaceName,callback:function(e){t.interfaceName=e},expression:"interfaceName"}}),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){return t.handleFind()}}},[t._v(" 查找 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.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:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.menuname))])]}}])}),a("el-table-column",{attrs:{label:"名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),a("el-table-column",{attrs:{label:"调用方法","header-align":"center",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.method))])]}}])}),a("el-table-column",{attrs:{label:"接口名称","header-align":"center",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sqlname))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v(" 删除 ")]):t._e(),a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.handleCopy(i)}}},[t._v(" 复制 ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>=0,expression:"total>=0"}],attrs:{total:t.total,page:t.getdataListParm.offset,limit:t.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParm,"pagecount",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:t.rules,model:t.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单名称22",prop:"selectmenutree"}},[a("tree-select",{attrs:{disabled:t.disabled,height:280,width:400,size:"small",data:t.parent,"expand-all":"","default-props":t.defaultProps,"collapse-tags":"",onlyleaf:"","node-key":"id","checked-keys":t.defaultMenuCheckedKeys},on:{popoverHide:t.menu_popoverHide}})],1),a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:t.deptform.name,callback:function(e){t.$set(t.deptform,"name",e)},expression:"deptform.name"}})],1),a("el-form-item",{attrs:{label:"接口名称",prop:"sqlname"}},[a("el-input",{ref:"sqlname",model:{value:t.deptform.sqlname,callback:function(e){t.$set(t.deptform,"sqlname",e)},expression:"deptform.sqlname"}})],1),a("el-form-item",{attrs:{label:"调用方法",prop:"method"}},[a("el-input",{ref:"method",model:{value:t.deptform.method,callback:function(e){t.$set(t.deptform,"method",e)},expression:"deptform.method"}})],1),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:t.deptform.sqlstr,callback:function(e){t.$set(t.deptform,"sqlstr",e)},expression:"deptform.sqlstr"}})],1),a("el-form-item",{attrs:{label:"参数",prop:"params"}},[a("el-input",{ref:"params",model:{value:t.deptform.params,callback:function(e){t.$set(t.deptform,"params",e)},expression:"deptform.params"}})],1),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:t.deptform.request_body,callback:function(e){t.$set(t.deptform,"request_body",e)},expression:"deptform.request_body"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:t.deptform.remark,callback:function(e){t.$set(t.deptform,"remark",e)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:t.deptform.sort,callback:function(e){t.$set(t.deptform,"sort",e)},expression:"deptform.sort"}})],1),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:t.deptform.enable,callback:function(e){t.$set(t.deptform,"enable",e)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.requesttest()}}},[t._v(" 调用测试 ")])],1)],1)],1)])],1)},s=[],r=(a("c975"),a("b0c0"),a("3de8")),l=a("6724"),n=a("2934"),o=a("333d"),c=a("5c96"),d={name:"Apisql",components:{Pagination:o["a"],TreeSelect:r["a"]},directives:{waves:l["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.getList()},methods:{menu_popoverHide:function(t,e){console.log(t),this.deptform.menuid=t},jump:function(){this.$router.push("/console/menu")},menuCheckChange:function(t,e,a){console.log(t,"数据"),console.log(e,"选中状态"),console.log(a,"子树中选中状态");var i=this.selectMenu.menuid.indexOf(t.id);i<0&&1===this.selectMenu.menuid.length&&e?(console.log("only one"),this.$message({message:"只能选择一个菜单!",type:"error",showClose:!0}),this.$refs.selectmenutree.setChecked(t,!1)):0===this.selectMenu.menuid.length&&e?(this.selectMenu.menuid=[],this.deptform.menuid=t.id,this.selectMenu.menuid.push(t.id)):i>=0&&1===this.selectMenu.menuid.length&&!e&&(this.selectMenu.menuid=[])},handleFind:function(){var t=this;this.listLoading=!0,this.getdataListParm.params=[this.menuid,this.menuid,this.interfaceName,this.interfaceName],Object(n["d"])(this.getdataListParm).then((function(e){console.log(e),t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)}))},handleNodeClick:function(t){var e=this;console.log(t),(void 0===t.children||void 0!==t.children&&0===t.children.length)&&(this.listLoading=!0,this.menuid=t.id,this.getdataListParm.params=[t.id,t.id,"",""],Object(n["d"])(this.getdataListParm).then((function(t){t.data.total>0?(e.list=t.data.list,e.total=t.data.total):(e.list=[],e.total=0),setTimeout((function(){e.listLoading=!1}),100)})))},getDownList:function(){var t=this;Object(n["d"])(this.getRecuListParm).then((function(e){console.log(e),t.parent=e.data,null!==e.data.list&&(t.parent=Object(n["m"])(e.data.list,"id","parentid","children"))}))},deptenter:function(){var t=this;this.$nextTick((function(){t.$refs["remark"].focus()}))},getList:function(){var t=this;this.menuid=0,this.listLoading=!0,this.getDownList(),Object(n["d"])(this.getdataListParm).then((function(e){console.log(e),t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)}))},requesttest:function(){var t=this;this.listLoading=!0,console.log(JSON.parse(this.deptform.request_body)),Object(n["l"])(JSON.parse(this.deptform.request_body),this.deptform.method).then((function(e){console.log(e.data),t.deptform.return_body=JSON.stringify(e.data),setTimeout((function(){t.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=""},handleCreate:function(){var t=this;this.resetRequestParam(),this.deptform.menuid=this.menuid,this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.sqlname.focus()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createapisql",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.sqlstr,t.requestParam.params[1]=t.deptform.sqlname,t.requestParam.params[2]=t.deptform.params,t.requestParam.params[3]=t.deptform.menuid,t.requestParam.params[4]="tmrgo",t.requestParam.params[5]=t.deptform.sort,t.requestParam.params[6]=t.deptform.enable,t.requestParam.params[7]=t.deptform.method,t.requestParam.params[8]=t.deptform.name,t.requestParam.params[9]=t.deptform.request_body,t.requestParam.params[10]=t.deptform.return_body,Object(n["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createapisql",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.sqlstr,t.requestParam.params[1]=t.deptform.sqlname,t.requestParam.params[2]=t.deptform.params,t.requestParam.params[3]=t.menuid,t.requestParam.params[4]="tmrgo",t.requestParam.params[5]=t.deptform.sort,t.requestParam.params[6]=t.deptform.enable,t.requestParam.params[7]=t.deptform.method,t.requestParam.params[8]=t.deptform.name,t.requestParam.params[9]=t.deptform.request_body,t.requestParam.params[10]=t.deptform.return_body,Object(n["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.$refs["sqlname"].focus()})),t.getList(),t.resetRequestParam(),t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(t){var e=this;this.deptform.sqlid=t.id,null===t.menuid?this.deptform.menuid=0:this.deptform.menuid=t.menuid,this.deptform.method=t.method,this.deptform.sqlname=t.sqlname,this.deptform.sqlstr=t.sqlstr,this.deptform.params=t.params,this.deptform.request_body=t.request_body,this.deptform.return_body=t.return_body,this.deptform.name=t.name,this.deptform.remark=t.remark,this.deptform.sort=t.sort,this.deptform.enable=t.enable,0!==this.deptform.menuid?this.defaultMenuCheckedKeys=[this.deptform.menuid]:this.defaultMenuCheckedKeys=[],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["sqlname"].focus()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updateapisql",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.sqlstr,t.requestParam.params[1]=t.deptform.sqlname,t.requestParam.params[2]=t.deptform.params,t.requestParam.params[3]=t.deptform.menuid,t.requestParam.params[4]="tmrgo",t.requestParam.params[5]=t.deptform.sort,t.requestParam.params[6]=t.deptform.enable,t.requestParam.params[7]=t.deptform.method,t.requestParam.params[8]=t.deptform.name,t.requestParam.params[9]=t.deptform.request_body,t.requestParam.params[10]=t.deptform.return_body,t.requestParam.params[11]=t.deptform.sqlid,Object(n["f"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updateapisql",this.requestParam.params=[],this.requestParam.params[0]=e.sqlstr,this.requestParam.params[1]=e.sqlname,this.requestParam.params[2]=e.params,this.requestParam.params[3]=e.menuid,this.requestParam.params[4]=e.remark,this.requestParam.params[5]=e.sort,this.requestParam.params[6]=e.enable,this.requestParam.params[7]=e.method,this.requestParam.params[8]=e.name,this.requestParam.params[9]=e.request_body,this.requestParam.params[10]=e.return_body,this.requestParam.params[11]=e.id,Object(n["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleCopy:function(t){var e=this;this.requestParam={},this.requestParam.name="copySQL",this.requestParam.params=[],this.requestParam.params[0]=t.id,Object(n["f"])(this.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;c["MessageBox"].confirm("sql名称:"+t.sqlname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteapisql",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(n["f"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);e["default"]=u.exports},"3cac":function(t,e,a){},"3de8":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSelect,expression:"isShowSelect"}],staticClass:"mask",on:{click:function(e){t.isShowSelect=!t.isShowSelect}}}),a("el-popover",{attrs:{disabled:t.disabled,placement:"bottom-start",width:t.width,trigger:"manual"},on:{hide:t.popoverHide},model:{value:t.isShowSelect,callback:function(e){t.isShowSelect=e},expression:"isShowSelect"}},[a("el-tree",{ref:"tree",staticClass:"common-tree",style:t.style,attrs:{data:t.data,props:t.defaultProps,"show-checkbox":t.multiple,"node-key":t.nodeKey,disabled:t.disabled,"check-strictly":t.checkStrictly,"default-expand-all":t.expandAll,"expand-on-click-node":!1,"check-on-click-node":t.multiple,"highlight-current":!0},on:{"node-click":t.handleNodeClick,"check-change":t.handleCheckChange}}),a("el-select",{ref:"select",staticClass:"tree-select",style:t.selectStyle,attrs:{slot:"reference",size:t.size,disabled:t.disabled,placeholder:t.placeholder,multiple:t.multiple,clearable:t.clearable,"collapse-tags":t.collapseTags},on:{"remove-tag":t.removeSelectedNodes,clear:t.removeSelectedNode,change:t.changeSelectedNodes},nativeOn:{click:function(e){t.isShowSelect=!t.isShowSelect}},slot:"reference",model:{value:t.selectedData,callback:function(e){t.selectedData=e},expression:"selectedData"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)},s=[],r=(a("99af"),a("d81d"),a("a9e3"),{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}},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;",checkedIds:[],checkedData:[]}},watch:{isShowSelect:function(t){this.$refs.select.blur()},checkedKeys:function(t){t&&(this.checkedKeys=t,this.initCheckedData())}},mounted:function(){this.initCheckedData()},methods:{setSelectOption:function(t){var e={};e.value=t.key,e.label=t.label,this.options=[],this.options.push(e),this.selectedData=t.key},checkSelectedNode:function(t){var e=t[0];this.$refs.tree.setCurrentKey(e);var a=this.$refs.tree.getNode(e);this.setSelectOption(a)},checkSelectedNodes:function(t){this.$refs.tree.setCheckedKeys(t)},clearSelectedNode:function(){this.selectedData="",this.$refs.tree.setCurrentKey(null)},clearSelectedNodes:function(){for(var t=this.$refs.tree.getCheckedKeys(),e=0;e<t.length;e++)this.$refs.tree.setChecked(t[e],!1)},initCheckedData:function(){this.multiple?this.checkedKeys.length>0?this.checkSelectedNodes(this.checkedKeys):this.clearSelectedNodes():this.checkedKeys.length>0?this.checkSelectedNode(this.checkedKeys):this.clearSelectedNode()},popoverHide:function(){this.multiple?(this.checkedIds=this.$refs.tree.getCheckedKeys(),this.checkedData=this.$refs.tree.getCheckedNodes()):(this.checkedIds=this.$refs.tree.getCurrentKey(),this.checkedData=this.$refs.tree.getCurrentNode()),this.$emit("popoverHide",this.checkedIds,this.checkedData)},handleNodeClick:function(t,e){this.onlyleaf&&(!this.onlyleaf||0!==t.haschildren&&void 0!=t.children)||this.multiple||(this.setSelectOption(e),this.isShowSelect=!this.isShowSelect,this.$emit("change",this.selectedData))},handleCheckChange:function(){var t=this,e=this.$refs.tree.getCheckedKeys();this.options=e.map((function(e){var a=t.$refs.tree.getNode(e),i={};return i.value=a.key,i.label=a.label,i})),this.selectedData=this.options.map((function(t){return t.value})),this.$emit("change",this.selectedData)},removeSelectedNodes:function(t){var e=this;this.$refs.tree.setChecked(t,!1);var a=this.$refs.tree.getNode(t);!this.checkStrictly&&a.childNodes.length>0&&(this.treeToList(a).map((function(t){t.childNodes.length<=0&&e.$refs.tree.setChecked(t,!1)})),this.handleCheckChange()),this.$emit("change",this.selectedData)},treeToList:function(t){var e=[],a=[];e=e.concat(t);while(e.length){var i=e.shift();i.childNodes&&(e=e.concat(i.childNodes)),a.push(i)}return a},removeSelectedNode:function(){this.clearSelectedNode(),this.$emit("change",this.selectedData),this.popoverHide()},changeSelectedNodes:function(t){this.multiple&&t.length<=0&&this.clearSelectedNodes(),this.$emit("change",this.selectedData)}}}),l=r,n=(a("574e"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"1935c4d4",null);e["a"]=o.exports},"3df1":function(t,e,a){},"3f2c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{on:{handleSetLineChartData:t.handleSetLineChartData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":t.lineChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("raddar-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("bar-chart")],1)])],1),a("el-row",{attrs:{gutter:8}},[a("el-col",{staticStyle:{"padding-right":"8px","margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:12}}},[a("transaction-table")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("todo-list")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("box-card")],1)],1)],1)},s=[],r=a("6768"),l=a("36ef"),n=a("7b75"),o=a("2044"),c=a("5f84"),d=a("2f3f"),m=a("2544"),p=a("8269"),u={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},h={name:"DashboardAdmin",components:{PanelGroup:r["default"],LineChart:l["default"],RaddarChart:n["default"],PieChart:o["default"],BarChart:c["default"],TransactionTable:d["default"],TodoList:m["default"],BoxCard:p["default"]},data:function(){return{lineChartData:u.newVisitis}},methods:{handleSetLineChartData:function(t){this.lineChartData=u[t]}}},f=h,g=(a("c989"),a("2877")),b=Object(g["a"])(f,i,s,!1,null,"51832acc",null);e["default"]=b.exports},"3f33":function(t,e,a){"use strict";var i=a("e474"),s=a.n(i);s.a},"3f4d":function(t,e,a){},"400d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增入库单")]),a("el-button",{staticClass:"success",on:{click:t.handleInitial}},[t._v("初始化库存")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.feedid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"feedid",e)},expression:"table.getdataListParm.parammaps.feedid"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"供应商",clearable:""},model:{value:t.table.getdataListParm.parammaps.providerid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"providerid",e)},expression:"table.getdataListParm.parammaps.providerid"}},t._l(t.supplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.providerName,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"是否入库",clearable:""},model:{value:t.table.getdataListParm.parammaps.islaid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"islaid",e)},expression:"table.getdataListParm.parammaps.islaid"}},t._l(t.islaidList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"入库日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.laiddate))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.providername))])]}}])}),a("el-table-column",{attrs:{label:"入库重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"批号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.pcpde))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"是否入库","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.islaid))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createemp))])]}}])}),a("el-table-column",{attrs:{label:"创建日期","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleSee(i)}}},[t._v("查看")]),"否"==i.islaid?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.createTemp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("基础信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库日期:",prop:"laiddate"}},[a("el-date-picker",{staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,type:"date",placeholder:"入库日期",clearable:!1,"picker-options":t.create.pickerOptions1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.create.createTemp.laiddate,callback:function(e){t.$set(t.create.createTemp,"laiddate",e)},expression:"create.createTemp.laiddate"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"送货单编号:",prop:"wagonnumber"}},[a("el-input",{ref:"wagonnumber",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"送货单编号",type:"text"},model:{value:t.create.createTemp.wagonnumber,callback:function(e){t.$set(t.create.createTemp,"wagonnumber",e)},expression:"create.createTemp.wagonnumber"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"饲料名称:",prop:"feedname"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"98%"},attrs:{"value-key":"fname","fetch-suggestions":t.feedNameSearch,placeholder:"请选择饲料名称"},on:{select:t.handleSelectFeedName},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.fname))])]}}]),model:{value:t.create.createTemp.feedname,callback:function(e){t.$set(t.create.createTemp,"feedname",e)},expression:"create.createTemp.feedname"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"入库重量(kg):",prop:"operateweight"}},[a("el-input",{ref:"operateweight",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:t.blurOperateweight},model:{value:t.create.createTemp.operateweight,callback:function(e){t.$set(t.create.createTemp,"operateweight",e)},expression:"create.createTemp.operateweight"}})],1)],1),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:"请选择供应商",disabled:"see"==t.create.dialogStatus},on:{change:t.changeSupplier},model:{value:t.create.createTemp.providerid,callback:function(e){t.$set(t.create.createTemp,"providerid",e)},expression:"create.createTemp.providerid"}},t._l(t.supplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.providerName,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractcode"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择合同编号",disabled:"see"==t.create.dialogStatus},on:{change:t.changeContractNo},model:{value:t.create.createTemp.contractcode,callback:function(e){t.$set(t.create.createTemp,"contractcode",e)},expression:"create.createTemp.contractcode"}},t._l(t.contractNoList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.contractcodeCat,value:t.contractcode}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("价格信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单价(元):",prop:"pricenew"}},[a("el-input",{ref:"pricenew",staticClass:"filter-item",attrs:{disabled:""!==t.create.createTemp.contractcode,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:t.blurPricenew},model:{value:t.create.createTemp.pricenew,callback:function(e){t.$set(t.create.createTemp,"pricenew",e)},expression:"create.createTemp.pricenew"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"总价(元):",prop:"sumprice"}},[a("el-input",{ref:"sumprice",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:t.blurSumprice},model:{value:t.create.createTemp.sumprice,callback:function(e){t.$set(t.create.createTemp,"sumprice",e)},expression:"create.createTemp.sumprice"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("饲料信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"毛重:",prop:"grossweight"}},[a("el-input",{ref:"grossweight",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},model:{value:t.create.createTemp.grossweight,callback:function(e){t.$set(t.create.createTemp,"grossweight",e)},expression:"create.createTemp.grossweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"皮重:",prop:"tareweight"}},[a("el-input",{ref:"tareweight",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},model:{value:t.create.createTemp.tareweight,callback:function(e){t.$set(t.create.createTemp,"tareweight",e)},expression:"create.createTemp.tareweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"许可证号:",prop:"licence"}},[a("el-input",{ref:"licence",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"许可证号",type:"text"},model:{value:t.create.createTemp.licence,callback:function(e){t.$set(t.create.createTemp,"licence",e)},expression:"create.createTemp.licence"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"批号:",prop:"pcpde"}},[a("el-input",{ref:"pcpde",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"批号",type:"text"},model:{value:t.create.createTemp.pcpde,callback:function(e){t.$set(t.create.createTemp,"pcpde",e)},expression:"create.createTemp.pcpde"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("操作信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"创建人:",prop:"createemp"}},[a("el-input",{ref:"createemp",staticClass:"filter-item",attrs:{placeholder:"创建人",type:"text",disabled:""},model:{value:t.create.createTemp.createemp,callback:function(e){t.$set(t.create.createTemp,"createemp",e)},expression:"create.createTemp.createemp"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"创建日期:",prop:"createdate"}},[a("el-date-picker",{staticClass:"filter-item",attrs:{type:"date",placeholder:"创建日期",disabled:""},model:{value:t.create.createTemp.createdate,callback:function(e){t.$set(t.create.createTemp,"createdate",e)},expression:"create.createTemp.createdate"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"1-255字符",type:"text"},model:{value:t.create.createTemp.remark,callback:function(e){t.$set(t.create.createTemp,"remark",e)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")])],1)],1)]),a("el-dialog",{attrs:{title:t.textMap[t.initial.dialogStatus],visible:t.initial.dialogFormVisible,"close-on-click-modal":!1,width:"80%",height:"55%"},on:{"update:visible":function(e){return t.$set(t.initial,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add",staticStyle:{height:"100%",margin:"0 auto 60px"}},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-bottom":"10px"},on:{click:t.handleInitialExport}},[t._v("模板下载")]),a("el-upload",{staticStyle:{float:"left","margin-left":"10px","margin-bottom":"10px"},attrs:{action:"","auto-upload":!1,accept:".xlsx, .xls","show-file-list":!1,"on-change":t.handleInitialImport}},[a("el-button",{staticClass:"success"},[t._v("导入")])],1)],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.initial.listLoading,expression:"initial.listLoading"}],key:t.initial.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.initial.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"最多两位小数",type:"number",step:.01},model:{value:e.row.stockweight,callback:function(a){t.$set(e.row,"stockweight",a)},expression:"scope.row.stockweight"}})]}}])})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.initial.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.initialData()}}},[t._v("确认")])],1)],1)])])],1)},s=[],r=(a("7db0"),a("4160"),a("a434"),a("a9e3"),a("b680"),a("159b"),a("96cf"),a("1da1")),l=a("2934"),n=a("333d"),o=a("5c96"),c=a("a78e"),d=a.n(c),m=a("ed08"),p=a("1146"),u=a.n(p),h={name:"Warehousing",components:{Pagination:n["a"]},data:function(){return{feedNameList:[],feedNameAddList:[],supplierList:[],contractNoList:[],islaidList:[{id:0,name:"是"},{id:1,name:"否"}],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}},{name:"getProviderListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}}],table:{getdataListParm:{name:"getFeedlaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:"",feedid:"",islaid:"",providerid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(t){return t.getTime()>Date.now()}},createTemp:{laiddate:"",feedid:"",feedname:"",operateweight:"",providerid:"",providername:"",startweight:"",priceold:"",contractcode:"",pricenew:"",sumprice:"",grossweight:"",tareweight:"",licence:"",pcpde:"",createemp:"",createdate:"",remark:"",wagonnumber:""},rules:{laiddate:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedname:[{type:"string",required:!0,message:"必填",trigger:"blur"}],pricenew:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBigContractListEnable",offset:0,pagecount:"",parammaps:{pastureid:d.a.get("pastureid")}},getfeedNameParm:{name:"getFeedListEnableV2",offset:0,pagecount:10,parammaps:{pastureid:d.a.get("pastureid")}}},initial:{dialogFormVisible:!1,dialogStatus:"",rules:{},getdataListParm:{name:"getinitFeed",page:1,offset:1,pagecount:6,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,character:{fname:{text:"饲料名称",type:String},stockweight:{text:"库存重量",type:String}}},textMap:{create:"新增入库单",update:"编辑入库单",see:"查看入库单",initial:"初始化库存"},requestParam:{},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var t="Warehousing",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(l["e"])(this.requestParams).then((function(e){t.feedNameList=e.data.getFeedListEnable.list,t.supplierList=e.data.getProviderListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(m["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(m["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.islaid="",this.table.getdataListParm.parammaps.providerid=""},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),laiddate:Object(m["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",operateweight:"",providerid:"",providername:"",startweight:"",priceold:"",contractcode:"",pricenew:"",sumprice:"",grossweight:"",tareweight:"",licence:"",pcpde:"",createemp:d.a.get("employename"),createdate:Object(m["e"])(new Date,"{y}-{m}-{d}"),remark:"",wagonnumber:""},this.contractNoList=[]},changeSupplier:function(t){this.create.createTemp.providername=this.supplierList.find((function(e){return e.id==t})).providerName,""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},changeFeedName:function(t){},changeContractNo:function(t){this.create.createTemp.pricenew=this.contractNoList.find((function(e){return e.contractcode==t})).price},getContractNoList:function(){var t=this;this.create.getdataListParm.parammaps.feedid=this.create.createTemp.feedid,this.create.getdataListParm.parammaps.providerid=this.create.createTemp.providerid,Object(l["d"])(this.create.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?t.contractNoList=e.data.list:t.contractNoList=[]}))},feedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["fname"]=t,Object(l["d"])(this.create.getfeedNameParm).then((function(t){console.log("模糊查询搜索data",t.data.list),null==t.data.list?e([]):e(t.data.list)}))},handleSelectFeedName:function(t){console.log("模糊查询选中值",t),this.create.createTemp.feedname=t.fname,this.create.createTemp.feedid=t.id,this.create.createTemp.startweight=t.stockweight,this.create.createTemp.priceold=t.price,""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},blurOperateweight:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.pricenew?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=this.create.createTemp.sumprice.toFixed(2)):this.create.createTemp.sumprice=""},blurPricenew:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.pricenew?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=this.create.createTemp.sumprice.toFixed(2)):this.create.createTemp.sumprice=""},blurSumprice:function(){""!==this.create.createTemp.sumprice&&""!==this.create.createTemp.pricenew?(this.create.createTemp.operateweight=parseFloat(this.create.createTemp.sumprice)/parseFloat(this.create.createTemp.pricenew),this.create.createTemp.operateweight=this.create.createTemp.operateweight.toFixed(2)):this.create.createTemp.operateweight=""},handleCreate:function(){console.log("点击了新增入库单"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;this.$refs["createTemp"].validate((function(e){if(e){if(""==t.create.createTemp.operateweight&&""==t.create.createTemp.grossweight)return t.$message({type:"error",message:"请输入入库重量或毛重",duration:2e3}),!1;o["MessageBox"].confirm("是否确认保存当前内容",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertFeedlaid",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,laiddate:t.create.createTemp.laiddate,feedid:t.create.createTemp.feedid,feedname:t.create.createTemp.feedname,providerid:t.create.createTemp.providerid,providername:t.create.createTemp.providername,contractcode:t.create.createTemp.contractcode,operateweight:t.create.createTemp.operateweight,grossweight:t.create.createTemp.grossweight,tareweight:t.create.createTemp.tareweight,sumprice:t.create.createTemp.sumprice,licence:t.create.createTemp.licence,pcpde:t.create.createTemp.pcpde,remark:t.create.createTemp.remark,createdate:t.create.createTemp.createdate,createemp:t.create.createTemp.createemp,startweight:t.create.createTemp.startweight,priceold:t.create.createTemp.priceold,pricenew:t.create.createTemp.pricenew,wagonnumber:t.create.createTemp.wagonnumber}},""!==t.create.createTemp.operateweight&&parseFloat(t.create.createTemp.operateweight)>0&&(t.requestParam.data[1]={name:"insertFeedstorageLaid",type:"e",parammaps:{operateweight:t.create.createTemp.operateweight,pastureid:t.create.createTemp.pastureid,feedid:t.create.createTemp.feedid,fname:t.create.createTemp.fname,pcpde:t.create.createTemp.pcpde,stockweight:t.create.createTemp.startweight,price:t.create.createTemp.pricenew}}),console.log("点击了新增入库单保存",t.requestParam),Object(l["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(l["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleUpdate:function(t){console.log("点击了编辑"),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.feedid=String(t.feedid),this.create.createTemp=Object.assign({},t)},updateData:function(){var t=this;this.$refs["createTemp"].validate((function(e){if(e){if(""==t.create.createTemp.operateweight&&""==t.create.createTemp.grossweight)return t.$message({type:"error",message:"请输入入库重量或毛重",duration:2e3}),!1;o["MessageBox"].confirm("是否确认保存当前内容",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"updateFeedlaid",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,id:t.create.createTemp.id,laiddate:t.create.createTemp.laiddate,feedid:t.create.createTemp.feedid,feedname:t.create.createTemp.feedname,providerid:t.create.createTemp.providerid,providername:t.create.createTemp.providername,contractcode:t.create.createTemp.contractcode,operateweight:t.create.createTemp.operateweight,grossweight:t.create.createTemp.grossweight,tareweight:t.create.createTemp.tareweight,sumprice:t.create.createTemp.sumprice,licence:t.create.createTemp.licence,pcpde:t.create.createTemp.pcpde,remark:t.create.createTemp.remark,createdate:t.create.createTemp.createdate,createemp:t.create.createTemp.createemp,startweight:t.create.createTemp.startweight,priceold:t.create.createTemp.priceold,pricenew:t.create.createTemp.pricenew,wagonnumber:t.create.createTemp.wagonnumber}},""!==t.create.createTemp.operateweight&&parseFloat(t.create.createTemp.operateweight)>0&&(t.requestParam.data[1]={name:"insertFeedstorageLaid",type:"e",parammaps:{operateweight:t.create.createTemp.operateweight,pastureid:t.create.createTemp.pastureid,feedid:t.create.createTemp.feedid,fname:t.create.createTemp.fname,pcpde:t.create.createTemp.pcpde,stockweight:t.create.createTemp.startweight,price:t.create.createTemp.pricenew}}),console.log("点击了新增入库单保存",t.requestParam),Object(l["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(l["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleSee:function(){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleInitial:function(){console.log("点击了初始化库存"),this.initial.dialogStatus="initial",this.initial.dialogFormVisible=!0,this.getInitialList()},getInitialList:function(){var t=this;this.initial.listLoading=!0,Object(l["d"])(this.initial.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.initial.list=e.data.list,t.initial.pageNum=e.data.pageNum,t.initial.pageSize=e.data.pageSize,t.initial.total=e.data.total):t.initial.list=[],setTimeout((function(){t.initial.listLoading=!1}),100)}))},handleInitialExport:function(){console.log("点击了初始化库存导出");var t=[{tHeader:["饲料名称","库存重量"],filterVal:["fname","stockweight"],tableDatas:this.initial.list,sheetName:"初始化库存"}];Object(m["d"])(t,"初始化库存",!0,"xlsx")},handleInitialImport:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var i,s,r,l,n,o,c,d,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.raw,i){a.next=3;break}return a.abrupt("return");case 3:return a.next=5,Object(m["f"])(i);case 5:for(s=a.sent,r=u.a.read(s,{type:"binary"}),s=u.a.utils.sheet_to_json(r.Sheets[r.SheetNames[0]]),console.log(s),l=[],s.forEach((function(t){var a={};for(var i in e.initial.character){if(!e.initial.character.hasOwnProperty(i))break;var s=e.initial.character[i],r=s.text,n=s.type;s=t[r]||"","string"===n&&(s=String(s)),"number"===n&&(s=Number(s)),a[i]=s}l.push(a)})),console.log("导入处理后数据",l),n=0,o=0;o<e.initial.list.length;o++)for(c=0;c<l.length;c++)e.initial.list[o].fname==l[c].fname&&(e.initial.list[o].stockweight=l[c].stockweight,n++,l.splice(c,1));for(console.log(l),d=0;d<l.length;d++)e.$set(l[d],"msg","饲料名称与系统不匹配");console.log(n),e.$message({title:"成功",message:"导入成功:"+n+"条!",type:"success",duration:2e3}),e.$notify({title:"失败",message:"导入失败:"+l.length+"条!",type:"danger",duration:2e3}),l.length>0&&(p=[{tHeader:["饲料名称","库存重量","报错信息"],filterVal:["fname","stockweight","msg"],tableDatas:l,sheetName:"ExcelDatas1"}],Object(m["d"])(p,"初始化库存报错信息",!0,"xlsx"));case 20:case"end":return a.stop()}}),a)})))()},initialData:function(){var t=this;console.log("点击了初始化库存保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var e=/^\d+(\.\d{1,2})?$/,a=0;a<this.initial.list.length;a++)if(!e.test(parseFloat(this.initial.list[a].stockweight)))return this.$message({type:"warning",message:"库存重量不可小于0,且保留俩位小数",duration:2e3}),!1;this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"clearFS",type:"e",parammaps:{pastureid:d.a.get("pastureid")}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:this.initial.list}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertFeedstorage",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",feedid:"@insertSpotList.feedid",fname:"@insertSpotList.fname",pcpde:"@insertSpotList.pcpde",stockweight:"@insertSpotList.stockweight",price:"@insertSpotList.price"}},Object(l["b"])(this.requestParam).then((function(e){"fail"===e.msg?Object(l["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}},f=h,g=(a("838c"),a("2877")),b=Object(g["a"])(f,i,s,!1,null,"6367c80e",null);e["default"]=b.exports},4148:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-集团信息",use:"icon-集团信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-集团信息"><defs><style type="text/css"></style></defs><path d="M133.12 869.376h757.248c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H133.12c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM170.496 128v714.752c0 14.848 11.776 26.624 26.624 26.624h405.504c14.848 0 26.624-11.776 26.624-26.624V128c0-14.848-11.776-26.624-26.624-26.624H197.12c-14.848 0-26.624 11.776-26.624 26.624z m405.504 741.376H250.88c-14.848 0-26.624-11.776-26.624-26.624V181.248c0-14.848 11.776-26.624 26.624-26.624h299.008c14.848 0 26.624 11.776 26.624 26.624v688.128h-0.512z" p-id="71794" fill="#ffffff" /><path d="M576 357.376v491.008c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V410.624c0-14.848 11.776-26.624 26.624-26.624H773.12c14.848 0 26.624 11.776 26.624 26.624v437.248c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V357.376c0-14.848-11.776-26.624-26.624-26.624h-223.744c-14.848 0-26.624 11.776-26.624 26.624zM293.376 266.752h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM293.376 453.12h64c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624zM293.376 640h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z" p-id="71795" fill="#ffffff" /><path d="M719.872 453.12c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624V479.744c0-14.848 11.776-26.624 26.624-26.624z m0 171.008c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624v-79.872c0-14.848 11.776-26.624 26.624-26.624z" p-id="71796" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"42bb":function(t,e,a){},4300:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-wrapper"},["3"!==t.title?a("el-card",{staticClass:"panel-header",staticStyle:{"margin-bottom":"20px"},attrs:{"body-style":"padding:0;"}},[a("div",{staticStyle:{display:"flex","justify-content":"space-between"},attrs:{slot:"header"},slot:"header"},[a("span",[a("span",{staticClass:"back-button",on:{click:function(e){return t.$router.push({name:"BoardEchartManagement",params:{tab:"first"}})}}},[a("i",{staticClass:"el-icon-back"}),a("span",[t._v("返回")])]),"view"==t.mode?a("span",[t._v("查看仪表盘")]):t._e(),"edit"==t.mode?a("span",[t._v("编辑仪表盘")]):t._e(),"create"==t.mode?a("span",[t._v("新增仪表盘")]):t._e()])])]):t._e(),a("div",{staticClass:"tool-bar"},[a("div",[a("span",{staticClass:"db-name"},[t._v(t._s(t.dashboard.name))]),a("span",[t._v(t._s(t.dashboard.desc))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"edit"===t.mode||"create"===t.mode,expression:"mode === 'edit' || mode === 'create' "}]},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.handleLinkChart}},[t._v(" 添加图表 ")])],1)]),0!==t.charts.length?a("grid-layout",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"min-height":"500px"},attrs:{layout:t.layout||[],"col-num":24,"row-height":30,"is-draggable":"edit"===t.mode||"create"===t.mode,"is-resizable":"edit"===t.mode||"create"===t.mode,"is-mirrored":!1,"vertical-compact":!0,"pane-container":!1,margin:[10,10],"use-css-transforms":!0},on:{"layout-updated":t.handleLayoutChange}},t._l(t.layout||[],(function(e){return a("grid-item",{key:e.index,attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i},on:{resized:t.handleResize}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.chartLoading[e.i],expression:"chartLoading[item.i]"}],staticClass:"visualize-card",attrs:{"body-style":"padding: 10px;"}},[a("div",{staticClass:"operation-bar",attrs:{slot:"header"},slot:"header"},[a("div",[a("span",[t._v(t._s(t.getChartItem(e.i).chart_name))])]),a("div",[a("i",{directives:[{name:"show",rawName:"v-show",value:"edit"===t.mode||"create"===t.mode,expression:"mode === 'edit' || mode === 'create' "}],staticClass:"el-icon-edit",on:{click:function(a){t.handleEdit(t.getChartItem(e.i))}}}),a("i",{directives:[{name:"show",rawName:"v-show",value:"edit"===t.mode||"create"===t.mode,expression:"mode === 'edit' || mode === 'create' "}],staticClass:"el-icon-delete",on:{click:function(a){t.handleDelete(t.getChartItem(e.i))}}}),a("el-tooltip",{staticClass:"item",attrs:{content:t.getChartItem(e.i).desc,effect:"dark",placement:"top-end"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#409eff",cursor:"pointer"}})])],1)]),a("visualize-panel",{key:e.index,ref:"chartInstance"+e.i,refInFor:!0,attrs:{data:t.results[e.i],schema:t.getChartItem(e.i).content.allSelected,"chart-type":t.getChartItem(e.i).content.chartType,"is-edit-mode":!1,"chart-style":{height:30*e.h+10*(e.h-1)-60+"px"}},on:{"update:chartType":function(a){t.$set(t.getChartItem(e.i).content,"chartType",a)},"update:chart-type":function(a){t.$set(t.getChartItem(e.i).content,"chartType",a)}}})],1)],1)})),1):t._e(),0===t.charts.length&&"edit"===t.mode||"create"===t.mode&&0===t.charts.length?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"welcome-container"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.handleLinkChart}},[t._v(" "+t._s(t.$t("dashboard.addChart"))+" ")]),a("div",[a("el-link",{attrs:{type:"info",underline:!1}},[a("router-link",{attrs:{to:"/chartpanel/create"}},[t._v(" "+t._s(t.$t("dashboard.emptyDashboardTip"))+" ")])],1)],1)],1):t._e(),a("el-dialog",{attrs:{title:t.$t("chart.myChart"),visible:t.showChartList},on:{"update:visible":function(e){t.showChartList=e}}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.jumpCreate()}}},[t._v(" 创建新的图表 ")]),a("el-table",{attrs:{data:t.myChartList}},[a("el-table-column",{attrs:{label:t.$t("common.name"),width:"200",prop:"chart_name"}}),a("el-table-column",{attrs:{label:t.$t("common.desc"),prop:"desc"}}),a("el-table-column",{attrs:{label:t.$t("common.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"primary",disabled:t.isExisted(e.row)},on:{click:function(a){return t.linkChart(e.row)}}},[t._v("添加")]),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return t.jumpEdit2(e.row)}}},[t._v(" 编辑 ")])]}}])})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.showChartList=!1}}},[t._v("关闭")])],1)],1)],1)},s=[],r=(a("99af"),a("a623"),a("4de4"),a("7db0"),a("c740"),a("4160"),a("d81d"),a("13d5"),a("a434"),a("159b"),a("7be8")),l=a("4ab3"),n=a("f77d"),o=(a("5fd4"),a("2934")),c=(a("c638"),a("a78e")),d=a.n(c),m=a("a5e0");function p(t,e){var a={x:t[0][0],y:t[0][1]},i={x:t[1][0],y:t[1][1]},s={x:e[0][0],y:e[0][1]},r={x:e[1][0],y:e[1][1]};return a.y===s.y&&i.y===r.y&&(a.x>=s.x&&a.x<=r.x)}var u={components:{GridLayout:r["GridLayout"],GridItem:r["GridItem"],visualizePanel:l["default"]},props:{dashboard:{required:!1,type:Object,default:function(){return{}}},mode:{required:!1,type:String,default:"edit"},title:{required:!1,type:String,default:"2"}},data:function(){return{charts:[],results:{},loading:!1,layout:[],myChartList:[],showChartList:!1,chartLoading:{}}},watch:{"dashboard.dashboard_id":{immediate:!0,handler:function(t){console.log("watch的:",t),t&&this.getList(t)}}},methods:{getList:function(){var t=this;console.log("进入页面组件================="),this.charts=[],this.layout=[],this.loading=!0;var e={name:"getdashboard_chart",parammaps:{pastureid:d.a.get("pastureid"),did:this.dashboard.dashboard_id,empid:d.a.get("employeid")}};Object(o["d"])(e).then((function(e){console.log("图表数据",e),t.loading=!1,t.charts=e.data.list||[];console.log("this.dashboard",t.dashboard);var a=t.dashboard.content&&t.dashboard.content.layout||[];console.log("layout",a),console.log("this.charts",t.charts),t.charts.forEach((function(e,i){t.$set(t.results,e.chart_id,[]),t.$set(t.chartLoading,e.chart_id,!1),e.content=JSON.parse(e.content),e.content.allSelected=[],e.content.allSelected=e.content.allSelected.concat(e.content.selectedCalcul).concat(e.content.selectedCalcul2).concat(e.content.selectedDimension),console.log("chart.content.filters",e.content.filters),e.content.filters&&e.content.filters.map(m["a"]),t.exeSqlJia2(e.content,e,i),console.log(a.find((function(t){return t.id===e.chart_id})))})),t.layout=a.filter((function(e){return t.charts.find((function(t){return t.chart_id===e.id}))})),console.log("layout:",t.layout),t.handleLayoutChange()}))},jumpCreate:function(){this.$router.push({name:"ChartPanel",params:{id:"create",isEdit:"edit"}}),localStorage.setItem("ChartPanelIsEditId","create")},jumpEdit2:function(t){console.log("点击了编辑",t),this.$router.push({name:"ChartPanel",params:{id:t.id,isEdit:"edit"}}),d.a.set("ChartPanelIsEdit","edit"),d.a.set("ChartPanelIsEditId",t.id),localStorage.setItem("ChartPanelIsEditId",t.id)},exeSqlJia2:function(t,e,a){var i=this;if(this.$set(this.chartLoading,e.chart_id,!0),!t)return this.$message.warning(this.$t("dashboard.chartQueryException",e.chart_name)),void this.$set(this.chartLoading,e.chart_id,!1);var s={source_id:e.source_id,content:t,pastureid:d.a.get("pastureid")};Object(o["a"])(s).then((function(t){console.log("图的数据",t.data.list),i.$set(i.chartLoading,e.chart_id,!1),i.$set(i.results,e.chart_id,t.data)})).catch((function(){i.$set(i.chartLoading,e.chart_id,!1)}))},getChartItem:function(t){return this.charts.find((function(e){return e.chart_id===t}))},handleCaculPos:function(t){var e=[];return t.forEach((function(t){t.yOffSet=t.y+t.h,t.xOffSet=t.x+t.w,t.bottomLine=[[t.x,t.yOffSet],[t.xOffSet,t.yOffSet]],t.topLine=[[t.x,t.y],[t.xOffSet,t.y]]})),t.forEach((function(a){var i=t.every((function(t){return!p(a.bottomLine,t.topLine)}));i&&e.push(a)})),e},generatePosition:function(t,e,a){var i;if(0===e.length)i={id:t.chart_id,x:0,y:0,w:12,h:9,i:t.chart_id};else{var s=this.handleCaculPos(e),r=s.reduce((function(t,e){return t.bottomLine[0][1]>e.bottomLine[0][1]&&(t=e),t}),s[0]);i={id:t.chart_id,x:r.x,y:r.yOffSet,w:r.w,h:9,i:t.chart_id}}e.push(i)},handleShare:function(){var t=this.$createElement,e="http://".concat(location.host,"/#/fullscreendb/").concat(this.dashboard.dashboard_id);this.$msgbox({title:this.$t("dashboard.shareLink"),message:t("p",null,[t("a",{style:"color: #205cd8",attrs:{href:e,target:"_blank"}},e)])})},handleLinkChart:function(){var t=this,e={name:"getChartListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid")}};Object(o["d"])(e).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.myChartList=e.data.list,t.showChartList=!0):(t.myChartList=[],t.showChartList=!0)}))},linkChart:function(t){var e=this,a={name:"insertdashboard_chart",parammaps:{cid:t.chart_id,did:this.dashboard.dashboard_id,pastureid:d.a.get("pastureid")}};Object(o["f"])(a).then((function(t){console.log("新增保存发送参数",a),e.showChartList=!1,e.getList(),"fail"==a.msg?e.$message({type:"fail",message:"添加失败!"}):e.$message({type:"success",message:e.$t("common.saveSuccess")}),e.$router.push({name:"Addboard",params:{id:"~"+e.dashboard.dashboard_id}}),console.log("Addboard~"+e.dashboard.dashboard_id),e.$emit("fatherMethod")}))},isExisted:function(t){return this.charts.findIndex((function(e){return e.chart_id===t.chart_id}))>=0},handleEdit:function(t){this.$router.push({name:"ChartPanel",params:{id:t.chart_id,isEdit:"edit"}}),localStorage.setItem("ChartPanelIsEditId",t.chart_id)},handleDelete:function(t){var e=this;this.$confirm(this.$t("dashboard.removeChartConfirm"),this.$t("common.confirm"),{type:"warning"}).then((function(){var a=e.layout.findIndex((function(e){return e.id===t.chart_id})),i=JSON.parse(JSON.stringify(e.layout));i.splice(a,1),e.dashboard.content.layout=i;var s={name:"deletedashboard_chart",parammaps:{cid:t.chart_id,did:e.dashboard.dashboard_id,pastureid:d.a.get("pastureid")}};Object(o["f"])(s).then((function(t){console.log("删除发送参数",s),e.$message({type:"success",message:e.$t("common.deleteSuccess")}),e.getList()}))}))},handleLayoutChange:function(){if(console.log("this.mode:",this.mode),"view"!==this.mode){console.log("this.dashboard1",this.dashboard),this.dashboard.content=this.dashboard.content||{},this.dashboard.content.layout=this.layout,console.log("this.dashboard2",this.dashboard);var t={dashboard_id:this.dashboard.dashboard_id,content:this.dashboard.content,pastureid:d.a.get("pastureid")};Object(o["n"])(t).then((function(t){console.log("拖拽位置的数据",t.data.list)}))}},handleResize:function(t,e,a,i,s){this.$refs["chartInstance".concat(t)][0].$children[0].$emit("resized")},exeSql:function(t,e,a){var i=this;if(this.$set(this.chartLoading,e.chart_id,!0),!t)return this.$message.warning(this.$t("dashboard.chartQueryException",e.chart_name)),void this.$set(this.chartLoading,e.chart_id,!1);Object(n["a"])().fetch({source_id:e.source_id,sql:t}).then((function(t){i.$set(i.chartLoading,e.chart_id,!1),i.$set(i.results,e.chart_id,t.data)})).catch((function(){i.$set(i.chartLoading,e.chart_id,!1)}))}}},h=u,f=(a("65bf"),a("2877")),g=Object(f["a"])(h,i,s,!1,null,"af6fd3ea",null);e["default"]=g.exports},4360:function(t,e,a){"use strict";a("13d5"),a("d3b7"),a("ac1f"),a("5319"),a("ddb0");var i=a("2b0e"),s=a("2f62"),r=(a("b0c0"),{sidebar:function(t){return t.app.sidebar},device:function(t){return t.app.device},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},roles:function(t){return t.user.roles},buttons:function(t){return t.user.buttons},pastureid:function(t){return t.user.pastureid},pasturename:function(t){return t.user.pasturename},pasturenumber:function(t){return t.user.pasturenumber},employename:function(t){return t.user.employename},employeid:function(t){return t.user.employeid},dashchartid:function(t){return t.user.dashchartid},dashchartidisedit:function(t){return t.user.dashchartidisedit},permission_routes:function(t){return t.permission.routes}}),l=r;i["default"].use(s["a"]);var n=a("c653"),o=n.keys().reduce((function(t,e){var a=e.replace(/^\.\/(.*)\.\w+$/,"$1"),i=n(e);return t[a]=i.default,t}),{}),c=new s["a"].Store({modules:o,getters:l});e["a"]=c},"459a":function(t,e,a){},4770:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-日执行计划",use:"icon-日执行计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-日执行计划"><defs><style type="text/css"></style></defs><path d="M198.712603 746.53202c-19.296482 0-38.592965 19.296482-38.592965 38.592965s19.296482 38.592965 38.592965 38.592965h192.964824c19.296482 0 38.592965-19.296482 38.592965-38.592965s-19.296482-38.592965-38.592965-38.592965h-192.964824z m308.743719-115.778894c6.432161-6.432161 12.864322-19.296482 12.864321-25.728644 0-19.296482-19.296482-38.592965-38.592965-38.592964h-283.015075c-19.296482 0-38.592965 19.296482-38.592965 38.592964s12.864322 32.160804 38.592965 32.160804h283.015075c6.432161 0 19.296482 0 25.728644-6.43216z m495.276382-6.432161c0-12.864322-6.432161-19.296482-19.296483-25.728643-19.296482-12.864322-45.025126-6.432161-51.457286 12.864321l-147.939699 250.854272-173.668342-102.914573c-19.296482-12.864322-38.592965-6.432161-51.457286 12.864321s-6.432161 45.025126 12.864322 51.457287l205.829145 122.211055c6.432161 6.432161 19.296482 6.432161 25.728644 6.432161s12.864322-6.432161 19.296482-12.864322l167.236181-283.015075c12.864322-12.864322 12.864322-19.296482 12.864322-32.160804z" p-id="41734" fill="#ffffff" /><path d="M558.913608 939.496844h-411.658291c-32.160804 0-57.889447-25.728643-57.889448-57.889447v-746.130653c0-32.160804 25.728643-57.889447 57.889448-57.889448h585.326633c32.160804 0 57.889447 25.728643 57.889447 57.889448v283.015075c0 19.296482 19.296482 38.592965 38.592965 38.592965s38.592965-19.296482 38.592965-38.592965v-283.015075c0-70.753769-57.889447-135.075377-135.075377-135.075377H147.255317c-70.753769 0-128.643216 57.889447-128.643216 135.075377v752.562814c0 70.753769 57.889447 135.075377 135.075376 135.075377h405.226131c19.296482 0 38.592965-19.296482 38.592965-38.592965 0-25.728643-19.296482-45.025126-38.592965-45.025126z" p-id="41735" fill="#ffffff" /><path d="M494.592 276.984281h212.261307c6.432161 0 19.296482-19.296482 19.296482-38.592964s-6.432161-38.592965-19.296482-38.592965h-212.261307c-6.432161 0-19.296482 19.296482-19.296482 38.592965 0 12.864322 0 19.296482 6.43216 25.728643l12.864322 12.864321z m212.261307 102.914573h-212.261307c-6.432161 0-12.864322 19.296482-12.864322 38.592965s6.432161 38.592965 19.296483 38.592965h212.261306c6.432161 0 12.864322-19.296482 12.864322-38.592965s-6.432161-38.592965-19.296482-38.592965zM225.053588 461.314573v-20.737287h141.651618v20.099217H407.541709v-274.370252H185.812261V461.314573h39.241327z m141.651618-168.131538H225.053588v-68.592563h141.651618v68.592563z m0 109.11003H225.053588V330.829186h141.651618V402.293065z" p-id="41736" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"47f1":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol>'});l.a.add(n);e["default"]=n},"47ff":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol>'});l.a.add(n);e["default"]=n},4996:function(t,e,a){},"4a15":function(t,e,a){"use strict";var i=a("8507"),s=a.n(i);s.a},"4ab3":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pane-container"},[a(t.currentType.componentName,{tag:"component",staticClass:"visualize-window",attrs:{data:t.chartData,schema:t.schema,"chart-style":t.chartStyle}}),t.isEditMode?a("div",{staticClass:"chart-style-panel"},[a("el-form",{attrs:{"label-position":"top",size:"mini"}},[a("el-form-item",{attrs:{label:t.$t("chart.chartType")+":"}},[a("div",{staticClass:"chart-type-list"},t._l(t.chartTypeList,(function(e){return a("span",{key:e.type,class:{activedIcon:e.type===t.chartType,disabledIcon:!t.isUsable(e)},on:{click:function(a){return t.switchChartType(e)}}},[a("el-tooltip",{attrs:{content:e.name+": "+e.matchRule.desc,placement:"top"}},[a("svg-icon",{staticClass:"icon",attrs:{"icon-class":t.isUsable(e)?e.icon:e.icon+"_disabled"}})],1)],1)})),0)])],1)],1):t._e()],1)},s=[],r=(a("99af"),a("7db0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})}),l=[],n=(a("4de4"),a("4160"),a("a630"),a("caad"),a("d81d"),a("b0c0"),a("d3b7"),a("07ac"),a("6062"),a("3ca3"),a("159b"),a("ddb0"),a("313e")),o=a.n(n);function c(t){return t/1e3>=.1&&t/1e4<1?t/1e3+"k":t/1e4>=1?t/1e4+"w":t}a("817d");var d={props:{widgetMeta:{required:!1,type:Object,default:function(){}},data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart){var a=[],i=[],s={},r=this.schema.filter((function(t){return t.asxAxis})),l=this.schema.filter((function(t){return!t.asxAxis}))[0];2===r.length?(a=Array.from(new Set(t.map((function(t){return t[r[1].name]})))),a.forEach((function(t){s[t]={name:t,data:[],type:"line"}})),t.forEach((function(t){i.includes(t[r[0].name])||i.push(t[r[0].name])})),i.forEach((function(e,i){a.forEach((function(a){var n=t.find((function(t){return t[r[0].name]===e&&t[r[1].name]===a}));s[a].data[i]=n?n[l.name]:void 0}))}))):this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(s[e.name]={name:e.Comment||e.name,data:[],type:"line"}),t.forEach((function(t){e.asxAxis&&!i.includes(t[e.name])?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var n={legend:{bottom:0,type:"scroll",data:a},toolbox:{show:!0,itemSize:12,top:0,feature:{saveAsImage:{show:!0},magicType:{type:["line","bar"]},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"45px",right:"0",bottom:"50px"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},data:i},yAxis:{axisLabel:{show:!0,color:"#95a4bd",formatter:c},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(n),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},m=d,p=a("2877"),u=Object(p["a"])(m,r,l,!1,null,null,null),h=u.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-table",{style:t.chartStyle,attrs:{data:t.data,height:t.chartStyle.height,"highlight-current-row":"",border:"",stripe:"","header-cell-style":{padding:"5px 0"},"cell-style":{padding:"5px 0"}}},t._l(t.schema,(function(t){return a("el-table-column",{key:t.Column,attrs:{prop:t.Column,label:t.Comment,align:"center"}})})),1)},g=[],b={props:{data:{type:Array,default:function(){return[]}},schema:{type:Array,default:function(){return[]}},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}}},w=b,v=Object(p["a"])(w,f,g,!1,null,null,null),y=v.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},L=[];a("817d");var _={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(console.log("renderChart",t),console.log("this.schema",this.schema),this.$refs.chart){var a=[],i=[],s={};if(2===this.schema.filter((function(t){return t.asxAxis})).length){console.log("进入了多个维度====================");var r=this.schema.filter((function(t){return t.asxAxis}));console.log("dimensions",r);var l=r[0].name,n=r[1].name;console.log("data",this.data);var d=this.schema.find((function(t){return!t.asxAxis})).name;i=this.data.map((function(t){return a.push(t[n]),t[l]})),i=Array.from(new Set(i)),a=Array.from(new Set(a)),console.log("legend",a),a=a.map((function(e,a){var r=i.map((function(a){var i=t.find((function(t){return t[n]===e&&t[l]===a}));return i?i[d]:"-"}));return e+="",s[e]={name:e,data:r,type:"bar"},e}))}else console.log("进入了1个维度===================="),this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(s[e.name]={name:e.Comment||e.name,data:[],type:"bar"}),t.forEach((function(t){e.asxAxis?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var m={legend:{bottom:0,type:"scroll",data:a},toolbox:{show:!0,top:0,itemSize:12,feature:{saveAsImage:{show:!0},magicType:{type:["line","bar"]},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"45px",right:"0",bottom:"50px"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{type:"category",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},splitArea:{show:!0,interval:0},data:i},yAxis:{axisLabel:{show:!0,color:"#95a4bd",formatter:c},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(m),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},k=_,S=Object(p["a"])(k,x,L,!1,null,null,null),P=S.exports,A=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},C=[];a("817d");var $={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(s[e.name]={name:e.Comment||e.name,data:[],stack:"All",type:"bar"}),t.forEach((function(t){e.asxAxis?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var r={legend:{type:"scroll",data:a,bottom:0},toolbox:{show:!0,top:0,itemSize:12,feature:{saveAsImage:{show:!0},magicType:{type:["line","bar"]},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"45px",right:"0",bottom:"50px"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},data:i},yAxis:{axisLabel:{show:!0,color:"#95a4bd",formatter:c},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(r),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},D=$,T=Object(p["a"])(D,A,C,!1,null,null,null),F=T.exports,q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},E=[];a("817d");var O={props:{widgetMeta:{required:!1,type:Object,default:function(){}},data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart){if(0===t.length&&this.chart)return this.chart.clear(),void this.chart.setOption({graphic:[{type:"group",left:"center",top:"center",children:[{type:"text",z:100,left:"center",top:"middle",style:{fill:"#333",text:this.noDataDesc,font:"14px Microsoft YaHei"}}]}]});var a=[],i=[],s={};if(2===this.schema.filter((function(t){return t.asxAxis})).length){var r=this.schema.filter((function(t){return t.asxAxis})),l=r[0].name,n=r[1].name,c=this.schema.find((function(t){return!t.asxAxis})).name;i=this.data.map((function(t){return a.push(t[n]),t[l]})),i=Array.from(new Set(i)),a=Array.from(new Set(a)),a=a.map((function(e,a){var r=i.map((function(a){var i=t.find((function(t){return t[n]===e&&t[l]===a}));return i?i[c]:"-"}));return e+="",s[e]={name:e,data:r,type:"bar"},e}))}else this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(s[e.name]={name:e.Comment||e.name,data:[],type:"bar"}),t.forEach((function(t){e.asxAxis?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var d={legend:{bottom:0,type:"scroll",data:a},toolbox:{show:!0,feature:{saveAsImage:{show:!0},restore:{show:!0},dataZoom:{show:!1}}},grid:{top:"10%",left:"80px",bottom:"20%",right:"20px"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"value",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}}},yAxis:{type:"category",data:i,axisLabel:{show:!0,color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(d),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},N=O,R=Object(p["a"])(N,q,E,!1,null,null,null),z=R.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},M=[];a("817d");var j={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart&&t[0]){var a=[],i={};0===this.schema.filter((function(t){return t.asxAxis})).length?(i={name:"",type:"pie",radius:"55%",center:["50%","60%"],data:[],tooltip:{formatter:function(t){return"".concat(t.name,": ").concat(t.percent,"%")}},itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},t=t[0],this.schema.forEach((function(e,s){a.push(e.name),i.data[s]=i.data[s]||{},i.data[s].name=e.name,i.data[s].value=t[e.name]}))):(i={name:"",type:"pie",radius:"55%",center:["50%","40%"],data:[],tooltip:{formatter:function(t){return"".concat(t.name,": ").concat(t.percent,"%")}},itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},this.schema.forEach((function(e,s){t.forEach((function(t,s){i.data[s]=i.data[s]||{},e.asxAxis?(a.push(t[e.name]),i.data[s].name=t[e.name]):i.data[s].value=t[e.name]}))})));var s={legend:{type:"scroll",data:a,bottom:0},toolbox:{show:!0,itemSize:12,feature:{saveAsImage:{show:!0},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"80px",right:"0",bottom:"45px"},tooltip:{trigger:"item"},series:[i]};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(s),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},V=j,I=Object(p["a"])(V,B,M,!1,null,null,null),H=I.exports,U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},W=[];a("817d");var K={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(1==e.is_second?s[e.name]={name:e.Comment||e.name,data:[],type:"line"}:s[e.name]={name:e.Comment||e.name,data:[],type:"bar"}),t.forEach((function(t){e.asxAxis?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var r={legend:{type:"scroll",data:a,bottom:0},toolbox:{show:!0,top:0,itemSize:12,feature:{saveAsImage:{show:!0},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"45px",right:"0",bottom:"50px"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},data:i},yAxis:{axisLabel:{show:!0,color:"#95a4bd",formatter:c},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(r),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},G=K,Y=Object(p["a"])(G,U,W,!1,null,null,null),J=Y.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},Z=[];a("817d");var X={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(t){this.renderChart(t)}},schema:{deep:!0,handler:function(){this.renderChart(this.data)}}},mounted:function(){this.renderChart(this.data),this.$on("resized",this.handleResize),window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){this.chart&&this.chart.dispose(),window.removeEventListener("resize",this.handleResize)},methods:{handleResize:function(){this.chart&&this.chart.resize()},renderChart:function(t){var e=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(e,r){a.push(e.Comment||e.name),e.asxAxis||(1==e.is_second?s[e.name]={name:e.Comment||e.name,data:[],type:"bar"}:s[e.name]={name:e.Comment||e.name,data:[],type:"line"}),t.forEach((function(t){e.asxAxis?i.push(t[e.name]):s[e.name].data.push(t[e.name])}))}));var r={legend:{type:"scroll",data:a,bottom:0},toolbox:{show:!0,top:0,itemSize:12,feature:{saveAsImage:{show:!0},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"45px",right:"0",bottom:"50px"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},xAxis:{type:"category",axisLabel:{color:"#95a4bd"},axisLine:{lineStyle:{color:"#95a4bd"}},data:i},yAxis:{axisLabel:{show:!0,color:"#95a4bd",formatter:c},axisLine:{lineStyle:{color:"#95a4bd"}},splitLine:{lineStyle:{type:"dashed"}}},series:Object.values(s)};setTimeout((function(){e.chart||(e.chart=o.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(r),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},tt=X,et=Object(p["a"])(tt,Q,Z,!1,null,null,null),at=et.exports,it=a("9225"),st=a("aa35");function rt(t,e){var a=t.map((function(t){var a={};return e.forEach((function(e){e.calculFunc?e.lable="".concat(e.Column,"(").concat(st["c"][e.calculFunc],")"):e.lable="".concat(e.Column),e.name=e.Column,e.asxAxis=e.isDimension,a[e.Column]=t[e.Column]})),a}));return a}var lt=[{name:it["a"].t("chartType.table"),icon:"chart_table",type:"table",matchRule:{desc:it["a"].t("chartType.tableDesc"),isUsable:function(t,e){return!0}},componentName:"DataTable",dataTransfer:function(t,e){var a=t.map((function(t){var a={};return e.forEach((function(e){e.calculFunc?e.name="".concat(e.Column,"(").concat(st["c"][e.calculFunc],")"):e.name="".concat(e.Column),a[e.Column]=t[e.Column]})),a}));return a}},{name:it["a"].t("chartType.line"),icon:"chart_line",type:"line",matchRule:{desc:it["a"].t("chartType.lineDesc"),isUsable:function(t,e){return(1===t.length||2===t.length)&&e.length>=1}},componentName:"lineChart",dataTransfer:rt},{name:it["a"].t("chartType.bar"),icon:"chart_bar",type:"bar",matchRule:{desc:it["a"].t("chartType.barDesc"),isUsable:function(t,e){return(1===t.length||2===t.length)&&e.length>=1}},componentName:"BarChart",dataTransfer:rt},{name:it["a"].t("chartType.stackBar"),icon:"stack_bar",type:"stackBar",matchRule:{desc:it["a"].t("chartType.stackBarDesc"),isUsable:function(t,e){return(1===t.length||2===t.length)&&e.length>=2}},componentName:"StackBarChart",dataTransfer:rt},{name:it["a"].t("chartType.pie"),icon:"chart_pie",type:"pie",matchRule:{desc:it["a"].t("chartType.pieDesc"),isUsable:function(t,e){return 1===t.length&&1===e.length||0===t.length&&e.length>=1}},componentName:"PieChart",dataTransfer:rt},{name:it["a"].t("chartType.horizontalBar"),icon:"horizontal_bar",type:"horizontalBar",matchRule:{desc:it["a"].t("chartType.horizontalBarDesc"),isUsable:function(t,e){return(1===t.length||2===t.length)&&e.length>=1}},componentName:"HorizontalBar",dataTransfer:rt},{name:"柱线图:",icon:"barline_chart",type:"BarLineChart",matchRule:{desc:"1个纬度多个数值",isUsable:function(t,e){return 1===t.length&&e.length>=1}},componentName:"BarLineChart",dataTransfer:rt},{name:"线柱图:",icon:"linebar_chart",type:"LineBarChart",matchRule:{desc:"1个纬度多个数值",isUsable:function(t,e){return 1===t.length&&e.length>=1}},componentName:"LineBarChart",dataTransfer:rt}],nt=lt,ot=a("3537"),ct={components:{lineChart:h,DataTable:y,BarChart:P,StackBarChart:F,PieChart:H,HorizontalBar:z,BarLineChart:J,LineBarChart:at},props:{data:{type:Array,required:!0},schema:{type:Array,required:!0},chartStyle:{require:!1,type:Object},chartType:{type:String,default:"table"},isEditMode:{type:Boolean,default:!0}},data:function(){return{chartTypeList:nt}},computed:{allSelected:function(){return ot["a"].state.caculCols.concat(ot["a"].state.dimensions)},chartData:function(){return this.currentType.dataTransfer?this.currentType.dataTransfer(this.data,this.schema):this.data},currentType:function(){var t=this;return nt.find((function(e){return e.type===t.chartType}))}},watch:{allSelected:{deep:!0,handler:function(){this.currentType.matchRule.isUsable(ot["a"].state.dimensions,ot["a"].state.caculCols)||this.$emit("update:chartType","table")}}},methods:{isUsable:function(t){return t.matchRule.isUsable(ot["a"].state.dimensions,ot["a"].state.caculCols)},switchChartType:function(t){t.matchRule.isUsable(ot["a"].state.dimensions,ot["a"].state.caculCols)&&this.$emit("update:chartType",t.type)}}},dt=ct,mt=(a("9fbf"),Object(p["a"])(dt,i,s,!1,null,"92c340a0",null));e["default"]=mt.exports},"4b77":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-barline_chart",use:"icon-barline_chart-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-barline_chart"><defs><style type="text/css"></style></defs><path d="M563.2 583.68v242.346667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053334c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24v-324.266667l-119.466667 109.226667-23.893333-27.306667zM61.44 826.026667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053334c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24v-249.173334l-150.186667 129.706667 6.826667 119.466667z m252.586667-334.506667v334.506667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333H443.733333c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413334-10.24v-334.506667l-75.093334-68.266667-68.266666 68.266667z m498.346666 334.506667c0 3.413333 0 10.24 3.413334 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053333c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24V276.48l-150.186666 136.533333 6.826666 413.013334z m85.333334-709.973334l-303.786667 273.066667-204.8-184.32-327.68 283.306667v122.88l324.266667-283.306667 204.8 184.32L955.733333 180.906667" fill="#706ee7" p-id="4365" /><path d="M61.44 873.813333h901.12v34.133334H61.44z" fill="#706ee7" p-id="4366" /></symbol>'});l.a.add(n);e["default"]=n},"4c14":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍配方",use:"icon-栏舍配方-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍配方"><defs><style type="text/css"></style></defs><path d="M128 529.92h272.32a64 64 0 0 1 64 64V896a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64V593.92a64 64 0 0 1 64-64z m495.68 0H896a64 64 0 0 1 64 64V896a64 64 0 0 1-64 64H623.68a64 64 0 0 1-64-64V593.92a64 64 0 0 1 64-64zM375.808 64h272.384a64 64 0 0 1 64 64v302.08a64 64 0 0 1-64 64H375.808a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64zM138.752 596.48a12.8 12.8 0 0 0-12.8 12.8v271.36c0 7.04 5.76 12.8 12.8 12.8h250.88a12.8 12.8 0 0 0 12.8-12.8V609.28a12.8 12.8 0 0 0-12.8-12.8h-250.88z m495.68 0a12.8 12.8 0 0 0-12.8 12.8v271.232c0 7.04 5.76 12.8 12.8 12.8H885.12a12.8 12.8 0 0 0 12.8-12.8V609.28a12.8 12.8 0 0 0-12.8-12.8H634.432zM386.56 130.56a12.8 12.8 0 0 0-12.8 12.8v271.232c0 7.04 5.76 12.8 12.8 12.8h250.752a12.8 12.8 0 0 0 12.8-12.8V143.36a12.8 12.8 0 0 0-12.8-12.8H386.56z" p-id="24906" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"4d638":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-角色管理",use:"icon-角色管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-角色管理"><defs><style type="text/css"></style></defs><path d="M640.448 288H960v64h-319.552zM640 128h319.552v64H640zM640.448 448H960v64h-319.552zM470.656 588.032a162.624 162.624 0 0 0-85.888-300.928 162.816 162.816 0 0 0-162.816 162.944c0 58.304 30.784 109.12 76.864 137.92C163.904 625.728 64 748.864 64 896h66.56a254.656 254.656 0 0 1 254.08-254.592A254.784 254.784 0 0 1 639.04 896h66.56c-0.064-147.136-100.032-270.144-234.944-307.968z m-85.824-41.6a96.448 96.448 0 0 1-96.32-96.384c0-53.12 43.264-96.32 96.32-96.32a96.384 96.384 0 0 1 0 192.704z" fill="#ffffff" p-id="79483" /></symbol>'});l.a.add(n);e["default"]=n},"4df5":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol>'});l.a.add(n);e["default"]=n},"4f0d":function(t,e,a){"use strict";var i=a("d660"),s=a.n(i);s.a},"4f68":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增合同")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择供应商",clearable:""},model:{value:t.table.getdataListParm.parammaps.providerid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"providerid",e)},expression:"table.getdataListParm.parammaps.providerid"}},t._l(t.supplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.providerName,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.contractcode))])]}}])}),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.providername))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleSee(i)}}},[t._v("查看")]),a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:t.create.rules,model:t.create.createTemp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"合同编号:",prop:"contractcode"}},[a("el-input",{ref:"contractcode",staticClass:"filter-item",attrs:{placeholder:"合同编号",type:"text",disabled:"create"!==t.create.dialogStatus},model:{value:t.create.createTemp.contractcode,callback:function(e){t.$set(t.create.createTemp,"contractcode",e)},expression:"create.createTemp.contractcode"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择供应商",disabled:"create"!==t.create.dialogStatus},on:{change:t.changeSupplier},model:{value:t.create.createTemp.providerid,callback:function(e){t.$set(t.create.createTemp,"providerid",e)},expression:"create.createTemp.providerid"}},t._l(t.supplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.providerName,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"operatetime"}},[a("el-date-picker",{staticClass:"filter-item",attrs:{type:"date",placeholder:"录入日期",disabled:"see"===t.create.dialogStatus,clearable:!1},model:{value:t.create.createTemp.operatetime,callback:function(e){t.$set(t.create.createTemp,"operatetime",e)},expression:"create.createTemp.operatetime"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"添加饲料:",prop:"feedid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择饲料",disabled:"see"===t.create.dialogStatus},on:{change:t.changeFeedNameAdd},model:{value:t.create.createTemp.feedid,callback:function(e){t.$set(t.create.createTemp,"feedid",e)},expression:"create.createTemp.feedid"}},t._l(t.feedNameAddList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-switch",{attrs:{disabled:"see"===t.create.dialogStatus,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.createTemp.enable,callback:function(e){t.$set(t.create.createTemp,"enable",e)},expression:"create.createTemp.enable"}})],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoading,expression:"create.listLoading"}],key:t.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:t.create.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"饲料价格","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["see"!==t.create.dialogStatus?a("el-input",{ref:"input",staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:.01,placeholder:"最多两位小数"},model:{value:e.row.price,callback:function(a){t.$set(e.row,"price",a)},expression:"scope.row.price"}}):a("span",[t._v(" "+t._s(e.row.price))])]}}])}),"see"!==t.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{staticClass:"smallDanger",on:{click:function(e){return t.handleFeedDelete(i)}}},[t._v("删除")])]}}],null,!1,1812980990)}):t._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),m={name:"FeedContract",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getProviderListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}},{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}}],supplierList:[],feedNameAddList:[],table:{getdataListParm:{name:"getBigContractList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增合同",update:"编辑合同",see:"查看合同"},create:{dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),providerid:"",providername:"",emp:d.a.get("employename"),enable:1,operatetime:Object(n["e"])(new Date,"{y}-{m}-{d}")},rules:{contractcode:[{type:"string",required:!0,message:"必填",trigger:"blur"}],providerid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContractList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoading:!1,tableKey:0,list:[]},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var t="FeedContract",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.supplierList=e.data.getProviderListEnable.list,t.feedNameAddList=e.data.getFeedListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate(),this.getList()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),providerid:"",providername:"",emp:d.a.get("employename"),enable:1,operatetime:Object(n["e"])(new Date,"{y}-{m}-{d}")},this.create.list=[]},handleCreate:function(){console.log("点击了新增"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},changeSupplier:function(t){this.create.createTemp.providername=this.supplierList.find((function(e){return e.id==t})).providerName},changeFeedNameAdd:function(t){var e={};e.feedid=t,e.feedname=this.feedNameAddList.find((function(e){return e.id==t})).fname,e.pastureid=this.feedNameAddList.find((function(e){return e.id==t})).pastureid,e.price="",e.myId=(new Date).valueOf();for(var a=0;a<this.create.list.length;a++)if(this.create.list[a].feedid==t)return this.$message({type:"warning",message:"添加饲料不可重复",duration:2e3}),!1;this.create.list.push(e)},handleFeedDelete:function(t){for(var e=0;e<this.create.list.length;e++){if(console.log(this.create.list[e]),this.create.list[e].myId===t.myId)var a=this.create.list.indexOf(this.create.list[e]);if(a>-1)return void this.create.list.splice(a,1)}},createData:function(){var t=this;console.log("点击了新增保存"),this.$refs["createTemp"].validate((function(e){if(e){if(t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),console.log(t.create.list.length),0==t.create.list.length)return t.$message({type:"warning",message:"请添加饲料",duration:2e3}),!1;for(var a=/^\d+(\.\d{1,2})?$/,i=0;i<t.create.list.length;i++){if(""==t.create.list[i].price)return t.$message({type:"warning",message:"饲料价格不可为空",duration:2e3}),!1;if(!a.test(parseFloat(t.create.list[i].price)))return t.$message({type:"warning",message:"饲料价格最多保留两位小数",duration:2e3}),!1}t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertBigContract",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,contractcode:t.create.createTemp.contractcode,providerid:t.create.createTemp.providerid,providername:t.create.createTemp.providername,emp:t.create.createTemp.emp,enable:t.create.createTemp.enable,operatetime:t.create.createTemp.operatetime}},t.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:t.create.list}},t.requestParam.data[1].children=[],t.requestParam.data[1].children[0]={name:"insertContract",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",bigid:"@insertBigContract.LastInsertId",feedid:"@insertSpotList.feedid",feedname:"@insertSpotList.feedname",price:"@insertSpotList.price"}},Object(r["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(r["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}))},handleUpdate:function(t){console.log("点击了编辑"),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},t),this.create.getdataListParm.parammaps.pastureid=t.pastureid,this.create.getdataListParm.parammaps.id=t.id,this.getSeeList()},updateData:function(){var t=this;console.log("点击了编辑保存"),this.$refs["createTemp"].validate((function(e){if(e){if(t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),console.log(t.create.list.length),0==t.create.list.length)return t.$message({type:"warning",message:"请添加饲料",duration:2e3}),!1;for(var a=/^\d+(\.\d{1,2})?$/,i=0;i<t.create.list.length;i++){if(""==t.create.list[i].price)return t.$message({type:"warning",message:"饲料价格不可为空",duration:2e3}),!1;if(!a.test(parseFloat(t.create.list[i].price)))return t.$message({type:"warning",message:"饲料价格最多保留两位小数",duration:2e3}),!1}t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"updateBigContract",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,id:t.create.createTemp.id,operatetime:t.create.createTemp.operatetime}},t.requestParam.data[1]={name:"deleteContract",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,id:t.create.createTemp.id}},t.requestParam.data[2]={name:"insertSpotList",resultmaps:{list:t.create.list}},t.requestParam.data[2].children=[],t.requestParam.data[2].children[0]={name:"insertContract",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",bigid:t.create.createTemp.id,feedid:"@insertSpotList.feedid",feedname:"@insertSpotList.feedname",price:"@insertSpotList.price"}},Object(r["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(r["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}))},handleSee:function(t){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.getdataListParm.parammaps.pastureid=t.pastureid,this.create.getdataListParm.parammaps.id=t.id,this.getSeeList()},getSeeList:function(){var t=this;this.create.listLoading=!0,Object(r["d"])(this.create.getdataListParm).then((function(e){console.log("查看table数据",e.data.list),null!==e.data.list?t.create.list=e.data.list:t.create.list=[],setTimeout((function(){t.create.listLoading=!1}),100)}))},handleRowDelete:function(t){var e=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除"),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"deleteBigContract",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteContract",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(e.requestParam).then((function(t){"fail"===t.msg?Object(r["j"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleImport:function(){console.log("点击了导入")},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")}}},p=m,u=(a("67b6"),a("317d"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"3fedbf84",null);e["default"]=h.exports},"4faf":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方计划",use:"icon-配方计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方计划"><defs><style type="text/css"></style></defs><path d="M682.666667 42.666667a42.666667 42.666667 0 0 1 42.666666 42.666666v21.333334h128a42.666667 42.666667 0 0 1 42.666667 42.666666v789.333334a42.666667 42.666667 0 0 1-42.666667 42.666666H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666666V149.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h128V85.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h341.333334zM298.666667 170.666667H192v746.666666h640V170.666667h-106.666667v21.333333a42.666667 42.666667 0 0 1-42.666666 42.666667H341.333333a42.666667 42.666667 0 0 1-42.666666-42.666667V170.666667z m202.666666 448a32 32 0 0 1 0 64h-170.666666a32 32 0 0 1 0-64h170.666666z m192-192a32 32 0 0 1 0 64h-362.666666a32 32 0 0 1 0-64h362.666666zM661.333333 106.666667H362.666667v64h298.666666V106.666667z" fill="#ffffff" p-id="9161" /></symbol>'});l.a.add(n);e["default"]=n},"4fbd":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"铲车编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.eqcode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"eqcode",e)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"铲车名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.tname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tname",e)},expression:"table.getdataListParm.parammaps.tname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:t.table.rules,model:t.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"铲车编号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.eqcode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.eqcode,callback:function(a){t.$set(e.row,"eqcode",a)},expression:"scope.row.eqcode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"铲车名称","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.tname,callback:function(a){t.$set(e.row,"tname",a)},expression:"scope.row.tname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"数据采集卡编号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.datacaptureno))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:e.row.datacaptureno,callback:function(a){t.$set(e.row,"datacaptureno",a)},expression:"scope.row.datacaptureno"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{attrs:{type:"minCancel"},on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"ForkliftManagement",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getTMRList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqcode:"",tclassname:"",enable:"",eqtype:"0"}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="ForkliftManagement",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.eqtype="0",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,eqcode:"",tname:"",datacaptureno:""})},createData:function(t){var e=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=t.eqcode,this.table.temp.tname=t.tname,this.table.temp.datacaptureno=t.datacaptureno,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.tclassid="0",this.table.temp.maxstirfeed="0",""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车编号/铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"铲车编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"铲车名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return console.log(this.table.temp.eqcode),i.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"铲车编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.tname)?(this.$message({type:"error",message:"铲车名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertTMR",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=t.eqcode,this.table.temp.tname=t.tname,this.table.temp.datacaptureno=t.datacaptureno,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.tclassid="0",this.table.temp.maxstirfeed="0",this.table.temp.id=t.id,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车编号/铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"铲车编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"铲车名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return console.log(this.table.temp.eqcode),i.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"铲车编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.tname)?(this.$message({type:"error",message:"铲车名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateTMR",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteTMR",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择铲车信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteTMR",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("d2c3"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"424d125e",null);e["default"]=u.exports},"4fe7":function(t,e,a){"use strict";var i=a("22db"),s=a.n(i);s.a},"50ce":function(t,e,a){"use strict";var i=a("741f"),s=a.n(i);s.a},"51ff":function(t,e,a){var i={"./TMR设备.svg":"6602","./barline_chart.svg":"4b77","./barline_chart_disabled.svg":"e42e","./chart_bar.svg":"5320","./chart_bar_disabled.svg":"df2e","./chart_line.svg":"a74a","./chart_line_disabled.svg":"78fa","./chart_pie.svg":"835b","./chart_pie_disabled.svg":"d346","./chart_table.svg":"caed","./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","./horizontal_bar.svg":"3839","./horizontal_bar_disabled.svg":"7e4b","./icon-news.svg":"c01c","./linebar_chart.svg":"14cd","./linebar_chart_disabled.svg":"5784","./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","./stack_bar.svg":"7bc6","./stack_bar_disabled.svg":"890a","./star.svg":"708a","./steam.svg":"26c41","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5","./water.svg":"2edb","./人工用量.svg":"fc08","./体况评分.svg":"19fe","./供应商管理.svg":"f92c","./值班记录.svg":"ad9f","./入库管理.svg":"b8ff","./准确性分析.svg":"d25d","./剩料计划.svg":"d4fc","./基础数据.svg":"bff9","./宾州筛.svg":"86e0","./库存管理.svg":"0ee2","./库存统计.svg":"7a8b","./库存预警.svg":"7971","./撒料计划.svg":"8f12","./操作日志.svg":"941a","./日执行计划.svg":"4770","./标准参数.svg":"bca1","./栏舍剩料记录.svg":"2e2e","./栏舍生产.svg":"da07","./栏舍生产性能.svg":"83d2","./栏舍配方.svg":"4c14","./牧场信息.svg":"79dd","./牲畜类别.svg":"09c4","./用户管理.svg":"00b7","./盘点单.svg":"6071","./粪便筛.svg":"caf8","./粪便评分.svg":"e178","./系统用量.svg":"523d","./系统管理.svg":"9ae9","./统计分析.svg":"ba5d","./自定义报表.svg":"5dec","./舍组栏.svg":"53da","./角色管理.svg":"4d638","./设备基础信息.svg":"9950","./过程分析.svg":"aad2","./配方干物质.svg":"7501","./配方模板.svg":"cbee","./配方计划.svg":"4faf","./铲车管理.svg":"f764","./集团信息.svg":"4148","./预混计划.svg":"9f50","./饲喂效率.svg":"a445","./饲料分类.svg":"a762","./饲料合同.svg":"8642","./饲料表.svg":"7403","./首页-选中.svg":"dac4","./首页.svg":"cba3","./驾驶员.svg":"d4c2","./默认参数配置.svg":"90bb"};function s(t){var e=r(t);return a(e)}function r(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}s.keys=function(){return Object.keys(i)},s.resolve=r,t.exports=s,s.id="51ff"},"523d":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-系统用量",use:"icon-系统用量-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-系统用量"><defs><style type="text/css"></style></defs><path d="M153.4 948.1h186.5c18.3 0 33.2-14.6 33.2-32.6s-14.8-32.6-33.2-32.6H155.4V369.5l345.5-232.3 349.9 244.7v162.8c0 18 14.8 32.6 33.2 32.6 18.3 0 33.2-14.6 33.2-32.6v-164c0-20.4-10.1-39.6-27-51.4l-352-246c-21.9-15.3-51.4-15.6-73.6-0.7L117.1 316.3c-17.5 11.8-27.9 31.2-27.9 52.1V885c-0.1 34.8 28.7 63.1 64.2 63.1z" p-id="82172" fill="#ffffff" /><path d="M842.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="82173" fill="#ffffff" /><path d="M735.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="82174" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},5320:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_bar",use:"icon-chart_bar-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_bar"><defs><style type="text/css"></style></defs><path d="M142.222 526.222h142.222v312.89H142.222z" fill="#29C287" p-id="1951" /><path d="M341.333 184.889h142.223V839.11H341.333z" fill="#706EE7" p-id="1952" /><path d="M540.444 412.444h142.223v426.667H540.444z" fill="#29C287" p-id="1953" /><path d="M739.556 611.556h142.222V839.11H739.556z" fill="#706EE7" p-id="1954" /></symbol>'});l.a.add(n);e["default"]=n},5326:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.cowclass,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"cowclass",e)},expression:"table.getdataListParm.parammaps.cowclass"}},t._l(t.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.classname}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"牛头数","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"月龄","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.avgmonthage))])]}}])}),a("el-table-column",{attrs:{label:"体重(kg)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bw))])]}}])}),a("el-table-column",{attrs:{label:"日增重(kg)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dayw))])]}}])}),a("el-table-column",{attrs:{label:"胎次","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fetal))])]}}])}),a("el-table-column",{attrs:{label:"平均泌乳天数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.avgdim))])]}}])}),a("el-table-column",{attrs:{label:"怀孕天数","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dayspre))])]}}])}),a("el-table-column",{attrs:{label:"产奶量(kg/头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product))])]}}])}),a("el-table-column",{attrs:{label:"乳脂率(%)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"乳蛋白率(%)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.pro))])]}}])}),a("el-table-column",{attrs:{label:"乳糖率(%)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lactose))])]}}])}),a("el-table-column",{attrs:{label:"温度(℃)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tem))])]}}])}),a("el-table-column",{attrs:{label:"记录人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"生效时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.productdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"生效日期:",prop:"productdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"update"==t.create.dialogStatus},model:{value:t.create.temp.productdate,callback:function(e){t.$set(t.create.temp,"productdate",e)},expression:"create.temp.productdate"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"记录人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"记录人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"牲畜类别"},on:{change:t.changeCowclass},model:{value:t.create.temp.cowclassid,callback:function(e){t.$set(t.create.temp,"cowclassid",e)},expression:"create.temp.cowclassid"}},t._l(t.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牛头数:",prop:"cowsum"}},[a("el-input",{ref:"cowsum",staticClass:"filter-item",attrs:{placeholder:"正整数",type:"number",step:"0.01"},model:{value:t.create.temp.cowsum,callback:function(e){t.$set(t.create.temp,"cowsum",e)},expression:"create.temp.cowsum"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"环境温度(℃):",prop:"tem"}},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},model:{value:t.create.temp.tem,callback:function(e){t.$set(t.create.temp,"tem",e)},expression:"create.temp.tem"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("牛只基础信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"平均月龄:",prop:"avgmonthage"}},[a("el-input",{ref:"avgmonthage",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},model:{value:t.create.temp.avgmonthage,callback:function(e){t.$set(t.create.temp,"avgmonthage",e)},expression:"create.temp.avgmonthage"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"体重(kg):",prop:"bw"}},[a("el-input",{ref:"bw",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},model:{value:t.create.temp.bw,callback:function(e){t.$set(t.create.temp,"bw",e)},expression:"create.temp.bw"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"日增重(kg):",prop:"dayw"}},[a("el-input",{ref:"dayw",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},model:{value:t.create.temp.dayw,callback:function(e){t.$set(t.create.temp,"dayw",e)},expression:"create.temp.dayw"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"怀孕天数:",prop:"dayspre"}},[a("el-input",{ref:"dayspre",staticClass:"filter-item",attrs:{placeholder:"0-280整数",type:"number"},model:{value:t.create.temp.dayspre,callback:function(e){t.$set(t.create.temp,"dayspre",e)},expression:"create.temp.dayspre"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"胎次:",prop:"fetal"}},[a("el-input",{ref:"fetal",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass,placeholder:"0-20整数",type:"number"},model:{value:t.create.temp.fetal,callback:function(e){t.$set(t.create.temp,"fetal",e)},expression:"create.temp.fetal"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"平均泌乳天数:",prop:"avgdim"}},[a("el-input",{ref:"avgdim",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass||"干奶牛"==t.create.temp.bigcowclass,placeholder:"正整数",type:"number"},model:{value:t.create.temp.avgdim,callback:function(e){t.$set(t.create.temp,"avgdim",e)},expression:"create.temp.avgdim"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"产奶量(kg/头):",prop:"product"}},[a("el-input",{ref:"product",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass||"干奶牛"==t.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:t.create.temp.product,callback:function(e){t.$set(t.create.temp,"product",e)},expression:"create.temp.product"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"乳脂率(%)",prop:"fat"}},[a("el-input",{ref:"fat",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass||"干奶牛"==t.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:t.create.temp.fat,callback:function(e){t.$set(t.create.temp,"fat",e)},expression:"create.temp.fat"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"乳蛋白率(%):",prop:"pro"}},[a("el-input",{ref:"pro",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass||"干奶牛"==t.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:t.create.temp.pro,callback:function(e){t.$set(t.create.temp,"pro",e)},expression:"create.temp.pro"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"乳糖率(%):",prop:"lactose"}},[a("el-input",{ref:"lactose",staticClass:"filter-item",attrs:{disabled:"后备牛"==t.create.temp.bigcowclass||"干奶牛"==t.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:t.create.temp.lactose,callback:function(e){t.$set(t.create.temp,"lactose",e)},expression:"create.temp.lactose"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"Performance",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],houseNameList:[],livestockList:[],table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),productdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",cowclassid:"",cowclass:"",bigcowclass:"",cowsum:"",tem:"",avgmonthage:"",bw:"",dayw:"",dayspre:"",fetal:"",avgdim:"",product:"",fat:"",pro:"",lactose:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBarmilkEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="Performance",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.houseNameList=e.data.getBarListEnable.list,t.livestockList=e.data.getCowclassListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.cowclass="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),productdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",cowclassid:"",cowclass:"",bigcowclass:"",cowsum:"",tem:"",avgmonthage:"",bw:"",dayw:"",dayspre:"",fetal:"",avgdim:"",product:"",fat:"",pro:"",lactose:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname},changeCowclass:function(t){this.create.temp.cowclass=this.livestockList.find((function(e){return e.id===t})).classname,this.create.temp.bigcowclass=this.livestockList.find((function(e){return e.id===t})).parentname},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==t.create.temp.cowsum&&!a.test(parseFloat(t.create.temp.cowsum)))return t.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.create.temp.tem&&!i.test(parseFloat(t.create.temp.tem)))return t.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.avgmonthage&&!i.test(parseFloat(t.create.temp.avgmonthage)))return t.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.bw&&!i.test(parseFloat(t.create.temp.bw)))return t.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.dayw&&!i.test(parseFloat(t.create.temp.dayw)))return t.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==t.create.temp.dayspre&&!s.test(parseFloat(t.create.temp.dayspre)))return t.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!l.test(parseFloat(t.create.temp.fetal)))return t.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==t.create.temp.avgdim&&!a.test(parseFloat(t.create.temp.avgdim)))return t.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==t.create.temp.product&&!i.test(parseFloat(t.create.temp.product)))return t.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.fat&&!i.test(parseFloat(t.create.temp.fat)))return t.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.pro&&!i.test(parseFloat(t.create.temp.pro)))return t.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.lactose&&!i.test(parseFloat(t.create.temp.lactose)))return t.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;t.requestParam.name="insertBarmilk",t.requestParam.parammaps=t.create.temp,""==t.create.temp.cowsum&&(t.create.temp.cowsum="0"),""==t.create.temp.tem&&(t.create.temp.tem="0"),""==t.create.temp.avgmonthage&&(t.create.temp.avgmonthage="0"),""==t.create.temp.bw&&(t.create.temp.bw="0"),""==t.create.temp.dayw&&(t.create.temp.dayw="0"),""==t.create.temp.dayspre&&(t.create.temp.dayspre="0"),""==t.create.temp.fetal&&(t.create.temp.fetal="0"),""==t.create.temp.avgdim&&(t.create.temp.avgdim="0"),""==t.create.temp.product&&(t.create.temp.product="0"),""==t.create.temp.fat&&(t.create.temp.fat="0"),""==t.create.temp.pro&&(t.create.temp.pro="0"),""==t.create.temp.lactose&&(t.create.temp.lactose="0"),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify),"0"==t.create.temp.cowsum&&(t.create.temp.cowsum=""),"0"==t.create.temp.tem&&(t.create.temp.tem=""),"0"==t.create.temp.avgmonthage&&(t.create.temp.avgmonthage=""),"0"==t.create.temp.bw&&(t.create.temp.bw=""),"0"==t.create.temp.dayw&&(t.create.temp.dayw=""),"0"==t.create.temp.dayspre&&(t.create.temp.dayspre=""),"0"==t.create.temp.fetal&&(t.create.temp.fetal=""),"0"==t.create.temp.avgdim&&(t.create.temp.avgdim=""),"0"==t.create.temp.product&&(t.create.temp.product=""),"0"==t.create.temp.fat&&(t.create.temp.fat=""),"0"==t.create.temp.pro&&(t.create.temp.pro=""),"0"==t.create.temp.lactose&&(t.create.temp.lactose="")}}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==t.create.temp.cowsum&&!a.test(parseFloat(t.create.temp.cowsum)))return t.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.create.temp.tem&&!i.test(parseFloat(t.create.temp.tem)))return t.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.avgmonthage&&!i.test(parseFloat(t.create.temp.avgmonthage)))return t.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.bw&&!i.test(parseFloat(t.create.temp.bw)))return t.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.dayw&&!i.test(parseFloat(t.create.temp.dayw)))return t.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==t.create.temp.dayspre&&!s.test(parseFloat(t.create.temp.dayspre)))return t.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!l.test(parseFloat(t.create.temp.fetal)))return t.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==t.create.temp.avgdim&&!a.test(parseFloat(t.create.temp.avgdim)))return t.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==t.create.temp.product&&!i.test(parseFloat(t.create.temp.product)))return t.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.fat&&!i.test(parseFloat(t.create.temp.fat)))return t.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.pro&&!i.test(parseFloat(t.create.temp.pro)))return t.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.lactose&&!i.test(parseFloat(t.create.temp.lactose)))return t.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;t.requestParam.name="insertBarmilk",t.requestParam.parammaps=t.create.temp,""==t.create.temp.cowsum&&(t.create.temp.cowsum="0"),""==t.create.temp.tem&&(t.create.temp.tem="0"),""==t.create.temp.avgmonthage&&(t.create.temp.avgmonthage="0"),""==t.create.temp.bw&&(t.create.temp.bw="0"),""==t.create.temp.dayw&&(t.create.temp.dayw="0"),""==t.create.temp.dayspre&&(t.create.temp.dayspre="0"),""==t.create.temp.fetal&&(t.create.temp.fetal="0"),""==t.create.temp.avgdim&&(t.create.temp.avgdim="0"),""==t.create.temp.product&&(t.create.temp.product="0"),""==t.create.temp.fat&&(t.create.temp.fat="0"),""==t.create.temp.pro&&(t.create.temp.pro="0"),""==t.create.temp.lactose&&(t.create.temp.lactose="0"),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.create.noteTakerList=[],t.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify),"0"==t.create.temp.cowsum&&(t.create.temp.cowsum=""),"0"==t.create.temp.tem&&(t.create.temp.tem=""),"0"==t.create.temp.avgmonthage&&(t.create.temp.avgmonthage=""),"0"==t.create.temp.bw&&(t.create.temp.bw=""),"0"==t.create.temp.dayw&&(t.create.temp.dayw=""),"0"==t.create.temp.dayspre&&(t.create.temp.dayspre=""),"0"==t.create.temp.fetal&&(t.create.temp.fetal=""),"0"==t.create.temp.avgdim&&(t.create.temp.avgdim=""),"0"==t.create.temp.product&&(t.create.temp.product=""),"0"==t.create.temp.fat&&(t.create.temp.fat=""),"0"==t.create.temp.pro&&(t.create.temp.pro=""),"0"==t.create.temp.lactose&&(t.create.temp.lactose="")}}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),t.cowclassid=String(t.cowclassid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,"0"==this.create.temp.cowsum&&(this.create.temp.cowsum=""),"0"==this.create.temp.avgdim&&(this.create.temp.avgdim=""),this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==t.create.temp.cowsum&&!a.test(parseFloat(t.create.temp.cowsum)))return t.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.create.temp.tem&&!i.test(parseFloat(t.create.temp.tem)))return t.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.avgmonthage&&!i.test(parseFloat(t.create.temp.avgmonthage)))return t.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.bw&&!i.test(parseFloat(t.create.temp.bw)))return t.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.dayw&&!i.test(parseFloat(t.create.temp.dayw)))return t.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==t.create.temp.dayspre&&!s.test(parseFloat(t.create.temp.dayspre)))return t.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!l.test(parseFloat(t.create.temp.fetal)))return t.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==t.create.temp.avgdim&&!a.test(parseFloat(t.create.temp.avgdim)))return t.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==t.create.temp.product&&!i.test(parseFloat(t.create.temp.product)))return t.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.fat&&!i.test(parseFloat(t.create.temp.fat)))return t.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.pro&&!i.test(parseFloat(t.create.temp.pro)))return t.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.lactose&&!i.test(parseFloat(t.create.temp.lactose)))return t.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;t.requestParam.name="updateBarmilk",t.requestParam.parammaps=t.create.temp,""==t.create.temp.cowsum&&(t.create.temp.cowsum="0"),""==t.create.temp.tem&&(t.create.temp.tem="0"),""==t.create.temp.avgmonthage&&(t.create.temp.avgmonthage="0"),""==t.create.temp.bw&&(t.create.temp.bw="0"),""==t.create.temp.dayw&&(t.create.temp.dayw="0"),""==t.create.temp.dayspre&&(t.create.temp.dayspre="0"),""==t.create.temp.fetal&&(t.create.temp.fetal="0"),""==t.create.temp.avgdim&&(t.create.temp.avgdim="0"),""==t.create.temp.product&&(t.create.temp.product="0"),""==t.create.temp.fat&&(t.create.temp.fat="0"),""==t.create.temp.pro&&(t.create.temp.pro="0"),""==t.create.temp.lactose&&(t.create.temp.lactose="0"),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(Object(r["j"])(e,t.$notify),"0"==t.create.temp.dayspre&&(t.create.temp.dayspre=""),"0"==t.create.temp.fetal&&(t.create.temp.fetal=""),"0"==t.create.temp.cowsum&&(t.create.temp.cowsum=""),"0"==t.create.temp.avgdim&&(t.create.temp.avgdim=""))}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteBarmilk",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍生产性能",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteBarmilk",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍生产性能",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copybarmilk",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}else t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条栏舍生产性能",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("d6fd"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"2a8e6712",null);e["default"]=h.exports},5346:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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:t.handleCreate}},[t._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"部门名称","header-align":"center",width:"250px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.deptname))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"是否牧场","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.isPasture,callback:function(a){t.$set(e.row,"isPasture",a)},expression:"scope.row.isPasture"}})]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:t.rules,model:t.deptform,"label-position":"left","label-width":"100px"}},[t.parentDeptVisible?a("el-form-item",{attrs:{label:"上级部门",prop:"parentid"}},[a("tree-select",{attrs:{disabled:t.disabled,height:280,width:500,size:"small",data:t.parentDept,"default-props":t.defaultProps,"node-key":t.nodeKey,"checked-keys":t.defaultCheckedKeys},on:{popoverHide:t.popoverHide}})],1):t._e(),a("el-form-item",{attrs:{label:"部门名称",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.deptenter(e)}},model:{value:t.deptform.deptname,callback:function(e){t.$set(t.deptform,"deptname",e)},expression:"deptform.deptname"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:t.deptform.remark,callback:function(e){t.$set(t.deptform,"remark",e)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:t.deptform.sort,callback:function(e){t.$set(t.deptform,"sort",e)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-value":1,"inactive-value":0},model:{value:t.deptform.enable,callback:function(e){t.$set(t.deptform,"enable",e)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("5c96"),d={name:"Dept",components:{TreeSelect:r["a"]},directives:{waves:l["a"]},data:function(){return{disabled:!1,tableKey:0,list:[],parentDept:[],listLoading:!0,requestParam:{name:"createdept"},requestParamDel:{},deptform:{id:"",deptname:"",remark:"",parentid:"",sort:0,enable:""},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:n["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.getList()},methods:{popoverHide:function(t,e){console.log(t,e),this.deptform.parentid=t,this.deptform.pastureId=e.pastureId},deptenter:function(){var t=this;this.$nextTick((function(){t.$refs["remark"].focus()}))},getList:function(){var t=this;this.listLoading=!0,Object(o["d"])(this.getDepartListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].enable=parseInt(e.data.list[a].enable),e.data.list[a].isPasture=parseInt(e.data.list[a].isPasture);t.list=Object(o["m"])(e.data.list,"id","parentid","children")}t.parentDept=t.list,setTimeout((function(){t.listLoading=!1}),10)}))},resetRequestParam:function(){this.requestParam={name:"createdept",params:[]},this.deptform.id="",this.deptform.parentid="",this.deptform.deptname="",this.deptform.remark="",this.deptform.sort="0",this.deptform.enable="1",this.deptform.isPasture="0"},handleCreate:function(){var t=this;this.resetRequestParam(),this.dialogStatus="create",this.parentDeptVisible=!0,this.dialogFormVisible=!0,this.list.length>0?(this.defaultCheckedKeys=[this.list[0].id],this.deptform.parentid=this.list[0].id,this.deptform.pastureId=this.list[0].pastureId):this.deptform.parentid=-1,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.deptname.focus()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createdept",t.requestParam.parammaps={},t.requestParam.parammaps.pastureId=t.deptform.pastureId,t.requestParam.parammaps.parentid=t.deptform.parentid,t.requestParam.parammaps.deptname=t.deptform.deptname,t.requestParam.parammaps.remark=t.deptform.remark,t.requestParam.parammaps.sort=t.deptform.sort,t.requestParam.parammaps.enable=t.deptform.enable,t.requestParam.parammaps.isPasture=t.deptform.isPasture,Object(o["f"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["j"])(e,t.$notify)})))}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createdept",t.requestParam.parammaps={},t.requestParam.parammaps.pastureId=t.deptform.pastureId,t.requestParam.parammaps.parentid=t.deptform.parentid,t.requestParam.parammaps.deptname=t.deptform.deptname,t.requestParam.parammaps.remark=t.deptform.remark,t.requestParam.parammaps.sort=t.deptform.sort,t.requestParam.parammaps.enable=t.deptform.enable,t.requestParam.parammaps.isPasture=t.deptform.isPasture,Object(o["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.$refs["deptname"].focus()})),t.getList(),t.requestParam={name:"createdept",params:[]},t.deptform.id="",t.deptform.deptname="",t.deptform.remark="",t.deptform.sort="0",t.deptform.enable="1",t.deptform.isPasture="0",t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(t){var e=this;this.defaultCheckedKeys=[t.parentid],this.parentDeptVisible=t.parentid>0,this.deptform.id=t.id,this.deptform.parentid=t.parentid,this.deptform.deptname=t.deptname,this.deptform.remark=t.remark,this.deptform.sort=t.sort,this.deptform.enable=t.enable,this.deptform.isPasture=t.isPasture,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["deptname"].focus()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updatedept",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.parentid,t.requestParam.params[1]=t.deptform.deptname,t.requestParam.params[2]=t.deptform.remark,t.requestParam.params[3]=t.deptform.sort,t.requestParam.params[4]=t.deptform.enable,t.requestParam.params[5]=t.deptform.isPasture,t.requestParam.params[6]=t.deptform.id,Object(o["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updatedept",this.requestParam.params=[],this.requestParam.params[0]=e.parentid,this.requestParam.params[1]=e.deptname,this.requestParam.params[2]=e.remark,null===e.sort?this.requestParam.params[3]="0":this.requestParam.params[3]=e.sort,this.requestParam.params[4]=e.enable,this.requestParam.params[5]=e.isPasture,this.requestParam.params[6]=e.id,Object(o["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;c["MessageBox"].confirm("部门名称:"+t.deptname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParamDel.name="deletedept",e.requestParamDel.params=[],e.requestParamDel.params[0]=t.id,Object(o["f"])(e.requestParamDel).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);e["default"]=u.exports},"53da":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-舍组栏",use:"icon-舍组栏-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-舍组栏"><defs><style type="text/css"></style></defs><path d="M127 358.2h41v116.7h-41z" p-id="72400" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72401" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72402" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72403" fill="#ffffff" /><path d="M403.5 358.2v116.7h41V358.2h-41z m196.6-188.4H428c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1l86.6-130.7c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11-24.6-24.5-24.6z m-16.4 524.3L513.5 800l-69-105.9V210.7h139.3v483.4zM403.5 358.2v116.7h41V358.2h-41z m0 0M677.9 358.2v116.7h41V358.2h-41z m196.6-188.4h-172c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1L895 712.5c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11.1-24.6-24.6-24.6z m-16.4 524.3L787.9 800l-69-105.9V210.7h139.3v483.4z m0 0M323.6 169.8h-172c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1l86.6-130.7c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11.1-24.6-24.6-24.6z m-16.4 524.3L237 799.9 168 694V210.7h139.3v483.4z" p-id="72404" fill="#ffffff" /><path d="M583.7 474.9h135.2v41H583.7zM41 474.9V358.2h127v-41H24.6C11.1 317.2 0 328.3 0 341.8v149.5c0 13.5 11.1 24.6 24.6 24.6H168v-41H41zM307.2 474.9h137.2v41H307.2zM307.2 317.2h137.2v41H307.2zM583.7 317.2h135.2v41H583.7zM999.4 317.2H858.1v41H983v116.7H858.1v41h141.3c13.5 0 24.6-11.1 24.6-24.6V341.8c0-13.5-11.1-24.6-24.6-24.6z" p-id="72405" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},5406:function(t,e,a){},"542a":function(t,e,a){},"54de":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{"margin-top":"40px","margin-bottom":"30px"},attrs:{rules:t.rules,model:t.createTemp,"label-position":"right","label-width":"250px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否可取前一天计划:",prop:"isGetLastPlan"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"是否可取前一天计划"},model:{value:t.createTemp.isGetLastPlan,callback:function(e){t.$set(t.createTemp,"isGetLastPlan",e)},expression:"createTemp.isGetLastPlan"}},t._l(t.planBeforeDayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否可取后一天计划:",prop:"isGetNextPlan"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"是否可取后一天计划"},model:{value:t.createTemp.isGetNextPlan,callback:function(e){t.$set(t.createTemp,"isGetNextPlan",e)},expression:"createTemp.isGetNextPlan"}},t._l(t.planNextDayList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否启用补料:",prop:"isEnableSupplyFeed"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"是否启用补料"},model:{value:t.createTemp.isEnableSupplyFeed,callback:function(e){t.$set(t.createTemp,"isEnableSupplyFeed",e)},expression:"createTemp.isEnableSupplyFeed"}},t._l(t.isSupplementList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否启用剩料:",prop:"isEnableRemainFeed"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"是否启用剩料"},model:{value:t.createTemp.isEnableRemainFeed,callback:function(e){t.$set(t.createTemp,"isEnableRemainFeed",e)},expression:"createTemp.isEnableRemainFeed"}},t._l(t.isLeftoverMaterialList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"日计划报表小数点位数:",prop:"reportDigit"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"日计划报表小数点位数"},model:{value:t.createTemp.reportDigit,callback:function(e){t.$set(t.createTemp,"reportDigit",e)},expression:"createTemp.reportDigit"}},t._l(t.decimalPlacesList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"启用饲料锁定牛头数:",prop:"isLockCount"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"启用饲料锁定牛头数"},model:{value:t.createTemp.isLockCount,callback:function(e){t.$set(t.createTemp,"isLockCount",e)},expression:"createTemp.isLockCount"}},t._l(t.isLockBullsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"剩料处理选项:",prop:"remainOpt"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"剩料处理选项"},model:{value:t.createTemp.remainOpt,callback:function(e){t.$set(t.createTemp,"remainOpt",e)},expression:"createTemp.remainOpt"}},t._l(t.disposalList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"水分调节选项:",prop:"waterOpt"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"水分调节选项"},model:{value:t.createTemp.waterOpt,callback:function(e){t.$set(t.createTemp,"waterOpt",e)},expression:"createTemp.waterOpt"}},t._l(t.waterConditioningList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"默认撒料超出重量提醒比例:",prop:"overweightWarnRate"}},[a("el-input",{ref:"overweightWarnRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入超出比例",type:"text"},model:{value:t.createTemp.overweightWarnRate,callback:function(e){t.$set(t.createTemp,"overweightWarnRate",e)},expression:"createTemp.overweightWarnRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"默认撒料超出重量禁止比例:",prop:"overweightBanRate"}},[a("el-input",{ref:"overweightBanRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入禁止比例",type:"text"},model:{value:t.createTemp.overweightBanRate,callback:function(e){t.$set(t.createTemp,"overweightBanRate",e)},expression:"createTemp.overweightBanRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"库存预警天数:",prop:"repertoryWarn"}},[a("el-input",{ref:"repertoryWarn",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入库存预警天数",type:"text"},model:{value:t.createTemp.repertoryWarn,callback:function(e){t.$set(t.createTemp,"repertoryWarn",e)},expression:"createTemp.repertoryWarn"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否启用库存管理:",prop:"isfeedstorage"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"水分调节选项"},model:{value:t.createTemp.isfeedstorage,callback:function(e){t.$set(t.createTemp,"isfeedstorage",e)},expression:"createTemp.isfeedstorage"}},t._l(t.priceCalculationList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"班次数量:",prop:"times"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"水分调节选项"},model:{value:t.createTemp.times,callback:function(e){t.$set(t.createTemp,"times",e)},expression:"createTemp.times"}},t._l(t.numberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否启用饲料合同:",prop:"isEnableContract"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"启用饲料合同"},model:{value:t.createTemp.isEnableContract,callback:function(e){t.$set(t.createTemp,"isEnableContract",e)},expression:"createTemp.isEnableContract"}},t._l(t.feedontractList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"0"},attrs:{slot:"footer"},slot:"footer"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:t.handleSave}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",attrs:{disabled:t.isokDisable},on:{click:t.handleRecovery}},[t._v("恢复默认")]):t._e()],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("5c96"),c={name:"DefaultParameter",data:function(){return{isRoleEdit:[],planBeforeDayList:[{id:"1",name:"是"},{id:"0",name:"否"}],planNextDayList:[{id:"1",name:"是"},{id:"0",name:"否"}],isSupplementList:[{id:"1",name:"是"},{id:"0",name:"否"}],isLeftoverMaterialList:[{id:"1",name:"是"},{id:"0",name:"否"}],decimalPlacesList:[{id:"0",name:"整数"},{id:"1",name:"一位小数"},{id:"2",name:"两位小数"},{id:"3",name:"三位小数"}],isLockBullsList:[{id:"1",name:"是"},{id:"0",name:"否"}],disposalList:[{id:"0",name:"替换青贮"},{id:"1",name:"转为饲料"},{id:"2",name:"不处理"}],waterConditioningList:[{id:"0",name:"青贮"},{id:"1",name:"总日粮饲喂量"},{id:"2",name:"不处理"}],priceCalculationList:[{id:"1",name:"是"},{id:"0",name:"否"}],numberList:[{id:"0",name:"1"},{id:"1",name:"2"},{id:"2",name:"3"},{id:"3",name:"4"}],feedontractList:[{id:"1",name:"是"},{id:"0",name:"否"}],getdataListParm:{name:"getysoptList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:0,listLoading:!0,createTemp:{},rules:{},isokDisable:!1,requestParam:{}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="DefaultParameter",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.listLoading=!0,Object(r["d"])(this.getdataListParm).then((function(e){console.log("table1数据",e.data.list),null!==e.data.list?t.createTemp=e.data.list[0]:t.list=[],setTimeout((function(){t.listLoading=!1}),100)}))},handleSave:function(){var t=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updatesysopt",type:"e",parammaps:{pastureid:this.createTemp.pastureid,isGetLastPlan:this.createTemp.isGetLastPlan,isGetNextPlan:this.createTemp.isGetNextPlan,isEnableSupplyFeed:this.createTemp.isEnableSupplyFeed,isEnableRemainFeed:this.createTemp.isEnableRemainFeed,reportDigit:this.createTemp.reportDigit,isLockCount:this.createTemp.isLockCount,remainOpt:this.createTemp.remainOpt,waterOpt:this.createTemp.waterOpt,overweightWarnRate:this.createTemp.overweightWarnRate,overweightBanRate:this.createTemp.overweightBanRate,repertoryWarn:this.createTemp.repertoryWarn,isfeedstorage:this.createTemp.isfeedstorage,times:this.createTemp.times,isEnableContract:this.createTemp.isEnableContract}},this.requestParam.data[1]={name:"updateFPbyFTChangeALL",type:"e",parammaps:{pastureid:this.createTemp.pastureid}},Object(r["b"])(this.requestParam).then((function(e){console.log("保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["j"])(e,t.$notify)}))},handleRecovery:function(){var t=this;console.log("点击了恢复默认"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),o["MessageBox"].confirm("是否确认恢复默认设置?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"updatesysoptinit",type:"e",parammaps:{pastureid:t.createTemp.pastureid}},t.requestParam.data[1]={name:"updateFPbyFTChangeALL",type:"e",parammaps:{pastureid:t.createTemp.pastureid}},Object(r["b"])(t.requestParam).then((function(e){console.log("保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["j"])(e,t.$notify)}))}))}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,"0140bf12",null);e["default"]=p.exports},"55ad":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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:t.handleCreate}},[t._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.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:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.handleMenu(i)}}},[t._v("菜单")]),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.handleDataRole(i)}}},[t._v("数据权限")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>=0,expression:"total>=0"}],attrs:{total:t.total,page:t.getdataListParm.offset,limit:t.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParm,"pagecount",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,model:t.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:t.dataform.name,callback:function(e){t.$set(t.dataform,"name",e)},expression:"dataform.name"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:t.dataform.sort,callback:function(e){t.$set(t.dataform,"sort",e)},expression:"dataform.sort"}})],1),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:t.dataform.enable,callback:function(e){t.$set(t.dataform,"enable",e)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:t.textMap["dataRole"],visible:t.dialogDataRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogDataRoleVisible=e}}},[a("el-form",{ref:"dataRoleTemp",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,"label-position":"left",model:t.dataRoleTemp,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"数据权限",prop:"datarole"}},[a("el-radio-group",{model:{value:t.dataRoleTemp.datarole,callback:function(e){t.$set(t.dataRoleTemp,"datarole",e)},expression:"dataRoleTemp.datarole"}},[a("el-radio",{attrs:{label:3}},[t._v("全部数据")]),a("el-radio",{attrs:{label:2}},[t._v("牧场数据")]),a("el-radio",{attrs:{label:1}},[t._v("部门数据")]),a("el-radio",{attrs:{label:0}},[t._v("个人数据")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateDataRole()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogDataRoleVisible=!1}}},[t._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:t.textMap["menu"],visible:t.dialogMenuVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogMenuVisible=e}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单",prop:"menuname"}},[a("tree-select",{attrs:{disabled:t.disabled,height:280,width:200,size:"small",multiple:"",data:t.parentMenu,"default-props":t.defaultProps,"collapse-tags":"","check-strictly":"","node-key":t.nodeKey,"checked-keys":t.defaultCheckedKeys},on:{popoverHide:t.popoverHide}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{disabled:t.isokDisable,type:"primary"},on:{click:function(e){return t.updateMenu()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogMenuVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("d3b7"),a("ddb0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("333d"),d=a("5c96"),m=a("a78e"),p=a.n(m),u={name:"Role",components:{Pagination:c["a"],TreeSelect:r["a"]},directives:{waves:l["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:""},getdataListParm:{name:"getRoleall",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid")}},getMenuParm:{name:"getMenuandButtonRecuRule",idname:"id",params:[-1]},rules:{name:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],sort:[{validator:n["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:10,returntype:"Map",parammaps:{}},isokDisable:!1,dataRoleTemp:{},dataRolelist:[]}},created:function(){this.getList()},methods:{popoverHide:function(t,e){this.dataform.selectMenus=t,this.selectedMenu=t,this.UpdateDataRelationParam.values=t},getMenuList:function(){var t=this;Object(o["k"])(this.getMenuParm).then((function(e){t.parentMenu=e.data}))},getList:function(){var t=this;this.listLoading=!0,Object(o["d"])(this.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].enable=parseInt(e.data.list[a].enable);t.list=e.data.list}t.total=e.data.total,t.getMenuList(),setTimeout((function(){t.listLoading=!1}),500)}))},resetRequestParam:function(){this.dataform.id="",this.dataform.name="",this.dataform.sort="0",this.dataform.enable="1"},handleCreate:function(){var t=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.name.focus()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createRole",t.requestParam.params=[],t.requestParam.params[0]=t.dataform.name,t.requestParam.params[1]=t.dataform.sort,t.requestParam.params[2]=t.dataform.enable,Object(o["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createRole",t.requestParam.params=[],t.requestParam.params[0]=t.dataform.name,t.requestParam.params[1]=t.dataform.sort,t.requestParam.params[2]=t.dataform.enable,Object(o["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.$refs["name"].focus()})),t.getList(),t.resetRequestParam(),t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleMenu:function(t){var e=this;this.requestParam.name="getMenuByRole",this.requestParam.params=[],this.requestParam.params[0]=t.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=t.id,this.dialogMenuVisible=!0,Object(o["d"])(this.requestParam).then((function(t){e.selectedMenu=t.data.lists.menu_id,e.defaultCheckedKeys=e.selectedMenu,e.UpdateDataRelationParam.values=e.defaultCheckedKeys}))},updateMenu:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.UpdateDataRelationParam.name="role_menu",this.UpdateDataRelationParam.dataname="role_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="menu_id",this.UpdateDataRelationParam.values=this.selectedMenu,Object(o["g"])(this.UpdateDataRelationParam).then((function(){t.dialogMenuVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleUpdate:function(t){var e=this;this.dataform.id=t.id,this.dataform.name=t.name,this.dataform.sort=t.sort,this.dataform.enable=t.enable,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.name.focus()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updateRole",t.requestParam.params=[],t.requestParam.params[0]=t.dataform.name,t.requestParam.params[1]=t.dataform.sort,t.requestParam.params[2]=t.dataform.enable,t.requestParam.params[3]=t.dataform.id,Object(o["f"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updateRole",this.requestParam.params=[],this.requestParam.params[0]=e.name,this.requestParam.params[1]=e.sort,this.requestParam.params[2]=e.enable,this.requestParam.params[3]=e.id,Object(o["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;d["MessageBox"].confirm("名称:"+t.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteRole",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(o["f"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},handleDataRole:function(t){var e=this;this.dataRoleTemp=Object.assign({},t),this.$set(this.dataRoleTemp,"datarole",0),this.dialogDataRoleVisible=!0,this.getDataRoleListParm.parammaps.id=t.id,Object(o["d"])(this.getDataRoleListParm).then((function(t){e.dataRolelist=t.data.list,e.dataRoleTemp.datarole=t.data.list[0].datarole,e.$forceUpdate()}))},updateDataRole:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["dataRoleTemp"].validate((function(e){e&&(t.requestParam.name="setDataRole",t.requestParam.parammaps={},t.requestParam.parammaps.id=t.dataRoleTemp.id,t.requestParam.parammaps.datarole=t.dataRoleTemp.datarole,Object(o["f"])(t.requestParam).then((function(e){console.log("设置数据权限保存发送参数",t.requestParam),"fail"!==e.msg?(t.getList(),t.dialogDataRoleVisible=!1,t.$notify({title:"成功",message:"设置成功",type:"success",duration:2e3})):Object(o["j"])(e,t.$notify)})))}))}}},h=u,f=a("2877"),g=Object(f["a"])(h,i,s,!1,null,null,null);e["default"]=g.exports},"55cd":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2",type:"success"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);e["default"]=n.exports},"56d7":function(t,e,a){"use strict";a.r(e);var i={};a.r(i),a.d(i,"parseTime",(function(){return B["e"]})),a.d(i,"formatTime",(function(){return B["c"]})),a.d(i,"timeAgo",(function(){return j})),a.d(i,"numberFormatter",(function(){return V})),a.d(i,"toThousandFilter",(function(){return I})),a.d(i,"uppercaseFirst",(function(){return H}));a("4de4"),a("4160"),a("b64b"),a("159b"),a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("2b0e"),r=a("8c4f"),l=(a("f5df1"),a("5c96")),n=a.n(l),o=(a("0fae"),a("f0d9"),a("be35"),a("b20f"),a("dc21")),c=a("e594"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[t.isRouterAlive?a("router-view"):t._e()],1)},m=[],p={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){var t=this;this.isRouterAlive=!1,this.$nextTick((function(){t.isRouterAlive=!0}))}}},u=p,h=(a("5c0b"),a("2877")),f=Object(h["a"])(u,d,m,!1,null,null,null),g=f.exports,b=a("4360"),w=a("a18c"),v=a("9225"),y=(a("d81d"),a("d3b7"),a("ddb0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isExternal?a("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):a("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[a("use",{attrs:{"xlink:href":t.iconName}})])}),x=[],L=a("61f7"),_={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(L["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},k=_,S=(a("7c99"),Object(h["a"])(k,y,x,!1,null,"68ef0854",null)),P=S.exports;s["default"].component("svg-icon",P);var A=a("51ff"),C=function(t){return t.keys().map(t)};C(A);a("c975");var $=a("be94"),D=(a("96cf"),a("1da1")),T=a("323e"),F=a.n(T),q=(a("a5d8"),a("5f87")),E=(a("99af"),a("83d6")),O=a.n(E),N=O.a.title||"Vue Admin Template";function R(t){return t?"".concat(t," - ").concat(N):"".concat(N)}F.a.configure({showSpinner:!1});var z=["/login"];w["b"].beforeEach(function(){var t=Object(D["a"])(regeneratorRuntime.mark((function t(e,a,i){var s,r,n,o,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(F.a.start(),document.title=R(e.meta.title),s=Object(q["a"])(),!s){t.next=35;break}if("/login"!==e.path){t.next=9;break}i({path:"/"}),F.a.done(),t.next=33;break;case 9:if(r=b["a"].getters.roles&&b["a"].getters.roles.length>0,!r){t.next=14;break}i(),t.next=33;break;case 14:return t.prev=14,t.next=17,b["a"].dispatch("user/getInfo");case 17:return n=t.sent,o=n.roles,t.next=21,b["a"].dispatch("permission/generateRoutes",o);case 21:c=t.sent,w["b"].addRoutes(c),i(Object($["a"])(Object($["a"])({},e),{},{replace:!0})),t.next=33;break;case 26:return t.prev=26,t.t0=t["catch"](14),t.next=30,b["a"].dispatch("user/resetToken");case 30:l["Message"].error(t.t0||"Has Error"),i("/login"),F.a.done();case 33:t.next=36;break;case 35:-1!==z.indexOf(e.path)?i():(i({path:"/login"}),F.a.done());case 36:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,a,i){return t.apply(this,arguments)}}()),w["b"].afterEach((function(){F.a.done()}));a("fb6a"),a("a9e3"),a("b680"),a("ac1f"),a("25f0"),a("5319");var B=a("ed08");function M(t,e){return 1===t?t+e:t+e+"s"}function j(t){var e=Date.now()/1e3-Number(t);return e<3600?M(~~(e/60)," minute"):e<86400?M(~~(e/3600)," hour"):M(~~(e/86400)," day")}function V(t,e){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"}],i=0;i<a.length;i++)if(t>=a[i].value)return(t/a[i].value+.1).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+a[i].symbol;return t.toString()}function I(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function H(t){return t.charAt(0).toUpperCase()+t.slice(1)}s["default"].config.productionTip=!1,o["a"]({release:"vislib@"+Object({NODE_ENV:"production",VUE_APP_BASE_API:"http://139.196.88.215:8083/",BASE_URL:"/"}).npm_package_version,dsn:"https://9d8ee0ea1a2749949dd1e641b0f7c071@o286322.ingest.sentry.io/5217806",integrations:[new c["a"]({Vue:s["default"],attachProps:!0})]}),b["a"].commit("app/SET_LANG","CN"),s["default"].use(r["a"]),s["default"].use(n.a,{i18n:function(t,e){return v["a"].t(t,e)}}),Object.keys(i).forEach((function(t){s["default"].filter(t,i[t])})),new s["default"]({el:"#app",router:w["b"],store:b["a"],i18n:v["a"],render:function(t){return t(g)}})},"574e":function(t,e,a){"use strict";var i=a("047d"),s=a.n(i);s.a},5784:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-linebar_chart_disabled",use:"icon-linebar_chart_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-linebar_chart_disabled"><defs><style type="text/css"></style></defs><path d="M690.266 337.946v624.009h-133.716v-624.009h133.716zM422.834 739.095v222.861h-133.716v-222.861h133.716zM199.974 605.379v356.576h-133.716v-356.576h133.716zM957.699 70.513v891.442h-133.716v-891.442h133.716z" fill="#909399" p-id="4632" /><path d="M235.764 486.46l-117.537-127.208 14.619-16.849 108.756 117.714 105.368-34.053 107.107 16.671 119.274-344.007 121.949-13.996 109.469 44.171 105.77-34.232 5.839 22.553-112.322 36.326-111.385-44.929-104.343 11.99-120.657 347.93-119.141-18.542z" fill="#909399" p-id="4633" /><path d="M229.48 511.777l-140.492-152.036 43.414-49.965 115.487 124.981 97.389-31.512 94.672 14.753 117.849-339.908 140.313-16.090 107.419 43.279 119.855-38.734 17.026 65.61-139.154 44.974-113.392-45.775-85.98 9.894-122.039 352.030-131.666-20.503z" fill="#909399" p-id="4634" /></symbol>'});l.a.add(n);e["default"]=n},5851:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("div",{staticStyle:{background:"#F4F4F4",height:"10px"}}),1==t.news?a("div",{staticClass:"news",staticStyle:{display:"none"}},[a("b",[t._v("消息提醒:")]),t._v("撒料计划未分配完善,请及时进行计划分配")]):t._e(),2==t.news?a("div",{staticClass:"news",staticStyle:{display:"none"}},[a("b",[t._v("消息提醒:")]),t._v("预混计划未分配完善,请及时进行计划分配")]):t._e(),3==t.news?a("div",{staticClass:"news",staticStyle:{display:"none"}},[a("b",[t._v("消息提醒:")]),t._v("剩料计划未分配完善,请及时进行计划分配")]):t._e(),a("div",{staticClass:"bottom"},[a("el-row",{staticStyle:{"margin-top":"10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content one"},[a("div",{staticClass:"Left"},[a("i",{staticClass:"iconfont icon-shuaxin"})]),a("div",{staticClass:"Right"},[a("span",[t._v("昨日混料准确率:")]),t._v(t._s(t.row.list[0].A1)),a("br"),a("span",[t._v("近30天混料准确率:")]),t._v(t._s(t.row.list[0].A2)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content two"},[a("div",{staticClass:"Left"},[a("i",{staticClass:"iconfont icon-zhunqueshuai2"})]),a("div",{staticClass:"Right"},[a("span",[t._v("昨日撒料准确率:")]),t._v(t._s(t.row.list[1].A1)),a("br"),a("span",[t._v("近30天撒料准确率:")]),t._v(t._s(t.row.list[1].A2)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content three"},[a("div",{staticClass:"Left"},[a("i",{staticClass:"iconfont icon-zhinengsiwei",staticStyle:{"font-size":"40px"}})]),a("div",{staticClass:"Right"},[a("span",[t._v("昨日撒料正确率:")]),t._v(t._s(t.row.list[2].A1)),a("br"),a("span",[t._v("近30天撒料正确率:")]),t._v(t._s(t.row.list[2].A2)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content four"},[a("div",{staticClass:"Left"},[a("i",{staticClass:"iconfont icon-siliaotoufangjilu",staticStyle:{"font-size":"50px"}})]),a("div",{staticClass:"Right"},[a("span",[t._v("昨日撒料偏差:")]),t._v(t._s(t.row.list[3].A1)+" min"),a("br"),a("span",[t._v("近30天撒料偏差:")]),t._v(t._s(t.row.list[3].A2)+" min ")])])])],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content",staticStyle:{height:"500px",background:"#fff"}},[a("div",{staticStyle:{height:"250px","border-bottom":"1px solid #000"}},[a("b",{staticStyle:{"padding-left":"10px","line-height":"50px","font-size":"20px"}},[t._v("今日计划统计")]),a("br"),a("div",{staticStyle:{"text-align":"center"}},[a("b",{staticStyle:{"padding-right":"10px","font-size":"14px"}},[t._v("完成车次:"+t._s(t.row2.chart1.chartLine_data.data1))]),a("b",{staticStyle:{"padding-right":"10px","font-size":"14px"}},[t._v("计划车次:"+t._s(t.row2.chart1.chartLine_data.data2))])]),a("div",{staticStyle:{height:"150px"},attrs:{id:"row2chartLine1"}})]),a("div",{staticStyle:{height:"250px"}},[a("div",{staticStyle:{"text-align":"center","padding-top":"50px"}},[a("b",{staticStyle:{"padding-right":"5px","font-size":"14px"}},[t._v("完成重量:"+t._s(t.row2.chart2.chartLine_data.data1)+"kg")]),a("b",{staticStyle:{"padding-right":"5px","font-size":"14px"}},[t._v("计划重量:"+t._s(t.row2.chart2.chartLine_data.data2)+"kg")])]),a("div",{staticStyle:{height:"150px"},attrs:{id:"row2chartLine2"}})])])]),a("el-col",{staticStyle:{"margin-top":"-20px"},attrs:{span:18}},[a("div",{staticClass:"grid-content",staticStyle:{height:"500px"}},[a("div",{staticStyle:{height:"350px"}},[a("div",{staticStyle:{"font-size":"14px",color:"#666",margin:"0 auto",position:"relative"}},[a("span",{staticStyle:{"line-height":"30px",position:"absolute",right:"190px",top:"30px"}},[a("i",{staticClass:"el-icon-caret-top",staticStyle:{color:"#ff3131","line-height":"30px","font-size":"30px"}}),a("b",{staticStyle:{"line-height":"32px"}},[t._v("开始重量")])]),a("span",{staticStyle:{"line-height":"30px",position:"absolute",right:"100px",top:"30px"}},[a("i",{staticClass:"el-icon-caret-top",staticStyle:{color:"#61a5e8","line-height":"30px","font-size":"30px"}}),a("b",{staticStyle:{"line-height":"32px"}},[t._v("结束重量")])])]),a("div",{staticClass:"Title"},[t._v("实时监控")]),a("div",{staticStyle:{height:"90%"},attrs:{id:"row2chartLine3"}})]),a("div",{staticClass:"car",staticStyle:{position:"relative"}},[a("p",{staticStyle:{position:"absolute",left:"50px",top:"-50px"}},[t._v("当前车辆数:3")]),a("i",{ref:"left",staticClass:"el-icon-arrow-left",on:{click:t.handleLeft}}),a("el-row",{staticClass:"carList",attrs:{gutter:20}},t._l(t.list,(function(e,i){return a("el-col",{key:i,attrs:{span:8}},[a("div",{ref:"list",refInFor:!0,staticClass:"list",style:{background:e.background,color:e.color},on:{mouseover:t.mouseOver,mouseleave:t.mouseLeave,click:function(a){return t.handleList(i,e.id)}}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"list-l",attrs:{span:12}},[a("p",[a("span",[t._v("车辆:")]),t._v(t._s(e.A1))]),a("el-tooltip",{attrs:{placement:"top"}},[a("p",{attrs:{slot:"content"},slot:"content"},[1==e.states?a("span",[t._v("饲料:"+t._s(e.A2))]):t._e(),2==e.states?a("span",[t._v("栏舍:"+t._s(e.A2))]):t._e()]),a("p",[1==e.states?a("span",[t._v("饲料:"+t._s(e.A2))]):t._e(),2==e.states?a("span",[t._v("栏舍:"+t._s(e.A2))]):t._e()])]),a("p",[a("span",[t._v("完成重量:")]),t._v(t._s(e.A3))]),a("p",[a("span",[t._v("完成度:")]),t._v(t._s(e.A4))])],1),a("el-col",{staticClass:"list-r",attrs:{span:12}},[a("el-tooltip",{attrs:{placement:"top"}},[a("p",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v("描述:")]),t._v(" "+t._s(e.A5)+" ")]),a("p",[a("span",[t._v("描述:")]),t._v(" "+t._s(e.A5)+" ")])]),a("p",[a("span",[t._v("计划重量:")]),t._v(t._s(e.A6))]),a("p",[a("span",[t._v("剩余重量:")]),t._v(t._s(e.A7))]),a("p",[a("span",[t._v("车辆已载重:")]),t._v(t._s(e.A8))])],1)],1)],1)])})),1),a("i",{ref:"right",staticClass:"el-icon-arrow-right",on:{click:t.handleRight}})],1)])])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("div",{staticClass:"Title"},[t._v("计划统计")]),a("div",{staticStyle:{background:"#fff",height:"50px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("row3chartLine1")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{background:"#fff",height:"350px"},attrs:{id:"row3chartLine1"}}),t.row3.chart1.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"97%",top:"19px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("row3chartLine1")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart1.table.listLoading,expression:"row3.chart1.table.listLoading"}],key:t.row3.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"A1"}}),a("el-table-column",{attrs:{label:"执行重量(kg)","min-width":"110px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)","min-width":"110px",align:"center",prop:"A3"}}),a("el-table-column",{attrs:{label:"计划准确率","min-width":"110px",align:"center",prop:"A4"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)","min-width":"110px",align:"center",prop:"A5"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)","min-width":"110px",align:"center",prop:"A6"}}),a("el-table-column",{attrs:{label:"计划正确数","min-width":"110px",align:"center",prop:"A7"}}),a("el-table-column",{attrs:{label:"计划数","min-width":"110px",align:"center",prop:"A8"}}),a("el-table-column",{attrs:{label:"计划正确率","min-width":"110px",align:"center",prop:"A9"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("div",{staticClass:"Title"},[t._v("泌乳牛采食量")]),a("div",{staticStyle:{background:"#fff",height:"50px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("row3chartLine2")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{background:"#fff",height:"350px"},attrs:{id:"row3chartLine2"}}),t.row3.chart2.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"97%",top:"19px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("row3chartLine2")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart2.table.listLoading,expression:"row3.chart2.table.listLoading"}],key:t.row3.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"A1"}}),a("el-table-column",{attrs:{label:"泌乳牛采食量(kg)","min-width":"110px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"泌乳牛产奶量(kg)","min-width":"110px",align:"center",prop:"A3"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("div",{staticClass:"Title"},[t._v("成本统计")]),a("div",{staticStyle:{background:"#fff",height:"400px"},attrs:{id:"row4chartLine1"}})]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"Title"},[t._v("出库统计")]),a("div",{staticStyle:{background:"#fff",height:"400px"},attrs:{id:"row4chartLine2"}})]),a("el-col",{attrs:{span:8}},[a("div",{staticClass:"Title"},[t._v("库存预警")]),a("div",{staticStyle:{height:"400px",background:"#fff"},attrs:{id:"table"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.table.listLoading,expression:"row4.table.listLoading"}],key:t.row4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%",background:"#fff"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号","min-width":"80px",align:"center",prop:"A1"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"80px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"库存量(kg)","min-width":"70px",align:"center",prop:"A3"}}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"80px",align:"center",prop:"A4"}})],1)],1)])],1)],1)])},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("313e"),d=a.n(c);a("817d");var m=0,p={name:"DashboardEditor",data:function(){return{date:Object(o["e"])(new Date,"{y}-{m}-{d}"),list:[],news:1,row:{list:[{A1:"95.2%",A2:"91.5%"},{A1:"90.4%",A2:"90.2%"},{A1:"95.6%",A2:"93.2%"},{A1:"15",A2:"21"}]},row2:{chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:3,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0,pageNum:"",pages:"",getdataListParmList:{name:"getBarmilkList",page:1,offset:1,pagecount:3,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list2:[],total2:0,listLoading2:!0,pageNum2:"",pages2:""}},row3:{chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}}},row4:{chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},list:[],total:0,listLoading:!0},table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:5,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}}},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},timer:""}},created:function(){this.getChart1(),this.getChart2(),this.getChart3List(),console.log(this.$route),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7(),this.getTable8()},mounted:function(){var t=this,e=0;this.timer=setInterval((function(){e>=3&&(e=0,console.log("关闭了定时器===")),m=e,0==m?(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#f7f941",t.$refs.list[1].style.background="#7ac3ec",t.$refs.list[1].style.color="#fff",t.$refs.list[2].style.background="#7ac3ec",t.$refs.list[2].style.color="#fff",t.row2.chart3.chartLine_data={data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958]]},t.roadChartLine3(t.row2.chart3.chartLine_data)):1==m?(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#fff",t.$refs.list[m].style.background="#7ac3ec",t.$refs.list[m].style.color="#f7f941",t.$refs.list[2].style.background="#7ac3ec",t.$refs.list[2].style.color="#fff",t.row2.chart3.chartLine_data={data1:["06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44","06:44:44","06:44:59","06:45:14","06:45:30","06:45:45","06:46:00","06:46:15","06:46:30","06:46:45","06:47:00","06:47:15","06:47:30","06:47:40","06:47:45","06:48:00","06:48:15","06:48:30","06:48:45","06:49:00","06:49:15","06:49:20","06:49:30","06:49:45","06:50:00","06:50:15","06:50:30","06:50:45","06:51:00","06:51:15","06:51:30","06:51:45","06:52:00","06:52:15","06:52:30","06:52:45","06:53:00","06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30"],data2:[959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38],data3:[958,962,955,961,956,956,968,1100,1099,1102,1115,1103,1217,1266,1681,1919,1968,2139,2426,2479,2486,2489,2480,2502,2498,2769,3097,3224,3236,3242,3238,3282,3320,3369,3411,3458,3499,3540,3580,3632,3668,3708,3753,3798,3830,3830],data4:[["06:44:44",1100],["06:44:44",1099],["06:47:40",2486],["06:47:45",2489],["06:49:20",3236],["06:49:20",3236],["06:53:14",3830],["06:53:15",3830]]},t.roadChartLine3(t.row2.chart3.chartLine_data)):2==m&&(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#fff",t.$refs.list[1].style.background="#7ac3ec",t.$refs.list[1].style.color="#fff",t.$refs.list[m].style.background="#7ac3ec",t.$refs.list[m].style.color="#f7f941",t.row2.chart3.chartLine_data={data1:["06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30","06:55:45","06:56:00","06:56:15","06:56:30","06:56:45","06:57:00","06:57:15","06:57:30","06:57:45","06:58:00","06:58:16","06:58:31","06:58:46","06:59:01","06:59:03","06:59:16","06:59:31","06:59:46","07:00:01","07:00:16","07:00:31","07:00:46","07:01:01","07:01:16","07:01:31","07:01:46","07:02:01","07:02:01","07:02:16","07:02:31","07:02:46","07:03:01","07:03:16","07:03:31","07:03:46","07:04:01","07:04:16","07:04:31","07:04:46","07:05:01","07:05:16","07:05:20","07:05:31","07:05:46","07:06:01","07:06:16","07:06:31","07:06:46","07:07:01","07:07:10","07:07:16","07:07:31","07:07:46","07:08:01","07:08:16","07:08:31","07:08:46","07:09:01","07:09:16","07:09:31","07:09:46"],data2:[3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,351.82,351.82,351.82,351.82,351.82,351.82,351.82,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48],data3:[3837,3840,3832,3829,3842,3817,3825,3822,3850,3820,3830,3837,3833,3830,3832,3829,3814,3681,3575,3423,3268,3138,3036,3032,3039,3032,3017,3025,3036,2926,2895,2696,2315,1831,1379,1232,1232,1227,1228,1224,1225,1213,1230,1209,1221,1225,1231,1138,928,736,708,707,674,540,530,527,437,390,356,325,307,309,310,308,294,308,306,293,278,226],data4:[["06:59:01",3036],["06:59:03",3032],["07:02:01",1232],["07:02:01",1232],["07:05:16",736],["07:05:20",708],["07:07:10",356],["07:07:10",356]]},t.roadChartLine3(t.row2.chart3.chartLine_data)),console.log(e++)}),1e6)},methods:{getChart1:function(){var t=this;this.row2.chart1.listLoading=!0,Object(r["d"])(this.row2.chart1.getdataListParm).then((function(e){console.log("完成车次数据",e.data.list),null!==e.data.list?(t.row2.chart1.chartLine_data={data1:7,data2:7},t.row2.chart1.total=e.data.total,t.roadChartLine1(t.row2.chart1.chartLine_data)):t.row2.chart1.list=[],setTimeout((function(){t.row2.chart1.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.row2.chart1.chartLine&&this.row2.chart1.chartLine.dispose(),this.row2.chart1.chartLine=d.a.init(document.getElementById("row2chartLine1"));var e={title:{show:!0,x:"center",textStyle:{fontSize:"15",color:"green",fontWeight:"bold"}},tooltip:{show:!1,trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"任务进度",type:"pie",radius:["80%","70%"],avoidLabelOverlap:!1,hoverAnimation:!1,labelLine:{normal:{show:!1}},data:[{value:t.data1,name:"完成率",selected:!1,label:{normal:{show:!0,position:"center",fontSize:20,formatter:"{b}\n{d}%"}}},{value:t.data2-t.data1,label:{normal:{show:!1}}}]}],color:["#409EFF","#B7DBFF"]};this.row2.chart1.chartLine.setOption(e),window.onresize=function(){this.row2.chart1.chartLine.resize()}},getChart2:function(){var t=this;this.row2.chart2.listLoading=!0,Object(r["d"])(this.row2.chart2.getdataListParm).then((function(e){console.log("完成重量数据",e.data.list),null!==e.data.list?(t.row2.chart2.chartLine_data={data1:3023,data2:3050},t.row2.chart2.total=e.data.total,t.roadChartLine2(t.row2.chart2.chartLine_data)):t.row2.chart2.list=[],setTimeout((function(){t.row2.chart2.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.row2.chart2.chartLine&&this.row2.chart2.chartLine.dispose(),this.row2.chart2.chartLine=d.a.init(document.getElementById("row2chartLine2"));var e={title:{show:!0,x:"center",textStyle:{fontSize:"15",color:"green",fontWeight:"bold"}},tooltip:{show:!1,trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"任务进度",type:"pie",radius:["80%","70%"],avoidLabelOverlap:!1,hoverAnimation:!1,labelLine:{normal:{show:!1}},data:[{value:t.data1,name:"完成率",selected:!1,label:{normal:{show:!0,position:"center",fontSize:20,formatter:"{b}\n{d}%"}}},{value:t.data2-t.data1,label:{normal:{show:!1}}}]}],color:["#409EFF","#B7DBFF"]};this.row2.chart2.chartLine.setOption(e),window.onresize=function(){this.row2.chart2.chartLine.resize()}},getChart3:function(){var t=this;this.row2.chart3.listLoading=!0,Object(r["d"])(this.row2.chart3.getdataListParm).then((function(e){console.log("实时监控数据",e.data.list),null!==e.data.list?(console.log(t.$refs.list),t.$refs.list[m].style.background="#7ac3ec",console.log(t.$refs),t.row2.chart3.chartLine_data={data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958]]},t.row2.chart3.total=e.data.total,t.row2.chart3.pageNum=e.data.pageNum,t.row2.chart3.pages=e.data.pages):t.row2.chart3.list=[],setTimeout((function(){t.row2.chart3.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.row2.chart3.chartLine&&this.row2.chart3.chartLine.dispose(),this.row2.chart3.chartLine=d.a.init(document.getElementById("row2chartLine3"));var e={title:{text:"",subtext:""},color:["#61a5e8","#ff3131"],legend:{icon:"rectangle",data:["设计重量","实际重量"],textStyle:{fontSize:12,color:"#666"}},tooltip:{trigger:"axis"},calculable:!0,yAxis:[{type:"value",name:"重量(kg)",splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#666"}}}],xAxis:[{type:"category",splitLine:{show:!1},name:"时间",data:t.data1,axisLabel:{show:!0,textStyle:{color:"#666"}}}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,smooth:!0,barWidth:"37",itemStyle:{normal:{lineStyle:{color:"#61a5e8"}}}},{symbol:"none",name:"设计重量",type:"line",barWidth:"37",data:t.data2},{symbol:"triangle",symbolSize:10,itemStyle:{normal:{lineStyle:{color:"#ff3131"},color:function(t){var e=["#61a5e8","#ff3131"],a="";return a=t.dataIndex%2==0?1:2,"1"==a?e[1]:e[0]}}},data:t.data4,type:"scatter"}]};this.row2.chart3.chartLine.setOption(e),window.onresize=function(){this.row2.chart3.chartLine.resize()}},getChart3List:function(){var t=this;this.row2.chart3.listLoading2=!0,Object(r["d"])(this.row2.chart3.getdataListParmList).then((function(e){console.log("实时监控数据",e.data.list),t.list=[{id:1,A1:"1",A2:"进口燕麦草,1号苜蓿,棉籽",A3:"958kg",A4:"99.89%",A5:"新配方",A6:"959kg",A7:"1kg",A8:"958kg",states:1,color:"#fff",background:"#7ac3ec"},{id:2,A1:"1",A2:"青贮苜蓿,湿储玉米,啤酒糟,青贮玉米,水",A3:"2872",A4:"99.89%",A5:"新配方",A6:"2875.14",A7:"3.14kg",A8:"3830kg",states:1,color:"#fff",background:"#7ac3ec"},{id:3,A1:"1",A2:"17号,5号南",A3:"3860kg",A4:"99.75%",A5:"新配方",A6:"3869.52",A7:"9.52kg",A8:"3860kg",states:2,color:"#fff",background:"#7ac3ec"}],t.carLength=t.list.length,null!==e.data.list?(t.row2.chart3.total2=e.data.total,t.row2.chart3.pageNum2=e.data.pageNum,t.row2.chart3.pages2=e.data.pages,t.getChart3(),t.row2.chart3.getdataListParmList.offset,t.$refs.left.style.color="#ccc",e.data.pageNum,e.data.pages,t.$refs.right.style.color="#ccc"):t.row2.chart3.list2=[],setTimeout((function(){t.row2.chart3.listLoading2=!1}),100)}))},handleLeft:function(){console.log("左"),this.row2.chart3.getdataListParmList.offset>1&&(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset-1,this.$refs.left.style.color="#ccc",this.$refs.right.style.color="#000")},handleRight:function(){this.row2.chart3.pageNum2!==this.row2.chart3.pages2&&(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset+1,this.$refs.left.style.color="#000",this.$refs.right.style.color="#ccc")},mouseOver:function(){console.log("移入"),clearInterval(this.timer)},mouseLeave:function(){var t=this,e=0;this.timer=setInterval((function(){e>=3&&(e=0,console.log("关闭了定时器===")),m=e,0==m?(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#f7f941",t.$refs.list[1].style.background="#7ac3ec",t.$refs.list[1].style.color="#fff",t.$refs.list[2].style.background="#7ac3ec",t.$refs.list[2].style.color="#fff",t.row2.chart3.chartLine_data={data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958]]},t.roadChartLine3(t.row2.chart3.chartLine_data)):1==m?(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#fff",t.$refs.list[m].style.background="#7ac3ec",t.$refs.list[m].style.color="#f7f941",t.$refs.list[2].style.background="#7ac3ec",t.$refs.list[2].style.color="#fff",t.row2.chart3.chartLine_data={data1:["06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44","06:44:44","06:44:59","06:45:14","06:45:30","06:45:45","06:46:00","06:46:15","06:46:30","06:46:45","06:47:00","06:47:15","06:47:30","06:47:40","06:47:45","06:48:00","06:48:15","06:48:30","06:48:45","06:49:00","06:49:15","06:49:20","06:49:30","06:49:45","06:50:00","06:50:15","06:50:30","06:50:45","06:51:00","06:51:15","06:51:30","06:51:45","06:52:00","06:52:15","06:52:30","06:52:45","06:53:00","06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30"],data2:[959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38],data3:[958,962,955,961,956,956,968,1100,1099,1102,1115,1103,1217,1266,1681,1919,1968,2139,2426,2479,2486,2489,2480,2502,2498,2769,3097,3224,3236,3242,3238,3282,3320,3369,3411,3458,3499,3540,3580,3632,3668,3708,3753,3798,3830,3830],data4:[["06:44:44",1100],["06:44:44",1099],["06:47:40",2486],["06:47:45",2489],["06:49:20",3236],["06:49:20",3236],["06:53:14",3830],["06:53:15",3830]]},t.roadChartLine3(t.row2.chart3.chartLine_data)):2==m&&(t.$refs.list[0].style.background="#7ac3ec",t.$refs.list[0].style.color="#fff",t.$refs.list[1].style.background="#7ac3ec",t.$refs.list[1].style.color="#fff",t.$refs.list[m].style.background="#7ac3ec",t.$refs.list[m].style.color="#f7f941",t.row2.chart3.chartLine_data={data1:["06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30","06:55:45","06:56:00","06:56:15","06:56:30","06:56:45","06:57:00","06:57:15","06:57:30","06:57:45","06:58:00","06:58:16","06:58:31","06:58:46","06:59:01","06:59:03","06:59:16","06:59:31","06:59:46","07:00:01","07:00:16","07:00:31","07:00:46","07:01:01","07:01:16","07:01:31","07:01:46","07:02:01","07:02:01","07:02:16","07:02:31","07:02:46","07:03:01","07:03:16","07:03:31","07:03:46","07:04:01","07:04:16","07:04:31","07:04:46","07:05:01","07:05:16","07:05:20","07:05:31","07:05:46","07:06:01","07:06:16","07:06:31","07:06:46","07:07:01","07:07:10","07:07:16","07:07:31","07:07:46","07:08:01","07:08:16","07:08:31","07:08:46","07:09:01","07:09:16","07:09:31","07:09:46"],data2:[3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,351.82,351.82,351.82,351.82,351.82,351.82,351.82,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48],data3:[3837,3840,3832,3829,3842,3817,3825,3822,3850,3820,3830,3837,3833,3830,3832,3829,3814,3681,3575,3423,3268,3138,3036,3032,3039,3032,3017,3025,3036,2926,2895,2696,2315,1831,1379,1232,1232,1227,1228,1224,1225,1213,1230,1209,1221,1225,1231,1138,928,736,708,707,674,540,530,527,437,390,356,325,307,309,310,308,294,308,306,293,278,226],data4:[["06:59:01",3036],["06:59:03",3032],["07:02:01",1232],["07:02:01",1232],["07:05:16",736],["07:05:20",708],["07:07:10",356],["07:07:10",356]]},t.roadChartLine3(t.row2.chart3.chartLine_data)),console.log(e++)}),5e3),console.log("移除")},handleList:function(t,e){for(var a in console.log(e),clearInterval(this.timer),this.$refs.list)a==t?(this.$refs.list[a].style.background="#7ac3ec",this.$refs.list[a].style.color="#f7f941"):(this.$refs.list[a].style.background="#7ac3ec",this.$refs.list[a].style.color="#fff");1==e?(this.row2.chart3.chartLine_data={data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958]]},this.roadChartLine3(this.row2.chart3.chartLine_data)):2==e?(this.row2.chart3.chartLine_data={data1:["06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44","06:44:44","06:44:59","06:45:14","06:45:30","06:45:45","06:46:00","06:46:15","06:46:30","06:46:45","06:47:00","06:47:15","06:47:30","06:47:40","06:47:45","06:48:00","06:48:15","06:48:30","06:48:45","06:49:00","06:49:15","06:49:20","06:49:30","06:49:45","06:50:00","06:50:15","06:50:30","06:50:45","06:51:00","06:51:15","06:51:30","06:51:45","06:52:00","06:52:15","06:52:30","06:52:45","06:53:00","06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30"],data2:[959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38],data3:[958,962,955,961,956,956,968,1100,1099,1102,1115,1103,1217,1266,1681,1919,1968,2139,2426,2479,2486,2489,2480,2502,2498,2769,3097,3224,3236,3242,3238,3282,3320,3369,3411,3458,3499,3540,3580,3632,3668,3708,3753,3798,3830,3830],data4:[["06:44:44",1100],["06:44:44",1099],["06:47:40",2486],["06:47:45",2489],["06:49:20",3236],["06:49:20",3236],["06:53:14",3830],["06:53:15",3830]]},this.roadChartLine3(this.row2.chart3.chartLine_data)):3==e&&(this.row2.chart3.chartLine_data={data1:["06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30","06:55:45","06:56:00","06:56:15","06:56:30","06:56:45","06:57:00","06:57:15","06:57:30","06:57:45","06:58:00","06:58:16","06:58:31","06:58:46","06:59:01","06:59:03","06:59:16","06:59:31","06:59:46","07:00:01","07:00:16","07:00:31","07:00:46","07:01:01","07:01:16","07:01:31","07:01:46","07:02:01","07:02:01","07:02:16","07:02:31","07:02:46","07:03:01","07:03:16","07:03:31","07:03:46","07:04:01","07:04:16","07:04:31","07:04:46","07:05:01","07:05:16","07:05:20","07:05:31","07:05:46","07:06:01","07:06:16","07:06:31","07:06:46","07:07:01","07:07:10","07:07:16","07:07:31","07:07:46","07:08:01","07:08:16","07:08:31","07:08:46","07:09:01","07:09:16","07:09:31","07:09:46"],data2:[3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,351.82,351.82,351.82,351.82,351.82,351.82,351.82,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48],data3:[3837,3840,3832,3829,3842,3817,3825,3822,3850,3820,3830,3837,3833,3830,3832,3829,3814,3681,3575,3423,3268,3138,3036,3032,3039,3032,3017,3025,3036,2926,2895,2696,2315,1831,1379,1232,1232,1227,1228,1224,1225,1213,1230,1209,1221,1225,1231,1138,928,736,708,707,674,540,530,527,437,390,356,325,307,309,310,308,294,308,306,293,278,226],data4:[["06:59:01",3036],["06:59:03",3032],["07:02:01",1232],["07:02:01",1232],["07:05:16",736],["07:05:20",708],["07:07:10",356],["07:07:10",356]]},this.roadChartLine3(this.row2.chart3.chartLine_data))},getChart4:function(){var t=this;this.row3.chart1.listLoading=!0,Object(r["d"])(this.row3.chart1.getdataListParm).then((function(e){console.log("计划统计数据",e.data.list),null!==e.data.list?(t.row3.chart1.chartLine_data={data1:["计划准确率1","计划正确率","计划准确率(去除取消重量)"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[95.6,94.1,89.8,95.5,93.6,95.7,90.2,94.53,96.88,91,89.5,87,93.2,95,97.23]},{data:[97,96,88,91,93,97.7,90,92,91,91,95,94.5,91.6,92,92]},{data:[91.2,95,89,97,95.9,92.7,89,96,98,91,85,82,95,96,90,94]}]},t.row3.chart1.total=e.data.total,t.roadChartLine4(t.row3.chart1.chartLine_data)):t.row3.chart1.list=[],setTimeout((function(){t.row3.chart1.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.row3.chart1.chartLine&&this.row3.chart1.chartLine.dispose(),this.row3.chart1.chartLine=d.a.init(document.getElementById("row3chartLine1"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.row3.chart1.chartLine.setOption(e),window.onresize=function(){this.row3.chart1.chartLine.resize()}},getChart4Table:function(){var t=this;this.row3.chart1.table.listLoading=!0,Object(r["d"])(this.row3.chart1.table.getdataListParm).then((function(e){console.log("计划统计table/导出数据",e.data.list),null!==e.data.list?(t.row3.chart1.table.list=[{id:1,A1:"2020-09-16",A2:"3850",A3:"3862",A4:"95.6%",A5:"20",A6:"92.2%",A7:"10",A8:"11",A9:"97%"},{id:2,A1:"2020-09-17",A2:"3500",A3:"3428",A4:"94.1%",A5:"50",A6:"92.3%",A7:"9",A8:"11",A9:"95%"},{id:3,A1:"2020-09-18",A2:"3429",A3:"3401",A4:"89.8%",A5:"151",A6:"93.1%",A7:"8",A8:"11",A9:"94%"},{id:4,A1:"2020-09-19",A2:"3105",A3:"3015",A4:"95.5%",A5:"170",A6:"95%",A7:"11",A8:"11",A9:"96%"},{id:5,A1:"2020-09-20",A2:"3122",A3:"3100",A4:"93.6%",A5:"180",A6:"94%",A7:"10",A8:"11",A9:"90%"},{id:6,A1:"2020-09-21",A2:"3526",A3:"3497",A4:"95.7%",A5:"165",A6:"93%",A7:"13",A8:"11",A9:"90%"},{id:7,A1:"2020-09-22",A2:"3120",A3:"3015",A4:"90.2%",A5:"150",A6:"96.4%",A7:"7",A8:"11",A9:"91.5%"},{id:8,A1:"2020-09-23",A2:"3005",A3:"2995",A4:"94.53%",A5:"80",A6:"95.2%",A7:"9",A8:"11",A9:"95%"},{id:9,A1:"2020-09-24",A2:"2864",A3:"2761",A4:"96.88%",A5:"75",A6:"94.1%",A7:"10",A8:"11",A9:"92%"},{id:10,A1:"2020-09-25",A2:"2795",A3:"2755",A4:"91%",A5:"120",A6:"90.5%",A7:"8",A8:"11",A9:"91%"},{id:11,A1:"2020-09-26",A2:"3168",A3:"3100",A4:"89%",A5:"130",A6:"97.5%",A7:"9",A8:"11",A9:"95%"},{id:12,A1:"2020-09-27",A2:"3195",A3:"3100",A4:"89.5%",A5:"115",A6:"91.4%",A7:"11",A8:"11",A9:"92.4%"},{id:13,A1:"2020-09-28",A2:"3270",A3:"3190",A4:"93.2%",A5:"170",A6:"89.4%",A7:"12",A8:"11",A9:"96%"},{id:14,A1:"2020-09-29",A2:"3410",A3:"3395",A4:"95%",A5:"110",A6:"86.4%",A7:"10",A8:"11",A9:"94%"},{id:15,A1:"2020-09-30",A2:"3210",A3:"3125",A4:"97.23%",A5:"95",A6:"88%",A7:"19",A8:"11",A9:"92%"}],t.row3.chart1.table.total=e.data.total):t.row3.chart1.table.list=[],setTimeout((function(){t.row3.chart1.table.listLoading=!1}),100)}))},getChart5:function(){var t=this;this.row3.chart2.listLoading=!0,Object(r["d"])(this.row3.chart2.getdataListParm).then((function(e){console.log("泌乳牛采食量数据",e.data.list),null!==e.data.list?(t.row3.chart2.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[25,27.2,26.5,29,26.4,23.6,27.7,28,31,33.5,30,35,29.8,26,29.5],data3:[22.5,25,26.5,24.3,27.1,25.5,29,22.4,29,19.8,23.5,22.8,27.6,21.2,26]},t.row3.chart2.total=e.data.total,t.roadChartLine5(t.row3.chart2.chartLine_data)):t.row3.chart2.list=[],setTimeout((function(){t.row3.chart2.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.row3.chart2.chartLine&&this.row3.chart2.chartLine.dispose(),this.row3.chart2.chartLine=d.a.init(document.getElementById("row3chartLine2"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:["泌乳牛产奶量","泌乳牛采食量"]},xAxis:[{type:"category",data:t.data1,name:"日期"}],yAxis:[{type:"value",name:"泌乳牛采食量(kg)",axisLabel:{formatter:"{value} "}},{type:"value",name:"产奶量(kg)",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",itemStyle:{normal:{color:"#ff2d2d"}},data:t.data3}]};this.row3.chart2.chartLine.setOption(e),window.onresize=function(){this.row3.chart2.chartLine.resize()}},getChart5Table:function(){var t=this;this.row3.chart2.table.listLoading=!0,Object(r["d"])(this.row3.chart2.table.getdataListParm).then((function(e){console.log("泌乳牛采食量table/导出数据",e.data.list),null!==e.data.list?(t.row3.chart2.table.list=[{id:1,A1:"2020-09-16",A2:"25",A3:"22.5"},{id:2,A1:"2020-09-17",A2:"27.2",A3:"25"},{id:3,A1:"2020-09-18",A2:"26.5",A3:"26.5"},{id:4,A1:"2020-09-19",A2:"29",A3:" 24.3"},{id:5,A1:"2020-09-20",A2:"26.4",A3:"27.1"},{id:6,A1:"2020-09-21",A2:"23.6",A3:"25.5"},{id:7,A1:"2020-09-22",A2:"27.7",A3:"29"},{id:8,A1:"2020-09-23",A2:"28",A3:"22.4"},{id:9,A1:"2020-09-24",A2:"31",A3:"29"},{id:10,A1:"2020-09-25",A2:"33.5",A3:"19.8"},{id:11,A1:"2020-09-26",A2:"30",A3:"23.5"},{id:12,A1:"2020-09-27",A2:"35",A3:"22.8"},{id:13,A1:"2020-09-28",A2:"29.8",A3:"27.6"},{id:14,A1:"2020-09-29",A2:"26",A3:"21.2"},{id:15,A1:"2020-09-30",A2:"29.5",A3:"26"}],t.row3.chart2.table.total=e.data.total):t.row3.chart2.table.list=[],setTimeout((function(){t.row3.chart2.table.listLoading=!1}),100)}))},getChart6:function(){var t=this;this.row4.chart1.listLoading=!0,Object(r["d"])(this.row4.chart1.getdataListParm).then((function(e){console.log("成本统计数据",e.data.list),null!==e.data.list?(t.row4.chart1.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[1.5,1.8,2.2,1.9,1.8,1.7,2,2.7,2.4,1.7,1.8,1.7,2.7,2.4,2.1],data3:[50,65,70,45,42,45,29,39,47,56,67,72,75,68,66]},t.row4.chart1.total=e.data.total,t.roadChartLine6(t.row4.chart1.chartLine_data)):t.row4.chart1.list=[],setTimeout((function(){t.row4.chart1.listLoading=!1}),100)}))},roadChartLine6:function(t){null!=this.row4.chart1.chartLine&&this.row4.chart1.chartLine.dispose(),this.row4.chart1.chartLine=d.a.init(document.getElementById("row4chartLine1"));var e={title:{text:""},grid:{left:"8%",right:"8%",bottom:"3%",containLabel:!0},tooltip:{trigger:"axis"},legend:{data:["泌乳牛采食量","泌乳牛产奶量"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"},name:"日期"}],yAxis:[{type:"value",name:"公斤奶\n饲料成本(元)",axisLabel:{formatter:"{value}"}},{type:"value",name:"单头牛\n饲料成本(元)",axisLabel:{formatter:"{value}"}}],series:[{name:"泌乳牛采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",yAxisIndex:1,itemStyle:{normal:{color:"#ff3131"}},data:t.data3}]};this.row4.chart1.chartLine.setOption(e),window.onresize=function(){this.row4.chart1.chartLine.resize()}},getChart7:function(){var t=this;this.row4.chart2.listLoading=!0,Object(r["d"])(this.row4.chart2.getdataListParm).then((function(e){console.log("出库统计数据",e.data.list),null!==e.data.list?(t.row4.chart2.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[3860,3200,3560,3428,3108,2986,2670,3120,3204,3150,2850,3220,3321,3125,3410],data3:[120,225,0,0,124,0,159,122,0,85,62,55,0,0,75],data4:[4800,5572,6820,3880,4830,8800,4575,3850,3896,4285,3800,6562,6720,3580,4120]},t.row4.chart2.total=e.data.total,t.roadChartLine7(t.row4.chart2.chartLine_data)):t.row4.chart2.list=[],setTimeout((function(){t.row4.chart2.listLoading=!1}),100)}))},roadChartLine7:function(t){null!=this.row4.chart2.chartLine&&this.row4.chart2.chartLine.dispose(),this.row4.chart2.chartLine=d.a.init(document.getElementById("row4chartLine2"));var e={title:{text:""},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},tooltip:{trigger:"axis"},legend:{data:["系统用量","人工用量","金额"]},xAxis:[{type:"category",data:t.data1,name:"日期"}],yAxis:[{type:"value",name:"重量(kg)",axisLabel:{formatter:"{value}"}},{type:"value",name:"金额(元)",axisLabel:{formatter:"{value}"}}],series:[{name:"系统用量",type:"bar",stack:"广告",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"人工用量",type:"bar",stack:"广告",itemStyle:{normal:{color:"orange"}},data:t.data3},{name:"金额",type:"line",yAxisIndex:1,data:t.data4,itemStyle:{normal:{color:"#ff3131"}}}]};this.row4.chart2.chartLine.setOption(e),window.onresize=function(){this.row4.chart2.chartLine.resize()}},getTable8:function(){var t=this;this.row4.table.listLoading=!0,Object(r["d"])(this.row4.table.getdataListParm).then((function(e){console.log("库存预警table数据",e.data.list),null!==e.data.list?(t.row4.table.list=[{id:1,A1:"1",A2:"国产燕麦草",A3:"150",A4:"2"},{id:2,A1:"2",A2:"棉籽",A3:"120",A4:"3"},{id:3,A1:"3",A2:"麦秸秆",A3:"260",A4:"6"},{id:4,A1:"4",A2:"花生秧",A3:"210",A4:"4"},{id:5,A1:"5",A2:"青贮苜蓿",A3:"68",A4:"2"}],t.row4.table.total=e.data.total):t.row4.table.list=[],setTimeout((function(){t.row4.table.listLoading=!1}),100)}))},handleMore:function(){this.$router.push({path:"/inventoryManagement/Warning"})},handleExport:function(){},handleTable:function(t){"row3chartLine1"==t?(console.log("计划统计表格"),this.row3.chart1.isTable=!0,this.row3.chart1.isChart=!1,this.getChart4Table()):"row3chartLine2"==t&&(console.log("泌乳牛采食量表格"),this.row3.chart2.isTable=!0,this.row3.chart2.isChart=!1,this.getChart5Table())},handleChart:function(t){"row3chartLine1"==t?(console.log("计划统计图表"),this.row3.chart1.isTable=!1,this.row3.chart1.isChart=!0):"row3chartLine2"==t&&(console.log("泌乳牛采食量图表"),this.row3.chart2.isTable=!1,this.row3.chart2.isChart=!0)}}},u=p,h=(a("9b2f"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"a95abae0",null);e["default"]=f.exports},"5a9a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"times",e)},expression:"table.getdataListParm.parammaps.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"鲜样重量(g)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.freshweight))])]}}])}),a("el-table-column",{attrs:{label:"烘干重量(g)","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dryweight))])]}}])}),a("el-table-column",{attrs:{label:"理论干物质","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.thoweight))])]}}])}),a("el-table-column",{attrs:{label:"实际干物质","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actweight))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"班次"},model:{value:t.create.temp.times,callback:function(e){t.$set(t.create.temp,"times",e)},expression:"create.temp.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"鲜样重量(g):",prop:"freshweight"}},[a("el-input",{ref:"freshweight",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number"},on:{blur:t.blurFreshweight},model:{value:t.create.temp.freshweight,callback:function(e){t.$set(t.create.temp,"freshweight",e)},expression:"create.temp.freshweight"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"烘干重量(g):",prop:"dryweight"}},[a("el-input",{ref:"dryweight",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"number"},on:{blur:t.blurDryweight},model:{value:t.create.temp.dryweight,callback:function(e){t.$set(t.create.temp,"dryweight",e)},expression:"create.temp.dryweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"理论干物质:",prop:"thoweight"}},[a("span",[t._v(t._s(t.create.temp.thoweight))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"实际干物质:",prop:"actweight"}},[a("span",[t._v(t._s(t.create.temp.actweight))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作日期:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeOperatetime},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"FormulaDryMatter",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getFtdryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",freshweight:"",dryweight:"",thoweight:"",actweight:"",times:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],freshweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],dryweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getFtdryEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getFtdrytweight",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="FormulaDryMatter",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",freshweight:"",dryweight:"",thoweight:"",actweight:"",times:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname,this.getThoweight()},changeOperatetime:function(){this.getThoweight()},getThoweight:function(){var t=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(e){null!==e.data.list?t.create.temp.thoweight=e.data.list[0].thoweight:t.create.temp.thoweight=0}))},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},blurFreshweight:function(){""!==this.create.temp.dryweight&&""!==this.create.temp.freshweight&&(this.create.temp.actweight=parseFloat(this.create.temp.dryweight)/parseFloat(this.create.temp.freshweight),this.create.temp.actweight=this.create.temp.actweight.toFixed(2))},blurDryweight:function(){""!==this.create.temp.freshweight&&""!==this.create.temp.dryweight&&(this.create.temp.actweight=parseFloat(this.create.temp.dryweight)/parseFloat(this.create.temp.freshweight),this.create.temp.actweight=this.create.temp.actweight.toFixed(2))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.freshweight))||!a.test(parseFloat(t.create.temp.dryweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertFtdry",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify)}}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.freshweight))||!a.test(parseFloat(t.create.temp.dryweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertFtdry",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):Object(r["j"])(e,t.$notify)}}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.freshweight))||!a.test(parseFloat(t.create.temp.dryweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="updateFtdry",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteFtdry",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方干物质",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteFtdry",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方干物质",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copyFtdry",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'barid'");a.test(e.data)?t.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}else t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条配方干物质",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("d79a"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"173765fa",null);e["default"]=h.exports},"5b63":function(t,e,a){},"5c0b":function(t,e,a){"use strict";var i=a("9c0c"),s=a.n(i);s.a},"5dec":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-自定义报表",use:"icon-自定义报表-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-自定义报表"><defs><style type="text/css"></style></defs><path d="M171.822 884.784h73.834c23.206 0 42.193-18.987 42.193-42.188V605.27c0-23.207-18.987-42.193-42.193-42.193h-73.834c-23.201 0-42.188 18.986-42.188 42.193v237.326c0 23.201 18.987 42.188 42.188 42.188z m3.863-274.364h64.821v227.025h-64.821V610.42z m201.821 274.364h73.835c23.206 0 42.19-18.987 42.19-42.188v-480.98c0-23.207-18.984-42.194-42.19-42.194h-73.835c-23.206 0-42.192 18.987-42.192 42.194v480.979c0 23.202 18.987 42.189 42.192 42.189z m5.151-518.017h63.535v470.679h-63.535V366.767z m201.587 518.017h73.832c23.209 0 42.193-18.987 42.193-42.188V447.048c0-23.2-18.984-42.187-42.193-42.187h-73.832c-23.209 0-42.195 18.986-42.195 42.187v395.548c0 23.201 18.986 42.188 42.195 42.188z m5.151-432.586h63.531v385.247h-63.531V452.198z m200.531 432.586h73.834c23.203 0 42.189-18.987 42.189-42.188V132.724c0-23.2-18.986-42.187-42.189-42.187h-73.834c-23.205 0-42.191 18.986-42.191 42.187v709.872c-0.001 23.201 18.986 42.188 42.191 42.188z m5.148-746.91h63.535v699.571h-63.535V137.874z m0 0" fill="#ffffff" p-id="97418" /><path d="M968.85 927.674H80.106V72.536c0-14.243-11.546-25.789-25.789-25.789S28.528 58.293 28.528 72.536v880.286c0 0.107 0.015 0.213 0.016 0.321-0.001 0.108-0.016 0.211-0.016 0.319 0 14.244 11.546 25.789 25.789 25.789H968.85c14.242 0 25.789-11.545 25.789-25.789 0-14.24-11.547-25.788-25.789-25.788z" fill="#ffffff" p-id="97419" /></symbol>'});l.a.add(n);e["default"]=n},"5f05":function(t,e,a){},"5f84":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o=6e3,c={mixins:[n["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 t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.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}]})}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);e["default"]=p.exports},"5f87":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"c",(function(){return n})),a.d(e,"b",(function(){return o}));var i=a("a78e"),s=a.n(i),r="vue_admin_template_token";function l(){return s.a.get(r)}function n(t){return s.a.set(r,t)}function o(){return s.a.remove(r)}},"5f8b":function(t,e,a){},"5fd4":function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"d",(function(){return r})),a.d(e,"c",(function(){return l})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o}));var i=a("1c1e");function s(t){return Object(i["a"])({url:"/dashboard/update",method:"POST",data:t})}function r(t){return Object(i["a"])({url:"/dashboard/".concat(t)})}function l(t){return Object(i["a"])({url:"/dashboard/delete",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/chartboardmap/boardbychart?chart_id=".concat(t)})}function o(t){return Object(i["a"])({url:"/dashboard/order",method:"POST",data:t})}},6006:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-file1",use:"icon-file1-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file1"><defs><style type="text/css"></style></defs><path d="M922 910.5H102c-21.9 0-39.6-17.7-39.6-39.6V224.3c0-21.9 17.7-39.6 39.6-39.6h820c21.9 0 39.6 17.7 39.6 39.6v646.6c0 21.8-17.8 39.6-39.6 39.6z" fill="#FFA000" p-id="3081" /><path d="M512 354.9H62.4V153.1c0-21.9 17.7-39.6 39.6-39.6h307.7c17.5 0 32.9 11.4 37.9 28.2L512 354.9z" fill="#FFA000" p-id="3082" /><path d="M859.7 861.3H164.3c-21.9 0-39.6-17.7-39.6-39.6v-537c0-21.9 17.7-39.6 39.6-39.6h695.5c21.9 0 39.6 17.7 39.6 39.6v537c0 21.8-17.8 39.6-39.7 39.6z" fill="#FFFFFF" p-id="3083" /><path d="M922 910.5H102c-21.9 0-39.6-17.7-39.6-39.6V359.1c0-21.9 17.7-39.6 39.6-39.6h820c21.9 0 39.6 17.7 39.6 39.6v511.8c0 21.8-17.8 39.6-39.6 39.6z" fill="#FFCA28" p-id="3084" /><path d="M852.8 319.5L612.4 738.8l-209.8-279L147 471.3l97.5 130.1-97.5 4.4 228.2 304.6H922c21.9 0 39.6-17.7 39.6-39.6V463.3L852.8 319.5z" fill="#FFB806" p-id="3085" /><path d="M382.8 483.1H165.1c-10.9 0-19.8-8.9-19.8-19.8s8.9-19.8 19.8-19.8h217.7c10.9 0 19.8 8.9 19.8 19.8s-8.9 19.8-19.8 19.8zM382.8 617.6H165.1c-10.9 0-19.8-8.9-19.8-19.8s8.9-19.8 19.8-19.8h217.7c10.9 0 19.8 8.9 19.8 19.8 0 11-8.9 19.8-19.8 19.8z" fill="#FFF8E1" p-id="3086" /><path d="M837.4 762.9l-107-70.7c-3.3-2.2-7.6-2.2-10.9 0l-107 70.7c-6.6 4.4-15.4-0.4-15.4-8.3V318.1c0-10.9 8.5-19.8 18.9-19.8h217.8c10.4 0 18.9 8.9 18.9 19.8v436.5c0.1 7.9-8.7 12.7-15.3 8.3z" fill="#F44336" p-id="3087" /></symbol>'});l.a.add(n);e["default"]=n},"601f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"操作类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.usetype,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"usetype",e)},expression:"table.getdataListParm.parammaps.usetype"}},t._l(t.operationTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.feedid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"feedid",e)},expression:"table.getdataListParm.parammaps.feedid"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.feedid,attrs:{label:t.feedname,value:t.feedid}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.cowclassid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"cowclassid",e)},expression:"table.getdataListParm.parammaps.cowclassid"}},t._l(t.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"出库日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"操作类型","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.usetype))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createemp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleSee(i)}}},[t._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",height:"300px",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.createTemp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作类型:",prop:"usetype"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"操作类型",disabled:"see"===t.create.dialogStatus},on:{change:t.changeUsetype},model:{value:t.create.createTemp.usetype,callback:function(e){t.$set(t.create.createTemp,"usetype",e)},expression:"create.createTemp.usetype"}},t._l(t.operationTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"出库日期:",prop:"usedate"}},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"datetime",placeholder:"出库日期",disabled:"see"===t.create.dialogStatus},model:{value:t.create.createTemp.usedate,callback:function(e){t.$set(t.create.createTemp,"usedate",e)},expression:"create.createTemp.usedate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"饲料名称:",prop:"feedid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"饲料名称",disabled:"see"===t.create.dialogStatus},on:{change:t.changeFeedName},model:{value:t.create.createTemp.feedid,callback:function(e){t.$set(t.create.createTemp,"feedid",e)},expression:"create.createTemp.feedid"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.feedid,attrs:{label:t.feedname,value:t.feedid}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择牲畜类别",disabled:"see"===t.create.dialogStatus||"损耗"==t.create.createTemp.usetype},on:{change:t.changeLivestock},model:{value:t.create.createTemp.cowclassid,callback:function(e){t.$set(t.create.createTemp,"cowclassid",e)},expression:"create.createTemp.cowclassid"}},t._l(t.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"库存重量(kg):",prop:"repertoryweight"}},[a("el-input",{ref:"repertoryweight",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"text",disabled:""},model:{value:t.create.createTemp.repertoryweight,callback:function(e){t.$set(t.create.createTemp,"repertoryweight",e)},expression:"create.createTemp.repertoryweight"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作重量(kg):",prop:"operateweight"}},[a("el-input",{ref:"operateweight",staticClass:"filter-item",attrs:{placeholder:"最多两位小数",type:"text",disabled:"see"===t.create.dialogStatus},model:{value:t.create.createTemp.operateweight,callback:function(e){t.$set(t.create.createTemp,"operateweight",e)},expression:"create.createTemp.operateweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",attrs:{placeholder:"1-255字符",type:"text",disabled:"see"===t.create.dialogStatus},model:{value:t.create.createTemp.remark,callback:function(e){t.$set(t.create.createTemp,"remark",e)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"LaborConsumption",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["人工用量操作类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getFeedstorageuse",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],operationTypeList:[],feedNameList:[],livestockList:[],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:o.a.get("pastureid"),usedate:Object(c["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:"",remark:"",price:""},rules:{usetype:[{type:"string",required:!0,message:"必填",trigger:"blur"}],usedate:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],operateweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",see:"查看"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="SystemConsumption",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.operationTypeList=e.data.getDictByName.list,t.livestockList=e.data.getCowclassListEnable.list,t.feedNameList=e.data.getFeedstorageuse.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(c["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.table.getdataListParm.parammaps.startTime=Object(c["e"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge=""},resetCreateTemp:function(){this.create.createTemp={pastureid:o.a.get("pastureid"),usedate:Object(c["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:o.a.get("employename"),remark:"",price:""}},changeUsetype:function(t){console.log(t),"损耗"==t&&(console.log(t),this.create.createTemp.cowclassid="",this.create.createTemp.cowclass="")},changeFeedName:function(t){this.create.createTemp.feedname=this.feedNameList.find((function(e){return e.feedid==t})).feedname,this.create.createTemp.price=this.feedNameList.find((function(e){return e.feedid==t})).price,this.create.createTemp.repertoryweight=this.feedNameList.find((function(e){return e.feedid==t})).stockweight},changeLivestock:function(t){this.create.createTemp.cowclass=this.livestockList.find((function(e){return e.id==t})).classname},handleCreate:function(){console.log("点击了新增"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.$refs["createTemp"].validate((function(e){if(e){if(t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),"人工用料"==t.create.createTemp.usetype&&""==t.create.createTemp.cowclassid)return t.$message({type:"error",message:"请选择牲畜类别",duration:2e3}),!1;t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertFeeduse",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,usedate:t.create.createTemp.usedate,feedid:t.create.createTemp.feedid,feedname:t.create.createTemp.feedname,cowclassid:t.create.createTemp.cowclassid,cowclass:t.create.createTemp.cowclass,usetype:t.create.createTemp.usetype,operateweight:t.create.createTemp.operateweight,repertoryweight:t.create.createTemp.repertoryweight,createemp:t.create.createTemp.createemp,remark:t.create.createTemp.remark,price:t.create.createTemp.price}},t.requestParam.data[1]={name:"updateFeedstorageuse",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,feedid:t.create.createTemp.feedid,operateweight:t.create.createTemp.operateweight}},Object(r["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(r["j"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}))},handleSee:function(t){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleRowDelete:function(t){console.log("点击了行内删除")},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},m=d,p=(a("280c"),a("b642"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"db10a5b8",null);e["default"]=u.exports},6071:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-盘点单",use:"icon-盘点单-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-盘点单"><defs><style type="text/css"></style></defs><path d="M384 160h256a32 32 0 1 0 0-64H384a32 32 0 0 0 0 64h256-256z m346.56-64H896a64 64 0 0 1 64 64v768a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64v-768a64 64 0 0 1 64-64h165.44A96 96 0 0 1 384 32h256a96 96 0 0 1 90.56 64z m-437.12 64H128v768h768v-768h-165.44A96 96 0 0 1 640 224H384a96 96 0 0 1-90.56-64z m187.2 192a192.32 192.32 0 0 1 192.64 192.64c0 33.152-8.96 64.512-23.296 92.288l103.936 77.952a22.656 22.656 0 0 1 4.48 31.36 20.928 20.928 0 0 1-17.92 8.96 26.688 26.688 0 0 1-13.44-4.48l-103.04-77.952a193.792 193.792 0 0 1-143.36 64.512A192.32 192.32 0 0 1 288 544.64 192.32 192.32 0 0 1 480.64 352z m0 340.48a147.968 147.968 0 0 0 147.84-147.84A147.968 147.968 0 0 0 480.64 396.8 147.968 147.968 0 0 0 332.8 544.64a147.968 147.968 0 0 0 147.84 147.84z" p-id="89907" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"60b1":function(t,e,a){"use strict";var i=a("4996"),s=a.n(i);s.a},"60f6":function(t,e,a){"use strict";var i=a("021f"),s=a.n(i);s.a},6154:function(t,e,a){},6172:function(t,e,a){},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"d",(function(){return r})),a.d(e,"b",(function(){return l}));a("a9e3"),a("53ca");function i(t){return/^(https?:|mailto:|tel:)/.test(t)}function s(t){return 1}function r(t){if(t instanceof Array){if(0===t.length)return!0}else{if(!(t instanceof Object))return"null"===t||null===t||"undefined"===t||void 0===t||""===t;if("{}"===JSON.stringify(t))return!0}return!1}function l(t,e,a){return""===e||void 0===e||null===e||0===e.length?a(new Error("输入不可以为空")):void setTimeout((function(){var t=/^\d+$/,i=t.test(e);i?a():a(new Error("请输入整数"))}),0)}},6200:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"role-details inside-base"},[a("div",{staticClass:"inside-base-main clearfix"},[a("div",{staticClass:"inside-base-cont"},[a("div",{staticClass:"role-cont clearfix"},[a("div",[a("el-table",{ref:"table",staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:t.tableData,"row-key":"id",border:"",indent:10,"select-on-indeterminate":!0,"default-expand-all":!1,"show-checkbox":"","tree-props":{children:"childList",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"name",label:"页面"}}),a("el-table-column",{attrs:{label:"查看"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-checkbox",{attrs:{label:"查看"},on:{change:function(a){return t.fnCheckEv(e,"see")}},model:{value:e.row.fnCheck.see,callback:function(a){t.$set(e.row.fnCheck,"see",a)},expression:"scope.row.fnCheck.see"}})]}}])}),a("el-table-column",{attrs:{label:"编辑"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-checkbox",{attrs:{label:"编辑"},on:{change:function(a){return t.fnCheckEv(e,"edit")}},model:{value:e.row.fnCheck.edit,callback:function(a){t.$set(e.row.fnCheck,"edit",a)},expression:"scope.row.fnCheck.edit"}})]}}])})],1)],1)])])])])},s=[],r=(a("4160"),a("159b"),{name:"FormulaStatistics",data:function(){return{msg:"",tableData:[{id:1,name:"配方计划",fnCheck:{see:!1,edit:!1},childList:[{p_id:1,id:31,name:"配方模板",fnCheck:{see:!1,edit:!1}},{p_id:1,id:32,name:"栏舍配方",fnCheck:{see:!1,edit:!1}}]},{id:2,name:"栏舍生产",fnCheck:{see:!1,edit:!1},childList:[{p_id:2,id:33,name:"栏舍产奶量",fnCheck:{see:!1,edit:!1}},{p_id:2,id:34,name:"栏舍剩料量",fnCheck:{see:!1,edit:!1}}]}]}},mounted:function(){},methods:{getParent:function(t,e){var a=[];if(0===t.length)return e&&a.push(t),a;var i=function e(i,s){for(var r=0,l=i.length;r<l;r++){var n=i[r];if(n.id===s){a.push(n),e(t,n.p_id);break}n.childList&&e(n.childList,s)}return a};return a=i(t,e),a},fnCheckEv:function(t,e){t.row.childList&&this.handleFnAll(t.row,t.row.fnCheck[e],e),this.getParent(this.tableData,t.row.id).forEach((function(a,i){if(a.childList){var s=0;a.childList.forEach((function(t,a){!0===t.fnCheck[e]&&(s+=1)})),s===a.childList.length?a.fnCheck[e]=!0:a.fnCheck[e]=!1}else a.fnCheck[e]=t.row.fnCheck[e]}))},handleFnAll:function(t,e,a){if(t.fnCheck[a]=e,t.childList){var i=this;t.childList.forEach((function(s,r){i.handleFnAll(t.childList[r],e,a)}))}},dataCheckEv:function(t,e){var a=t.row.dataCheck[e];for(var i in t.row.dataCheck)t.row.dataCheck[i]=!1;t.row.dataCheck[e]=a,t.row.childList&&this.handleDataAll(t.row,t.row.dataCheck[e],e),this.getParent(this.tableData,t.row.id).forEach((function(t,i){for(var s in t.dataCheck)t.dataCheck[s]=!1;if(t.childList){var r=0;t.childList.forEach((function(t,a){!0===t.dataCheck[e]&&(r+=1)})),r===t.childList.length?t.dataCheck[e]=!0:t.dataCheck[e]=!1}else t.dataCheck[e]=a}))},handleDataAll:function(t,e,a){for(var i in t.dataCheck)t.dataCheck[i]=!1;if(t.dataCheck[a]=e,t.childList){var s=this;t.childList.forEach((function(i,r){s.handleDataAll(t.childList[r],e,a)}))}}}}),l=r,n=(a("2502"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"7534253a",null);e["default"]=o.exports},"620a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-bottom":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","cell-style":t.cellStyle,"row-style":t.rowStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"近七天平均计划量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.avgweight))])]}}])}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ldays))])]}}])}),a("el-table-column",{attrs:{label:"最近预警日期","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lastdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSee(i)}}},[t._v("查看")])]}}])})],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.see.dialogStatus],visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto"},attrs:{rules:t.see.rules,model:t.see.temp,"label-position":"right","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"饲料名称:",prop:"feedname"}},[a("span",[t._v(" "+t._s(t.see.temp.feedname))])])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.listLoading,expression:"see.listLoading"}],key:t.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.see.pageNum-1)*t.see.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"库存量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"近七天平均计划量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.avgweight))])]}}])}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.row.ldays))])]}}])}),a("el-table-column",{attrs:{label:"预警日期","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.date))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.see.total>=0,expression:"see.total>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:t.see.total,page:t.see.getdataListParm.offset,limit:t.see.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.see.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.see.getdataListParm,"pagecount",e)},pagination:t.getSeeList}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)])],1)},s=[],r=a("2934"),l=a("333d"),n=a("a78e"),o=a.n(n),c={name:"Warning",components:{Pagination:l["a"]},data:function(){return{table:{getdataListParm:{name:"getFsWarnList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{see:"库存预警记录"},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},getdataListParm:{name:"getFsWarnListdate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},tableKey:0,list:[],total:0,listLoading:!0},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSee:function(t){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.temp=Object.assign({},t),this.see.list=[],this.see.getdataListParm.offset=1,this.see.getdataListParm.parammaps.feedid=t.feedid,this.getSeeList()},getSeeList:function(){var t=this;this.see.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.see.list=e.data.list,t.see.pageNum=e.data.pageNum,t.see.pageSize=e.data.pageSize,t.see.total=e.data.total):t.see.list=[],setTimeout((function(){t.see.listLoading=!1}),100)}))},handleExport:function(){console.log("导出")}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);e["default"]=p.exports},6270:function(t,e,a){"use strict";var i=a("dc49"),s=a.n(i);s.a},6497:function(t,e,a){"use strict";var i=a("26c4"),s=a.n(i);s.a},65825:function(t,e,a){"use strict";a.r(e);var i=function(t,e){var a=e._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-1",type:"warning"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);e["default"]=n.exports},"65bf":function(t,e,a){"use strict";var i=a("9e7c"),s=a.n(i);s.a},6602:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-TMR设备",use:"icon-TMR设备-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-TMR设备"><defs><style type="text/css"></style></defs><path d="M516.310723 48.017537A463.991663 463.991663 0 1 1 47.999138 507.689277 463.991663 463.991663 0 0 1 516.310723 48.017537m0-47.999137A511.9908 511.9908 0 1 0 1023.9816 516.809114 511.9908 511.9908 0 0 0 516.790714 0.0184z" p-id="61420" fill="#ffffff" /><path d="M605.109127 480.329769h163.837056v47.999138H605.109127z" fill="#ffffff" p-id="61421" /><path d="M807.185496 494.089522a17.919678 17.919678 0 0 0-1.759968-6.239888l-49.919104-84.158488a51.519074 51.519074 0 0 0-43.839212-24.959551h-91.83835v-7.199871a79.998563 79.998563 0 0 0-79.998562-79.998562H296.314676a79.998563 79.998563 0 0 0-79.998563 79.998562V656.006612a22.399598 22.399598 0 0 0 22.399598 22.399598h40.479272a76.318629 76.318629 0 0 0 145.917378 0h193.276527a76.318629 76.318629 0 0 0 145.917378 0h20.799627a22.559595 22.559595 0 0 0 22.559594-22.399598v-158.717148zM383.9931 656.966595a31.999425 31.999425 0 1 1 0-2.079962z m191.99655-23.35958h-150.717292a76.318629 76.318629 0 0 0-145.917378 0h-17.919678V371.531724A35.03937 35.03937 0 0 1 296.314676 336.012362h243.835618a34.879373 34.879373 0 0 1 34.719376 34.879374z m115.357927 54.399022a31.999425 31.999425 0 0 1-31.999425-31.999425 31.999425 31.999425 0 1 1 31.999425 31.999425z m71.358718-58.718945a76.478626 76.478626 0 0 0-142.877433 0V423.690787h91.83835a5.759897 5.759897 0 0 1 5.119908 3.039945l45.919175 78.078597z" p-id="61422" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"668c":function(t,e,a){},6724:function(t,e,a){"use strict";a("8d41");var i="@@wavesContext";function s(t,e){function a(a){var i=Object.assign({},e.value),s=Object.assign({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=s.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var l=r.getBoundingClientRect(),n=r.querySelector(".waves-ripple");switch(n?n.className="waves-ripple":(n=document.createElement("span"),n.className="waves-ripple",n.style.height=n.style.width=Math.max(l.width,l.height)+"px",r.appendChild(n)),s.type){case"center":n.style.top=l.height/2-n.offsetHeight/2+"px",n.style.left=l.width/2-n.offsetWidth/2+"px";break;default:n.style.top=(a.pageY-l.top-n.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",n.style.left=(a.pageX-l.left-n.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return n.style.backgroundColor=s.color,n.className="waves-ripple z-active",!1}}return t[i]?t[i].removeHandle=a:t[i]={removeHandle:a},a}var r={bind:function(t,e){t.addEventListener("click",s(t,e),!1)},update:function(t,e){t.removeEventListener("click",t[i].removeHandle,!1),t.addEventListener("click",s(t,e),!1)},unbind:function(t){t.removeEventListener("click",t[i].removeHandle,!1),t[i]=null,delete t[i]}},l=function(t){t.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(l)),r.install=l;e["a"]=r},6768:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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(e){return t.handleSetLineChartData("newVisitis")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-people"},[a("svg-icon",{attrs:{"icon-class":"peoples","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" New Visits ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":102400,duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Messages ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":81212,duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Purchases ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":9280,duration:3200}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"shopping","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Shoppings ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":13600,duration:3600}})],1)])])],1)},s=[],r=a("ec1b"),l=a.n(r),n={components:{CountTo:l.a},methods:{handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)}}},o=n,c=(a("f834"),a("2877")),d=Object(c["a"])(o,i,s,!1,null,"253a9c06",null);e["default"]=d.exports},"67b0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"用户名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.empCode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"empCode",e)},expression:"table.getdataListParm.parammaps.empCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"员工姓名",clearable:""},model:{value:t.table.getdataListParm.parammaps.empname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"empname",e)},expression:"table.getdataListParm.parammaps.empname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"用户名称","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.username))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"建议使用手机号",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.username,callback:function(a){t.$set(e.row,"username","string"===typeof a?a.trim():a)},expression:"scope.row.username"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"员工姓名","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.empname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.empname,callback:function(a){t.$set(e.row,"empname","string"===typeof a?a.trim():a)},expression:"scope.row.empname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"手机号","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.phone))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"请输入11位手机号",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"11"},model:{value:e.row.phone,callback:function(a){t.$set(e.row,"phone","string"===typeof a?a.trim():a)},expression:"scope.row.phone"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"角色","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.rolename))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"90%",padding:"10px 0"},attrs:{placeholder:"角色",filterable:""},on:{change:t.changeRolename},model:{value:e.row.roleid,callback:function(a){t.$set(e.row,"roleid",a)},expression:"scope.row.roleid"}},t._l(t.roleList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.rolename,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createdtime))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.createmp))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",staticStyle:{width:"80px"},attrs:{size:"mini"},on:{click:function(e){return t.handleResetPassword(i)}}},[t._v(" 重置密码 ")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>0,expression:"table.total>0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),m={name:"User",components:{Pagination:d["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getRoleAll",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],roleList:[],table:{getdataListParm:{name:"getuserallL",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),empCode:"",empname:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="User",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.roleList=e.data.getRoleAll.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.empCode="",this.table.getdataListParm.parammaps.empname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,createdtime:Object(o["e"])(new Date,"{y}-{m}-{d}"),createmp:n.a.get("employename"),username:"",roleid:""})},changeRolename:function(t){this.table.temp.rolename=this.roleList.find((function(e){return e.id===t})).rolename},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.empname=t.empname,this.table.temp.username=t.username,this.table.temp.phone=t.phone,this.table.temp.createmp=t.createmp,this.table.temp.enable=t.enable,this.table.temp.roleid=t.roleid,""==this.table.temp.username&&""==this.table.temp.roleid)return this.$message({type:"error",message:"用户名称/角色不能为空",duration:2e3}),!1;if(""==this.table.temp.username)return this.$message({type:"error",message:"用户名称不能为空",duration:2e3}),!1;if(""==this.table.temp.roleid)return this.$message({type:"error",message:"角色不能为空",duration:2e3}),!1;if(void 0!==this.table.temp.phone&&""!==this.table.temp.phone){var a=/^\d{11}$/;if(!a.test(this.table.temp.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="createUser",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.roleid=String(t.roleid),this.table.temp.roleid=t.roleid,this.table.temp.rolename=t.rolename},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=t.pastureid,this.table.temp.empname=t.empname,this.table.temp.username=t.username,this.table.temp.phone=t.phone,this.table.temp.createmp=t.createmp,this.table.temp.enable=t.enable,this.table.temp.roleid=t.roleid,this.table.temp.id=t.id,""==this.table.temp.username&&""==this.table.temp.roleid)return this.$message({type:"error",message:"用户名称/角色不能为空",duration:2e3}),!1;if(""==this.table.temp.username)return this.$message({type:"error",message:"用户名称不能为空",duration:2e3}),!1;if(""==this.table.temp.roleid)return this.$message({type:"error",message:"角色不能为空",duration:2e3}),!1;if(console.log(this.table.temp.phone),void 0!==this.table.temp.phone&&""!==this.table.temp.phone){var a=/^\d{11}$/;if(!a.test(this.table.temp.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateUser",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteUser",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择用户信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteUser",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleResetPassword:function(t){var e=this;c["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="initPassword",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))}}},p=m,u=(a("2e48"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"1ad8b726",null);e["default"]=h.exports},"67b6":function(t,e,a){"use strict";var i=a("0f9d"),s=a.n(i);s.a},"67c6":function(t,e,a){},"69cb":function(t,e,a){"use strict";var i=a("3df1"),s=a.n(i);s.a},"69dd":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-input",{staticStyle:{"margin-bottom":"30px"},attrs:{placeholder:"Filter keyword"},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}}),a("el-tree",{ref:"tree2",staticClass:"filter-tree",attrs:{data:t.data2,props:t.defaultProps,"filter-node-method":t.filterNode,"default-expand-all":""}})],1)},s=[],r=(a("4de4"),a("c975"),{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(t){this.$refs.tree2.filter(t)}},methods:{filterNode:function(t,e){return!t||-1!==e.label.indexOf(t)}}}),l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},"6a67":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"标准分数(分)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.standardscore))])]}}])}),a("el-table-column",{attrs:{label:"牛头数(头)","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"评分",align:"center"}},[a("el-table-column",{attrs:{label:"2.75分-(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score25)+"("+t._s(e.row.score25rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"2.75分(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score275)+"("+t._s(e.row.score275rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3分(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score3)+"("+t._s(e.row.score3rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.25分(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score325)+"("+t._s(e.row.score325rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.5分(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score35)+"("+t._s(e.row.score35rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.75分(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score375)+"("+t._s(e.row.score375rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"4分+(头)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.score4)+"("+t._s(e.row.score4rate)+"%)")])]}}])})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("评分")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"标准分数(分):",prop:"standardscore"}},[a("el-input",{ref:"standardscore",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.create.temp.standardscore,callback:function(e){t.$set(t.create.temp,"standardscore",e)},expression:"create.temp.standardscore"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牛头数(头):",prop:"cowsum"}},[a("el-input",{ref:"cowsum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.create.temp.cowsum,callback:function(e){t.$set(t.create.temp,"cowsum",e)},expression:"create.temp.cowsum"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"2.75分-:",prop:"score25"}},[a("el-input",{ref:"score25",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score25,callback:function(e){t.$set(t.create.temp,"score25",e)},expression:"create.temp.score25"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"2.75分:",prop:"score275"}},[a("el-input",{ref:"score275",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score275,callback:function(e){t.$set(t.create.temp,"score275",e)},expression:"create.temp.score275"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"3分:",prop:"score3"}},[a("el-input",{ref:"score3",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score3,callback:function(e){t.$set(t.create.temp,"score3",e)},expression:"create.temp.score3"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"3.25分:",prop:"score325"}},[a("el-input",{ref:"score325",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score325,callback:function(e){t.$set(t.create.temp,"score325",e)},expression:"create.temp.score325"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"3.5分:",prop:"score35"}},[a("el-input",{ref:"score35",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score35,callback:function(e){t.$set(t.create.temp,"score35",e)},expression:"create.temp.score35"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"3.75分:",prop:"score375"}},[a("el-input",{ref:"score375",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score375,callback:function(e){t.$set(t.create.temp,"score375",e)},expression:"create.temp.score375"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"4分+:",prop:"score4"}},[a("el-input",{ref:"score4",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:t.blurScore},model:{value:t.create.temp.score4,callback:function(e){t.$set(t.create.temp,"score4",e)},expression:"create.temp.score4"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("操作详情")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作日期:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeOperatetime},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"1-255字符",maxlength:"255"},model:{value:t.create.temp.remark,callback:function(e){t.$set(t.create.temp,"remark",e)},expression:"create.temp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"PhysicalConditionScore",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getBodyscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score25:"",score275:"",score3:"",score325:"",score35:"",score375:"",score4:"",remark:"",ftid:"",ftname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score25:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score275:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score3:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score325:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score35:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score375:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score4:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBodyscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungAndBodyScore",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getDownList()},methods:{getButtons:function(){var t="PhysicalConditionScore",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"score25rate",(parseFloat(e.data.list[a].score25)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score275rate",(parseFloat(e.data.list[a].score275)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score325rate",(parseFloat(e.data.list[a].score325)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score35rate",(parseFloat(e.data.list[a].score35)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score375rate",(parseFloat(e.data.list[a].score375)/parseFloat(e.data.list[a].cowsum)*100).toFixed(2)),t.$set(e.data.list[a],"score4rate",(100-e.data.list[a].score25rate-e.data.list[a].score275rate-e.data.list[a].score3rate-e.data.list[a].score325rate-e.data.list[a].score35rate-e.data.list[a].score375rate).toFixed(2));t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score25:"",score275:"",score3:"",score325:"",score35:"",score375:"",score4:"",remark:"",ftid:"",ftname:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var t=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(e){null!==e.data.list?(t.create.temp.standardscore=e.data.list[0].bodystandard,t.create.temp.ftid=e.data.list[0].ftid,t.create.temp.ftname=e.data.list[0].ftname):(t.create.temp.standardscore="",t.create.temp.ftid="",t.create.temp.ftname="")}))},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},blurScore:function(){""!==this.create.temp.score25&&""!==this.create.temp.score275&&""!==this.create.temp.score3&&""!==this.create.temp.score325&&""!==this.create.temp.score35&&""!==this.create.temp.score375&&""!==this.create.temp.score4&&(this.create.temp.cowsum=parseInt(this.create.temp.score25)+parseInt(this.create.temp.score275)+parseInt(this.create.temp.score3)+parseInt(this.create.temp.score325)+parseInt(this.create.temp.score35)+parseInt(this.create.temp.score375)+parseInt(this.create.temp.score4))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score25))||!a.test(parseFloat(t.create.temp.score275))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score325))||!a.test(parseFloat(t.create.temp.score35))||!a.test(parseFloat(t.create.temp.score375))||!a.test(parseFloat(t.create.temp.score4)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="insertBodyscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score25))||!a.test(parseFloat(t.create.temp.score275))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score325))||!a.test(parseFloat(t.create.temp.score35))||!a.test(parseFloat(t.create.temp.score375))||!a.test(parseFloat(t.create.temp.score4)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="insertBodyscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList()):Object(r["j"])(e,t.$notify)}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),t.score25=String(t.score25),t.score275=String(t.score275),t.score3=String(t.score3),t.score325=String(t.score325),t.score35=String(t.score35),t.score375=String(t.score375),t.score4=String(t.score4),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(t.create.temp.score25))||!a.test(parseFloat(t.create.temp.score275))||!a.test(parseFloat(t.create.temp.score3))||!a.test(parseFloat(t.create.temp.score325))||!a.test(parseFloat(t.create.temp.score35))||!a.test(parseFloat(t.create.temp.score375))||!a.test(parseFloat(t.create.temp.score4)))return t.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;t.requestParam.name="updateBodyscore",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteBodyscore",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择体况评分",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteBodyscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择体况评分",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copyBodyscore",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条体况评分",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("1b21"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"53f7d5c7",null);e["default"]=h.exports},"6b2e":function(t,e,a){"use strict";var i=a("0842"),s=a.n(i);s.a},"6c5b":function(t,e,a){t.exports=a.p+"static/img/logo_u3.f532c6cd.png"},"6ea2":function(t,e,a){"use strict";var i=a("0f10"),s=a.n(i);s.a},"6f44":function(t,e,a){},"708a":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-star"><path d="M70.66 4.328l14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol>'});l.a.add(n);e["default"]=n},7212:function(t,e,a){"use strict";var i=a("8f26"),s=a.n(i);s.a},7342:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("分配")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"times",e)},expression:"table.getdataListParm.parammaps.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.eqclass,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"eqclass",e)},expression:"table.getdataListParm.parammaps.eqclass"}},t._l(t.equipmentCategoryList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1),a("el-input",{ref:"eqcode",staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备编号"},model:{value:t.table.getdataListParm.parammaps.eqcode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"eqcode",e)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-input",{ref:"driver",staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"驾驶员"},model:{value:t.table.getdataListParm.parammaps.driver,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"driver",e)},expression:"table.getdataListParm.parammaps.driver"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"生效日期","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.driver))])]}}])}),a("el-table-column",{attrs:{label:"分配人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.create.activeName,callback:function(e){t.$set(t.create,"activeName",e)},expression:"create.activeName"}},[a("el-tab-pane",{attrs:{label:"TMR设备",name:"first"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoading,expression:"create.listLoading"}],key:t.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:t.create.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%",padding:"0 10px"},attrs:{filterable:"",placeholder:"驾驶员"},on:{change:function(a){t.changeDriver(a,e.row)}},model:{value:e.row.driverid,callback:function(a){t.$set(e.row,"driverid",a)},expression:"scope.row.driverid"}},t._l(t.driverList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.drivername,value:t.id}})})),1)]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")]):t._e()],1)]),a("el-tab-pane",{attrs:{label:"铲车",name:"second"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoading2,expression:"create.listLoading2"}],key:t.create.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:t.create.list2,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%",padding:"0 10px"},attrs:{filterable:"",placeholder:"驾驶员"},on:{change:function(a){t.changeDriver(a,e.row)}},model:{value:e.row.driverid,callback:function(a){t.$set(e.row,"driverid",a)},expression:"scope.row.driverid"}},t._l(t.driverList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.drivername,value:t.id}})})),1)]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData2()}}},[t._v("确认")]):t._e()],1)])],1)],1)])],1)},s=[],r=(a("7db0"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"DutyRecord",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}},{name:"getDriverListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],equipmentCategoryList:[{id:"1",name:"TMR设备"},{id:"2",name:"铲车"}],frequencyList:[],driverList:[],table:{getdataListParm:{name:"getDutyrecordList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:"",times:"",eqclass:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{m}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"geEqListByDplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey2:0,list2:[],total2:0,listLoading2:!0,getdataListParm2:{name:"geEqListByDplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},activeName:"first"},textMap:{create:"分配"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="DutyRecord",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[];t.driverList=e.data.getDriverListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.eqclass="",this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.driver="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了分配"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getDialogList()},handleClick:function(){"first"==this.create.activeName?this.getDialogList():"second"==this.create.activeName&&this.getDialogList2()},getDialogList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].driver&&void 0!=e.data.list[a].driverid||(t.$set(e.data.list[a],"driver",""),t.$set(e.data.list[a],"driverid",""));t.create.list=e.data.list}else t.create.list=[];setTimeout((function(){t.create.listLoading=!1}),100)}))},getDialogList2:function(){var t=this;Object(r["d"])(this.create.getdataListParm2).then((function(e){if(console.log("table2数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].driver&&void 0!=e.data.list[a].driverid||(t.$set(e.data.list[a],"driver",""),t.$set(e.data.list[a],"driverid",""));t.create.list2=e.data.list}else t.create.list2=[];setTimeout((function(){t.create.listLoading2=!1}),100)}))},changeDriver:function(t,e){e.driver=this.driverList.find((function(e){return e.id==t})).drivername},createData:function(){var t=this;console.log("点击了新增保存",this.create.list),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var e=0;e<this.create.list.length;e++)""==this.create.list[e].driverid&&(this.create.list.splice(e,1),e=0);console.log("点击了新增保存",this.create.list),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:this.create.list}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"insertDutyrecord",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",eqid:"@insertSpotList.eqid",eqclass:"@insertSpotList.eqclass",eqcode:"@insertSpotList.eqcode",driver:"@insertSpotList.driver",driverid:"@insertSpotList.driverid",times:"@insertSpotList.times",operatedate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename")}},Object(r["b"])(this.requestParam).then((function(e){console.log("分配TMR设备保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))},createData2:function(){console.log("分配铲车保存发送参数")},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),this.selectList=[],d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteDutyrecord",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择值班记录",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteDutyrecord",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("faf2"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"65333177",null);e["default"]=h.exports},7403:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料表",use:"icon-饲料表-usage",viewBox:"0 0 1169 1024",content:'<symbol class="icon" viewBox="0 0 1169 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料表"><defs><style type="text/css"></style></defs><path d="M443.389583 403.847387l-116.315104-89.504247-104.638684 89.504247h220.953788z m-419.452923 15.942804l383.211112-328.421758a201.912242 201.912242 0 0 1 262.719443 0l383.211112 328.421758 1.077823 0.943096c17.065536 15.044618 23.98157 34.93944 22.769019 54.115714V808.435329a134.593191 134.593191 0 0 1-134.593192 134.593191H134.727919A134.593191 134.593191 0 0 1 0.134728 808.435329v-333.586328c-1.347279-21.107374 7.454945-41.630927 23.801932-55.05881z m819.819389-15.942804l-255.803409-210.310282c-25.23903-21.601376-69.160332-21.601376-103.740498 0L413.030891 242.218793l205.415168 161.673504h225.3549zM159.562766 831.249257h759.910374a44.909306 44.909306 0 0 0 44.909307-44.909307V561.434144a44.909306 44.909306 0 0 0-44.909307-44.909307H159.562766a44.909306 44.909306 0 0 0-44.909307 44.909307v224.905806a44.909306 44.909306 0 0 0 44.909307 44.909307zM269.321111 0.067813a67.31905 67.31905 0 1 1 0 134.593191 67.31905 67.31905 0 0 1 0-134.593191zM67.453778 134.661004a67.274141 67.274141 0 1 1 0 134.593192 67.274141 67.274141 0 0 1 0-134.593192zM975.969048 0.067813a100.956121 100.956121 0 1 1 0 201.912242 100.956121 100.956121 0 0 1 0-201.912242z" p-id="65770" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"741f":function(t,e,a){},7501:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方干物质",use:"icon-配方干物质-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方干物质"><defs><style type="text/css"></style></defs><path d="M512 121.92a16.96 16.96 0 0 1 8 2.08l324 187.04a16 16 0 0 1 8 13.92v374.08a16 16 0 0 1-8 13.92L520 900a16 16 0 0 1-16 0L180 712.96a16 16 0 0 1-8-13.92V324.96a16 16 0 0 1 8-13.92L504 124a16.96 16.96 0 0 1 8-2.08m0-48a65.12 65.12 0 0 0-32 8.48L156 269.6a64 64 0 0 0-32 55.36v374.08a64 64 0 0 0 32 55.36L480 941.6a64 64 0 0 0 64 0l324-187.2a64 64 0 0 0 32-55.36V324.96a64 64 0 0 0-32-55.36L544 82.4a65.12 65.12 0 0 0-32-8.48z" fill="#ffffff" p-id="16635" /><path d="M741.76 610.08L528 486.72V240a16 16 0 0 0-32 0v246.72l-213.76 123.36a16 16 0 0 0 16 27.84L512 514.4l213.76 123.52a16 16 0 0 0 16-27.84z" fill="#ffffff" p-id="16636" /></symbol>'});l.a.add(n);e["default"]=n},7509:function(t,e,a){"use strict";a.r(e);a("a4d3"),a("e01a"),a("d28b"),a("4de4"),a("caad"),a("c975"),a("fb6a"),a("45fc"),a("a434"),a("b0c0"),a("d3b7"),a("2532"),a("3ca3"),a("ddb0");var i=a("2909"),s=a("3835"),r={visitedViews:[],cachedViews:[]},l={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var a=!0,i=!1,r=void 0;try{for(var l,n=t.visitedViews.entries()[Symbol.iterator]();!(a=(l=n.next()).done);a=!0){var o=Object(s["a"])(l.value,2),c=o[0],d=o[1];if(d.path===e.path){t.visitedViews.splice(c,1);break}}}catch(m){i=!0,r=m}finally{try{a||null==n.return||n.return()}finally{if(i)throw r}}},DEL_CACHED_VIEW:function(t,e){var a=!0,i=!1,s=void 0;try{for(var r,l=t.cachedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n===e.name){var o=t.cachedViews.indexOf(n);t.cachedViews.splice(o,1);break}}}catch(c){i=!0,s=c}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var a=!0,i=!1,s=void 0;try{for(var r,l=t.cachedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n===e.name){var o=t.cachedViews.indexOf(n);t.cachedViews=t.cachedViews.slice(o,o+1);break}}}catch(c){i=!0,s=c}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var a=!0,i=!1,s=void 0;try{for(var r,l=t.visitedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n.path===e.path){n=Object.assign(n,e);break}}}catch(o){i=!0,s=o}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}}},n={addView:function(t,e){var a=t.dispatch;a("addVisitedView",e),a("addCachedView",e)},addVisitedView:function(t,e){var a=t.commit;a("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var a=t.commit;a("ADD_CACHED_VIEW",e)},delView:function(t,e){var a=t.dispatch,s=t.state;return new Promise((function(t){a("delVisitedView",e),a("delCachedView",e),t({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delVisitedView:function(t,e){var a=t.commit,s=t.state;return new Promise((function(t){a("DEL_VISITED_VIEW",e),t(Object(i["a"])(s.visitedViews))}))},delCachedView:function(t,e){var a=t.commit,s=t.state;return new Promise((function(t){a("DEL_CACHED_VIEW",e),t(Object(i["a"])(s.cachedViews))}))},delOthersViews:function(t,e){var a=t.dispatch,s=t.state;return new Promise((function(t){a("delOthersVisitedViews",e),a("delOthersCachedViews",e),t({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delOthersVisitedViews:function(t,e){var a=t.commit,s=t.state;return new Promise((function(t){a("DEL_OTHERS_VISITED_VIEWS",e),t(Object(i["a"])(s.visitedViews))}))},delOthersCachedViews:function(t,e){var a=t.commit,s=t.state;return new Promise((function(t){a("DEL_OTHERS_CACHED_VIEWS",e),t(Object(i["a"])(s.cachedViews))}))},delAllViews:function(t,e){var a=t.dispatch,s=t.state;return new Promise((function(t){a("delAllVisitedViews",e),a("delAllCachedViews",e),t({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,a=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(i["a"])(a.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,a=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(i["a"])(a.cachedViews))}))},updateVisitedView:function(t,e){var a=t.commit;a("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:r,mutations:l,actions:n}},"763c":function(t,e,a){"use strict";var i=a("0434"),s=a.n(i);s.a},"76f2":function(t,e,a){"use strict";var i=a("fb4f"),s=a.n(i);s.a},7736:function(t,e,a){"use strict";var i=a("5f8b"),s=a.n(i);s.a},"77a8":function(t,e,a){"use strict";var i=a("2e3f"),s=a.n(i);s.a},"78fa":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_line_disabled",use:"icon-chart_line_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_line_disabled"><defs><style type="text/css"></style></defs><path d="M497.778 790.756L304.356 651.378l-133.69 108.089-54.044-68.267 182.045-147.911 204.8 145.067 358.4-213.334 45.51 73.956z" fill="#909399" p-id="1822" /><path d="M497.778 534.756L304.356 395.378l-133.69 108.089-54.044-68.267 182.045-147.911 204.8 145.067 358.4-213.334 45.51 73.956z" fill="#909399" p-id="1823" /></symbol>'});l.a.add(n);e["default"]=n},7948:function(t,e,a){},7971:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存预警",use:"icon-库存预警-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存预警"><defs><style type="text/css"></style></defs><path d="M512.009891 1024q-215.995391-6.003728-360.501305-150.49229T0.009891 512a505.180737 505.180737 0 0 1 148.496831-360.917748 501.953299 501.953299 0 0 1 165.50161-111.502762Q407.014059 1.075813 512.009891 0.069407h3.001863a499.454638 499.454638 0 0 1 193.490088 38.000475q91.548175 37.931067 164.425797 110.426949a507.089436 507.089436 0 0 1 150.960789 363.503169q-6.003728 217.001796-150.509642 361.50771t-361.368895 150.49229z m0-973.003016q-196.075508 6.940726-326.5091 137.079337T51.006874 512q6.003728 196.075508 136.524079 326.005897t324.478938 134.997119q196.075508-4.997323 326.005896-134.997119t134.99712-326.005897a458.087911 458.087911 0 0 0-34.998611-177.994916 452.413868 452.413868 0 0 0-101.525468-149.503237q-66.492154-65.503101-149.503237-99.512658a457.185617 457.185617 0 0 0-174.9757-33.992205z m-82.004677 245.007625q1.006405-33.992205 23.99756-57.486562t58.007117-23.51171q34.99861 0 58.007116 23.51171t23.99756 57.486562L553.012229 627.996882a37.896364 37.896364 0 0 1-12.007456 28.509032 42.893686 42.893686 0 0 1-29.498085 12.007456 36.90731 36.90731 0 0 1-28.994883-11.504254 40.395025 40.395025 0 0 1-11.486901-28.994882z m31.007693 462.009422q0 22.002101 14.488765 36.438811t36.438811 14.488765q22.002101 0 36.438811-14.488765a51.91663 51.91663 0 0 0 0-71.99268q-14.367303-14.384654-36.369403-14.384654t-36.438812 14.506117a48.255397 48.255397 0 0 0-14.558172 35.415054z" p-id="92751" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"79dd":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-牧场信息",use:"icon-牧场信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牧场信息"><defs><style type="text/css"></style></defs><path d="M832 64a128 128 0 0 1 31.68 252.032L864 320v384l-0.32 3.968a128 128 0 1 1-155.712 155.712L704 864H320l-3.968-0.32a128 128 0 1 1-155.648-155.776L160 704V320l0.384-3.904a128 128 0 1 1 155.712-155.712L320 160h384l3.904 0.384A128 128 0 0 1 832 64z m0 704a64 64 0 1 0 0 128 64 64 0 0 0 0-128zM192 768a64 64 0 1 0 0 128 64 64 0 0 0 0-128z m515.968-544.32L704 224H320l-3.968-0.32a128.192 128.192 0 0 1-92.352 92.352L224 320v384l-0.32 3.968c45.248 11.52 80.896 47.168 92.416 92.416L320 800h384l3.904 0.384a128.192 128.192 0 0 1 92.48-92.48L800 704V320l0.384-3.904a128.192 128.192 0 0 1-92.416-92.416zM466.176 421.696l4.48 3.648 128 128a32 32 0 0 1-40.832 48.96l-4.48-3.648-128-128a32 32 0 0 1 40.832-48.96zM192 128a64 64 0 1 0 0 128 64 64 0 0 0 0-128z m640 0a64 64 0 1 0 0 128 64 64 0 0 0 0-128z" p-id="76239" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"7a8b":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存统计",use:"icon-库存统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存统计"><defs><style type="text/css"></style></defs><path d="M849.7 91.9H174.3c-56.4 0.1-102 45.8-102.2 102.1v637.3c0.2 56.3 45.8 102 102.2 102.1h675.4c56.3-0.2 102-45.8 102.2-102.1V194c0-56.2-46-102.1-102.2-102.1z m66.6 739.5c0 36.7-29.8 66.5-66.5 66.5H174.3c-36.7 0-66.5-29.8-66.5-66.5V194c0-36.7 29.8-66.5 66.5-66.5h675.4c36.7 0 66.5 29.8 66.5 66.5v637.4z m0 0" fill="#ffffff" p-id="94172" /><path d="M174.3 942c-60.8-0.2-110.4-49.8-110.6-110.6V194c0.2-60.8 49.8-110.4 110.6-110.6h675.5c29.4 0 57.2 11.5 78.1 32.5s32.5 48.7 32.5 78.1v637.3c-0.2 60.8-49.8 110.4-110.6 110.6H174.3z m0-841.7c-51.5 0.2-93.6 42.2-93.7 93.7v637.3c0.2 51.5 42.2 93.6 93.7 93.7h675.4c51.5-0.1 93.6-42.2 93.7-93.7V194c0-24.9-9.8-48.4-27.5-66.2s-41.3-27.5-66.2-27.5H174.3z m675.4 806H174.3c-41.3 0-74.9-33.7-75-75V194c0-41.3 33.6-75 75-75h675.4c41.3 0 75 33.6 75 75v637.3c0 41.4-33.6 75-75 75zM174.3 135.9c-32 0-58.1 26-58.1 58.1v637.3c0 32 26.1 58.1 58.1 58.1h675.4c32 0 58.1-26.1 58.1-58.1V194c0-32-26.1-58.1-58.1-58.1H174.3z" fill="#ffffff" p-id="94173" /><path d="M337 761.7h-0.8c-29.4 0-53.6-24.1-53.6-53.5v-270c0-29.4 24.1-53.6 53.6-53.6h0.8c29.4 0 53.6 24.1 53.6 53.6v270c-0.1 29.7-24.2 53.5-53.6 53.5z m-0.8-347.3c-13.2 0-24.1 10.9-24.1 24.1v270c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V438.1c0-13.2-10.9-24.1-24.1-24.1 0 0.4-0.8 0.4-0.8 0.4z m343.6 347.3h-0.8c-29.4 0-53.6-24.1-53.6-53.5V467.5c0-29.4 24.1-53.5 53.6-53.5h0.8c29.4 0 53.6 24.1 53.6 53.5v41.9c0 7.9-6.8 14.7-14.7 14.7-7.9 0-14.7-6.8-14.7-14.7v-41.9c0-13.2-10.9-24.1-24.1-24.1h-0.9c-13.2 0-24.1 10.9-24.1 24.1v240.6c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V567.5c0-7.9 6.8-14.7 14.7-14.7 7.9 0 14.7 6.8 14.7 14.7v141c0 29.4-24.1 53.2-53.5 53.2z m-171.6 0h-0.8c-29.4 0-53.5-24.1-53.5-53.5V350.3c0-29.4 24.1-53.6 53.5-53.6h0.8c29.4 0 53.6 24.1 53.6 53.6v358.3c-0.1 29.3-24.2 53.1-53.6 53.1z m-0.8-435.6c-13.2 0-24.1 10.9-24.1 24.1v358.3c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V350.3c0-13.2-10.9-24.1-24.1-24.1h-0.8z m0-67.5" fill="#ffffff" p-id="94174" /></symbol>'});l.a.add(n);e["default"]=n},"7b75":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o=3e3,c={mixins:[n["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 t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.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}]})}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);e["default"]=p.exports},"7bc6":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-stack_bar",use:"icon-stack_bar-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-stack_bar"><defs><style type="text/css"></style></defs><path d="M129.292929 527.601778h147.105616v323.635717H129.292929z" fill="#29C287" p-id="1942" /><path d="M335.614707 129.750626h147.106909v676.692041H335.614707z" fill="#706EE7" p-id="1943" /><path d="M541.191758 409.914182h147.105616v441.323313H541.191758z" fill="#29C287" p-id="1944" /><path d="M129.292929 291.338343h147.104324v235.373899H129.292929z" fill="#706EE7" p-id="1945" /><path d="M335.616 409.424162h147.105616V850.747475H335.616z" fill="#29C287" p-id="1946" /><path d="M540.902141 341.359192H688.006465v235.373899H540.902141z" fill="#706EE7" p-id="1947" /><path d="M745.015596 411.177374H892.121212v441.323313H745.015596z" fill="#29C287" p-id="1948" /><path d="M745.015596 331.015758h147.104323v235.373899H745.015596z" fill="#706EE7" p-id="1949" /></symbol>'});l.a.add(n);e["default"]=n},"7c99":function(t,e,a){"use strict";var i=a("019f"),s=a.n(i);s.a},"7d4f":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-elec",use:"icon-elec-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-elec"><defs><style type="text/css"></style></defs><path d="M896 64H128c-19.2 0-32 12.8-32 32v832c0 19.2 12.8 32 32 32h768c19.2 0 32-12.8 32-32V96c0-19.2-12.8-32-32-32z m-236.8 556.8l-156.8 240c-3.2 6.4-9.6 6.4-16 3.2s-6.4-9.6-6.4-12.8l22.4-131.2c3.2-12.8-6.4-22.4-19.2-25.6H480l-92.8-3.2c-12.8 0-22.4-9.6-22.4-22.4 0-3.2 0-6.4 3.2-9.6l124.8-201.6c3.2-6.4 9.6-6.4 16-3.2 3.2 3.2 6.4 6.4 6.4 9.6l-9.6 102.4c0 12.8 6.4 22.4 19.2 22.4H640c12.8 0 22.4 9.6 22.4 22.4 0 0-3.2 6.4-3.2 9.6zM832 352H192V192c0-19.2 12.8-32 32-32h576c19.2 0 32 12.8 32 32v160z" p-id="4373" /></symbol>'});l.a.add(n);e["default"]=n},"7d6f":function(t,e,a){},"7dcd":function(t,e,a){},"7e4b":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-horizontal_bar_disabled",use:"icon-horizontal_bar_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-horizontal_bar_disabled"><defs><style type="text/css"></style></defs><path d="M496.398222 129.292929l0 147.105616-323.635717 0L172.762505 129.292929z" fill="#909399" p-id="1978" /><path d="M894.249374 335.614707l0 147.106909-676.692041 1e-8L217.557333 335.614707z" fill="#909399" p-id="1979" /><path d="M614.085818 541.191758l0 147.105616-441.323313 0L172.762505 541.191758z" fill="#909399" p-id="1980" /><path d="M732.661657 129.292929l0 147.104324-235.37389899 0L497.287758 129.292929z" fill="#909399" p-id="1981" /><path d="M614.575838 335.616l0 147.10561601L173.252525 482.721616 173.252525 335.616z" fill="#909399" p-id="1982" /><path d="M682.640808 540.902141L682.640808 688.006465l-235.373899 0L447.266909 540.902141z" fill="#909399" p-id="1983" /><path d="M612.822626 745.015596L612.822626 892.121212l-441.323313 0L171.499313 745.015596z" fill="#909399" p-id="1984" /><path d="M692.984242 745.015596l1e-8 147.104323-235.37389901 0L457.610343 745.01559599z" fill="#909399" p-id="1985" /></symbol>'});l.a.add(n);e["default"]=n},"7e5a":function(t,e,a){},"7f0e":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"仪表盘",name:"first"}},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"仪表盘名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.dname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"dname",e)},expression:"table.getdataListParm.parammaps.dname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.statue,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"statue",e)},expression:"table.getdataListParm.parammaps.statue"}},t._l(t.statueList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:t.table.rules,model:t.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"仪表盘名称","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.dname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.dname,callback:function(a){t.$set(e.row,"dname",a)},expression:"scope.row.dname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"仪表盘描述","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.display))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.display,callback:function(a){t.$set(e.row,"display",a)},expression:"scope.row.display"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit&&1==e.row.statue?a("span",[t._v("公开")]):t._e(),e.row.NoEdit&&0==e.row.statue?a("span",[t._v("私有")]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"状态"},on:{change:t.changeStatue},model:{value:e.row.statue,callback:function(a){t.$set(e.row,"statue",a)},expression:"scope.row.statue"}},t._l(t.statueList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"分发角色","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.rolenames))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{multiple:"",filterable:"",placeholder:"分发角色"},on:{change:t.changeRole},model:{value:e.row.rolenamesId,callback:function(a){t.$set(e.row,"rolenamesId",a)},expression:"scope.row.rolenamesId"}},t._l(t.roleList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.rolename,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"显示到菜单","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.reportenable,callback:function(a){t.$set(e.row,"reportenable",a)},expression:"scope.row.reportenable"}})]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.jumpSee(i)}}},[t._v("查看")]),i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)]),a("el-tab-pane",{attrs:{label:"图表",name:"second"}},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate2}},[t._v("新增")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"图表名称",clearable:""},model:{value:t.table2.getdataListParm.parammaps.dname,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"dname",e)},expression:"table2.getdataListParm.parammaps.dname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.table2.getdataListParm.parammaps.statue,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"statue",e)},expression:"table2.getdataListParm.parammaps.statue"}},t._l(t.statueList2,(function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh2}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:t.table2.rules,model:t.table2}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table2.pageNum-1)*t.table2.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"图表名称","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.cname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.cname,callback:function(a){t.$set(e.row,"cname",a)},expression:"scope.row.cname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"图表描述","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.display))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.display,callback:function(a){t.$set(e.row,"display",a)},expression:"scope.row.display"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit&&1==e.row.statue?a("span",[t._v("公开")]):t._e(),e.row.NoEdit&&0==e.row.statue?a("span",[t._v("私有")]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"状态"},on:{change:t.changeStatue2},model:{value:e.row.statue,callback:function(a){t.$set(e.row,"statue",a)},expression:"scope.row.statue"}},t._l(t.statueList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.jumpSee2(i)}}},[t._v("查看")]),a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.jumpEdit2(i)}}},[t._v("修改图表")]),i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData2(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel2(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.handleUpdate2(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.handleRowDelete2(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData2(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel2(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table2.total>=0,expression:"table2.total>=0"}],attrs:{total:t.table2.total,page:t.table2.getdataListParm.offset,limit:t.table2.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table2.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table2.getdataListParm,"pagecount",e)},pagination:t.getList2}})],1)])],1),a("el-dialog",{attrs:{title:"新增仪表盘",width:"750px",visible:t.editDialogVisible},on:{"update:visible":function(e){t.editDialogVisible=e}}},[a("el-form",{attrs:{"label-width":"160px"}},[a("el-form-item",{attrs:{label:"仪表盘名称"}},[a("el-input",{staticStyle:{width:"450px"},attrs:{size:"small",placeholder:"请输入仪表盘名称"},model:{value:t.dbObj.dname,callback:function(e){t.$set(t.dbObj,"dname",e)},expression:"dbObj.dname"}})],1),a("el-form-item",{attrs:{label:"仪表盘描述"}},[a("el-input",{staticStyle:{width:"450px"},attrs:{type:"textarea",rows:5,size:"small",placeholder:"请输入仪表盘描述"},model:{value:t.dbObj.display,callback:function(e){t.$set(t.dbObj,"display",e)},expression:"dbObj.display"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.editDialogVisible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleSubmit}},[t._v(" 确认")])],1)],1)],1)},s=[],r=(a("4160"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("1276"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"BoardEchartManagement",components:{Pagination:o["a"]},data:function(){return{empid:n.a.get("employeid"),editDialogVisible:!1,dbObj:{},requestParams:[{name:"getRoleAll",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],statueList:[{id:"1",value:"公开"},{id:"0",value:"私有"}],statueList2:[{id:"1",value:"公开"},{id:"0",value:"私有"}],roleList:[],rolenamesIdTempArr:[],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getDashboardList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),dname:"",statue:"",empid:n.a.get("employeid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},table2:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getChartList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),cname:"",statue:"",empid:n.a.get("employeid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},activeName:"first"}},created:function(){this.getList(),this.getList2(),this.getDownList(),"second"==this.$route.params.tab?this.activeName="second":this.activeName="first"},methods:{handleClick:function(t,e){console.log(t,e)},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){console.log("下拉框数据",e.data),t.roleList=e.data.getRoleAll.list}))},getList:function(){var t=this;this.table.listLoading=!0,console.log(this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);var i=e.data.list;i.map((function(t,e){return t.roleids?t.rolenamesId=t.roleids.split(","):t.rolenamesId=[]})),i.map((function(t,e){return t.roleids?t.rolenamesId2B=t.roleids.split(","):t.rolenamesId2B=[]})),t.table.list=i,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},getList2:function(){var t=this;this.table2.listLoading=!0,console.log(this.table2.getdataListParm),Object(r["d"])(this.table2.getdataListParm).then((function(e){if(console.log("table2数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table2.list=e.data.list,t.table2.pageNum=e.data.pageNum,t.table2.pageSize=e.data.pageSize,t.table2.total=e.data.total}else t.table2.list=[];setTimeout((function(){t.table2.listLoading=!1}),100)}))},handleEnableChange:function(t){console.log("点击了是否启用",t)},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleSearch2:function(){console.log("点击了查询"),this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.cname="",this.table.getdataListParm.parammaps.dname="",this.table.getdataListParm.parammaps.statue="",this.table.getdataListParm.offset=1,this.getList()},handleRefresh2:function(){console.log("点击了重置"),this.table2.getdataListParm.parammaps.cname="",this.table2.getdataListParm.parammaps.dname="",this.table2.getdataListParm.parammaps.statue="",this.table2.getdataListParm.offset=1,this.getList2()},changeStatue:function(t){console.log("点击了状态",t),this.table.temp.statueid=t,this.table.temp.statue=t},changeStatue2:function(t){console.log("点击了状态",t),this.table2.temp.statueid=t,this.table2.temp.statue=t},changeRole:function(t){console.log("点击了角色",t),console.log("this.table.list",this.table.list);var e=[];this.roleList.forEach((function(a){t.forEach((function(t){a.id==t&&e.push(a)}))})),console.log("点击了角色",e),this.table.temp.rolenamesId=e,this.rolenamesIdTempArr=e},handleCreate:function(){this.editDialogVisible=!0},handleSubmit:function(){var t=this,e={name:"insertDashboard",parammaps:{dname:this.dbObj.dname,display:this.dbObj.display,pastureid:n.a.get("pastureid"),empid:n.a.get("employeid"),emp:n.a.get("employename")}};Object(r["f"])(e).then((function(a){console.log("新增保存发送参数",e),t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.editDialogVisible=!1,console.log("res",a),a.data.LastInsertId&&(t.$router.push({name:"Addboard",params:{id:a.data.LastInsertId,isEdit:"create"}}),n.a.set("AddboardIsEdit","create"),n.a.set("AddboardIsEditId",a.data.LastInsertId),localStorage.setItem("AddboardIsEditId",a.data.LastInsertId))}))},createData:function(t){var e=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.dname=t.dname,this.table.temp.display=t.display,this.table.temp.statue=t.statue,this.table.temp.reportenable=t.reportenable,this.table.temp.emp=t.emp,this.table.temp.opratetime=t.opratetime,""==this.table.temp.dname&&""==this.table.temp.statue)return this.$message({type:"error",message:"仪表盘名称/状态不能为空",duration:2e3}),!1;if(""==this.table.temp.dname)return this.$message({type:"error",message:"仪表盘名称不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.dname))return this.$message({type:"error",message:"仪表盘名称不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertDashboard",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleCreate2:function(t){this.$router.push({name:"ChartPanel",params:{id:"create",isEdit:"edit"}}),n.a.set("ChartPanelIsEdit","edit"),n.a.set("ChartPanelIsEditId","create"),localStorage.setItem("ChartPanelIsEditId","create")},jumpSee:function(t){console.log("点击了查看",t),this.$router.push({name:"Addboard",params:{id:t.id,isEdit:"view"}}),n.a.set("AddboardIsEdit","view"),n.a.set("AddboardIsEditId",t.id),localStorage.setItem("AddboardIsEditId",t.id)},jumpEdit:function(t){console.log("点击了编辑",t),this.$router.push({name:"Addboard",params:{id:t.id,isEdit:"edit"}}),n.a.set("AddboardIsEdit","edit"),n.a.set("AddboardIsEditId",t.id),localStorage.setItem("AddboardIsEditId",t.id)},jumpSee2:function(t){console.log("点击了查看",t),this.$router.push({name:"ChartPanel",params:{id:t.id,isEdit:"view"}}),n.a.set("ChartPanelIsEdit","view"),n.a.set("ChartPanelIsEditId",t.id),localStorage.setItem("ChartPanelIsEditId",t.id),localStorage.setItem("ChartPanelIsEdit","view"),this.$store.state.user.dashchartid=t.id,this.$store.state.user.dashchartidisedit="view"},jumpEdit2:function(t){console.log("点击了编辑",t),this.$router.push({name:"ChartPanel",params:{id:t.id,isEdit:"edit"}}),n.a.set("ChartPanelIsEdit","edit"),n.a.set("ChartPanelIsEditId",t.id),localStorage.setItem("ChartPanelIsEditId",t.id),localStorage.setItem("ChartPanelIsEdit","edit"),this.$store.state.user.dashchartid=t.id,this.$store.state.user.dashchartidisedit="edit"},handleUpdate:function(t){console.log("点击了设置",t);for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.statue=String(t.statue),console.log("row.statue ",t.statue),this.table.temp.statue=t.statue,this.table.temp.statueid=t.statueid,this.table.temp.parentname=t.parentname},handleUpdate2:function(t){console.log("点击了设置",t);for(var e=0;e<this.table2.list.length;e++)if(1==this.table2.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.statue=String(t.statue),this.table2.temp.statue=t.statue,this.table2.temp.statueid=t.statueid},updateData:function(t){var e=this;console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.dname=t.dname,this.table.temp.display=t.display,this.table.temp.reportenable=t.reportenable,this.table.temp.emp=t.emp,this.table.temp.opratetime=t.opratetime,this.table.temp.id=t.id,this.table.temp.statue=t.statue,this.table.temp.rolenamesId=t.rolenamesId,console.log(this.table.temp.rolenamesId);var a=[];if(this.table.temp.rolenamesId.forEach((function(t,e){a.push({id:t})})),""==this.table.temp.dname&&""==this.table.temp.statue)return this.$message({type:"error",message:"仪表盘名称/状态不能为空",duration:2e3}),!1;if(""==this.table.temp.dname)return this.$message({type:"error",message:"仪表盘名称不能为空",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(i.test(this.table.temp.dname))return this.$message({type:"error",message:"仪表盘名称不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(this.table.temp);var s={common:{returnmap:"0"},data:[{name:"updateDashboard",type:"e",parammaps:this.table.temp},{name:"deleteDrole",type:"e",parammaps:{id:t.id,pastureid:n.a.get("pastureid")}},{name:"insertSpotList",resultmaps:{list:a},children:[{name:"insertDrole",type:"e",parammaps:{id:t.id,pastureid:n.a.get("pastureid"),roleid:"@insertSpotList.id"}}]}]};Object(r["b"])(s).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateData2:function(t){var e=this;if(console.log("点击了编辑保存"),this.table2.temp.pastureid=n.a.get("pastureid"),this.table2.temp.cname=t.cname,this.table2.temp.display=t.display,this.table2.temp.emp=t.emp,this.table2.temp.opratetime=t.opratetime,this.table2.temp.id=t.id,this.table2.temp.statue=t.statue,""==this.table2.temp.dname&&""==this.table.temp.statue)return this.$message({type:"error",message:"仪表盘名称/状态不能为空",duration:2e3}),!1;if(""==this.table2.temp.dname)return this.$message({type:"error",message:"仪表盘名称不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table2.temp.dname))return this.$message({type:"error",message:"仪表盘名称不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(this.table2.temp);var i={name:"updateChart",parammaps:this.table2.temp};Object(r["f"])(i).then((function(t){console.log("新增保存发送参数",i),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,t.rolenamesId=t.rolenamesId2B},updateCancel2:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteDashboard",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleRowDelete2:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("当前图表已被引用,是否进行删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteChart",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList2())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}},m=d,p=(a("2415"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"6fc02ad3",null);e["default"]=u.exports},"7f67":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"效率统计",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"150px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.tab.table.getdataListParm.parammaps.mydate,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"mydate",e)},expression:"tab.table.getdataListParm.parammaps.mydate"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("配方")]),a("el-radio",{attrs:{label:"2"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("栏舍")]),a("el-radio",{attrs:{label:"3"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},[t._v("牲畜类别")]),t.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方模板"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"栏舍"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"配方模板"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",on:{click:t.handleDownload}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.table.listLoading,expression:"tab.table.listLoading"}],key:t.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center",prop:"A1"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"A20"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"A1"}}):t._e(),a("el-table-column",{attrs:{label:"实际牛头数","min-width":"110px",align:"center",prop:"A2"}}),a("el-table-column",{attrs:{label:"应混料量(kg)","min-width":"110px",align:"center",prop:"A3"}}),a("el-table-column",{attrs:{label:"实际混料量(kg)","min-width":"110px",align:"center",prop:"A4"}}),a("el-table-column",{attrs:{label:"撒料量(kg)","min-width":"110px",align:"center",prop:"A5"}}),a("el-table-column",{attrs:{label:"混料时间(min)","min-width":"110px",align:"center",prop:"A6"}}),a("el-table-column",{attrs:{label:"搅拌时间(min)","min-width":"110px",align:"center",prop:"A7"}}),a("el-table-column",{attrs:{label:"转投剩料量(kg)","min-width":"110px",align:"center",prop:"A8"}}),a("el-table-column",{attrs:{label:"今日剩料量(kg)","min-width":"110px",align:"center",prop:"A9"}}),a("el-table-column",{attrs:{label:"剩料率(%)","min-width":"110px",align:"center",prop:"A10"}}),a("el-table-column",{attrs:{label:"TMR干物质(%)","min-width":"110px",align:"center",prop:"A11"}}),a("el-table-column",{attrs:{label:"配方干物质采食量(kg/头)","min-width":"110px",align:"center",prop:"A12"}}),a("el-table-column",{attrs:{label:"实际干物质采食量(kg/头)","min-width":"110px",align:"center",prop:"A13"}}),a("el-table-column",{attrs:{label:"采食率(%)","min-width":"110px",align:"center",prop:"A14"}}),a("el-table-column",{attrs:{label:"配方成本(元/头)","min-width":"110px",align:"center",prop:"A15"}}),a("el-table-column",{attrs:{label:"实际成本(元/头)","min-width":"110px",align:"center",prop:"A16"}}),a("el-table-column",{attrs:{label:"产奶量(kg/头)","min-width":"110px",align:"center",prop:"A17"}}),a("el-table-column",{attrs:{label:"饲料转化率","min-width":"110px",align:"center",prop:"A18"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本","min-width":"110px",align:"center",prop:"A19"}})],1)],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("泌乳牛采食量")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart1.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart1.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine1"}}),t.tab.chart1.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart1")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart1.table.listLoading,expression:"tab.chart1.table.listLoading"}],key:t.tab.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"泌乳牛采食量(kg)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"泌乳牛产奶量(kg)","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("牛栏剩料率")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart2.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"enable",e)},expression:"tab.chart2.getdataListParm.parammaps.enable"}},t._l(t.tab.chart2.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart2.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart2.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine2"}}),t.tab.chart2.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart2")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart2.table.listLoading,expression:"tab.chart2.table.listLoading"}],key:t.tab.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"剩料量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"撒料量","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"剩料率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("搅拌时间统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart3.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart3.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine3"}}),t.tab.chart3.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart3")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart3.table.listLoading,expression:"tab.chart3.table.listLoading"}],key:t.tab.chart3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart3.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"平均搅拌时间(分钟)","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"混料+搅拌时间(分钟)","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("转化率")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart4.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"enable",e)},expression:"tab.chart4.getdataListParm.parammaps.enable"}},t._l(t.tab.chart4.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart4.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart4.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine4"}}),t.tab.chart4.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart4")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart4.table.listLoading,expression:"tab.chart4.table.listLoading"}],key:t.tab.chart4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart4.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"饲料转化率","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:24}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("成本分析")]),a("div",[a("el-select",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},model:{value:t.tab.chart5.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"enable",e)},expression:"tab.chart5.getdataListParm.parammaps.enable"}},t._l(t.tab.chart5.statisticsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.chart5.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.chart5.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine5"}}),t.tab.chart5.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart("chart5")}}},[t._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.chart5.table.listLoading,expression:"tab.chart5.table.listLoading"}],key:t.tab.chart5.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.chart5.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本(元)","min-width":"110px",align:"center",prop:"barname"}})],1)],1):t._e()])],1)],1)]),a("el-tab-pane",{attrs:{label:"牛群评估",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"150px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.tab2.table.getdataListParm.parammaps.mydate,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"mydate",e)},expression:"tab2.table.getdataListParm.parammaps.mydate"}})],1),a("div",{staticClass:"table"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("宾州筛分析")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:t.tab2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab2.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"宾州筛","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"第四层重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"第四层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"参考标准","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])})],1)],1),a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("粪便筛分析")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table2.listLoading,expression:"tab2.table2.listLoading"}],key:t.tab2.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab2.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"粪便筛","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"参考标准","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("BCS评分")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table3.listLoading,expression:"tab2.table3.listLoading"}],key:t.tab2.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab2.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"单产","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"标准分数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"2.75-分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"2.75分(数量、百分比","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"3.25分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"3.5分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])}),a("el-table-column",{attrs:{label:"3.75分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A12))])]}}])}),a("el-table-column",{attrs:{label:"4+分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A13))])]}}])})],1)],1),a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("粪便评分")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table4.listLoading,expression:"tab2.table4.listLoading"}],key:t.tab2.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab2.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"单产","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"标准分数","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"1分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"2分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"4分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"5分(数量、百分比)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])})],1)],1)],1)],1)])],1)],1)},s=[],r=(a("b0c0"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),m=a("333d");a("817d");var p={name:"ErrorAnalysis",components:{Pagination:m["a"]},data:function(){return{activeName:"first",tab:{radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"干奶牛",A2:"107",A3:"3210",A4:"3200",A5:"3200",A6:"1.5",A7:"3.3",A8:"0",A9:"0",A10:"0",A11:"0.45",A12:"13.50",A13:"13.46",A14:"99.70",A15:"30.9",A16:"30.8",A17:"",A18:"",A19:""},{id:2,A1:"临产牛",A2:"93",A3:"3003",A4:"3008",A5:"3008",A6:"2.6",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"14.85",A13:"14.88\t",A14:"100.20",A15:"41.01",A16:"41.08",A17:"",A18:"",A19:""},{id:3,A1:"新产牛",A2:"16",A3:"372",A4:"362",A5:"33620",A6:"1.25",A7:"3.2",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"11.16",A13:"10.86",A14:"97.31",A15:"31.85",A16:"31.0",A17:"15",A18:"65%",A19:"1.55"},{id:4,A1:"新产牛",A2:"119",A3:"3840",A4:"3864",A5:"3864",A6:"2.12",A7:"3.4",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"15.49",A13:"10.21",A14:"100.65",A15:"44.21",A16:"44.48",A17:"20",A18:"72%",A19:"1.6"},{id:5,A1:"青年牛",A2:"103",A3:"2280",A4:"2287",A5:"2287",A6:"3",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.18",A13:"9.67",A14:"100.29",A15:"19.26",A16:"19.32",A17:"",A18:"",A19:""},{id:6,A1:"高产牛",A2:"96",A3:"4409",A4:"1976",A5:"1976",A6:"1",A7:"2.3",A8:"0",A9:"0",A10:"0",A11:"0.47",A12:"21.59",A13:"9.41",A14:"44.79",A15:"57.41",A16:"25.73",A17:"27",A18:"85%",A19:"1.2"},{id:7,A1:"小育成",A2:"155",A3:"3308",A4:"3316",A5:"3316",A6:"1.63",A7:"2.4",A8:"0",A9:"0",A10:"0",A11:"0.44",A12:"9.39",A13:"9.98",A14:"100.21",A15:"22.2",A16:"22.25",A17:"",A18:"",A19:""},{id:8,A1:"大公牛",A2:"113",A3:"2684",A4:"2684",A5:"2684",A6:"2.2",A7:"3.5",A8:"0",A9:"0",A10:"0",A11:"0.42",A12:"9.98",A13:"9.98",A14:"100.00",A15:"15.2",A16:"15.2",A17:"",A18:"",A19:""},{id:9,A1:"青年牛",A2:"154",A3:"3342",A4:"3326",A5:"3326",A6:"2.5",A7:"4.23",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"9.98",A13:"13.46",A14:"99.50",A15:"18.88",A16:"18.79",A17:"",A18:"",A19:""},{id:10,A1:"青年牛",A2:"150",A3:"3418",A4:"3417",A5:"3417",A6:"3.1",A7:"5",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.48",A13:"13.46",A14:"100.00",A15:"19.82",A16:"19.82",A17:"",A18:"",A19:""}],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:2,list:[],total:0,listLoading:!0,temp:{}},chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[{id:"0",name:"配方01"},{id:"1",name:"配方02"},{id:"2",name:"配方03"}],isChart:!0,isTable:!1,table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:1,list:[],total:0,listLoading:!0}}},tab2:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"平均值",A2:"76.9",A3:"15.7%",A4:"159.5",A5:"32.7%",A6:"251.7",A7:"51.6%",A8:"",A9:"",A10:""},{id:2,A1:"变异系数",A2:"5.69",A3:"5.69",A4:"5.46",A5:"5.46",A6:"4.91",A7:"4.91",A8:"",A9:"",A10:""},{id:3,A1:"17号/新产牛",A2:"29",A3:"10.51%",A4:"91",A5:"32.97%",A6:"156",A7:"56.52%",A8:"",A9:"",A10:"10-15|30-50|40-60"},{id:4,A1:"2号南/高产1",A2:"75.62",A3:"16.04%",A4:"162.33",A5:"34.42%",A6:"233.60",A7:"49.54%",A8:"",A9:"",A10:"10-15|30-50|40-60"},{id:5,A1:"4号北/高产2",A2:"81.34",A3:"16.17%",A4:"158.46",A5:"31.51%",A6:"263.10",A7:"52.32%",A8:"",A9:"",A10:"10-15|30-50|40-60"},{id:6,A1:"4号南/高产3",A2:"72.67",A3:"15.21%",A4:"154.34",A5:"32.31%",A6:"250.67",A7:"52.48%",A8:"",A9:"",A10:"10-15|30-50|40-60"}],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"平均值",A2:"74.2",A3:"16.7%",A4:"150",A5:"35.7%",A6:"225.7",A7:"41.6%",A8:""},{id:2,A1:"变异系数",A2:"6.5",A3:"6.5",A4:"5.96",A5:"5.96",A6:"4.21",A7:"4.21",A8:""},{id:3,A1:"17号/新产牛",A2:"29",A3:"10.51%",A4:"91",A5:"32.97%",A6:"156",A7:"56.52%",A8:"0-10|10-20|50-100"},{id:4,A1:"2号南/高产1",A2:"44",A3:"12.32%",A4:"70",A5:"19.61%",A6:"32",A7:"8.49%",A8:"0-10|10-20|50-100"},{id:5,A1:"4号北/高产2",A2:"31",A3:"8.22%",A4:"243",A5:"68.07%",A6:"314",A7:"83.29%",A8:"0-10|10-20|50-100"},{id:6,A1:"4号南/高产3",A2:"35",A3:"9.51%",A4:"150",A5:"60.31%",A6:"215",A7:"72.48%",A8:"0-10|10-20|50-100"}],total:0,listLoading:!0,temp:{}},table3:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"3号/新产1",A2:"110",A3:"20",A4:"18.14",A5:"47",A6:"3",A7:"7(7.69%)",A8:"16(17.58%)",A9:"34(37.36%)",A10:"18(19.78%)",A11:"9(9.12%)",A12:"7(7.69%)",A13:"1(1.56%)"},{id:2,A1:"3号北/低产牛",A2:"89",A3:"18",A4:"23.69",A5:"100",A6:"3",A7:"5(5.21%)",A8:"12(12.50%)",A9:"36(37.50%)",A10:"18(18.75%)",A11:"11(11.46%)",A12:"9(9.38%)",A13:"5(5.21%)"},{id:3,A1:"17号/新产牛",A2:"91",A3:"16",A4:"23.79",A5:"96",A6:"3.5",A7:"2(1.83%)",A8:"10(9.17%)",A9:"32(29.36%)",A10:"31(28.44%)",A11:"15(13.76%)",A12:"12(11.01%)",A13:"7(6.42%)"},{id:4,A1:"2号南/高产1",A2:"100",A3:"19",A4:"21.68",A5:"76",A6:"3.25",A7:"1(1.22%)",A8:"3(3.37%)",A9:"9(10.11%)",A10:"18(20.22%)",A11:"24(26.97%)",A12:"26(29.21%)",A13:"9(10.11%)"},{id:5,A1:"4号北/高产2",A2:"120",A3:"21",A4:"23.05",A5:"85",A6:"3",A7:"5(5.81%)",A8:"9(10.47%)",A9:"37(43.02)",A10:"17(19.77%)",A11:"12(13.95%)",A12:"5(5.81%)",A13:"1(1.16%)"},{id:6,A1:"4号南/高产3",A2:"102",A3:"22",A4:"24.09",A5:"96",A6:"3",A7:"5(5.05%)",A8:"20(20.20%)",A9:"40(40.40%)",A10:"20(20.20%)",A11:"8(8.08%)",A12:"6(6.06%)",A13:"1(1.56%)"}],total:0,listLoading:!0,temp:{}},table4:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[{id:1,A1:"3号/新产1",A2:"82",A3:"20",A4:"18.14",A5:"47",A6:"3",A7:"2(2.44%)",A8:"26(31,71%)",A9:"54(65.85%)",A10:"0(0%)",A11:"0(0%)"},{id:2,A1:"3号北/低产牛",A2:"55",A3:"18",A4:"23.69",A5:"100",A6:"3",A7:"0(0%)",A8:"11(20%)",A9:"42(76.36%)",A10:"2(3.64%)",A11:"0(0%)"},{id:3,A1:"17号/新产牛",A2:"44",A3:"16",A4:"23.79",A5:"96",A6:"3",A7:"0(0%)",A8:"6(13.64%)",A9:"35(79.55%)",A10:"3(6.82%)",A11:"0(0%)"},{id:4,A1:"2号南/高产1",A2:"45",A3:"19",A4:"21.68",A5:"76",A6:"3",A7:"0(0%)",A8:"7(15.56%)",A9:"32(71.11%)",A10:"6(13.33%)",A11:"0(0%)"},{id:5,A1:"4号北/高产2",A2:"53",A3:"21",A4:"23.05",A5:"85",A6:"3",A7:"0(0%)",A8:"13(24.53%)",A9:"35(66.04%)",A10:"5(9.43%)",A11:"0(0%)"},{id:6,A1:"4号南/高产3",A2:"62",A3:"22",A4:"24.09",A5:"96",A6:"3",A7:"0(0%)",A8:"10(16.13%)",A9:"44(70.97%)",A10:"8(12.90%)",A11:"0(0%)"}],total:0,listLoading:!0,temp:{}}},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()},mounted:function(){},methods:{handleDownload:function(){if("1"==this.tab.radio){var t=[{tHeader:["配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","混料时间(min)","搅拌时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)","实际干物质采食量(kg/头)","采食率(%) ","配方成本(元/头 )","实际成本(元/ 头)","产奶量(kg /头)","饲 料转化率","公斤奶饲料成本"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19"],tableDatas:this.tab.table.list,sheetName:"配方"}];Object(d["d"])(t,"效率统计-配方",!0,"xlsx")}else if("2"==this.tab.radio){var e=[{tHeader:["栏舍","配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","混料时间(min)","搅拌时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)"," 实际干物质采食量( kg/头)","采食率 (%)","配方成本( 元/头)","实际成本 (元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["A1","A20","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19"],tableDatas:this.tab.table.list,sheetName:"栏舍"}];Object(d["d"])(e,"效率统计-栏舍",!0,"xlsx")}else if("3"==this.tab.radio){var a=[{tHeader:["牲畜类别","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","混料时间(min)","搅拌时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干 物质采食量(kg/ 头)","实际干物质采 食量(kg/头)"," 采食率(%)","配方 成本(元/头)","实际成本(元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["A1","A2","A3","A4","A5","A6","A7","A8","A9","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19"],tableDatas:this.tab.table.list,sheetName:"牲畜类别"}];Object(d["d"])(a,"效率统计-牲畜类别",!0,"xlsx")}},handleTabClick:function(){"first"==this.activeName?(this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()):"second"==this.activeName&&(this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4())},changeRadio:function(){console.log(this.tab.radio),"1"==this.tab.radio?(console.log("配方名称"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"干奶牛",A2:"107",A3:"3210",A4:"3200",A5:"3200",A6:"1.5",A7:"3.3",A8:"0",A9:"0",A10:"0",A11:"0.45",A12:"13.50",A13:"13.46",A14:"99.70",A15:"30.9",A16:"30.8",A17:"",A18:"",A19:""},{id:2,A1:"临产牛",A2:"93",A3:"3003",A4:"3008",A5:"3008",A6:"2.6",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"14.85",A13:"14.88\t",A14:"100.20",A15:"41.01",A16:"41.08",A17:"",A18:"",A19:""},{id:3,A1:"新产牛",A2:"16",A3:"372",A4:"362",A5:"33620",A6:"1.25",A7:"3.2",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"11.16",A13:"10.86",A14:"97.31",A15:"31.85",A16:"31.0",A17:"15",A18:"65%",A19:"1.55"},{id:4,A1:"新产牛",A2:"119",A3:"3840",A4:"3864",A5:"3864",A6:"2.12",A7:"3.4",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"15.49",A13:"10.21",A14:"100.65",A15:"44.21",A16:"44.48",A17:"20",A18:"72%",A19:"1.6"},{id:5,A1:"青年牛",A2:"103",A3:"2280",A4:"2287",A5:"2287",A6:"3",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.18",A13:"9.67",A14:"100.29",A15:"19.26",A16:"19.32",A17:"",A18:"",A19:""},{id:6,A1:"高产牛",A2:"96",A3:"4409",A4:"1976",A5:"1976",A6:"1",A7:"2.3",A8:"0",A9:"0",A10:"0",A11:"0.47",A12:"21.59",A13:"9.41",A14:"44.79",A15:"57.41",A16:"25.73",A17:"27",A18:"85%",A19:"1.2"},{id:7,A1:"小育成",A2:"155",A3:"3308",A4:"3316",A5:"3316",A6:"1.63",A7:"2.4",A8:"0",A9:"0",A10:"0",A11:"0.44",A12:"9.39",A13:"9.98",A14:"100.21",A15:"22.2",A16:"22.25",A17:"",A18:"",A19:""},{id:8,A1:"大公牛",A2:"113",A3:"2684",A4:"2684",A5:"2684",A6:"2.2",A7:"3.5",A8:"0",A9:"0",A10:"0",A11:"0.42",A12:"9.98",A13:"9.98",A14:"100.00",A15:"15.2",A16:"15.2",A17:"",A18:"",A19:""},{id:9,A1:"青年牛",A2:"154",A3:"3342",A4:"3326",A5:"3326",A6:"2.5",A7:"4.23",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"9.98",A13:"13.46",A14:"99.50",A15:"18.88",A16:"18.79",A17:"",A18:"",A19:""},{id:10,A1:"青年牛",A2:"150",A3:"3418",A4:"3417",A5:"3417",A6:"3.1",A7:"5",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.48",A13:"13.46",A14:"100.00",A15:"19.82",A16:"19.82",A17:"",A18:"",A19:""}]):"2"==this.tab.radio?(console.log("栏舍名称"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"2号南",A2:"107",A3:"3210",A4:"3200",A5:"3200",A6:"1.5",A7:"3.3",A8:"0",A9:"0",A10:"0",A11:"0.45",A12:"13.50",A13:"13.46",A14:"99.70",A15:"30.9",A16:"30.8",A17:"",A18:"",A19:"",A20:"干奶牛"},{id:2,A1:"1号北",A2:"93",A3:"3003",A4:"3008",A5:"3008",A6:"2.6",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"14.85",A13:"14.88\t",A14:"100.20",A15:"41.01",A16:"41.08",A17:"",A18:"",A19:"",A20:"临产牛"},{id:3,A1:"1号南",A2:"16",A3:"372",A4:"362",A5:"33620",A6:"1.25",A7:"3.2",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"11.16",A13:"10.86",A14:"97.31",A15:"31.85",A16:"31.0",A17:"15",A18:"65%",A19:"1.55",A20:"新产牛"},{id:4,A1:"5号南",A2:"119",A3:"3840",A4:"3864",A5:"3864",A6:"2.12",A7:"3.4",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"15.49",A13:"10.21",A14:"100.65",A15:"44.21",A16:"44.48",A17:"20",A18:"72%",A19:"1.6",A20:"新产牛"},{id:5,A1:"5号北西",A2:"103",A3:"2280",A4:"2287",A5:"2287",A6:"3",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.18",A13:"9.67",A14:"100.29",A15:"19.26",A16:"19.32",A17:"",A18:"",A19:"",A20:"青年牛"},{id:6,A1:"4号北",A2:"96",A3:"4409",A4:"1976",A5:"1976",A6:"1",A7:"2.3",A8:"0",A9:"0",A10:"0",A11:"0.47",A12:"21.59",A13:"9.41",A14:"44.79",A15:"57.41",A16:"25.73",A17:"27",A18:"85%",A19:"1.2",A20:"高产牛"},{id:7,A1:"4号南",A2:"155",A3:"3308",A4:"3316",A5:"3316",A6:"1.63",A7:"2.4",A8:"0",A9:"0",A10:"0",A11:"0.44",A12:"9.39",A13:"9.98",A14:"100.21",A15:"22.2",A16:"22.25",A17:"",A18:"",A19:"",A20:"小育成"},{id:8,A1:"8号南",A2:"113",A3:"2684",A4:"2684",A5:"2684",A6:"2.2",A7:"3.5",A8:"0",A9:"0",A10:"0",A11:"0.42",A12:"9.98",A13:"9.98",A14:"100.00",A15:"15.2",A16:"15.2",A17:"",A18:"",A19:"",A20:"大公牛"},{id:9,A1:"7号北",A2:"154",A3:"3342",A4:"3326",A5:"3326",A6:"2.5",A7:"4.23",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"9.98",A13:"13.46",A14:"99.50",A15:"18.88",A16:"18.79",A17:"",A18:"",A19:"",A20:"青年牛"},{id:10,A1:"8号北",A2:"150",A3:"3418",A4:"3417",A5:"3417",A6:"3.1",A7:"5",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.48",A13:"13.46",A14:"100.00",A15:"19.82",A16:"19.82",A17:"",A18:"",A19:"",A20:"青年牛"}]):"3"==this.tab.radio&&(console.log(" 牲畜类别"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2(),this.tab.table.list=[{id:1,A1:"干奶牛",A2:"107",A3:"3210",A4:"3200",A5:"3200",A6:"1.5",A7:"3.3",A8:"0",A9:"0",A10:"0",A11:"0.45",A12:"13.50",A13:"13.46",A14:"99.70",A15:"30.9",A16:"30.8",A17:"",A18:"",A19:""},{id:2,A1:"临产牛",A2:"93",A3:"3003",A4:"3008",A5:"3008",A6:"2.6",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"14.85",A13:"14.88\t",A14:"100.20",A15:"41.01",A16:"41.08",A17:"",A18:"",A19:""},{id:3,A1:"新产牛",A2:"16",A3:"372",A4:"362",A5:"33620",A6:"1.25",A7:"3.2",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"11.16",A13:"10.86",A14:"97.31",A15:"31.85",A16:"31.0",A17:"15",A18:"65%",A19:"1.55"},{id:4,A1:"新产牛",A2:"119",A3:"3840",A4:"3864",A5:"3864",A6:"2.12",A7:"3.4",A8:"0",A9:"0",A10:"0",A11:"0.48",A12:"15.49",A13:"10.21",A14:"100.65",A15:"44.21",A16:"44.48",A17:"20",A18:"72%",A19:"1.6"},{id:5,A1:"青年牛",A2:"103",A3:"2280",A4:"2287",A5:"2287",A6:"3",A7:"4.2",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.18",A13:"9.67",A14:"100.29",A15:"19.26",A16:"19.32",A17:"",A18:"",A19:""},{id:6,A1:"高产牛",A2:"96",A3:"4409",A4:"1976",A5:"1976",A6:"1",A7:"2.3",A8:"0",A9:"0",A10:"0",A11:"0.47",A12:"21.59",A13:"9.41",A14:"44.79",A15:"57.41",A16:"25.73",A17:"27",A18:"85%",A19:"1.2"},{id:7,A1:"小育成",A2:"155",A3:"3308",A4:"3316",A5:"3316",A6:"1.63",A7:"2.4",A8:"0",A9:"0",A10:"0",A11:"0.44",A12:"9.39",A13:"9.98",A14:"100.21",A15:"22.2",A16:"22.25",A17:"",A18:"",A19:""},{id:8,A1:"大公牛",A2:"113",A3:"2684",A4:"2684",A5:"2684",A6:"2.2",A7:"3.5",A8:"0",A9:"0",A10:"0",A11:"0.42",A12:"9.98",A13:"9.98",A14:"100.00",A15:"15.2",A16:"15.2",A17:"",A18:"",A19:""},{id:9,A1:"青年牛",A2:"154",A3:"3342",A4:"3326",A5:"3326",A6:"2.5",A7:"4.23",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"9.98",A13:"13.46",A14:"99.50",A15:"18.88",A16:"18.79",A17:"",A18:"",A19:""},{id:10,A1:"青年牛",A2:"150",A3:"3418",A4:"3417",A5:"3417",A6:"3.1",A7:"5",A8:"0",A9:"0",A10:"0",A11:"0.46",A12:"10.48",A13:"13.46",A14:"100.00",A15:"19.82",A16:"19.82",A17:"",A18:"",A19:""}])},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(n["d"])(this.tab.table.getdataListParm).then((function(e){console.log("汇总统计/混料table数据",e.data.list),null!==e.data.list||(t.tab.table.list=[]),setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},getTabList2:function(){var t=this;this.tab.table2.listLoading=!0,Object(n["d"])(this.tab.table2.getdataListParm).then((function(e){console.log("汇总统计/撒料table数据",e.data.list),null!==e.data.list?(t.tab.table2.list=e.data.list,t.tab.table2.total=e.data.total):t.tab.table2.list=[],setTimeout((function(){t.tab.table2.listLoading=!1}),100)}))},changeDate:function(){""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList()},handleSearch:function(){"1"==this.tab.radio?(console.log("配方名称/查询"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2()):"2"==this.tab.radio?(console.log("栏舍名称/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2()):"3"==this.tab.radio&&(console.log(" 牲畜类别/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.name="getBarmilkList",this.getTabList(),this.tab.table2.getdataListParm.name="getBarmilkList",this.getTabList2())},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0,Object(n["d"])(this.tab.chart1.getdataListParm).then((function(e){console.log("泌乳牛采食量图表数据",e.data.list),null!==e.data.list?(t.tab.chart1.chartLine_data={data1:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data2:[25,27.2,26.5,29,26.4,23.6,27.7,28,31,33.5,30,35,29.8,26,29.5],data3:[22.5,25,26.5,24.3,27.1,25.5,29,22.4,29,19.8,23.5,22.8,27.6,21.2,26]},t.tab.chart1.total=e.data.total,t.roadChartLine1(t.tab.chart1.chartLine_data)):t.tab.chart1.list=[],setTimeout((function(){t.tab.chart1.listLoading=!1}),100)}))},getChart1Table:function(){var t=this;this.tab.chart1.table.listLoading=!0,Object(n["d"])(this.tab.chart1.table.getdataListParm).then((function(e){console.log("泌乳牛采食量table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart1.table.list=e.data.list,t.tab.chart1.table.total=e.data.total):t.tab.chart1.table.list=[],setTimeout((function(){t.tab.chart1.table.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=l.a.init(document.getElementById("chartLine1"));var e={tooltip:{trigger:"axis"},legend:{data:["泌乳牛采食量","泌乳牛产奶量"]},xAxis:[{type:"category",data:t.data1}],yAxis:[{type:"value",name:"泌乳牛采食量",axisLabel:{formatter:"{value} "}},{type:"value",name:"泌乳牛产奶量",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",itemStyle:{normal:{color:"#ff2d2d"}},data:t.data3}]};this.tab.chart1.chartLine.setOption(e),window.onresize=function(){this.tab.chart1.chartLine.resize()}},getChart2:function(){var t=this;this.tab.chart2.listLoading=!0,Object(n["d"])(this.tab.chart2.getdataListParm).then((function(e){console.log("牛栏剩料率图表数据",e.data.list),null!==e.data.list?(t.tab.chart2.chartLine_data={data1:["17号","5号南","3南东","3南西","1号南"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[3.5,2.7,6.6,1.8,2.2,4.1,5.3,2.7,.8,.65,2.1,2.55,2.7,3.45,2.1]},{data:[2.8,2.54,1.5,2.3,2.1,1.5,1.9,3.3,4.1,2.3,2.6,2.1,2.73,1.2,.65]},{data:[1.2,1.3,1.1,3.4,.9,2.3,2.1,1.8,3.6,4.16,2.87,3.2,4.1,2.7,2.1]},{data:[2.1,3.54,1.9,2.7,2.1,2.5,2.9,2.3,2.1,4.3,1.5,1.1,2.53,3.2,1.65]},{data:[2.8,5.4,2.5,3.3,3.1,1.7,1.2,3.6,1.1,1.3,2.7,2.3,1.3,1.8,3.1]}]},t.tab.chart2.total=e.data.total,t.roadChartLine2(t.tab.chart2.chartLine_data)):t.tab.chart2.list=[],setTimeout((function(){t.tab.chart2.listLoading=!1}),100)}))},getChart2Table:function(){var t=this;this.tab.chart2.table.listLoading=!0,Object(n["d"])(this.tab.chart2.table.getdataListParm).then((function(e){console.log("牛栏剩料率table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart2.table.list=e.data.list,t.tab.chart2.table.total=e.data.total):t.tab.chart2.table.list=[],setTimeout((function(){t.tab.chart2.table.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=l.a.init(document.getElementById("chartLine2"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"时间"},yAxis:{type:"value",name:"剩料率"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart2.chartLine.setOption(e),window.onresize=function(){this.tab.chart2.chartLine.resize()}},getChart3:function(){var t=this;this.tab.chart3.listLoading=!0,Object(n["d"])(this.tab.chart3.getdataListParm).then((function(e){console.log("搅拌时间统计图表数据",e.data.list),null!==e.data.list?(t.tab.chart3.chartLine_data={data1:["平均搅拌时间","混料+搅拌时间"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[12,13,10.5,10.4,12.9,13.3,11.1,11.5,10.8,12.5,11.8,12.9,12.3,12.1,11.9],data4:[33.5,33.2,34.1,35.4,35.9,36.4,34.1,34.2,33.9,35.5,34.7,35.9,35.2,34.8,34.1]},t.tab.chart3.total=e.data.total,t.roadChartLine3(t.tab.chart3.chartLine_data)):t.tab.chart3.list=[],setTimeout((function(){t.tab.chart3.listLoading=!1}),100)}))},getChart3Table:function(){var t=this;this.tab.chart3.table.listLoading=!0,Object(n["d"])(this.tab.chart3.table.getdataListParm).then((function(e){console.log("搅拌时间统计table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart3.table.list=e.data.list,t.tab.chart3.table.total=e.data.total):t.tab.chart3.table.list=[],setTimeout((function(){t.tab.chart3.table.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=l.a.init(document.getElementById("chartLine3"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"时间"},yAxis:{type:"value",name:"分钟",axisLabel:{formatter:"{value}min"}},series:[{name:t.data1[0],type:"line",stack:"总量",data:t.data3},{name:t.data1[1],type:"line",stack:"总量",data:t.data4},{name:t.data1[2],type:"line",stack:"总量",data:t.data5}]};this.tab.chart3.chartLine.setOption(e),window.onresize=function(){this.tab.chart3.chartLine.resize()}},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0,Object(n["d"])(this.tab.chart4.getdataListParm).then((function(e){console.log("转化率图表数据",e.data.list),null!==e.data.list?(t.tab.chart4.chartLine_data={data1:["新产牛","高产牛","干奶牛","低产牛","小公牛","小育成","青年牛"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[76.5,80.6,75,81,85.5,86.6,87,91.5,87,74,76,69.5,84,68.8,91]},{data:[78,84,85,81,80,82.6,85.8,90.5,84,79.5,77.6,79.5,81,78.8,92]},{data:[86.5,86,77,87,70.5,76,92,81.5,86,77.8,72,79.5,88,71,93]},{data:[74.5,80,75,71,81,84,89.7,95,80.7,79,72,65,88,67.1,89]},{data:[79,78,71,86,80,88,82.8,93,83,78.7,74.6,79.5,94,88.8,81]},{data:[85,88.6,85,81,71.5,89.6,80.7,94,85.7,70,77.4,79.1,81,65,90.5]},{data:[78,85,69,87,92,82,87,95.5,80.7,71.4,70.6,79.5,81.4,78.8,88]}]},t.tab.chart4.total=e.data.total,t.roadChartLine4(t.tab.chart4.chartLine_data)):t.tab.chart4.list=[],setTimeout((function(){t.tab.chart4.listLoading=!1}),100)}))},getChart4Table:function(){var t=this;this.tab.chart4.table.listLoading=!0,Object(n["d"])(this.tab.chart4.table.getdataListParm).then((function(e){console.log("转化率table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart4.table.list=e.data.list,t.tab.chart4.table.total=e.data.total):t.tab.chart4.table.list=[],setTimeout((function(){t.tab.chart4.table.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=l.a.init(document.getElementById("chartLine4"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"时间"},yAxis:{type:"value",name:"百分比"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart4.chartLine.setOption(e),window.onresize=function(){this.tab.chart4.chartLine.resize()}},getChart5:function(){var t=this;this.tab.chart5.listLoading=!0,Object(n["d"])(this.tab.chart5.getdataListParm).then((function(e){console.log("转化率图表数据",e.data.list),null!==e.data.list?(t.tab.chart5.chartLine_data={data1:["新产牛","高产牛","低产牛"],data2:["09/16","09/17","09/18","09/19","09/20","09/21","09/22","09/23","09/24","09/25","09/26","09/27","09/28","09/29","09/30"],data3:[{data:[1.5,1.2,1.7,1.2,1.6,1.7,1.6,1.5,1.2,1.7,1.2,1.6,1.7,1.5,2.1]},{data:[1.7,.8,1.2,1.8,1.7,1.2,1.8,1.1,1.5,1.9,1.8,1.3,1.4,1.5,1.4]},{data:[1.3,2.2,1.9,1.4,2.1,1,1.3,1.7,1,2,1,2.2,1.1,1.5,1.2,1.9]}]},t.tab.chart5.total=e.data.total,t.roadChartLine5(t.tab.chart5.chartLine_data)):t.tab.chart5.list=[],setTimeout((function(){t.tab.chart5.listLoading=!1}),100)}))},getChart5Table:function(){var t=this;this.tab.chart5.table.listLoading=!0,Object(n["d"])(this.tab.chart5.table.getdataListParm).then((function(e){console.log("转化率table/导出数据",e.data.list),null!==e.data.list?(t.tab.chart5.table.list=e.data.list,t.tab.chart5.table.total=e.data.total):t.tab.chart5.table.list=[],setTimeout((function(){t.tab.chart5.table.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=l.a.init(document.getElementById("chartLine5"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,top:10,right:10},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"时间"},yAxis:{type:"value",name:"公斤奶饲料成本(元)"},series:function(){for(var e=[],a=0;a<t.data3.length;a++){var i={name:t.data1[a],type:"line",data:t.data3[a].data};e.push(i)}return e}()};this.tab.chart5.chartLine.setOption(e),window.onresize=function(){this.tab.chart5.chartLine.resize()}},handleExport:function(t){"chart1"==t?(console.log("泌乳牛采食量导出"),this.getChart1Table()):"chart2"==t?(console.log("牛栏剩料率导出"),this.getChart2Table()):"chart3"==t?(console.log("搅拌时间统计导出"),this.getChart3Table()):"chart4"==t?(console.log("转化率导出"),this.getChart4Table()):"chart5"==t&&(console.log("成本分析导出"),this.getChart5Table())},handleTable:function(t){"chart1"==t?(console.log("泌乳牛采食量表格"),this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1,this.getChart1Table()):"chart2"==t?(console.log("牛栏剩料率表格"),this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1,this.getChart2Table()):"chart3"==t?(console.log("搅拌时间统计表格"),this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1,this.getChart3Table()):"chart4"==t?(console.log("转化率表格"),this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1,this.getChart4Table()):"chart5"==t&&(console.log("成本分析表格"),this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1,this.getChart5Table())},handleChart:function(t){"chart1"==t?(console.log("泌乳牛采食量图表"),this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0):"chart2"==t?(console.log("牛栏剩料率图表"),this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0):"chart3"==t?(console.log("搅拌时间统计图表"),this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0):"chart4"==t?(console.log("转化率图表"),this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0):"chart5"==t&&(console.log("成本分析图表"),this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0)},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(n["d"])(this.tab2.table.getdataListParm).then((function(e){console.log("宾州筛分析table数据",e.data.list),null!==e.data.list||(t.tab2.table.list=[]),setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},getTab2List2:function(){var t=this;this.tab2.table2.listLoading=!0,Object(n["d"])(this.tab2.table2.getdataListParm).then((function(e){console.log("粪便筛分析table数据",e.data.list),null!==e.data.list||(t.tab2.table2.list=[]),setTimeout((function(){t.tab2.table2.listLoading=!1}),100)}))},getTab2List3:function(){var t=this;this.tab2.table3.listLoading=!0,Object(n["d"])(this.tab2.table3.getdataListParm).then((function(e){console.log("BCS评分table数据",e.data.list),null!==e.data.list||(t.tab2.table3.list=[]),setTimeout((function(){t.tab2.table3.listLoading=!1}),100)}))},getTab2List4:function(){var t=this;this.tab2.table4.listLoading=!0,Object(n["d"])(this.tab2.table4.getdataListParm).then((function(e){console.log("成本分析table数据",e.data.list),null!==e.data.list||(t.tab2.table4.list=[]),setTimeout((function(){t.tab2.table4.listLoading=!1}),100)}))}}},u=p,h=(a("aafa"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"42a15593",null);e["default"]=f.exports},8269:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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"}})]),a("div",{staticStyle:{position:"relative"}},[a("pan-thumb",{staticClass:"panThumb",attrs:{image:t.avatar}}),a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),a("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[a("span",[t._v("Vue")]),a("el-progress",{attrs:{percentage:70}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("JavaScript")]),a("el-progress",{attrs:{percentage:18}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("Css")]),a("el-progress",{attrs:{percentage:12}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("ESLint")]),a("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},s=[],r=a("be94"),l=a("2f62"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pan-item",style:{zIndex:t.zIndex,height:t.height,width:t.width}},[a("div",{staticClass:"pan-info"},[a("div",{staticClass:"pan-info-roles-container"},[t._t("default")],2)]),a("img",{staticClass:"pan-thumb",attrs:{src:t.image}})])},o=[],c=(a("a9e3"),{name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}}),d=c,m=(a("2452"),a("2877")),p=Object(m["a"])(d,n,o,!1,null,"0d3d578f",null),u=p.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a",{staticClass:"link--mallki",class:t.className,attrs:{href:"#"}},[t._v(" "+t._s(t.text)+" "),a("span",{attrs:{"data-letters":t.text}}),a("span",{attrs:{"data-letters":t.text}})])},f=[],g={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},b=g,w=(a("8c05"),Object(m["a"])(b,h,f,!1,null,null,null)),v=w.exports,y={components:{PanThumb:u,Mallki:v},filters:{statusFilter:function(t){var e={success:"success",pending:"danger"};return e[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(r["a"])({},Object(l["b"])(["name","avatar","roles"]))},x=y,L=(a("7736"),a("50ce"),Object(m["a"])(x,i,s,!1,null,"5ef9ea86",null));e["default"]=L.exports},"835b":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_pie",use:"icon-chart_pie-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_pie"><defs><style type="text/css"></style></defs><path d="M483.556 540.444V145.067C292.978 159.289 142.222 318.577 142.222 512c0 204.8 164.978 369.778 369.778 369.778 193.422 0 352.711-150.756 366.933-341.334H483.556z" fill="#706EE7" p-id="2082" /><path d="M540.444 116.622v366.934h366.934C896 287.289 736.71 128 540.444 116.622z" fill="#29C287" p-id="2083" /></symbol>'});l.a.add(n);e["default"]=n},"838c":function(t,e,a){"use strict";var i=a("02fe"),s=a.n(i);s.a},"83d2":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍生产性能",use:"icon-栏舍生产性能-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍生产性能"><defs><style type="text/css"></style></defs><path d="M113.777778 910.222222h910.222222v113.777778H56.888889a56.888889 56.888889 0 0 1-56.888889-56.888889V0h113.777778v910.222222z" p-id="6425" fill="#ffffff" /><path d="M312.888889 341.333333A85.333333 85.333333 0 0 0 227.555556 426.666667v369.720889h170.666666V426.666667A85.333333 85.333333 0 0 0 312.888889 341.333333M625.777778 0a85.333333 85.333333 0 0 0-85.333334 85.333333V796.444444h170.666667V85.333333A85.333333 85.333333 0 0 0 625.777778 0M938.666667 262.485333a85.333333 85.333333 0 0 0-85.333334 85.333334V796.444444h170.666667V347.818667a85.333333 85.333333 0 0 0-85.333333-85.333334" p-id="6426" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"83d6":function(t,e){t.exports={title:"科湃腾tmr全混合日粮监管系统",fixedHeader:!0,tagsView:!0,sidebarLogo:!0}},"84f5":function(t,e,a){},8507:function(t,e,a){},8642:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料合同",use:"icon-饲料合同-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料合同"><defs><style type="text/css"></style></defs><path d="M694.02624 420.0448c-142.619989 0-262.71744 116.347904-262.71744 262.726656 0.000341 146.374997 116.346539 262.722901 262.71744 262.722901 146.376021 0 262.71744-116.347904 262.71744-262.722901 3.755349-146.379093-116.346539-262.726656-262.71744-262.726656l0 0zm0 480.413013c-120.097109 0-217.676117-97.585493-217.676117-217.685333 0.000341-120.104619 97.579008-217.685675 217.676117-217.685675 120.102571 0 217.680896 97.585835 217.680896 217.685675 0 120.09984-97.578667 217.685333-217.680896 217.685333z" p-id="95202" fill="#ffffff" /><path d="M209.876992 262.415019 585.188693 262.415019 585.188693 322.46272 209.876992 322.46272Z" p-id="95203" fill="#ffffff" /><path d="M209.876992 416.293547 510.12608 416.293547 510.12608 476.34432 209.876992 476.34432Z" p-id="95204" fill="#ffffff" /><path d="M209.876992 592.6912 360.000853 592.6912 360.000853 652.73856 209.876992 652.73856Z" p-id="95205" fill="#ffffff" /><path d="M393.775787 870.43072l-262.716075 0 0-731.869867 604.25216 0 0 210.178048c15.010133 0 48.786773 3.751936 63.801344 3.751936l0.000341-243.951616c0-15.019691-15.014912-30.030507-30.025387-30.030507l-671.798613 0c-15.019008 0-30.030165 15.011499-30.030165 30.030848l0 795.671893c0 15.014912 15.011157 30.021291 30.030165 30.021291l334.021973 0c-15.009792-18.761728-26.273792-48.787797-37.533013-63.799296l0 0z" p-id="95206" fill="#ffffff" /><path d="M844.148053 633.97888c-3.746816-11.259221-11.254443-15.009792-22.518443-18.766507l-71.309653-11.254784-33.77152-63.802709c-7.508651-18.768213-37.534379-18.768213-48.796672 0l-33.772544 63.802709-71.314773 11.254784c-11.254443 0-18.766848 7.507627-22.518443 18.766507-3.746133 11.259563 0 18.767189 7.508309 26.27584l52.537685 48.792576-7.502165 75.062272c0 11.254784 3.756373 18.767189 11.25888 26.274816 7.507627 7.498411 18.766507 7.498752 30.025387 3.746475l63.803051-33.77664 63.801685 33.77664c3.751595 3.751936 7.507285 3.752277 11.258539 3.752277 7.507968-0.000341 11.259221-3.752277 15.015936-3.752277 7.507285-7.502165 11.257856-15.009792 11.257856-26.269355l-11.257173-71.31136 52.542123-48.788139c3.751936-11.264 3.751936-22.523563 3.751936-33.783125l0 0zm-108.838229 52.545195c-7.507285 7.507285-7.507285 15.014571-7.507285 22.523563l3.755349 33.77664-26.273451-18.766848c-3.751936-3.755691-7.502507-3.755691-11.259221-3.755691-3.751936 0-7.502507 0-11.259221 3.755691l-30.020267 15.011499 3.751936-30.021632c0-7.508651-0.000341-18.766507-7.508992-22.523221l-22.516736-22.519125 33.780736-3.750229c7.503872 0 15.010816-7.508651 18.766507-15.016277l15.011157-30.026069 15.009451 30.026069c3.756715 7.502507 11.264 11.259563 18.767531 15.016277l33.776299 3.750229-26.273792 22.519125z" p-id="95207" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"86e0":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-宾州筛",use:"icon-宾州筛-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-宾州筛"><defs><style type="text/css"></style></defs><path d="M517.123115 1005.607512l-129.180644-73.057956a98.657779 98.657779 0 0 1-51.23903-87.551394v-415.898659a20.67678 20.67678 0 0 0-7.876868-15.753737L30.332639 170.42314l-3.229516-3.938434C-0.780991 138.167363-7.318792 96.104885 8.316792 59.280525A95.507031 95.507031 0 0 1 97.758634 0.007089h805.567346c38.990499 0 74.042564 23.03984 90.190145 59.234052 16.068812 36.076058 9.176552 78.374842-17.447264 107.282949l-3.938434 3.938434-302.471752 245.443224a21.228161 21.228161 0 0 0-7.089182 15.793122v485.727099a97.870092 97.870092 0 0 1-98.027629 100.03623c-16.423271 0.118153-32.689004-3.938434-47.458133-11.815303zM81.532285 111.189089L378.884072 352.103113c23.315531 19.062022 37.021282 47.418749 37.021283 77.62654v415.898659c0 7.325488 3.229516 14.572207 9.727932 17.841107l129.14126 71.718888a21.818926 21.818926 0 0 0 20.086015 0 20.794933 20.794933 0 0 0 9.727932-17.722954V432.407788c0-30.28656 13.036217-58.564518 36.391133-77.665924l297.903168-243.434622a20.598011 20.598011 0 0 0 1.969218-21.110008 19.49525 19.49525 0 0 0-17.565417-11.185153H97.837403c-7.7981 0-14.296516 3.938434-17.526033 11.185153a20.322321 20.322321 0 0 0 1.299683 21.110008v-0.078769zM753.035328 524.488381h211.887764a37.17882 37.17882 0 0 0 26.860122-11.736534 38.36035 38.36035 0 0 0 10.358082-27.726577c0-21.740157-16.738346-39.463111-37.218204-39.463112h-211.887764c-20.479858 0-37.218204 17.722954-37.218204 39.463112a38.557272 38.557272 0 0 0 37.218204 39.463111z m211.887764 151.62972h-211.887764a38.557272 38.557272 0 0 1-37.218204-39.423727c0-21.818926 16.738346-39.54188 37.218204-39.54188h211.887764c20.479858 0 37.218204 17.801723 37.218204 39.54188a38.517887 38.517887 0 0 1-10.358082 27.765961 37.218204 37.218204 0 0 1-26.860122 11.69715z m-211.887764 151.708488h211.887764a37.572663 37.572663 0 0 0 26.781353-11.854687 38.754193 38.754193 0 0 0 10.436851-27.687193c0-21.661388-16.738346-39.463111-37.218204-39.463112h-211.887764c-20.479858 0-37.218204 17.801723-37.218204 39.463112-0.393843 21.346314 16.226349 38.990499 37.218204 39.54188z" fill="#ffffff" p-id="17621" /></symbol>'});l.a.add(n);e["default"]=n},"88eb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.drivername,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"drivername",e)},expression:"table.getdataListParm.parammaps.drivername"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.drivercode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"drivercode",e)},expression:"table.getdataListParm.parammaps.drivercode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员编号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.drivercode,callback:function(a){t.$set(e.row,"drivercode",a)},expression:"scope.row.drivercode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"驾驶员名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.drivername))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.drivername,callback:function(a){t.$set(e.row,"drivername",a)},expression:"scope.row.drivername"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>0,expression:"table.total>0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"Driver",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getDriverList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:"",drivername:"",drivercode:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="Driver",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.drivername="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.drivercode="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,drivercode:"",drivername:""})},createData:function(t){var e=this;return console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.drivercode=t.drivercode,this.table.temp.drivername=t.drivername,this.table.temp.enable=t.enable,""==this.table.temp.drivercode&&""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员编号/驾驶员名称不能为空",duration:2e3}),!1):""==this.table.temp.drivercode?(this.$message({type:"error",message:"驾驶员编号不能为空",duration:2e3}),!1):""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员名称不能为空",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertDriver",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;return console.log("点击了编辑保存",t),this.table.temp.pastureid=t.pastureid,this.table.temp.drivercode=t.drivercode,this.table.temp.drivername=t.drivername,this.table.temp.enable=t.enable,this.table.temp.id=t.id,console.log(this.table.temp.drivercode),console.log(this.table.temp.drivername),""==this.table.temp.drivercode&&""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员编号/驾驶员名称不能为空",duration:2e3}),!1):void 0==this.table.temp.drivercode||""==this.table.temp.drivercode?(this.$message({type:"error",message:"驾驶员编号不能为空",duration:2e3}),!1):void 0==this.table.temp.drivername||""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员名称不能为空",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateDriver",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteDriver",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择驾驶员信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteDriver",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("6ea2"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"5dc9d076",null);e["default"]=u.exports},"88fe":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form-item",{attrs:{label:"排序"}},[a("draggable",{staticStyle:{display:"inline-block"},attrs:{group:{name:"orderBy",pull:!1,put:!1}},model:{value:t.orderByStrs,callback:function(e){t.orderByStrs=e},expression:"orderByStrs"}},t._l(t.orderByStrs,(function(e,i){return a("el-tag",{key:i,attrs:{closable:"",size:"small"},on:{close:t.handleCloseOrderBy}},[t._v(" "+t._s(e)+" ")])})),1),a("el-cascader",{staticStyle:{width:"150px"},attrs:{options:t.orderByOption,disabled:0===t.orderByOption.length,size:"mini",placeholder:t.$t("chart.selectOrderBy")},on:{change:t.handleOrderByChange},model:{value:t.orderBy,callback:function(e){t.orderBy=e},expression:"orderBy"}})],1)},s=[],r=(a("99af"),a("c740"),a("4160"),a("c975"),a("d81d"),a("a434"),a("ac1f"),a("1276"),a("159b"),a("310e")),l=a.n(r),n=a("3537"),o={components:{draggable:l.a},props:{value:{required:!0,type:Array}},data:function(){return{orderBy:[]}},computed:{allSelected:function(){return n["a"].state.caculCols.concat(n["a"].state.dimensions)},orderByStrs:{set:function(t){this.$emit("input",t)},get:function(){return this.value}},orderByOption:function(){return this.allSelected.map((function(t){return{value:t.Column,label:t.Comment,children:[{value:"desc",label:"降序"},{value:"asc",label:"正序"}]}}))}},watch:{"store.state.dimensions":function(t){this.watchHandler(t)},"store.state.caculCols":function(t){this.watchHandler(t)}},methods:{watchHandler:function(t){var e=this;console.log("cols",t),this.orderByStrs.forEach((function(a,i){console.log("orderByStr",a);var s=a.split(" ")[0];console.log("colName",s),t.findIndex((function(t){return t.Column===s}))||e.orderByStrs.splice(i,1)}))},handleOrderByChange:function(t){console.log("handleOrderByChange:",t),this.orderBy=[];var e=this.orderByStrs.findIndex((function(e){return e.indexOf(t[0])>=0}));e>=0?this.orderByStrs.splice(e,1,"".concat(t[0]," ").concat(t[1])):this.orderByStrs.push("".concat(t[0]," ").concat(t[1])),console.log("handleOrderByChange:",t),console.log("this.orderByStrs",this.orderByStrs)},handleCloseOrderBy:function(t){this.orderByStrs.splice(this.orderByStrs.indexOf(t),1)}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=m.exports},"890a":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-stack_bar_disabled",use:"icon-stack_bar_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-stack_bar_disabled"><defs><style type="text/css"></style></defs><path d="M129.292929 527.601778h147.105616v323.635717H129.292929z" fill="#909399" p-id="1942" /><path d="M335.614707 129.750626h147.106909v676.692041H335.614707z" fill="#909399" p-id="1943" /><path d="M541.191758 409.914182h147.105616v441.323313H541.191758z" fill="#909399" p-id="1944" /><path d="M129.292929 291.338343h147.104324v235.373899H129.292929z" fill="#909399" p-id="1945" /><path d="M335.616 409.424162h147.105616V850.747475H335.616z" fill="#909399" p-id="1946" /><path d="M540.902141 341.359192H688.006465v235.373899H540.902141z" fill="#909399" p-id="1947" /><path d="M745.015596 411.177374H892.121212v441.323313H745.015596z" fill="#909399" p-id="1948" /><path d="M745.015596 331.015758h147.104323v235.373899H745.015596z" fill="#909399" p-id="1949" /></symbol>'});l.a.add(n);e["default"]=n},"8a34":function(t,e,a){},"8a4c":function(t,e,a){},"8bd2":function(t,e,a){},"8c05":function(t,e,a){"use strict";var i=a("3014"),s=a.n(i);s.a},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),i("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),i("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..."}}},l=r,n=(a("a87e"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"9671e528",null);e["default"]=o.exports},"8d41":function(t,e,a){},"8d8b":function(t,e,a){"use strict";a.r(e);var i=function(t,e){var a=e._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-3",type:"success"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);e["default"]=n.exports},"8de3":function(t,e,a){"use strict";var i=a("228b"),s=a.n(i);s.a},"8e8d":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812L94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol>'});l.a.add(n);e["default"]=n},"8f12":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-撒料计划",use:"icon-撒料计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-撒料计划"><defs><style type="text/css"></style></defs><path d="M534.804 891.967h-57.879c-22.502 0-27.334 4.822-27.334 27.326v59.48c0 22.514 4.823 27.336 27.334 27.336h57.879c22.514 0 27.334-4.822 27.334-27.336V919.3c-1.603-22.521-6.424-27.333-27.334-27.333zM341.896 891.967h-57.875c-22.502 0-27.333 4.822-27.333 27.326v59.48c0 22.514 4.82 27.336 27.333 27.336h57.875c22.503 0 27.324-4.822 27.324-27.336V919.3c-1.614-22.521-6.435-27.333-27.324-27.333zM341.896 685.811h-57.875c-22.502 0-27.333 4.818-27.333 27.32v57.879c0 22.502 4.82 27.322 27.333 27.322h57.875c22.503 0 27.324-4.82 27.324-27.322v-59.473c-1.614-20.908-6.435-25.726-27.324-25.726zM476.925 491.286c-22.502 0-27.322 4.82-27.322 27.33v59.475c0 22.516 4.82 27.336 27.322 27.336h57.879c22.504 0 27.325-4.82 27.325-27.336v-59.475c-1.604-22.509-6.425-27.33-27.325-27.33h-57.879zM534.804 685.811h-57.879c-22.502 0-27.334 4.818-27.334 27.32v57.879c0 22.502 4.823 27.322 27.334 27.322h57.879c22.514 0 27.334-4.82 27.334-27.322v-59.473c-1.603-20.908-6.424-25.726-27.334-25.726zM341.896 491.286h-57.875c-22.502 0-27.333 4.82-27.333 27.33v59.475c0 22.506 4.82 27.326 27.333 27.326h57.875c22.503 0 27.324-4.82 27.324-27.326v-59.475c-1.614-24.109-6.435-27.33-27.324-27.33zM998.269 751.152a60.61 60.61 0 0 0-18.671-44.93L878.081 595.674l-0.527-0.559c-4.516-4.637-15.081-15.482-33.849-15.482-12.256 0-24.667 5.375-34.046 14.748-9.38 9.365-14.715 21.787-14.715 34.043v34.734c-33.728 4.549-63.369 14.17-88.355 28.721a180.558 180.558 0 0 0-64.513 63.512c-27.783 46.127-31.459 96.766-33.229 121.105-0.268 3.645-0.499 6.795-0.724 8.852-0.115 1-0.177 2.01-0.177 3.016 0 26.57 23.754 45.029 45.025 45.029 16.539 0 29.27-8.182 37.854-24.338 28.622-45.334 61.384-68.625 103.971-73.143v42.832c0 25.701 19.396 45.027 45.131 45.027 18.118 0 28.418-10.035 33.372-14.859l0.08-0.076c0.407-0.404 0.809-0.818 1.196-1.252l101.579-112.613c8.487-8.393 21.964-22.184 22.115-43.819" fill="#ffffff" p-id="30870" /><path d="M938.162 757.576l-1.095 1.098-88.959 98.688v-48.605c-0.005-14.178-11.101-25.877-25.259-26.625-39.112-2.088-74.188 5.912-104.331 23.744-19.672 11.652-37.443 27.459-53.818 47.842 9.604-65.979 41.491-132.889 158.302-139.715 14.097-0.83 25.106-12.506 25.106-26.627V641.99l92.836 101.033a27.827 27.827 0 0 0 1.557 1.574 7.307 7.307 0 0 1 2.363 5.488c-0.981 1.847-4.8 5.612-6.702 7.491z" fill="#ffffff" p-id="30871" /><path d="M998.826 401.018a31.522 31.522 0 0 0-13.141-29.198L525.523 27.357c-11.189-8.364-26.553-8.364-37.743 0L26.759 371.82c-13.952 10.418-16.813 30.173-6.396 44.121 10.416 13.95 30.168 16.816 44.119 6.399l44.523-33.277v585.548c0 17.4 14.107 31.508 31.51 31.508 17.4 0 31.507-14.107 31.507-31.508V341.918l334.58-249.994 441.313 330.339a31.522 31.522 0 0 0 31.718 4.39 31.507 31.507 0 0 0 19.193-25.635" fill="#ffffff" p-id="30872" /></symbol>'});l.a.add(n);e["default"]=n},"8f26":function(t,e,a){},"90bb":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-默认参数配置",use:"icon-默认参数配置-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-默认参数配置"><defs><style type="text/css"></style></defs><path d="M248 324.8c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70696" fill="#ffffff" /><path d="M248 964.8c-19.2 0-32-12.8-32-32v-640c0-19.2 12.8-32 32-32s32 12.8 32 32v640c0 19.2-12.8 32-32 32z m537.6 0c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70697" fill="#ffffff" /><path d="M785.6 772.8c-19.2 0-32-12.8-32-32v-640c0-19.2 12.8-32 32-32s32 12.8 32 32v640c0 19.2-12.8 32-32 32z m-256 192c-19.2 0-32-12.8-32-32v-352c0-19.2 12.8-32 32-32s32 12.8 32 32v352c0 19.2-12.8 32-32 32z m0-576c-19.2 0-32-12.8-32-32v-256c0-19.2 12.8-32 32-32s32 12.8 32 32v256c0 19.2-12.8 32-32 32z" p-id="70698" fill="#ffffff" /><path d="M529.6 612.8c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70699" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"90fe":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.$index)+" ")]}}])}),a("el-table-column",{attrs:{label:"Title"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.title)+" ")]}}])}),a("el-table-column",{attrs:{label:"Author",width:"110",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.author))])]}}])}),a("el-table-column",{attrs:{label:"Pageviews",width:"110",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.pageviews)+" ")]}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("statusFilter")(e.row.status)}},[t._v(t._s(e.row.status))])]}}])}),a("el-table-column",{attrs:{align:"center",prop:"created_at",label:"Display_time",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-time"}),a("span",[t._v(t._s(e.row.display_time))])]}}])})],1)],1)},s=[],r=a("b775");function l(t){return Object(r["a"])({url:"/table/list",method:"get",params:t})}var n={filters:{statusFilter:function(t){var e={published:"success",draft:"gray",deleted:"danger"};return e[t]}},data:function(){return{list:null,listLoading:!0}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.listLoading=!0,l().then((function(e){t.list=e.data.items,t.listLoading=!1}))}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["default"]=d.exports},"917f":function(t,e,a){},"91b3":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-1",type:"success"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);e["default"]=n.exports},9225:function(t,e,a){"use strict";var i=a("be94"),s=a("2b0e"),r=a("a925"),l={common:{dashboard:"Dashbord",chart:"Chart",dataSource:"Data Source",share:"Share",add:"Add",edit:"Edit",delete:"Delete",cancel:"Cancel",confirm:"Confirm",name:"Name",desc:"Description",close:"Close",operation:"Operation",back:"Back",save:"Save",open:"Open",closed:"Closed",saveSuccess:"Success saved",deleteSuccess:"Deleted",openGuide:"Show tutorial"},auth:{useTestAccount:"Click here to use test account",signIn:"SIGN IN",signUp:"SIGN UP",toSignUp:"Sign up",toSignIn:"Already have an account? Sign In",passwordPlaceholder:"Please enter your password",emailPlaceholder:"Please enter your email",usernamePlaceholder:"Please enter your username",logout:"Log Out",signUpSuccess:"Sign up success, please sign in"},navbar:{document:"Document",home:"Home"},home:{slogan:"A Data Analysis Board in Vue.",start:"Get Start"},dashboard:{addDashboard:"Add Dashboard",dashboardName:"Dashboard Name",dashboardDesc:"Dashboard Description",addOrEditDashboard:"Add or edit Dashboard",addChart:"Add Chart",shareLink:"Share Link",emptyDashboardTip:"Dashboard Is Empty,Go Create Your First Chart!",dashboardNamePlaceholder:"Please enter dashboard name",dashboardDescPlaceholder:"Please enter dashboard description.",dashboardList:"Dashboard List",removeChartConfirm:"Are you sure you want to remove chart from dashboard ?",chartQueryException:"Something wrong with chart {0}.",deleteConfirm:"Are you sure you want to delete dashboard: {0}?"},chart:{myChart:"My Chart",createNewChart:"Create New Chart",editChart:"Edit Chart",createChart:"Create Chart",allCharts:"AllCharts",addToDashboard:"Add to Dashboard",chartName:"Chart Name",chartDesc:"Chart Description",namePlaceholder:"Please enter chart name",descPlaceholder:"Please enter chart description",dimensions:"Dimension",values:"Values",order:"Order",selectOrderBy:"Select order by",descend:"Descend",ascend:"Ascend",filters:"Filters",chartType:"Chart Types",addFilters:"Add Filters",filterField:"Filter Field",filterCantBeEmpty:"Field and operator can't be empty",selectFilterField:"Please select filter field",filterOperator:"Filter Operator",selectFilterOperator:"Please select filter operator",comparedValue:"Compared Value",limit:"Query {0} rows",fieldExisted:"Field already existed.",beforeLeaveConfirm:"Are you sure you want to leave, changes you made may not be saved.",deleteConfirm:"Are you sure you want to delete chart: {0}?",chartNameWarning:"Save failed, please enter chart name. "},dataSource:{sourcePlaceholder:"Select data source",tablePlaceholder:"Select table",table:"Table",fields:"Fields",addDataSource:"Add Data Source",baseName:"Base Name",host:"Host",port:"Port",user:"User",password:"Password",dataBase:"DataBase",createdAt:"Created Time",manageTables:"Manage Tables",tableName:"Table Name",linked:"Linked",deleteConfirm:"Are you sure you want to remove this data source ?"},guide:{dataPanel:"Data Panel",dataPanelDesc:"Here is the data source and the field list of the data source, you can switch the data source here, drag the field to the Data Query Panel to query.",formPanel:"Data Query Panel",formPanelDesc:"Perform data query here, you can construct and adjust query statements here to query data.",dimensionInput:"Dimension Editor",dimensionInputDesc:"Dimension refers to the angle of data summarization, such as time dimension, category dimension, etc. The dimension should generally not exceed 2.",fieldInput:"Field Editor",fieldInputDesc:"The field refers to the content of the query data, such as the number, sum, etc. There can be multiple fields, but it should not be too much so as not to affect the visualization effect.",vizPanel:"Visualization panel",vizPanelDesc:"Here is the visualization panel, where you can visualize the data, choose different chart types and styles, etc."},chartType:{table:"Table",tableDesc:"Any dimensions and values",line:"Line Chart",lineDesc:"1 or 2 dimensions;1+ values",bar:"Bar Chart",barDesc:"1 or 2 dimensions;1+ values",stackBar:"Stacked Bar Chart",stackBarDesc:"1 or 2 dimensions;2+ values",pie:"Pie Chart",pieDesc:"1 dimension and 1 value;Or 0 dimension and multiple values",horizontalBar:"Horizontal Bar Chart",horizontalBarDesc:"1 dimension;1+ values"},config:{is:"Is ",greater:"Greater",less:"Less",greaterOrEqual:"Greater Or Equal",lessorEqual:"Less or Equal",isNot:"Is Not",between:"Between",in:"In",like:"Like",sum:"Sum",avg:"Avg",max:"Max",min:"Min",count:"Count",none:"-"}},n={common:{dashboard:"看板",chart:"图表",dataSource:"数据源",share:"分享",add:"添加",edit:"编辑",delete:"删除",cancel:"取消",confirm:"确认",name:"名称",desc:"描述",close:"关闭",operation:"操作",back:"后退",save:"保存",open:"开启",closed:"关闭",saveSuccess:"保存成功",deleteSuccess:"删除成功",openGuide:"开启新手引导"},auth:{useTestAccount:"不想注册?点我使用测试账号",signIn:"登录",signUp:"注册",toSignUp:"没有账号?去注册",toSignIn:"已有账号? 去登录",passwordPlaceholder:"请输入密码",emailPlaceholder:"请输入邮箱",usernamePlaceholder:"请输入用户名",logout:"登出",signUpSuccess:"注册成功,请登录"},navbar:{document:"文档",home:"首页"},home:{slogan:"基于Vue的数据可视化分析.",start:"开始"},dashboard:{addDashboard:"添加看板",dashboardName:"看板名称",dashboardDesc:"看板描述",addOrEditDashboard:"添加或编辑看板",addChart:"添加图表",shareLink:"分享链接",emptyDashboardTip:"看板空空如也, 去创建新的图表吧!",dashboardNamePlaceholder:"请输入看板名称",dashboardDescPlaceholder:"请输入看板描述.",dashboardList:"看板列表",removeChartConfirm:"确定要把该图表从仪表盘中移除 ?",chartQueryException:"图表:{0} 查询语句异常",deleteConfirm:"确定要删除{0}仪表盘吗?"},chart:{myChart:"我的图表",createNewChart:"创建新的图表",editChart:"编辑图表",createChart:"创建图表",allCharts:"所有图表",addToDashboard:"添加到看板",chartName:"图表名称",chartDesc:"图表描述",namePlaceholder:"请输入图表名称",descPlaceholder:"请输入图表描述",dimensions:"维度",values:"数值",order:"排序",selectOrderBy:"选择排序方式",descend:"降序",ascend:"正序",filters:"筛选",chartType:"图表类型",addFilters:"添加筛选条件",filterField:"筛选字段",filterCantBeEmpty:"筛选字段和筛选方式不可为空",selectFilterField:"请选择筛选字段",filterOperator:"筛选操作符",selectFilterOperator:"请选择筛选操作符",comparedValue:"判断条件值",limit:"查询前 {0} 行",fieldExisted:"字段已存在",beforeLeaveConfirm:"确定要离开当前页面吗?系统可能不会保存您所做的更改",deleteConfirm:"确定要删除图表:{0}?",chartNameWarning:"保存失败,请输入图表名称"},dataSource:{sourcePlaceholder:"选择数据源",tablePlaceholder:"选择表",table:"表",fields:"字段",addDataSource:"添加数据源",baseName:"数据源名称",host:"Host",port:"端口",user:"用户名",password:"密码",dataBase:"数据库",createdAt:"创建时间",manageTables:"管理表",tableName:"表名称",linked:"是否连接",deleteConfirm:"删除后不可撤销,确定要移除该数据源?"},guide:{dataPanel:"数据面板",dataPanelDesc:"这里是数据源以及数据源的字段列表,你可以在这里切换数据源、将字段拖拽到数据查询面板进行查询",formPanel:"数据查询面板",formPanelDesc:"这里进行数据查询,你可以在这里构建、调整查询语句,实现对数据的查询",dimensionInput:"维度编辑",dimensionInputDesc:"维度是指数据归纳的角度,如时间维度、类别维度等,维度一般不宜超过 2 个",fieldInput:"字段编辑",fieldInputDesc:"字段是指查询数据的内容,如个数、总和等,字段可以有多个,但是不宜过多以免影响可视化效果",vizPanel:"可视化面板",vizPanelDesc:"这里是可视化面板,可以在此对数据进行可视化,选择不同的图表类型和样式等等"},chartType:{table:"表格",tableDesc:"任意维度和数值",line:"折线图",lineDesc:"1 或 2个维度;1或多个数值",bar:"柱状图",barDesc:"1 或 2个维度;1或多个数值",stackBar:"堆积柱状图",stackBarDesc:"1 或 2个维度;2或多个数值",pie:"饼图",pieDesc:"1个维度1个数值;0个维度多个数值",horizontalBar:"条形图",horizontalBarDesc:"1个维度;1或多个数值"},config:{is:"等于",greater:"大于",less:"小于",greaterOrEqual:"大于等于",lessorEqual:"小于等于",isNot:"不等于",between:"区间",in:"In",like:"包含",sum:"合计",avg:"平均",max:"最大值",min:"最小值",count:"计数",none:"-"}},o=a("b2d6"),c=a.n(o),d=a("f0d9"),m=a.n(d);s["default"].use(r["a"]);var p=new r["a"]({locale:"CN",messages:{EN:Object(i["a"])(Object(i["a"])({},l),c.a),CN:Object(i["a"])(Object(i["a"])({},n),m.a)}});e["a"]=p},9380:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._v(" 用料分析 ")])},s=[],r={name:"MaterialAnalysis",data:function(){return{}},created:function(){},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},"93cd":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol>'});l.a.add(n);e["default"]=n},9406:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-container"},[a(t.currentRole,{tag:"component"})],1)},s=[],r=(a("caad"),a("2532"),a("be94")),l=a("2f62"),n=a("3f2c"),o=a("5851"),c={name:"Dashboard",components:{adminDashboard:n["default"],editorDashboard:o["default"]},data:function(){return{currentRole:"adminDashboard"}},computed:Object(r["a"])({},Object(l["b"])(["roles"])),created:function(){this.roles.includes("admin")||(this.currentRole="editorDashboard")}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);e["default"]=p.exports},"941a":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-操作日志",use:"icon-操作日志-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-操作日志"><defs><style type="text/css"></style></defs><path d="M939.842901 675.865075a248.249581 248.249581 0 0 0-52.780992-79.171488 233.488795 233.488795 0 0 0-77.829598-53.675585 240.64554 240.64554 0 0 0-190.548327 0 248.696878 248.696878 0 0 0-130.163294 134.188963 255.853622 255.853622 0 0 0 0 194.573996 246.907691 246.907691 0 0 0 52.333696 79.171488 237.961761 237.961761 0 0 0 77.829598 53.675585 242.434726 242.434726 0 0 0 268.377925-53.675585 254.511733 254.511733 0 0 0 52.333696-79.171488 255.853622 255.853622 0 0 0 0-194.573996m-225.884754 288.953566a191.890217 191.890217 0 1 1 188.311844-191.890216 190.10103 190.10103 0 0 1-188.311844 191.890216" p-id="80336" fill="#ffffff" /><path d="M751.08376 268.377925H233.114364A31.758055 31.758055 0 0 1 198.672531 236.172574a31.758055 31.758055 0 0 1 33.54724-33.54724h518.863989a31.758055 31.758055 0 0 1 33.994538 33.54724 31.758055 31.758055 0 0 1-33.994538 33.994538z m-158.342976 202.625334h-357.837233a33.994537 33.994537 0 0 1 0-67.541778h357.837233a33.994537 33.994537 0 1 1 0 67.541778zM345.385797 675.417779H233.114364a33.994537 33.994537 0 0 1 0-67.541778h112.271433a33.994537 33.994537 0 1 1 0 67.541778z" p-id="80337" fill="#ffffff" /><path d="M840.990365 0H165.572587A103.772798 103.772798 0 0 0 64.483568 101.089019v810.054038a104.220094 104.220094 0 0 0 101.089019 101.536315h195.021292a33.994537 33.994537 0 0 0 33.547241-33.994537 33.547241 33.547241 0 0 0-33.547241-33.547241H166.019883a31.758055 31.758055 0 0 1-33.994537-33.994537V101.089019a33.994537 33.994537 0 0 1 10.28782-25.048607 33.994537 33.994537 0 0 1 23.706717-8.498634h674.970482a34.88913 34.88913 0 0 1 23.706717 8.498634 33.994537 33.994537 0 0 1 10.287821 25.048607v352.469675a33.994537 33.994537 0 0 0 67.541778 0V101.089019A104.220094 104.220094 0 0 0 840.990365 0zM827.124173 699.571792l-34.441834-34.441834a16.549972 16.549972 0 0 0-23.706717 0l-151.186231 151.186232-5.367559 55.464771a6.262152 6.262152 0 0 0 0 4.472965 5.814855 5.814855 0 0 0 4.025669 0l55.464771-5.367558L780.158036 768.902756l44.729654-44.729654a16.549972 16.549972 0 0 0 0-23.706717z" p-id="80338" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"949a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{filterable:"",placeholder:"牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.parentname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"parentname",e)},expression:"table.getdataListParm.parammaps.parentname"}},t._l(t.parentList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.classname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"classname",e)},expression:"table.getdataListParm.parammaps.classname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:t.table.rules,model:t.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牲畜父类","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.parentname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"牲畜类别父类"},on:{change:t.changeParent},model:{value:e.row.parentid,callback:function(a){t.$set(e.row,"parentid",a)},expression:"scope.row.parentid"}},t._l(t.parentList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.classname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.classname,callback:function(a){t.$set(e.row,"classname",a)},expression:"scope.row.classname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"牲畜类别编号","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.classcode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.classcode,callback:function(a){t.$set(e.row,"classcode",a)},expression:"scope.row.classcode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"LivestockCategory",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],parentList:[],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getCowclassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),classname:"",parentname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="LivestockCategory",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.parentList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(t){console.log("点击了是否启用",t)},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.classname="",this.table.getdataListParm.parammaps.parentname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeParent:function(t){console.log("点击了牲畜类别父类",t),console.log(this.parentList.find((function(e){return e.value==t})).label),this.table.temp.parentname=this.parentList.find((function(e){return e.value==t})).label},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,parentid:"",classname:"",classcode:""})},createData:function(t){var e=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.classcode=t.classcode,this.table.temp.classname=t.classname,this.table.temp.parentid=t.parentid,this.table.temp.enable=t.enable,""==this.table.temp.parentid&&""==this.table.temp.classname&&""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜父类/牲畜类别/牲畜类别编号不能为空",duration:2e3}),!1;if(""==this.table.temp.classname&&""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜类别/牲畜类别编号不能为空",duration:2e3}),!1;if(""==this.table.temp.parentid)return this.$message({type:"error",message:"牲畜父类不能为空",duration:2e3}),!1;if(""==this.table.temp.classname)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜类别编号不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.classname)?(this.$message({type:"error",message:"牲畜类别不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.classcode)?(this.$message({type:"error",message:"牲畜类别编号不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertCowclass",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){console.log("点击了编辑",t);for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.parentid=String(t.parentid),this.table.temp.parentid=t.parentid,this.table.temp.parentname=t.parentname},updateData:function(t){var e=this;if(console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.classcode=t.classcode,this.table.temp.classname=t.classname,this.table.temp.parentid=t.parentid,this.table.temp.enable=t.enable,this.table.temp.id=t.id,""==this.table.temp.parentid&&""==this.table.temp.classname&&""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜父类/牲畜类别/牲畜类别编号不能为空",duration:2e3}),!1;if(""==this.table.temp.classname&&""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜类别/牲畜类别编号不能为空",duration:2e3}),!1;if(""==this.table.temp.parentid)return this.$message({type:"error",message:"牲畜父类不能为空",duration:2e3}),!1;if(""==this.table.temp.classname)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.classcode)return this.$message({type:"error",message:"牲畜类别编号不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.classname)?(this.$message({type:"error",message:"牲畜类别不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.classcode)?(this.$message({type:"error",message:"牲畜类别编号不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateCowclass",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteCowclass",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择牲畜类别信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteCowclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("9601"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"794f8088",null);e["default"]=u.exports},9601:function(t,e,a){"use strict";var i=a("542a"),s=a.n(i);s.a},"980b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCreate}},[t._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:t.handleDelete}},[t._v("减少车次")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleHistoryRecords}},[t._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id"},on:{"selection-change":t.handleSelect}},[a("el-table-column",{attrs:{type:"selection","min-width":"50"}}),a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.sort))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort",a)},expression:"scope.row.sort"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bar))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeBars(a,e.row)}},model:{value:e.row.barid,callback:function(a){t.$set(e.row,"barid",a)},expression:"scope.row.barid"}},t._l(t.barsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tmrcode))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeTMRNumber(a,e.row)}},model:{value:e.row.tmrid,callback:function(a){t.$set(e.row,"tmrid",a)},expression:"scope.row.tmrid"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.times))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeTimes(a,e.row)}},model:{value:e.row.times,callback:function(a){t.$set(e.row,"times",a)},expression:"scope.row.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"撒料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.lppcode))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeCarFollow(a,e.row)}},model:{value:e.row.lppid,callback:function(a){t.$set(e.row,"lppid",a)},expression:"scope.row.lppid"}},t._l(t.carFollowList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.lppcode,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.rtime))]):t._e(),e.row.Edit?a("el-time-picker",{staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"datetime",placeholder:"选择时间",format:"HH:mm","value-format":"HH:mm"},model:{value:e.row.rtime,callback:function(a){t.$set(e.row,"rtime",a)},expression:"scope.row.rtime"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"剩料处理方式","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.treatmethod))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeResidueDisposal(a,e.row)}},model:{value:e.row.treatmethod,callback:function(a){t.$set(e.row,"treatmethod",a)},expression:"scope.row.treatmethod"}},t._l(t.residueDisposalList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.useinbar))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeTransferbars(a,e.row)}},model:{value:e.row.useinbarid,callback:function(a){t.$set(e.row,"useinbarid",a)},expression:"scope.row.useinbarid"}},t._l(t.transferbarsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.history.dialogStatus],"destroy-on-close":!0,visible:t.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.history,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-history"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"180px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.history.getdataListParm.parammaps.date,callback:function(e){t.$set(t.history.getdataListParm.parammaps,"date",e)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleApplication}},[t._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.history.listLoading,expression:"history.listLoading"}],key:t.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.history.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bar))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrcode))])]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"发料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lppcode))])]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.rtime))])]}}])}),a("el-table-column",{attrs:{label:"剩料处理方式","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.treatmethod))])]}}])}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.useinbar))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.history.total>0,expression:"history.total>0"}],attrs:{total:t.history.total,page:t.history.getdataListParm.offset,limit:t.history.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.history.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.history.getdataListParm,"pagecount",e)},pagination:t.getHistoryList}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.check.dialogStatus],"destroy-on-close":!0,visible:t.check.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(e){return t.$set(t.check,"dialogFormVisible",e)}}},[a("div",{staticClass:"check"},[a("p",[t._v("当前有栏舍未分配,建议及时进行分配,未分配栏舍如下:")]),t._v(" 1-6;1-7;1-8 ")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSuccess"},[t._v("确认")])],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("333d"),n=a("aa47"),o=a("a78e"),c=a.n(o),d=a("5c96"),m={name:"SurplusMaterialPlan",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getTMRYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],barsList:[],residueDisposalList:[{value:"0",label:"转投剩料"},{value:"1",label:"继续饲喂"}],TMRNumberList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},carFollowList:[],getTransferbarsParm:{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},transferbarsList:[],table:{getdataListParm:{name:"getRemainplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataDateParm:{name:"getRPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},getdataListParm:{name:"getRemainplanListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}}},check:{dialogFormVisible:!1,dialogStatus:""},textMap:{history:"历史记录",check:"提示"},requestParam:{},selectList:[],isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.barsList=e.data.getBarListEnable.list,t.TMRNumberList=e.data.getTMRYHList.list}))},getIsDisplay:function(){var t=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(e){1==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"}]:2==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==e.data.list[0].inforvalue&&(t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"groupEdit",!1),t.$set(e.data.list[a],"groupNoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.rowDrop(),t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了生效")},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var t=document.querySelector("#table .el-table__body-wrapper tbody"),e=this,a=n["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1==e.dropState&&a.destroy()},onEnd:function(t){var a=t.newIndex,i=t.oldIndex,s=e.table.list.splice(i,1)[0];e.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",e.table.list[a-1]),console.log("下",e.table.list[a+1])}})},handleCreate:function(){console.log("点击了新增车次"),this.dropState=!0;for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:parseInt(this.table.list[this.table.list.length-1].sort)+1,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",rtime:"",treatmethod:"",useinbar:"",useinbarid:""})},changeBars:function(t,e){e.bar=this.barsList.find((function(e){return e.id==t})).bname},changeTMRNumber:function(t,e){e.tmrcode=this.TMRNumberList.find((function(e){return e.id==t})).tname},changeCarFollow:function(t,e){e.lppcode=this.carFollowList.find((function(e){return e.id==t})).lppcode},changeTimes:function(t,e){console.log(t,e),this.getCarFollowParm.parammaps.times=t,this.getCarFollowList(e)},getCarFollowList:function(t){var e=this;Object(r["d"])(this.getCarFollowParm).then((function(a){console.log("撒料计划车次跟随列表数据",a.data.list),null!==a.data.list&&(e.carFollowList=a.data.list,t.lppid=e.carFollowList[0].id,t.lppcode=e.carFollowList[0].lppcode)}))},changeResidueDisposal:function(t,e){console.log(t,e),this.getCarFollowParm.parammaps.times=t,this.getTransferbarsList()},getTransferbarsList:function(){var t=this;Object(r["d"])(this.getTransferbarsParm).then((function(e){console.log("撒料计划车次跟随列表数据",e.data.list),null!==e.data.list&&(t.transferbarsList=e.data.list)}))},changeTransferbars:function(t,e){console.log(t,e),e.useinbar=this.transferbarsList.find((function(e){return e.id==t})).bname},createData:function(t){var e=this;if(console.log("点击了新增保存",t),""==t.barid&&""==t.tmrid&&""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.tmrid&&""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"班次/混剩料处理方式不能为空",duration:2e3}),!1;if(""==t.barid)return this.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.treatmethod)return this.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.treatmethod&&"转投剩料"==t.treatmethod&&""==t.useinbarid)return this.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.treatmethod&&"继续饲喂"==t.treatmethod&&(t.useinbarid="0"),""!=t.rtime&&null!=t.rtime||(t.rtime="");for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.sort&&!i.test(parseFloat(t.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertRemainplan",this.requestParam.parammaps=t,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消"),this.dropState=!1;for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,"0"==t.useinbarid&&(t.useinbarid=""),void 0==t.barid&&(t.barid=""),void 0==t.tmrid&&(t.tmrid=""),void 0==t.times&&(t.times=""),void 0==t.useinbarid&&(t.useinbarid=""),void 0==t.treatmethod&&(t.treatmethod=""),this.getCarFollowParm.parammaps.times=t.times,this.getCarFollowList(t),this.dropState=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),""==t.barid&&""==t.tmrid&&""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.tmrid&&""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.times&&""==t.treatmethod)return this.$message({type:"error",message:"班次/混剩料处理方式不能为空",duration:2e3}),!1;if(""==t.barid)return this.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.treatmethod)return this.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.treatmethod&&"转投剩料"==t.treatmethod&&""==t.useinbarid)return this.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.treatmethod&&"继续饲喂"==t.treatmethod&&(t.useinbarid="0"),""!=t.rtime&&null!=t.rtime||(t.rtime="");for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.sort&&!i.test(parseFloat(t.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateRemainplan",this.requestParam.parammaps=t,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){console.log("勾选数据",t),this.selectList=t},handleRowDelete:function(t){var e=this;console.log(t,"点击了行删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deleteRemainplan",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteRemainplan",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCheck:function(){console.log("点击了校验"),this.check.dialogStatus="check",this.check.dialogFormVisible=!0},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["d"])(this.history.getdataDateParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.history.getdataListParm.parammaps.date=e.data.list[0].maxdate,t.getHistoryList()):t.history.getdataListParm.parammaps.date=""}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var t=this;console.log("点击了应用"),d["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFPdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=c.a.get("pastureid"),t.requestParam.parammaps.date=t.history.getdataListParm.parammaps.date,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getHistoryIsDisplay(),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消应用"})}))},getHistoryList:function(){var t=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(console.log("table数据",e.data.list),t.history.list=e.data.list,t.history.pageNum=e.data.pageNum,t.history.pageSize=e.data.pageSize,t.history.total=e.data.total):t.history.list=[],setTimeout((function(){t.history.listLoading=!1}),100)}))}}},p=m,u=(a("763c"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"408061da",null);e["default"]=h.exports},9875:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"计划类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.planTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.drivername,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"drivername",e)},expression:"table.getdataListParm.parammaps.drivername"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"工作状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid1,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid1",e)},expression:"table.getdataListParm.parammaps.barid1"}},t._l(t.workingConditionList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("h4",[t._v("TMR设备列表")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:"970px"},on:{"row-click":t.rowClick}},[a("el-table-column",{attrs:{label:"开始时间","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"计划类型","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"描述","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])})],1)],1)]),a("el-col",{attrs:{span:16}},[a("h4",[t._v("过程详情")]),a("div",{staticClass:"detail"},[a("div",{staticClass:"detail-t"},[t._v(" 过程时间:"),a("span",[t._v(t._s(t.table.list2[0].A1))]),t._v("; 工作状态:"),a("span",[t._v(t._s(t.table.list2[0].A2))])]),a("div",{staticClass:"detail-b"},[t._v(" 混料误差值:"),a("span",[t._v(t._s(t.table.list2[0].A3)+"kg")]),t._v("; 混料误差率:"),a("span",[t._v(t._s(t.table.list2[0].A4))]),t._v("; 撒料误差值:"),a("span",[t._v(t._s(t.table.list2[0].A5)+"kg")]),t._v("; 撒料误差率:"),a("span",[t._v(t._s(t.table.list2[0].A6))])])]),a("div",{staticClass:"Mixture"},[a("h4",[t._v("混料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"计划重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"误差率","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"完成时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"过程时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table3.listLoading,expression:"table3.listLoading"}],key:t.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A2))])]}}])}),a("el-table-column",{attrs:{label:"计划重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A3))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A4))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A5))])]}}])}),a("el-table-column",{attrs:{label:"误差率","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A6))])]}}])}),a("el-table-column",{attrs:{label:"完成时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A7))])]}}])}),a("el-table-column",{attrs:{label:"过程时间","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A8))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A9))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A10))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.A11))])]}}])})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{"font-size":"14px",color:"#666",margin:"0 auto",position:"relative"}},[a("span",{staticStyle:{"line-height":"30px",position:"absolute",right:"190px"}},[a("i",{staticClass:"el-icon-caret-top",staticStyle:{color:"#ff2d2d","line-height":"30px","font-size":"30px"}}),a("b",{staticStyle:{"line-height":"32px"}},[t._v("开始重量")])]),a("span",{staticStyle:{"line-height":"30px",position:"absolute",right:"100px"}},[a("i",{staticClass:"el-icon-caret-top",staticStyle:{color:"#61a5e8","line-height":"30px","font-size":"30px"}}),a("b",{staticStyle:{"line-height":"32px"}},[t._v("结束重量")])])]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])])],1)],1)},s=[],r=a("313e"),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08");a("817d");var m={name:"ProcessAnalysis",data:function(){return{requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],planTypeList:[{id:"0",name:"预混计划"},{id:"1",name:"撒料计划"},{id:"2",name:"剩料计划"}],workingConditionList:[{id:"0",name:"运行中"},{id:"1",name:"已完成"}],table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[{id:1,A1:"2020-09-27 06:34:09",A2:"撒料计划",A3:"9北10南",A4:"1"},{id:2,A1:"2020-09-27 06:34:25",A2:"撒料计划",A3:"10南",A4:"4"},{id:3,A1:"2020-09-27 06:54:04",A2:"撒料计划",A3:"13南",A4:"4"},{id:4,A1:"2020-09-27 07:11:06",A2:"撒料计划",A3:"13北12南",A4:"1"},{id:5,A1:"2020-09-27 07:11:18",A2:"撒料计划",A3:"12号",A4:"4"},{id:6,A1:"2020-09-27 07:28:13",A2:"撒料计划",A3:"11南",A4:"4"},{id:7,A1:"2020-09-27 07:43:35",A2:"撒料计划",A3:"18号",A4:"1"},{id:8,A1:"2020-09-27 07:52:52",A2:"撒料计划",A3:"5南3南",A4:"4"},{id:9,A1:"2020-09-27 08:08:30",A2:"撒料计划",A3:"10北11北",A4:"4"}],list2:[{id:1,A1:"00:36:48",A2:"已完成",A3:"33.45",A4:"11.66%",A5:"33.52",A6:"6.29%"}],total:0,listLoading:!0},table2:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[{id:1,A1:"1",A2:"进口燕麦草",A3:"149.6",A4:"150",A5:"0.4",A6:"0.27%",A7:"06:37:28",A8:"00:03:19",A9:"自动跳转",A10:"-8",A11:"142"},{id:2,A1:"2",A2:"1号苜蓿",A3:"199.46",A4:"196",A5:"3.46",A6:"1.7%",A7:"06:38:59",A8:"00:01:31",A9:"自动跳转",A10:"142",A11:"338"},{id:3,A1:"3",A2:"棉籽",A3:"99.73",A4:"101",A5:"1.27",A6:"1.3%",A7:"06:40:08",A8:"00:01:09",A9:"自动跳转",A10:"337",A11:"438"},{id:4,A1:"4",A2:"青贮苜蓿",A3:"249.33",A4:"242",A5:"7.33",A6:"2.9%",A7:"06:41:40",A8:"00:01:32",A9:"自动跳转",A10:"438",A11:"680"},{id:5,A1:"5",A2:"湿储玉米",A3:"279.24",A4:"280",A5:"0.76",A6:"0.27%",A7:"06:43:09",A8:"00:01:29",A9:"自动跳转",A10:"678",A11:"958"},{id:6,A1:"6",A2:"啤酒糟",A3:"149.6",A4:"144",A5:"5.6",A6:"3.7%",A7:"06:44:44",A8:"00:01:35",A9:"自动跳转",A10:"856",A11:"1100"},{id:7,A1:"7",A2:"青贮玉米",A3:"1396.22",A4:"1387",A5:"9.22",A6:"0.66%",A7:"06:47:40",A8:"00:02:56",A9:"自动跳转",A10:"1099",A11:"2486"},{id:8,A1:"8",A2:"新产料",A3:"747.97",A4:"749",A5:"1.03",A6:"0.14%",A7:"06:49:20",A8:"00:01:40",A9:"自动跳转",A10:"2487",A11:"3236"},{id:9,A1:"9",A2:"水",A3:"598.38",A4:"594",A5:"4.38",A6:"0.73%",A7:"06:53:14",A8:"00:03:54",A9:"自动跳转",A10:"3236",A11:"3830"}],total:0,listLoading:!0},table3:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[{id:1,A1:"101",A2:"17号",A3:"802.38",A4:"798",A5:"4.38",A6:"0.55%",A7:"06:59:03",A8:"00:05:49",A9:"自动跳转",A10:"3830",A11:"3032"},{id:2,A1:"102",A2:"5号南",A3:"1808.86",A4:"1801",A5:"7.86",A6:"0.43%",A7:"07:02:01",A8:"00:02:58",A9:"自动跳转",A10:"3033",A11:"1232"},{id:3,A1:"103",A2:"3南东",A3:"529.62",A4:"524",A5:"5.62",A6:"1.06%",A7:"07:05:20",A8:"00:03:19",A9:"自动跳转",A10:"1232",A11:"708"},{id:4,A1:"104",A2:"3南西",A3:"356.18",A4:"352",A5:"4.18",A6:"1.17%",A7:"07:07:10",A8:"00:01:50",A9:"自动跳转",A10:"708",A11:"356 "},{id:5,A1:"105",A2:"1号南",A3:"372.48",A4:"361",A5:"11.48",A6:"3.08%",A7:"07:10:57",A8:"00:03:47",A9:"自动跳转",A10:"355",A11:"-6"}],total:0,listLoading:!0},chartLine:null,chartLine_data1:{data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44","06:44:44","06:44:59","06:45:14","06:45:30","06:45:45","06:46:00","06:46:15","06:46:30","06:46:45","06:47:00","06:47:15","06:47:30","06:47:40","06:47:45","06:48:00","06:48:15","06:48:30","06:48:45","06:49:00","06:49:15","06:49:20","06:49:30","06:49:45","06:50:00","06:50:15","06:50:30","06:50:45","06:51:00","06:51:15","06:51:30","06:51:45","06:52:00","06:52:15","06:52:30","06:52:45","06:53:00","06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30","06:55:45","06:56:00","06:56:15","06:56:30","06:56:45","06:57:00","06:57:15","06:57:30","06:57:45","06:58:00","06:58:16","06:58:31","06:58:46","06:59:01","06:59:03","06:59:16","06:59:31","06:59:46","07:00:01","07:00:16","07:00:31","07:00:46","07:01:01","07:01:16","07:01:31","07:01:46","07:02:01","07:02:01","07:02:16","07:02:31","07:02:46","07:03:01","07:03:16","07:03:31","07:03:46","07:04:01","07:04:16","07:04:31","07:04:46","07:05:01","07:05:16","07:05:20","07:05:31","07:05:46","07:06:01","07:06:16","07:06:31","07:06:46","07:07:01","07:07:10","07:07:16","07:07:31","07:07:46","07:08:01","07:08:16","07:08:31","07:08:46","07:09:01","07:09:16","07:09:31","07:09:46"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,351.82,351.82,351.82,351.82,351.82,351.82,351.82,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968,1100,1099,1102,1115,1103,1217,1266,1681,1919,1968,2139,2426,2479,2486,2489,2480,2502,2498,2769,3097,3224,3236,3242,3238,3282,3320,3369,3411,3458,3499,3540,3580,3632,3668,3708,3753,3798,3830,3830,3837,3840,3832,3829,3842,3817,3825,3822,3850,3820,3830,3837,3833,3830,3832,3829,3814,3681,3575,3423,3268,3138,3036,3032,3039,3032,3017,3025,3036,2926,2895,2696,2315,1831,1379,1232,1232,1227,1228,1224,1225,1213,1230,1209,1221,1225,1231,1138,928,736,708,707,674,540,530,527,437,390,356,325,307,309,310,308,294,308,306,293,278,226],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958],["06:44:44",1100],["06:44:44",1099],["06:47:40",2486],["06:47:45",2489],["06:49:20",3236],["06:49:20",3236],["06:53:14",3830],["06:53:15",3830],["06:59:01",3036],["06:59:03",3032],["07:02:01",1232],["07:02:01",1232],["07:05:16",736],["07:05:20",708],["07:07:10",356],["07:07:10",356]]},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},mounted:function(){this.roadChartLine1(this.chartLine_data1)},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(n["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.getList2(),t.getList3()):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.cowclass="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},rowClick:function(t,e,a){console.log(t,e,a),t.id%2==0?(this.table.list2=[{id:1,A1:"00:40:55",A2:"已完成",A3:"29",A4:"9.85%",A5:"31.52",A6:"5.96%"}],this.table2.list=[{id:1,A1:"1",A2:"国产燕麦草",A3:"52.26",A4:"49",A5:"3.26",A6:"0.31%",A7:"06:35:04",A8:"00:00:39",A9:"自动跳转",A10:"3",A11:"52"},{id:2,A1:"2",A2:"1号苜蓿",A3:"130.66",A4:"126",A5:"4.66",A6:"1.9%",A7:"06:36:04",A8:"00:01:00",A9:"自动跳转",A10:"52",A11:"178"},{id:3,A1:"3",A2:"棉籽",A3:"111.06",A4:"117",A5:"6.06",A6:"1.15%",A7:"06:37:00",A8:"00:00:56",A9:"自动跳转",A10:"177",A11:"294"},{id:4,A1:"4",A2:"湿储玉米",A3:"346.25",A4:"351",A5:"4.25",A6:"1.9%",A7:"06:38:24",A8:"00:01:24",A9:"自动跳转",A10:"293",A11:"644"},{id:5,A1:"5",A2:"青贮苜蓿",A3:"195.99",A4:"189",A5:"6.99",A6:"0.45%",A7:"06:39:31",A8:"00:01:07",A9:"自动跳转",A10:"643",A11:"832"},{id:6,A1:"6",A2:"啤酒糟",A3:"228.65",A4:"229",A5:"0.35",A6:"3.46%",A7:"06:41:04",A8:"00:01:33",A9:"自动跳转",A10:"833",A11:"1.62"},{id:7,A1:"7",A2:"青贮玉米",A3:"1371.93",A4:"1370",A5:"1.93",A6:"0.86%",A7:"06:43:13",A8:"00:02:09",A9:"自动跳转",A10:"1060",A11:"2430"},{id:8,A1:"8",A2:"高产料",A3:"607.57",A4:"597",A5:"9.57",A6:"0.54%",A7:"06:44:45",A8:"00:01:32",A9:"自动跳转",A10:"2428",A11:"3025"},{id:9,A1:"9",A2:"水",A3:"326.65",A4:"331",A5:"4.65",A6:"0.33%",A7:"06:46:57",A8:"00:02:12",A9:"自动跳转",A10:"3025",A11:"3356"}],this.table3.list=[{id:1,A1:"101",A2:"10号南",A3:"3371.02",A4:"3343",A5:"27.02",A6:"0.43%",A7:"06:51:43",A8:"00:04:46",A9:"自动跳转",A10:"3349",A11:"6"}],this.chartLine_data1={data1:["06:34:26","06:34:27","06:34:28","06:34:29","06:34:30","06:34:34","06:34:35","06:34:45","06:35:00","06:35:04","06:35:15","06:35:30","06:35:45","06:36:00","06:36:04","06:36:15","06:36:30","06:36:45","06:37:00","06:37:00","06:37:15","06:37:30","06:37:45","06:38:00","06:38:15","06:38:24","06:38:30","06:38:45","06:39:00","06:39:15","06:39:30","06:39:31","06:39:45","06:40:00","06:40:15","06:40:30","06:40:45","06:41:00","06:41:04","06:41:15","06:41:30","06:41:45","06:42:00","06:42:15","06:42:30","06:42:45","06:43:00","06:43:13","06:43:15","06:43:31","06:43:46","06:44:01","06:44:16","06:44:31","06:44:45","06:44:46","06:45:01","06:45:16","06:45:31","06:45:46","06:46:01","06:46:16","06:46:31","06:46:46","06:46:57","06:47:01","06:47:16","06:47:31","06:47:46","06:48:01","06:48:16","06:48:31","06:48:46","06:49:01","06:49:16","06:49:31","06:49:46","06:50:01","06:50:16","06:50:31","06:50:46","06:51:01","06:51:16","06:51:31"],data2:[55.26,55.26,55.26,55.26,55.26,55.26,55.26,55.26,55.26,55.26,182.66,182.66,182.66,182.66,182.66,289.06,289.06,289.06,289.06,620.25,620.25,620.25,620.25,620.25,620.25,620.25,839.99,839.99,839.99,839.99,839.99,839.99,1060.65,1060.65,1060.65,1060.65,1060.65,1060.65,1060.65,2433.93,2433.93,2433.93,2433.93,2433.93,2433.93,2433.93,2433.93,2433.93,3037.57,3037.57,3037.57,3037.57,3037.57,3037.57,3037.57,3351.65,3351.65,3351.65,3351.65,3351.65,3351.65,3351.65,3351.65,3351.65,3351.65,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03,-15.03],data3:[3,2,1,2,3,8,13,1,47,52,56,49,124,167,178,176,178,192,294,293,286,292,290,301,574,644,649,641,648,795,831,832,827,841,845,889,1029,1082,1062,1070,1077,1183,1393,1732,1959,2222,2332,2430,2429,2423,2442,2446,2598,2814,3025,3040,3031,3062,3097,3142,3189,3230,3277,3324,3356,3353,3358,3334,3363,3364,3353,3343,3351,3364,3351,3370,3355,2971,2273,1425,1380,857,251,21],data4:[["06:34:26",3],["06:35:04",52],["06:35:04",52],["06:36:04",178],["06:36:04",178],["06:37:00",294],["06:37:00",293],["06:38:24",644],["06:38:24",644],["06:39:30",831],["06:39:31",832],["06:41:00",1082],["06:41:04",1062],["06:43:13",2430],["06:43:15",2429],["06:44:45",3025],["06:44:46",3040],["06:46:57",3356]]},this.roadChartLine1(this.chartLine_data1)):(this.table.list2=[{id:1,A1:"00:36:48",A2:"已完成",A3:"33.45",A4:"11.66%",A5:"33.52",A6:"6.29%"}],this.table2.list=[{id:1,A1:"1",A2:"进口燕麦草",A3:"149.6",A4:"150",A5:"0.4",A6:"0.27%",A7:"06:37:28",A8:"00:03:19",A9:"自动跳转",A10:"-8",A11:"142"},{id:2,A1:"2",A2:"1号苜蓿",A3:"199.46",A4:"196",A5:"3.46",A6:"1.7%",A7:"06:38:59",A8:"00:01:31",A9:"自动跳转",A10:"142",A11:"338"},{id:3,A1:"3",A2:"棉籽",A3:"99.73",A4:"101",A5:"1.27",A6:"1.3%",A7:"06:40:08",A8:"00:01:09",A9:"自动跳转",A10:"337",A11:"438"},{id:4,A1:"4",A2:"青贮苜蓿",A3:"249.33",A4:"242",A5:"7.33",A6:"2.9%",A7:"06:41:40",A8:"00:01:32",A9:"自动跳转",A10:"438",A11:"680"},{id:5,A1:"5",A2:"湿储玉米",A3:"279.24",A4:"280",A5:"0.76",A6:"0.27%",A7:"06:43:09",A8:"00:01:29",A9:"自动跳转",A10:"678",A11:"958"},{id:6,A1:"6",A2:"啤酒糟",A3:"149.6",A4:"144",A5:"5.6",A6:"3.7%",A7:"06:44:44",A8:"00:01:35",A9:"自动跳转",A10:"856",A11:"1100"},{id:7,A1:"7",A2:"青贮玉米",A3:"1396.22",A4:"1387",A5:"9.22",A6:"0.66%",A7:"06:47:40",A8:"00:02:56",A9:"自动跳转",A10:"1099",A11:"2486"},{id:8,A1:"8",A2:"新产料",A3:"747.97",A4:"749",A5:"1.03",A6:"0.14%",A7:"06:49:20",A8:"00:01:40",A9:"自动跳转",A10:"2487",A11:"3236"},{id:9,A1:"9",A2:"水",A3:"598.38",A4:"594",A5:"4.38",A6:"0.73%",A7:"06:53:14",A8:"00:03:54",A9:"自动跳转",A10:"3236",A11:"3830"}],this.table3.list=[{id:1,A1:"101",A2:"17号",A3:"802.38",A4:"798",A5:"4.38",A6:"0.55%",A7:"06:59:03",A8:"00:05:49",A9:"自动跳转",A10:"3830",A11:"3032"},{id:2,A1:"102",A2:"5号南",A3:"1808.86",A4:"1801",A5:"7.86",A6:"0.43%",A7:"07:02:01",A8:"00:02:58",A9:"自动跳转",A10:"3033",A11:"1232"},{id:3,A1:"103",A2:"3南东",A3:"529.62",A4:"524",A5:"5.62",A6:"1.06%",A7:"07:05:20",A8:"00:03:19",A9:"自动跳转",A10:"1232",A11:"708"},{id:4,A1:"104",A2:"3南西",A3:"356.18",A4:"352",A5:"4.18",A6:"1.17%",A7:"07:07:10",A8:"00:01:50",A9:"自动跳转",A10:"708",A11:"356 "},{id:5,A1:"105",A2:"1号南",A3:"372.48",A4:"361",A5:"11.48",A6:"3.08%",A7:"07:10:57",A8:"00:03:47",A9:"自动跳转",A10:"355",A11:"-6"}],this.chartLine_data1={data1:["06:34:10","06:34:11","06:34:12","06:34:13","06:34:14","06:34:14","06:34:15","06:34:16","06:34:17","06:34:18","06:34:19","06:34:20","06:34:21","06:34:22","06:34:23","06:34:29","06:34:44","06:34:59","06:35:14","06:35:29","06:35:44","06:35:59","06:36:14","06:36:29","06:36:44","06:36:59","06:37:14","06:37:28","06:37:29","06:37:44","06:37:59","06:38:14","06:38:29","06:38:44","06:38:59","06:38:59","06:39:14","06:39:29","06:39:44","06:39:59","06:40:08","06:40:14","06:40:29","06:40:44","06:40:59","06:41:14","06:41:29","06:41:40","06:41:44","06:41:59","06:42:14","06:42:29","06:42:44","06:42:59","06:43:09","06:43:14","06:43:29","06:43:44","06:43:59","06:44:14","06:44:29","06:44:44","06:44:44","06:44:59","06:45:14","06:45:30","06:45:45","06:46:00","06:46:15","06:46:30","06:46:45","06:47:00","06:47:15","06:47:30","06:47:40","06:47:45","06:48:00","06:48:15","06:48:30","06:48:45","06:49:00","06:49:15","06:49:20","06:49:30","06:49:45","06:50:00","06:50:15","06:50:30","06:50:45","06:51:00","06:51:15","06:51:30","06:51:45","06:52:00","06:52:15","06:52:30","06:52:45","06:53:00","06:53:14","06:53:15","06:53:30","06:53:45","06:54:00","06:54:15","06:54:30","06:54:45","06:55:00","06:55:15","06:55:30","06:55:45","06:56:00","06:56:15","06:56:30","06:56:45","06:57:00","06:57:15","06:57:30","06:57:45","06:58:00","06:58:16","06:58:31","06:58:46","06:59:01","06:59:03","06:59:16","06:59:31","06:59:46","07:00:01","07:00:16","07:00:31","07:00:46","07:01:01","07:01:16","07:01:31","07:01:46","07:02:01","07:02:01","07:02:16","07:02:31","07:02:46","07:03:01","07:03:16","07:03:31","07:03:46","07:04:01","07:04:16","07:04:31","07:04:46","07:05:01","07:05:16","07:05:20","07:05:31","07:05:46","07:06:01","07:06:16","07:06:31","07:06:46","07:07:01","07:07:10","07:07:16","07:07:31","07:07:46","07:08:01","07:08:16","07:08:31","07:08:46","07:09:01","07:09:16","07:09:31","07:09:46"],data2:[141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,141.6,341.46,341.46,341.46,341.46,341.46,341.46,341.46,437.73,437.73,437.73,437.73,437.73,437.73,687.33,687.33,687.33,687.33,687.33,687.33,687.33,959.24,959.24,959.24,959.24,959.24,959.24,959.24,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,1107.6,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,2496.22,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3233.97,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3834.38,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,3027.62,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,1223.14,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,702.38,351.82,351.82,351.82,351.82,351.82,351.82,351.82,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48,-16.48],data3:[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-11,-9,-4,-8,-10,-8,-8,0,-1,32,88,142,143,141,154,215,250,256,338,337,329,325,409,420,438,434,432,447,439,496,655,680,678,670,669,741,752,924,958,962,955,961,956,956,968,1100,1099,1102,1115,1103,1217,1266,1681,1919,1968,2139,2426,2479,2486,2489,2480,2502,2498,2769,3097,3224,3236,3242,3238,3282,3320,3369,3411,3458,3499,3540,3580,3632,3668,3708,3753,3798,3830,3830,3837,3840,3832,3829,3842,3817,3825,3822,3850,3820,3830,3837,3833,3830,3832,3829,3814,3681,3575,3423,3268,3138,3036,3032,3039,3032,3017,3025,3036,2926,2895,2696,2315,1831,1379,1232,1232,1227,1228,1224,1225,1213,1230,1209,1221,1225,1231,1138,928,736,708,707,674,540,530,527,437,390,356,325,307,309,310,308,294,308,306,293,278,226],data4:[["06:34:10",-8],["06:37:28",142],["06:37:29",143],["06:38:59",338],["06:38:59",337],["06:40:08",438],["06:40:08",438],["06:41:40",680],["06:41:44",678],["06:43:09",958],["06:43:09",958],["06:44:44",1100],["06:44:44",1099],["06:47:40",2486],["06:47:45",2489],["06:49:20",3236],["06:49:20",3236],["06:53:14",3830],["06:53:15",3830],["06:59:01",3036],["06:59:03",3032],["07:02:01",1232],["07:02:01",1232],["07:05:16",736],["07:05:20",708],["07:07:10",356],["07:07:10",356]]},this.roadChartLine1(this.chartLine_data1))},getList2:function(){var t=this;this.table2.listLoading=!0,Object(n["d"])(this.table2.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list||(t.table2.list=[]),setTimeout((function(){t.table2.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table3.listLoading=!0,Object(n["d"])(this.table3.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list||(t.table3.list=[]),setTimeout((function(){t.table3.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.chartLine&&this.chartLine.dispose(),this.chartLine=l.a.init(document.getElementById("chartLine"));var e={title:{text:"",subtext:""},color:["#61a5e8","#ff3131"],legend:{icon:"rectangle",data:["设计重量","实际重量"],textStyle:{fontSize:12,color:"#666"}},tooltip:{trigger:"axis"},calculable:!0,yAxis:[{type:"value",name:"重量(kg)",splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#666"}}}],xAxis:[{type:"category",splitLine:{show:!1},name:"时间",data:t.data1,axisLabel:{show:!0,textStyle:{color:"#666"}}}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,smooth:!0,barWidth:"37",itemStyle:{normal:{lineStyle:{color:"#61a5e8"}}}},{symbol:"none",name:"设计重量",type:"line",barWidth:"37",data:t.data2},{symbol:"triangle",symbolSize:10,itemStyle:{normal:{lineStyle:{color:"#ff3131"},color:function(t){var e=["#61a5e8","#ff3131"],a="";return a=t.dataIndex%2==0?1:2,"1"==a?e[1]:e[0]}}},data:t.data4,type:"scatter"}]};this.chartLine.setOption(e),window.onresize=function(){this.chartLine.resize()}}}},p=m,u=(a("2774"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"529f6574",null);e["default"]=h.exports},9921:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52L52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76L14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol>'});l.a.add(n);e["default"]=n},9950:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-设备基础信息",use:"icon-设备基础信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备基础信息"><defs><style type="text/css"></style></defs><path d="M689.536 192c26.816 0 50.794667 16.64 60.202667 41.706667l78.08 207.978666 67.754666-39.125333 27.562667 47.786667-50.709333 29.269333a64.213333 64.213333 0 0 1 27.157333 52.522667v202.368a64.298667 64.298667 0 0 1-64.298667 64.298666h-27.648V874.666667h-55.146666v-75.861334H255.957333V874.666667H200.853333v-75.861334H173.184a64.298667 64.298667 0 0 1-64.32-64.298666v-202.368a64.213333 64.213333 0 0 1 27.2-52.522667L85.333333 450.346667l27.584-47.786667 67.733334 39.104 78.08-207.957333A64.298667 64.298667 0 0 1 318.933333 192h370.602667z m145.728 342.954667H173.184v199.552h662.101333v-199.552z m-556.288 50.090666a41.386667 41.386667 0 1 1 0 82.752 41.386667 41.386667 0 0 1 0-82.752z m455.125333 0a41.386667 41.386667 0 1 1 0 82.752 41.386667 41.386667 0 0 1 0-82.752z m-44.565333-328.746666H318.933333l-79.402666 211.52h529.386666l-79.36-211.52z m-79.573333 46.037333v62.058667h-206.869334v-62.08h206.869334z" p-id="7118" /></symbol>'});l.a.add(n);e["default"]=n},"997b":function(t,e,a){"use strict";var i=a("2625"),s=a.n(i);s.a},"9a07":function(t,e,a){},"9aa1":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-shezhi",use:"icon-shezhi-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-shezhi"><defs><style type="text/css"></style></defs><path d="M933.888 512c0-59.904 37.376-110.592 90.112-131.072-12.8-49.152-31.744-95.744-57.344-138.752-51.712 23.04-114.176 13.824-156.16-28.672-42.496-42.496-51.712-104.96-28.672-156.16-43.008-25.6-89.6-45.056-138.752-57.344-20.48 52.736-71.168 90.112-131.072 90.112-59.904 0-110.592-37.376-131.072-90.112-49.152 12.8-95.744 31.744-138.752 57.344 23.04 51.712 13.824 114.176-28.672 156.16s-104.96 51.712-156.16 28.672C31.744 285.184 12.8 331.776 0 380.928c52.736 20.48 90.112 71.168 90.112 131.072 0 59.904-37.376 110.592-90.112 131.072 12.8 49.152 31.744 95.744 57.344 138.752 51.712-23.04 114.176-13.824 156.16 28.672 42.496 42.496 51.712 104.96 28.672 156.16 43.008 25.6 89.6 45.056 138.752 57.344 20.48-52.736 71.168-90.112 131.072-90.112 59.904 0 110.592 37.376 131.072 90.112 49.152-12.8 95.744-31.744 138.752-57.344-23.04-51.712-13.824-114.176 28.672-156.16s104.96-51.712 156.16-28.672c25.6-42.496 45.056-89.088 57.344-138.752-52.736-20.48-90.112-71.168-90.112-131.072zM512 652.8c-77.824 0-140.8-62.976-140.8-140.8S434.176 371.2 512 371.2s140.8 62.976 140.8 140.8-62.976 140.8-140.8 140.8z" fill="#2C2C2C" p-id="1981" /></symbol>'});l.a.add(n);e["default"]=n},"9ae9":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-系统管理",use:"icon-系统管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-系统管理"><defs><style type="text/css"></style></defs><path d="M990.930764 623.116113h-2.794151c-44.2049 0-79.556537-37.982029-79.556537-84.34651 0-15.291067 6.98026-32.055973 6.980259-32.055973 6.98026-16.283861 1.402193-36.006677-12.097752-46.364481l-0.931383-0.491279-76.762387-45.381923-0.931383-0.491279a38.278843 38.278843 0 0 0-14.891903-2.957911 40.018791 40.018791 0 0 0-28.842188 12.333157c-9.303601 10.357805-39.077172 36.989235-62.801867 36.989235-24.185269 0-53.498266-27.132945-63.272676-37.49075a38.933882 38.933882 0 0 0-28.842187-12.824436c-5.117492 0-10.234985 0.982559-14.421094 2.957911l-0.931384 0.491279-79.546302 46.364482-1.402193 0.491279c-13.960519 10.357805-19.067777 29.599576-12.097752 46.364481 0 0 6.98026 16.764905 6.98026 32.547252 0 46.865996-35.822447 84.34651-79.556538 84.34651h-2.794151c-13.029136-0.491279-23.264121 11.841877-26.518845 30.090856-0.450339 1.484073-6.499215 36.508191-6.499216 63.630901 0 27.624224 6.048876 62.146828 6.509451 63.630901 3.254725 18.248978 13.48971 30.090855 26.048036 30.090855h3.26496c44.194665 0 79.556537 37.982029 79.556538 84.34651 0 15.291067-6.98026 32.066208-6.98026 32.557487-6.50945 16.273626-1.862767 35.515397 12.097752 46.364482l0.931384 0.491279 75.370428 44.389129 0.931384 0.491279a36.641246 36.641246 0 0 0 14.891903 2.957911 38.933882 38.933882 0 0 0 28.842187-12.824436c8.843027-10.357805 39.547981-38.964587 64.20406-38.964587s54.900459 28.606783 64.674869 39.947146c6.970025 8.392688 17.675819 12.824436 28.842188 13.315715 5.117492 0 9.774411-0.982559 14.421093-2.957911l0.931384-0.491279 78.154344-45.873202 0.931384-0.491279c13.960519-10.357805 19.078012-29.599576 12.097752-46.364482 0 0-6.98026-16.764905-6.98026-32.557487 0-46.855761 35.822447-84.34651 79.556538-84.34651h2.794151c13.029136 0.491279 23.264121-11.841877 26.518845-30.090855 0.460574-1.484073 6.50945-36.508191 6.509451-63.630901 0-27.624224-6.048876-62.648342-6.048876-64.12218-3.275195-18.730022-13.980989-30.5719-26.539316-30.070386z m-32.567722 144.517986c-55.831842 2.968146-100.026507 52.280303-100.026507 111.479455 0 19.722816 7.440834 38.964587 8.843027 42.915292l-66.066827 38.964587c-0.931384 0-1.862767-0.491279-2.323342-0.491279-1.391958-1.484073-10.695559-12.333157-24.656078-23.192476-20.46997-16.273626-40.008556-24.656079-58.155184-24.656078-18.136393 0-37.22464 7.891173-57.684375 24.164799a217.565073 217.565073 0 0 0-24.656078 22.690961c-0.460574 0-1.391958 0.491279-2.323342 0.49128l-63.733251-37.982029c1.402193-3.950704 8.843027-23.182241 8.843027-42.915292 0-59.680197-43.73409-108.511309-100.026507-111.479455-0.931384-4.431748-5.117492-31.073414-5.117492-50.806465s4.186109-45.873202 5.117492-50.806464c55.831842-2.957911 100.026507-52.280303 100.026507-111.479455 0-19.733051-7.440834-38.964587-8.843027-42.915292l67.458785-39.455867c0.931384 0 1.862767 0 2.323342 0.49128 7.440834 7.891173 15.352477 15.291067 24.195504 21.698168 20.009395 15.291067 39.547981 23.182241 56.752991 23.18224 17.215245 0 36.283021-7.399894 56.292417-22.690961 8.832792-6.417336 16.744435-13.806995 24.195504-21.206889 0.931384-0.491279 1.391958-0.491279 2.323342-0.491279h0.470809l65.135444 38.473308c-1.391958 3.950704-8.832792 23.182241-8.832792 42.915292 0 59.188917 43.723855 108.521544 100.026507 111.479455 0.931384 4.431748 5.117492 31.073414 5.117492 50.806464s-3.746004 46.384951-4.677388 50.8167z" fill="#ffffff" p-id="13863" /><path d="M717.380324 589.576068c-66.066827 0-120.035902 57.213565-120.035903 127.261801s53.498266 126.760287 120.035903 127.261802c66.056592 0 120.025667-57.213565 120.025667-127.261802S782.976342 589.576068 717.380324 589.576068z m0 191.865026c-33.499105 0-60.949335-29.098062-60.949335-64.61346s27.450229-64.613459 60.949335-64.613459c33.48887 0 60.9391 29.098062 60.939099 64.613459-0.460574 35.515397-27.910804 64.613459-60.939099 64.61346z" fill="#ffffff" p-id="13864" /><path d="M921.148637 0.624334H102.349849c-56.527821 0-102.349849 45.822027-102.349849 102.349849v614.099091c0 56.527821 45.822027 102.349849 102.349849 102.349849h173.994742a30.704955 30.704955 0 1 0 0-61.409909H102.349849a40.939939 40.939939 0 0 1-40.93994-40.93994v-614.099091a40.939939 40.939939 0 0 1 40.93994-40.93994h818.798788c22.578377 0 40.939939 18.361563 40.93994 40.93994v276.344591a30.704955 30.704955 0 1 0 61.409909 0v-276.344591c0-56.517586-45.822027-102.349849-102.349849-102.349849zM378.69444 962.088577H133.054803a30.704955 30.704955 0 1 0 0 61.409909h245.639637a30.704955 30.704955 0 1 0 0-61.409909z" fill="#ffffff" p-id="13865" /></symbol>'});l.a.add(n);e["default"]=n},"9b2f":function(t,e,a){"use strict";var i=a("67c6"),s=a.n(i);s.a},"9c0c":function(t,e,a){},"9c18":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-collapse",{attrs:{accordion:""}},[a("el-collapse-item",[a("template",{slot:"title"},[t._v(" 操作序号1 ")]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"date",label:"日期",width:"180"}}),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"180"}}),a("el-table-column",{attrs:{prop:"address",label:"地址"}})],1)],1)],2),a("el-collapse-item",{attrs:{title:"反馈 Feedback"}},[a("div",[t._v("控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;")]),a("div",[t._v("页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。")])]),a("el-collapse-item",{attrs:{title:"效率 Efficiency"}},[a("div",[t._v("简化流程:设计简洁直观的操作流程;")]),a("div",[t._v("清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;")]),a("div",[t._v("帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。")])]),a("el-collapse-item",{attrs:{title:"可控 Controllability"}},[a("div",[t._v("用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;")]),a("div",[t._v("结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。")])])],1)},s=[],r={data:function(){return{tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}]}},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},"9cca":function(t,e,a){},"9d64":function(t,e,a){t.exports=a.p+"static/img/logo.3ffa50a6.png"},"9de1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"饲料大类",clearable:""},model:{value:t.table.getdataListParm.parammaps.bigfeedclassname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"bigfeedclassname",e)},expression:"table.getdataListParm.parammaps.bigfeedclassname"}},t._l(t.feedCategoryList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"饲料分类名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.fcname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"fcname",e)},expression:"table.getdataListParm.parammaps.fcname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"饲料分类编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.fccode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"fccode",e)},expression:"table.getdataListParm.parammaps.fccode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料大类","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bigfeedclassname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"饲料大类"},on:{change:t.changeBigfeedclass},model:{value:e.row.bigfeedclassid,callback:function(a){t.$set(e.row,"bigfeedclassid",a)},expression:"scope.row.bigfeedclassid"}},t._l(t.feedCategoryList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"饲料分类","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.fcname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.fcname,callback:function(a){t.$set(e.row,"fcname",a)},expression:"scope.row.fcname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"饲料分类编号","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.fccode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.fccode,callback:function(a){t.$set(e.row,"fccode",a)},expression:"scope.row.fccode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"FeedClassification",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["饲料大类"]}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],feedCategoryList:[],table:{getdataListParm:{name:"getFeedclassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fccode:"",fcname:"",bigfeedclassname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="FeedClassification",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.feedCategoryList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.bigfeedclassname="",this.table.getdataListParm.parammaps.fccode="",this.table.getdataListParm.parammaps.fcname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeBigfeedclass:function(t){this.table.temp.bigfeedclassname=this.feedCategoryList.find((function(e){return e.value===t})).label},handleCreate:function(){for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,bigfeedclassid:"",fcname:"",fccode:""})},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.fccode=t.fccode,this.table.temp.fcname=t.fcname,this.table.temp.bigfeedclassname=this.table.temp.bigfeedclassname,this.table.temp.bigfeedclassid=t.bigfeedclassid,this.table.temp.enable=t.enable,""==this.table.temp.bigfeedclassid&&""==this.table.temp.fcname&&""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料大类/饲料分类/饲料分类编号不能为空",duration:2e3}),!1;if(""==this.table.temp.fcname&&""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料分类/饲料分类编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bigfeedclassid)return this.$message({type:"error",message:"饲料大类不能为空",duration:2e3}),!1;if(""==this.table.temp.fcname)return this.$message({type:"error",message:"饲料分类不能为空",duration:2e3}),!1;if(""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料分类编号不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.fccode)?(this.$message({type:"error",message:"饲料分类编号不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.fcname)?(this.$message({type:"error",message:"饲料分类不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertFeedclass",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.bigfeedclassid=String(t.bigfeedclassid),this.table.temp.bigfeedclassid=t.bigfeedclassid,this.table.temp.bigfeedclassname=t.bigfeedclassname},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.fccode=t.fccode,this.table.temp.fcname=t.fcname,this.table.temp.bigfeedclassname=this.table.temp.bigfeedclassname,this.table.temp.bigfeedclassid=t.bigfeedclassid,this.table.temp.enable=t.enable,this.table.temp.id=t.id,""==this.table.temp.bigfeedclassid&&""==this.table.temp.fcname&&""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料大类/饲料分类/饲料分类编号不能为空",duration:2e3}),!1;if(""==this.table.temp.fcname&&""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料分类/饲料分类编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bigfeedclassid)return this.$message({type:"error",message:"饲料大类不能为空",duration:2e3}),!1;if(""==this.table.temp.fcname)return this.$message({type:"error",message:"饲料分类不能为空",duration:2e3}),!1;if(""==this.table.temp.fccode)return this.$message({type:"error",message:"饲料分类编号不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.fccode)?(this.$message({type:"error",message:"饲料分类编号不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.fcname)?(this.$message({type:"error",message:"饲料分类不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateFeedclass",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteFeedclass",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择饲料分类信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteFeedclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("69cb"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"6adf15d2",null);e["default"]=u.exports},"9de4":function(t,e,a){"use strict";var i=a("d2cf"),s=a.n(i);s.a},"9e7c":function(t,e,a){},"9ed6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"login-container"},[i("img",{staticClass:"logo",attrs:{src:a("9d64"),alt:""}}),i("div",{staticClass:"login"},[i("div",{staticClass:"logo"}),t._m(0),i("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"}},[i("el-form-item",{attrs:{prop:"username"}},[i("span",{staticClass:"svg-container"},[i("svg-icon",{attrs:{"icon-class":"user"}})],1),i("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),i("el-form-item",{attrs:{prop:"password"}},[i("span",{staticClass:"svg-container"},[i("svg-icon",{attrs:{"icon-class":"password"}})],1),i("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),i("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[i("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1)],1),i("el-button",{staticClass:"btn",attrs:{type:"text",loading:t.loading},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登录")]),t._m(1)],1)])},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title-container"},[i("img",{attrs:{src:a("ab4b")}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"kpt"},[t._v("Copyright上海科湃腾信息科技有限公司. "),a("br"),t._v("All Rights Reserved")])}],r=a("61f7"),l={name:"Login",data:function(){var t=function(t,e,a){Object(r["c"])(e)?a():a(new Error("请输入正确的用户名"))},e=function(t,e,a){e.length<6?a(new Error("密码不能少于6个字符")):a()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},created:function(){var t=this;document.onkeydown=function(e){e=window.event||e,"/login"!=t.$route.path||"Enter"!=e.code&&"Num Enter"!=e.code||t.handleLogin("ruleForm2")}},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;console.log(12),this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){t.$router.push({path:t.redirect||"/"}),t.loading=!1})).catch((function(){t.loading=!1}))}))}}},n=l,o=(a("2017"),a("77a8"),a("30ac"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"b76d91f6",null);e["default"]=c.exports},"9f50":function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-预混计划",use:"icon-预混计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-预混计划"><defs><style type="text/css"></style></defs><path d="M859.546 874.496c7.168 7.168 17.612 11.264 27.238 11.264s20.07-4.096 27.238-11.264l98.714-98.714c7.168-7.168 11.264-16.793 11.264-27.238s-4.096-20.07-11.264-27.238l-98.714-98.714c-15.155-15.155-40.14-15.155-55.296 0-15.155 15.155-15.155 40.14 0 55.296l32.154 32.154H700.826l-72.91-72.91c-15.154-15.154-40.14-15.154-55.295 0s-15.155 40.142 0 55.297l84.992 83.353c7.168 7.168 16.793 11.264 27.238 11.264H890.88L858.726 819.2c-14.336 15.155-14.336 40.14 0.82 55.296zM41.779 314.778h243.712l74.547 74.547c7.168 7.168 17.613 11.264 27.239 11.264 9.625 0 20.07-4.096 27.238-11.264 15.155-15.155 15.155-40.141 0-55.296l-85.811-85.811c-7.168-7.168-16.794-11.264-27.238-11.264H41.779c-21.709 0-39.321 17.612-39.321 39.321 0 20.89 17.612 38.503 39.321 38.503z m-2.457 472.268h265.42c10.445 0 20.07-4.096 27.239-11.264l372.94-461.004H890.88l-32.154 32.153c-15.155 15.155-15.155 40.141 0 55.296 7.168 7.168 17.613 11.264 27.239 11.264s20.07-4.096 27.238-11.264l98.714-98.713c7.168-7.168 11.264-16.794 11.264-27.239s-4.096-20.07-11.264-27.238l-97.075-99.533c-15.156-15.155-40.141-15.155-55.296 0-15.156 15.155-15.156 40.14 0 55.296l32.153 32.154H688.742c-10.444 0-20.07 4.096-27.238 11.264l-372.736 461.21H39.322C17.612 709.427 0 727.04 0 748.747c0 20.686 17.613 38.298 39.322 38.298z" p-id="35246" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},"9fbf":function(t,e,a){"use strict";var i=a("a48c"),s=a.n(i);s.a},a18c:function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"c",(function(){return c}));a("d3b7");var i=a("2b0e"),s=a("8c4f"),r=a("c1f7");i["default"].use(s["a"]);var l=[{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}}]}],n=(r["a"],r["a"],function(){return new s["a"]({scrollBehavior:function(){return{y:0}},routes:l})}),o=n();function c(){var t=n();o.matcher=t.matcher}e["b"]=o},a23d:function(t,e,a){"use strict";var i=a("ddd9"),s=a.n(i);s.a},a26c:function(t,e,a){},a36b:function(t,e,a){t.exports=a.p+"static/img/404.a57b6f31.png"},a445:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲喂效率",use:"icon-饲喂效率-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲喂效率"><defs><style type="text/css"></style></defs><path d="M882.266861 1024l15.876855-37.357436L37.357436 986.642564 37.357436 125.858482 0 141.733139 59.78113 0l59.78113 141.733139L82.204825 125.858482 82.204825 941.795175l815.938891 0-15.876855-37.357436 141.733139 59.78113L882.266861 1024zM156.950474 881.998656l149.491298 0 0-179.389557-149.491298 0L156.950474 881.998656zM530.678718 881.998656 530.678718 538.168671l-149.491298 0 0 343.829985L530.678718 881.998656zM635.322626 881.998656l149.491298 0L784.813924 388.677374l-149.491298 0L635.322626 881.998656zM151.913936 486.416103l10.075274 43.710816c162.453073-37.491538 406.990058-146.127743 575.422782-329.927294l55.99988 41.692683 21.300312-182.095789-168.340392 72.593414 54.907274 40.89906C539.962567 347.463942 307.039737 450.626128 151.913936 486.416103z" p-id="19996" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},a48c:function(t,e,a){},a4a2:function(t,e,a){"use strict";var i=a("7948"),s=a.n(i);s.a},a4b5:function(t,e,a){"use strict";var i=a("8a4c"),s=a.n(i);s.a},a5e0:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"a",(function(){return l}));a("99af"),a("7db0"),a("c975"),a("a15b"),a("d81d"),a("b0c0"),a("ac1f"),a("1276");var i=a("aa35");function s(t){var e;return e=t.indexOf("(")>=0?i["a"].find((function(e){return e.name===t.split("(")[0]})):i["a"].find((function(e){return e.name===t})),e}function r(t){var e,a,i,r=t.dataSrc,l=t.selectedCalcul,n=t.selectedCalcul2,o=t.selectedDimension,c=t.orderByStrs,d=t.filterStr,m=t.limit,p=[],u=[],h=[];if(h=h.concat(l).concat(n).concat(o),p=h.map((function(t){var e=l.find((function(e){return e.Column===t.Column})),a=n.find((function(e){return e.Column===t.Column}));return e&&"none"!==e.calculFunc?"".concat(e.calculFunc||s(e.Type).availableFunc[0],"(").concat(e.Column,") as ").concat(e.Column):a&&"none"!==a.calculFunc?"".concat(a.calculFunc||s(a.Type).availableFunc[0],"(").concat(a.Column,") as ").concat(a.Column):(u.push(t.Column),t.Column)})),0!==p.length&&r)return u.length>0&&(e="GROUP BY ".concat(u.join())),c.length>0&&(a="ORDER BY ".concat(c.join())),d&&(i="where ".concat(d)),"SELECT ".concat(p.join()," FROM ").concat(r," ").concat(i||""," ").concat(e||""," ").concat(a||""," LIMIT ").concat(m||200)}function l(t){var e,a=t.value;return s(t.colType).needQuotation&&(a=i(t.value)),e=1===t.operatorParamNum?"".concat(t.filteCol," ").concat(t.filterOperator," ").concat(a.value1):2===t.operatorParamNum?"".concat(t.filteCol," ").concat(t.filterOperator," ").concat(a.value1," and ").concat(a.value2):"".concat(t.filteCol," ").concat(t.filterOperator," ('").concat(a.arrValue.join(","),"')"),e;function i(t){return{value1:"'".concat(t.value1,"'"),value2:"'".concat(t.value2,"'"),arrValue:t.arrValue.map((function(t){return"'".concat(t,"'")}))}}}},a74a:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_line",use:"icon-chart_line-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_line"><defs><style type="text/css"></style></defs><path d="M497.778 790.756L304.356 651.378l-133.69 108.089-54.044-68.267 182.045-147.911 204.8 145.067 358.4-213.334 45.51 73.956z" fill="#29B983" p-id="1822" /><path d="M497.778 534.756L304.356 395.378l-133.69 108.089-54.044-68.267 182.045-147.911 204.8 145.067 358.4-213.334 45.51 73.956z" fill="#706EE7" p-id="1823" /></symbol>'});l.a.add(n);e["default"]=n},a762:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料分类",use:"icon-饲料分类-usage",viewBox:"0 0 1130 1024",content:'<symbol class="icon" viewBox="0 0 1130 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料分类"><defs><style type="text/css"></style></defs><path d="M1032.201649 845.372909H108.671849c-39.31967 0-74.417903-20.986572-93.836513-56.084805-19.90106-35.942521-18.815548-79.845465 2.774087-114.823086L114.823086 508.984688l0.361837-0.48245c74.900353-117.717786 145.57927-202.8702 215.896349-260.402356 34.012721-27.861484 68.387279-49.209894 102.158775-63.442167 33.289046-14.111661 67.060542-21.83086 100.349588-23.036985 45.229682-1.567962 91.062426 8.804711 136.533333 31.118021 39.80212 19.539223 79.724853 48.003769 121.81861 87.082215 76.227091 70.558304 149.077032 166.204005 223.253711 266.191755l0.723674 0.9649 90.821202 132.673734c25.328622 30.394346 30.756184 71.643816 14.111661 107.948174-16.403298 35.701296-50.295406 57.77338-88.650177 57.77338zM171.390342 543.721084l-96.972439 165.239104-0.241225 0.361838c-9.166549 14.714723-9.648999 32.685984-1.206124 47.883157 3.618375 6.513074 14.473498 21.83086 35.821908 21.830859h923.529799c17.609423 0 25.569847-13.267373 28.223322-18.93616 4.703887-10.252061 5.789399-25.811072-5.306949-38.595995l-1.206125-1.44735-92.630389-135.085983C808.947939 379.446879 680.857479 222.650648 535.881272 227.957597c-52.948881 1.9298-106.2596 25.328622-162.947468 71.643816-63.804005 52.104594-131.708834 134.241696-201.543462 244.119671z" fill="#ffffff" p-id="67041" /><path d="M586.176678 792.906478l-50.898468 90.459364c-15.679623 21.469022 8.201649 55.240518 34.97762 55.240518h467.735218c32.685984 0 59.100118-24.363722 39.199058-62.959717l-50.657244-79.242403C944.39576 682.666667 736.580448 566.275618 586.176678 792.906478z" fill="#ffffff" p-id="67042" /><path d="M1037.991048 971.774794H570.25583c-26.775972 0-52.587044-16.52391-65.492579-42.093757-10.975736-21.710247-10.131449-45.470907 2.41225-64.04523l50.777856-90.097527 0.723675-0.9649c31.962309-48.244994 68.628504-84.91119 108.792462-109.274911 37.269258-22.554535 77.553828-34.374558 119.768197-35.218846 51.380919-0.9649 105.2947 14.714723 155.951944 45.470907 42.69682 25.931684 81.895878 61.994817 110.360424 101.314488l1.085512 1.567962 51.501531 80.56914 0.723675 1.326737c18.694935 36.304358 8.563486 62.959717 0.844288 75.744641-13.870436 22.433922-39.80212 35.701296-69.714017 35.701296z m-474.007067-71.764429c1.326737 2.41225 4.462662 5.306949 6.271849 5.548174h467.614606c8.081037 0 12.302473-3.015312 12.784923-3.859599 0.241225-0.48245 0.241225-3.738987-2.532862-9.528386l-49.209894-76.950766C955.250883 754.67232 873.234393 694.727915 788.323204 696.41649c-65.854417 1.326737-124.351472 39.560895-173.923204 113.737574l-50.416019 89.856301z" fill="#ffffff" p-id="67043" /></symbol>'});l.a.add(n);e["default"]=n},a7d3:function(t,e,a){"use strict";var i=a("1494"),s=a.n(i);s.a},a7dc:function(t,e,a){"use strict";var i=a("ed08");e["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 t=this;return Object(i["a"])((function(){t.chart&&t.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.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)}}}},a87e:function(t,e,a){"use strict";var i=a("d0b6"),s=a.n(i);s.a},a8e8:function(t,e,a){"use strict";var i=a("5406"),s=a.n(i);s.a},a910:function(t,e,a){"use strict";var i=a("9a07"),s=a.n(i);s.a},a983:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"牧场",clearable:""},model:{value:t.table.getdataListParm.parammaps.pastureName,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pastureName",e)},expression:"table.getdataListParm.parammaps.pastureName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[t._v("地址")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.address,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"address",e)},expression:"table.getdataListParm.parammaps.address"}})],1),a("li",[a("a",[t._v("联系人")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.contact,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"contact",e)},expression:"table.getdataListParm.parammaps.contact"}})],1),a("li",[a("a",[t._v("联系电话")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.phone,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"phone",e)},expression:"table.getdataListParm.parammaps.phone"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.group))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.pastureName))])]}}])}),a("el-table-column",{attrs:{label:"地址","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.address))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-255字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:e.row.address,callback:function(a){t.$set(e.row,"address",a)},expression:"scope.row.address"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.contact))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.contact,callback:function(a){t.$set(e.row,"contact",a)},expression:"scope.row.contact"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"联系电话","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.phone))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"请输入11位手机号",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"11"},model:{value:e.row.phone,callback:function(a){t.$set(e.row,"phone",a)},expression:"scope.row.phone"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c={name:"RanchInformation",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getPastureList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),phone:"",contact:"",address:"",pastureName:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},arrowDown:!0,arrowUp:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},mounted:function(){var t=this;document.addEventListener("click",(function(e){void 0!==t.$refs.selectInput&&(t.$refs.selectInput.contains(e.target)?(t.arrowDown=!1,t.arrowUp=!0):(t.arrowDown=!0,t.arrowUp=!1))}))},methods:{getButtons:function(){var t="RanchInformation",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].enable=parseInt(e.data.list[a].enable),t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),this.getList(),this.table.getdataListParm.offset=1,this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.empCode="",this.table.getdataListParm.parammaps.phone="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.contact="",this.table.getdataListParm.parammaps.address="",this.table.getdataListParm.parammaps.pastureName="",this.table.getdataListParm.offset=1,this.getList()},handleSelectionChange:function(t){console.log("勾选数据",t)},handleUpdate:function(t){console.log("点击了编辑");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=t.pastureid,this.table.temp.phone=t.phone,this.table.temp.enable=t.enable,this.table.temp.contact=t.contact,this.table.temp.address=t.address,this.table.temp.pastureName=t.pastureName,void 0!==this.table.temp.phone&&""!==this.table.temp.phone){var a=/^\d{11}$/;if(!a.test(this.table.temp.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updatepastureinfo",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()}}},d=c,m=(a("36a6"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"451578be",null);e["default"]=p.exports},aa29:function(t,e,a){},aa35:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return o}));a("d81d"),a("b0c0");var i=a("be94"),s=a("9225"),r={sum:s["a"].t("config.sum"),avg:s["a"].t("config.avg"),max:s["a"].t("config.max"),min:s["a"].t("config.min"),count:s["a"].t("config.count"),none:s["a"].t("config.none")},l=[{operator:"=",name:"config.is",paramNum:1},{operator:">",name:"config.greater",paramNum:1},{operator:"<",name:"config.less",paramNum:1},{operator:">=",name:"config.greaterOrEqual",paramNum:1},{operator:"<=",name:"config.lessorEqual",paramNum:1},{operator:"!=",name:"config.isNot",paramNum:1},{operator:"BETWEEN",name:"config.between",paramNum:2},{operator:"IN",name:"config.in",paramNum:-1},{operator:"LIKE",name:"config.like",paramNum:1}];function n(){return l.map((function(t){var e=Object(i["a"])({},t);return e.name=s["a"].t(t.name),e}))}var o=[{name:"tinyint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"smallint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"mediumint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"int",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"bigint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"float",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"double",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"real",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"decimal",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"timestamp",needQuotation:!1,availableFunc:["count","none"]},{name:"date",needQuotation:!0,availableFunc:["count","none"]},{name:"time",needQuotation:!0,availableFunc:["count","none"]},{name:"datetime",needQuotation:!0,availableFunc:["count","none"]},{name:"year",needQuotation:!0,availableFunc:["count","none"]},{name:"char",needQuotation:!0,availableFunc:["count","none"]},{name:"varchar",needQuotation:!0,availableFunc:["count","none"]},{name:"tinytext",needQuotation:!0,availableFunc:["count","none"]},{name:"text",needQuotation:!0,availableFunc:["count","none"]},{name:"mediumtext",needQuotation:!0,availableFunc:["count","none"]},{name:"longtext",needQuotation:!0,availableFunc:["count","none"]},{name:"integer",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]}]},aa63:function(t,e,a){"use strict";var i=a("917f"),s=a.n(i);s.a},aad2:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-过程分析",use:"icon-过程分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-过程分析"><defs><style type="text/css"></style></defs><path d="M872.8 96H151.2C103.1 96 64 135.2 64 183.4v445.1c0 48.2 39.1 87.4 87.2 87.4h721.6c48.1 0 87.2-39.2 87.2-87.4V183.4c0-48.2-39.1-87.4-87.2-87.4z m-721.6 63.6h721.6c13.1 0 23.8 10.7 23.8 23.8v246.4H696.2L569.9 224 369.6 496.4l-66.5-66.6H127.4V183.4c0-13.1 10.7-23.8 23.8-23.8z m721.6 492.8H151.2c-13.1 0-23.8-10.7-23.8-23.8V493.4h149.4l100 100.3L565 337.6l95.6 155.8h235.8v135.1c0.2 13.2-10.5 23.9-23.6 23.9zM179 864.4h666.1V928H179z" fill="#ffffff" p-id="14389" /></symbol>'});l.a.add(n);e["default"]=n},aafa:function(t,e,a){"use strict";var i=a("cde0"),s=a.n(i);s.a},ab4b:function(t,e,a){t.exports=a.p+"static/img/login-top.79bf24f7.png"},ab9b:function(t,e,a){"use strict";var i=a("3ac9"),s=a.n(i);s.a},acd4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("dashboardItem",{attrs:{dashboard:t.currentDashboard,mode:"view"}})],1)},s=[],r=a("4300"),l=a("5fd4"),n={components:{dashboardItem:r["default"]},data:function(){return{currentDashboard:void 0}},created:function(){var t=this;Object(l["d"])(this.$route.params.id).then((function(e){e.data.content=JSON.parse(e.data.content),t.currentDashboard=e.data}))}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["default"]=d.exports},ad2e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container common-list-page"},[a("el-form",{ref:"temp",attrs:{model:t.temp,rules:t.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:t.temp.oldpassword,callback:function(e){t.$set(t.temp,"oldpassword",e)},expression:"temp.oldpassword"}})],1),a("el-form-item",{attrs:{label:"新密码:",prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:t.temp.password,callback:function(e){t.$set(t.temp,"password",e)},expression:"temp.password"}})],1),a("el-form-item",{attrs:{label:"确认密码:",prop:"password1"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:t.temp.password1,callback:function(e){t.$set(t.temp,"password1",e)},expression:"temp.password1"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.toAmend(e)}}},[t._v("确认修改")])],1)],1)],1)},s=[],r=(a("b0c0"),a("d3b7"),a("25f0"),a("96cf"),a("1da1")),l=a("2934"),n={data:function(){var t=this,e=function(t,e,a){e?e.toString().length<6||e.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入旧密码"))},a=function(t,e,a){console.log(e),e?e.toString().length<6||e.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入新密码"))},i=function(e,a,i){""===a?i(new Error("请再次输入密码")):a!==t.temp.password?i(new Error("两次输入密码不一致!")):i()};return{resetForm:{name:"updatePwd",returntype:"Map",parammaps:{password:"",username:this.$store.state.user.name}},temp:{},rules:{oldpassword:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,validator:a,trigger:"blur"}],password1:[{required:!0,validator:i,trigger:"blur"}]}}},methods:{toAmend:function(){var t=this;console.log(111),this.$refs["temp"].validate((function(e){e&&(t.resetForm.parammaps.password=t.temp.password,t.resetForm.parammaps.username=t.$store.state.user.name,Object(l["f"])(t.resetForm).then((function(e){"fail"===e.msg?t.$notify({title:"失败",message:"修改失败",type:"danger",duration:2e3}):(setTimeout((function(){t.logout()}),1e3),t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})),console.log(e)})))}))},logout:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("user/logout");case 2:t.$router.push("/login");case 3:case"end":return e.stop()}}),e)})))()}}},o=n,c=(a("e65c"),a("2877")),d=Object(c["a"])(o,i,s,!1,null,"52575076",null);e["default"]=d.exports},ad9f:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-值班记录",use:"icon-值班记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-值班记录"><defs><style type="text/css"></style></defs><path d="M738.3552 205.6704v21.4528a31.232 31.232 0 0 1-62.5152 0v-21.4528H329.728v21.4528a31.232 31.232 0 0 1-62.5152 0v-21.4528H132.3008c-10.24 0-18.5856 8.3456-18.5856 18.5344v110.592H891.904v-110.592c0-10.24-8.2944-18.5344-18.5344-18.5344H738.304z m0-62.5152h134.9632c44.6464 0 81.1008 36.352 81.1008 81.0496v667.5456c0 44.6976-36.4544 81.0496-81.1008 81.0496H132.3008C87.6032 972.8 51.2 936.448 51.2 891.7504V224.256c0-44.7488 36.352-81.0496 81.1008-81.0496H267.264V82.432a31.232 31.232 0 0 1 62.5152 0v60.672h346.112V82.432a31.232 31.232 0 0 1 62.5152 0v60.672zM113.7152 397.312v494.4384c0 10.24 8.3456 18.5344 18.5856 18.5344h741.0176c10.24 0 18.5344-8.3456 18.5344-18.5344V397.312H113.7152z m247.3984 254.464l49.8688 31.744c23.9616 15.2064 38.4512 41.6768 38.4512 70.0416v45.1584H188.0064v-45.1584c0-28.3648 14.5408-54.784 38.5536-70.0928l49.8176-31.6416c-18.0736-22.4256-29.8496-55.4496-29.8496-79.4624a72.192 72.192 0 0 1 144.384 0c0 23.9616-11.776 56.9856-29.7984 79.4112z m442.112-45.568H536.064a31.232 31.232 0 1 1 0-62.5664h267.1104a31.232 31.232 0 0 1 0 62.5152z m0 149.1968h-184.6272a31.232 31.232 0 1 1 0-62.5152h184.6272a31.232 31.232 0 0 1 0 62.5152z" p-id="35235" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},afc7:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._v(" 效率统计 ")])},s=[],r={name:"EfficiencyStatistics",data:function(){return{}},created:function(){},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},afd5:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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",[t._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:t.jump}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"}})],1)],1)],1),a("div",{staticClass:"component-item"},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:t.parent,props:t.defaultProps,"default-expand-all":""},on:{"node-click":t.handleNodeClick}})],1)])],1),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:t.handleCreate}},[t._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.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:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.label))])]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.value))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.orderby))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>=0,expression:"total>=0"}],attrs:{total:t.total,page:t.getdataListParm.offset,limit:t.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParm,"pagecount",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,model:t.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"label"}},[a("el-input",{ref:"label",model:{value:t.deptform.label,callback:function(e){t.$set(t.deptform,"label",e)},expression:"deptform.label"}})],1),a("el-form-item",{attrs:{label:"值",prop:"value"}},[a("el-input",{ref:"value",model:{value:t.deptform.value,callback:function(e){t.$set(t.deptform,"value",e)},expression:"deptform.value"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"orderby"}},[a("el-input",{ref:"orderby",model:{value:t.deptform.orderby,callback:function(e){t.$set(t.deptform,"orderby",e)},expression:"deptform.orderby"}})],1),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:t.deptform.enable,callback:function(e){t.$set(t.deptform,"enable",e)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])],1)},s=[],r=(a("b0c0"),a("6724")),l={inserted:function(t){for(var e=t.querySelectorAll("input"),a=0;a<e.length;a++)e[a].setAttribute("keyfocusindex",a),e[a].addEventListener("keyup",(function(t){if(13===t.keyCode){var a=t.srcElement.getAttribute("keyfocusto");if(console.log(t.srcElement),a){var i=parseInt(a);i<e.length&&e[i].focus()}else{var s=t.srcElement.getAttribute("keyfocusindex"),r=parseInt(s);r<e.length-1&&e[r+1].focus()}}}))}},n=function(t){t.directive("enterToNext",l)};window.Vue&&(window["enterToNext"]=l,Vue.use(n)),l.install=n;var o=l,c=a("2934"),d=a("61f7"),m=a("333d"),p=a("5c96"),u={name:"Dict",components:{Pagination:m["a"]},directives:{waves:r["a"],enterToNext:o},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:d["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{jump:function(){this.$router.push("/console/menu")},handleNodeClick:function(t){var e=this;0===t.children.length&&(this.listLoading=!0,this.dictid=t.id,this.getdataListParm.params=[t.id,t.id],Object(c["d"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)})))},getDownList:function(){var t=this;Object(c["k"])(this.getRecuListParm).then((function(e){t.parent=e.data}))},getList:function(){var t=this;this.listLoading=!0,this.getDownList(),Object(c["d"])(this.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.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"},handleCreate:function(){var t=this;this.resetRequestParam(),this.dialogStatus="create",this.deptform.orderby="0",this.deptform.enable=1,this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["label"].focus()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="insertDictList",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.label,t.requestParam.params[1]=t.deptform.value,t.requestParam.params[2]=t.deptform.orderby,t.requestParam.params[3]=t.deptform.enable,t.requestParam.params[4]=t.dictid,Object(c["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="insertDictList",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.label,t.requestParam.params[1]=t.deptform.value,t.requestParam.params[2]=t.deptform.orderby,t.requestParam.params[3]=t.deptform.enable,t.requestParam.params[4]=t.dictid,Object(c["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.$refs["label"].focus()})),t.getList(),t.resetRequestParam(),t.deptform.orderby="0",t.deptform.enable=1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(t){var e=this;this.deptform.id=t.id,this.deptform.label=t.label,this.deptform.value=t.value,this.deptform.orderby=t.orderby,this.deptform.enable=t.enable,this.deptform.pid=t.pid,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["label"].focus()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updateDictList",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.label,t.requestParam.params[1]=t.deptform.value,t.requestParam.params[2]=t.deptform.orderby,t.requestParam.params[3]=t.deptform.enable,t.requestParam.params[4]=t.dictid,t.requestParam.params[5]=t.deptform.id,Object(c["f"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updateDictList",this.requestParam.params=[],this.requestParam.params[0]=e.label,this.requestParam.params[1]=e.value,this.requestParam.params[2]=e.orderby,this.requestParam.params[3]=e.enable,this.requestParam.params[4]=this.dictid,this.requestParam.params[5]=e.id,Object(c["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;p["MessageBox"].confirm("名称:"+t.label,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteDictList",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(c["f"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}},h=u,f=a("2877"),g=Object(f["a"])(h,i,s,!1,null,null,null);e["default"]=g.exports},b189:function(t,e,a){t.exports=a.p+"static/img/logo1.0121925c.png"},b20f:function(t,e,a){t.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b2bd:function(t,e,a){},b30b:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._v(" 效率分析 ")])},s=[],r={name:"EfficiencyAnalysis",data:function(){return{}},created:function(){},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},b3b5:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="#979797" /></symbol>'});l.a.add(n);e["default"]=n},b642:function(t,e,a){"use strict";var i=a("7dcd"),s=a.n(i);s.a},b6fb:function(t,e,a){"use strict";a.r(e);var i=function(t,e){var a=e._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-2",type:"warning"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);e["default"]=n.exports},b775:function(t,e,a){"use strict";a("d3b7");var i=a("bc3a"),s=a.n(i),r=a("5c96"),l=a("4360"),n=a("5f87"),o=s.a.create({baseURL:"http://139.196.88.215:8083/",withCredentials:!0,timeout:6e4});o.interceptors.request.use((function(t){return t.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",t.withCredentials=!1,l["a"].getters.token&&(t.headers["token"]=Object(n["a"])()),t}),(function(t){return console.log(t),Promise.reject(t)})),o.interceptors.response.use((function(t){var e=t.data;return 200!==e.code?(Object(r["Message"])({message:"请求超时",type:"error",duration:5e3}),50008!==e.code&&50012!==e.code&&50014!==e.code||r["MessageBox"].confirm("你已经注销登陆,你可以取消或重新登陆","确认注销",{confirmButtonText:"重新登陆",cancelButtonText:"取消",type:"warning"}).then((function(){l["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),20002===e.code&&l["a"].dispatch("user/resetToken").then((function(){location.reload()})),void 0===e.code?e:Promise.reject(new Error(e.message||"Error"))):e}),(function(t){return console.log("err"+t),Object(r["Message"])({message:t.message,type:"error",duration:5e3}),Promise.reject(t)})),e["a"]=o},b8a0:function(t,e,a){"use strict";var i=a("fe3f"),s=a.n(i);s.a},b8ff:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-入库管理",use:"icon-入库管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-入库管理"><defs><style type="text/css"></style></defs><path d="M852.8 948.1H666.3c-18.3 0-33.2-14.6-33.2-32.6s14.8-32.6 33.2-32.6h184.4V369.5L505.3 137.1 155.4 381.8v162.8c0 18-14.8 32.6-33.2 32.6-18.3 0-33.2-14.6-33.2-32.6V380.7c0-20.4 10.1-39.6 27-51.4l352-246c21.9-15.3 51.4-15.6 73.6-0.7l347.6 233.7c17.5 11.8 27.9 31.2 27.9 52.1V885c0 34.8-28.9 63.1-64.3 63.1z" p-id="81250" fill="#ffffff" /><path d="M490.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="81251" fill="#ffffff" /><path d="M383.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="81252" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},b90f:function(t,e,a){"use strict";var i=a("0c30"),s=a.n(i);s.a},b947:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"TMR设备编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.eqcode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"eqcode",e)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",placeholder:"TMR设备类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.classname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"classname",e)},expression:"table.getdataListParm.parammaps.classname"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"TMR设备编号","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.eqcode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.eqcode,callback:function(a){t.$set(e.row,"eqcode",a)},expression:"scope.row.eqcode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"TMR设备名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tname))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.tname,callback:function(a){t.$set(e.row,"tname",a)},expression:"scope.row.tname"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"数据采集卡编号","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.datacaptureno))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:e.row.datacaptureno,callback:function(a){t.$set(e.row,"datacaptureno",a)},expression:"scope.row.datacaptureno"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"TMR设备类型","min-width":"200px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tclassname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"TMR设备类型"},on:{change:t.changeType},model:{value:e.row.tclassid,callback:function(a){t.$set(e.row,"tclassid",a)},expression:"scope.row.tclassid"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"最大搅拌量(KG)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.maxstirfeed))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%"},model:{value:e.row.maxstirfeed,callback:function(a){t.$set(e.row,"maxstirfeed",a)},expression:"scope.row.maxstirfeed"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"EquipmentTMR",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["TMR设备类型"]}],typeList:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getTMRList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqcode:"",classname:"",enable:"",eqtype:"1"}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="EquipmentTMR",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e,console.log(this.isRoleEdit)},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.typeList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.classname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.eqtype="1",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,eqcode:"",tname:"",datacaptureno:"",tclassid:"",maxstirfeed:""})},changeType:function(t){this.table.temp.tclassname=this.typeList.find((function(e){return e.value===t})).label},createData:function(t){var e=this;if(console.log("点击了新增保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=t.eqcode,this.table.temp.tname=t.tname,this.table.temp.datacaptureno=t.datacaptureno,this.table.temp.tclassid=t.tclassid,this.table.temp.tclassname=this.table.temp.tclassname,this.table.temp.maxstirfeed=t.maxstirfeed,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"TMR设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"TMR设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid)return this.$message({type:"error",message:"设备类型不能为空",duration:2e3}),!1;if(""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"最大搅拌量不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseFloat(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=/^[1-9]\d*$/;if(!i.test(parseFloat(this.table.temp.maxstirfeed)))return this.$message({type:"error",message:"最大搅拌量请输入正整数",duration:2e3}),!1;var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertTMR",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},createCancel:function(t){console.log("点击了新增取消");for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.tclassid=String(t.tclassid),this.table.temp.tclassid=t.tclassid,this.table.temp.tclassname=t.tclassname},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=t.eqcode,this.table.temp.tname=t.tname,this.table.temp.datacaptureno=t.datacaptureno,this.table.temp.tclassid=t.tclassid,this.table.temp.tclassname=this.table.temp.tclassname,this.table.temp.maxstirfeed=t.maxstirfeed,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.id=t.id,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"TMR设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid)return this.$message({type:"error",message:"设备类型不能为空",duration:2e3}),!1;if(""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"最大搅拌量不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=/^[1-9]\d*$/;if(!i.test(parseInt(this.table.temp.maxstirfeed)))return this.$message({type:"error",message:"最大搅拌量请输入正整数",duration:2e3}),!1;var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateTMR",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["j"])(t,e.$notify)})))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteTMR",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择TMR设备信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteTMR",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("aa63"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"3801d5cc",null);e["default"]=u.exports},b98b:function(t,e,a){"use strict";var i=a("9cca"),s=a.n(i);s.a},ba5d:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-统计分析",use:"icon-统计分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-统计分析"><defs><style type="text/css"></style></defs><path d="M106.044235 80.775529c13.492706 0 24.455529 10.962824 24.45553 24.45553v796.943059H957.741176a27.407059 27.407059 0 1 1 0 54.753882H111.736471a30.117647 30.117647 0 0 1-30.117647-30.117647V105.200941c0-13.462588 10.932706-24.395294 24.425411-24.395294zM300.032 610.785882c14.004706 0 25.449412 7.981176 25.449412 17.709177v200.583529c0 9.697882-11.444706 17.679059-25.449412 17.679059H215.250824c-14.004706 0-25.449412-7.981176-25.449412-17.709176v-200.58353c0-9.697882 11.444706-17.679059 25.449412-17.679059h84.781176z m195.674353-168.538353c14.004706 0 25.449412 9.095529 25.449412 20.239059v364.032c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059V462.486588c0-11.143529 11.444706-20.239059 25.449411-20.239059h84.781177z m195.674353 101.135059c14.004706 0 25.449412 9.095529 25.449412 20.208941v262.927059c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059v-262.927059c0-11.143529 11.444706-20.208941 25.449411-20.208941h84.781177z m195.674353-168.538353c14.004706 0 25.449412 9.095529 25.449412 20.208941v431.465412c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059V395.053176c0-11.143529 11.444706-20.208941 25.449411-20.208941h84.781177z m25.6-254.192941l-16.26353 149.202824-40.478117-40.658824-177.091765 217.449412c-5.421176 6.174118-13.010824 10.179765-21.323294 10.902588a30.569412 30.569412 0 0 1-22.407529-7.981176l-170.224942-157.936942-224.828235 204.047059a30.599529 30.599529 0 0 1-20.239059 7.619765 29.816471 29.816471 0 0 1-22.407529-9.788235 30.479059 30.479059 0 0 1 2.16847-42.857412l245.398589-222.569412a30.268235 30.268235 0 0 1 40.508235 0.39153l166.972235 155.015529 160.828236-197.511529-48.790589-49.001412 148.178824-16.323765z" p-id="6085" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},badd:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"第一层",align:"center"}},[a("el-table-column",{attrs:{prop:"onerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("重量比例")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第一层重量(g):",prop:"oneweight"}},[a("el-input",{ref:"oneweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.oneweight,callback:function(e){t.$set(t.create.temp,"oneweight",e)},expression:"create.temp.oneweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第二层重量(g):",prop:"twoweight"}},[a("el-input",{ref:"twoweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.twoweight,callback:function(e){t.$set(t.create.temp,"twoweight",e)},expression:"create.temp.twoweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第三层重量(g):",prop:"threeweight"}},[a("el-input",{ref:"threeweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.threeweight,callback:function(e){t.$set(t.create.temp,"threeweight",e)},expression:"create.temp.threeweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第一层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.onerate))]),a("span",[t._v(t._s(t.create.temp.onerange))])])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第二层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.tworate))]),a("span",[t._v(t._s(t.create.temp.tworange))])])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第三层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.threerate))]),a("span",[t._v(t._s(t.create.temp.threerange))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("操作详情")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"操作日期:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeOperatetime},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"1-255字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:t.create.temp.remark,callback:function(e){t.$set(t.create.temp,"remark",e)},expression:"create.temp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"FecalScreen",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getDungsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",onerate:"",tworate:"",threerate:"",tworange:"",threerange:"",remark:"",ccid:"",ccname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],oneweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],twoweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],threeweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getDungscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungsieveRange",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="FecalScreen",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",onerate:"",tworate:"",threerate:"",tworange:"",threerange:"",remark:"",ccid:"",ccname:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var t=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(e){null!==e.data.list?(t.create.temp.onerange=e.data.list[0].oneRange,t.create.temp.tworange=e.data.list[0].twoRange,t.create.temp.threerange=e.data.list[0].threeRange,t.create.temp.ccid=e.data.list[0].ccid,t.create.temp.ccname=e.data.list[0].ccname):(t.create.temp.onerange="",t.create.temp.tworange="",t.create.temp.threerange="",t.create.temp.ccid="",t.create.temp.ccname="")}))},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},blurWeight:function(){if(this.create.temp.oneweight&&this.create.temp.twoweight&&this.create.temp.threeweight){var t=parseFloat(this.create.temp.oneweight)+parseFloat(this.create.temp.twoweight)+parseFloat(this.create.temp.threeweight);this.create.temp.onerate=(parseFloat(this.create.temp.oneweight)/t*100).toFixed(2),this.create.temp.tworate=(parseFloat(this.create.temp.twoweight)/t*100).toFixed(2),this.create.temp.threerate=(100-this.create.temp.onerate-this.create.temp.tworate).toFixed(2)}},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertDungsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertDungsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList()):Object(r["j"])(e,t.$notify)}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="updateDungsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteDungsieve",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便筛",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteDungsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便筛",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copyDungsieve",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条粪便筛",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("fa3e"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"341316ec",null);e["default"]=h.exports},bafb:function(t,e,a){},bca1:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-标准参数",use:"icon-标准参数-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-标准参数"><defs><style type="text/css"></style></defs><path d="M173.8 377.5c6 6 14.1 9.4 22.6 9.4s16.6-3.4 22.6-9.4l148.6-148.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-125.9 126-70.9-70.9c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l93.6 93.5zM406.1 64H41.6C18.6 64 0 82.6 0 105.9v364.8C0 493.7 18.6 512 41.6 512h364.5c23 0 41.9-18.3 41.9-41.3V106c0-23.4-18.9-42-41.9-42zM384 448H64V128h320v320z m192-192h416c17.7 0 32-14.3 32-32s-14.3-32-32-32H576c-17.7 0-32 14.3-32 32s14.3 32 32 32z m416 128H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32zM173.8 889.5c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l148.6-148.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-125.9 126-70.9-70.9c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l93.6 93.5zM406.1 576H41.6C18.6 576 0 594.6 0 617.9V982.6c0 23 18.6 41.3 41.6 41.3h364.5c23 0 41.9-18.3 41.9-41.3V617.9c0-23.3-18.9-41.9-41.9-41.9zM384 960H64V640h320v320z m608-256H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32z m0 192H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32z" p-id="70936" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},bdf4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleExamine}},[t._v("审核")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.cowclassid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"cowclassid",e)},expression:"table.getdataListParm.parammaps.cowclassid"}},t._l(t.livestockTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.feedid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"feedid",e)},expression:"table.getdataListParm.parammaps.feedid"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"是否审核",clearable:""},model:{value:t.table.getdataListParm.parammaps.ischarge,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"ischarge",e)},expression:"table.getdataListParm.parammaps.ischarge"}},t._l(t.isAuditList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"业务日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.repertoryweight))])]}}])}),a("el-table-column",{attrs:{label:"计划重量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.planweight))])]}}])}),a("el-table-column",{attrs:{label:"设备实测重量(kg)","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.actweight))])]}}])}),a("el-table-column",{attrs:{label:"出库重量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.operateweight))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"最多保留两位小数",type:"number",step:.01},model:{value:e.row.operateweight,callback:function(a){t.$set(e.row,"operateweight",a)},expression:"scope.row.operateweight"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.remark))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.remark,callback:function(a){t.$set(e.row,"remark",a)},expression:"scope.row.remark"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否审核","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.ischarge?a("span",[t._v("是")]):a("span",[t._v("否")])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"150","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1)])},s=[],r=(a("b0c0"),a("2934")),l=a("5c96"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"SystemConsumption",data:function(){return{livestockTypeList:[],feedNameList:[{id:0,name:"羊草"},{id:1,name:"小苏打"}],isAuditList:[{id:"1",name:"是"},{id:"0",name:"否"}],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},tableKey:0,list:[],total:0,listLoading:!0},selectList:[],requestParam:{},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var t="SystemConsumption",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.feedNameList=e.data.getFeedListEnable.list,t.livestockTypeList=e.data.getCowclassListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge=""},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isUpdate=!1,t.isUpdateSave=!0},updateData:function(t){var e=this;console.log("点击了编辑保存",t),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateFeeduse",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=t.pastureid,this.requestParam.parammaps.id=t.id,this.requestParam.parammaps.remark=t.remark,this.requestParam.parammaps.operateweight=t.operateweight,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleExamine:function(){var t=this;if(0==this.selectList.length)this.$message({type:"error",message:"请选择需要审核的单据",duration:2e3});else{for(var e=0;e<this.selectList.length;e++)if(1==this.selectList[e].ischarge)return void this.$message({type:"error",message:"单据不可重复审核,请重新选择",duration:2e3});l["MessageBox"].confirm("是否确认审核系统用量?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"chargeFeedstorageuse",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",operateweight:"@insertSpotList.operateweight"}},Object(r["b"])(t.requestParam).then((function(e){console.log("审核保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.getList())}))}))}},handleExport:function(){console.log("点击了导出")}}},m=d,p=(a("4f0d"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"3a236623",null);e["default"]=u.exports},be35:function(t,e,a){},bf45:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:t.handleDelete}},[t._v("删除")]):t._e(),a("el-button",{staticClass:"success",on:{click:t.handleFeedBank}},[t._v("饲料库")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"fname",e)},expression:"table.getdataListParm.parammaps.fname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"饲料类别",clearable:""},model:{value:t.table.getdataListParm.parammaps.fclassid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"fclassid",e)},expression:"table.getdataListParm.parammaps.fclassid"}},t._l(t.feedTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"饲料来源",clearable:""},model:{value:t.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"source",e)},expression:"table.getdataListParm.parammaps.source"}},t._l(t.feedSourcesList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),t.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):t._e(),t.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):t._e(),t.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[t._v("允许误差数")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.allowratio,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"allowratio",e)},expression:"table.getdataListParm.parammaps.allowratio"}})],1),a("li",[a("a",[t._v("跳转重量域")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:t.table.getdataListParm.parammaps.autozone,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"autozone",e)},expression:"table.getdataListParm.parammaps.autozone"}})],1),a("li",[a("a",[t._v("跳转延时")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:"跳转延时",clearable:""},model:{value:t.table.getdataListParm.parammaps.autosecond,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"autosecond",e)},expression:"table.getdataListParm.parammaps.autosecond"}},t._l(t.jumpDelayList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:t.handleSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"饲料分类","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fclass))])]}}])}),a("el-table-column",{attrs:{label:"唯一编码","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料来源","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.source))])]}}])}),a("el-table-column",{attrs:{label:"计划类型","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.printgroup))])]}}])}),a("el-table-column",{attrs:{label:"允许误差数(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.allowratio))])]}}])}),a("el-table-column",{attrs:{label:"包装单位重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.unitweight))])]}}])}),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.uprice))])]}}])}),a("el-table-column",{attrs:{label:"跳转重量域(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.autozone))])]}}])}),a("el-table-column",{attrs:{label:"跳转延时","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.autosecondname))])]}}])}),a("el-table-column",{attrs:{label:"确认开始","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.confirmstartname))])]}}])}),a("el-table-column",{attrs:{label:"继电器位置","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.trgaddress))])]}}])}),a("el-table-column",{attrs:{label:"备用字段01","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup1))])]}}])}),a("el-table-column",{attrs:{label:"备用字段02","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup2))])]}}])}),a("el-table-column",{attrs:{label:"备用字段03","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup3))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){t.handleNutritive(i)}}},[t._v("营养价值")]),t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleRelation(i)}}},[t._v("关联")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"155px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("基础信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"饲料名称:",prop:"fname"}},[a("el-input",{ref:"fname",staticClass:"filter-item",attrs:{placeholder:"请输入饲料名称",type:"textarea",autosize:{minRows:1},maxlength:"32"},model:{value:t.create.temp.fname,callback:function(e){t.$set(t.create.temp,"fname",e)},expression:"create.temp.fname"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"饲料类别:",prop:"fclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"饲料类别"},on:{change:t.changeFeedList},model:{value:t.create.temp.fclassid,callback:function(e){t.$set(t.create.temp,"fclassid",e)},expression:"create.temp.fclassid"}},t._l(t.feedTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"唯一编码:",prop:"feedcode"}},[a("el-input",{ref:"feedcode",staticClass:"filter-item",attrs:{placeholder:"请输入唯一编码",type:"text"},model:{value:t.create.temp.feedcode,callback:function(e){t.$set(t.create.temp,"feedcode",e)},expression:"create.temp.feedcode"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"饲料来源:",prop:"source"}},[a("el-input",{ref:"source",staticClass:"filter-item",attrs:{disabled:"",placeholder:"用户自定义",type:"text"},model:{value:t.create.temp.source,callback:function(e){t.$set(t.create.temp,"source",e)},expression:"create.temp.source"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"计划类型:",prop:"printgroupid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"计划类型"},on:{change:t.changePlanList},model:{value:t.create.temp.printgroupid,callback:function(e){t.$set(t.create.temp,"printgroupid",e)},expression:"create.temp.printgroupid"}},t._l(t.planTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"包装单位重量(kg):",prop:"unitweight"}},[a("el-input",{ref:"unitweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"正整数",type:"number"},model:{value:t.create.temp.unitweight,callback:function(e){t.$set(t.create.temp,"unitweight",e)},expression:"create.temp.unitweight"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"单价:",prop:"uprice"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"uprice",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多俩位小数",type:"number",step:"0.01"},model:{value:t.create.temp.uprice,callback:function(e){t.$set(t.create.temp,"uprice",e)},expression:"create.temp.uprice"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("搅拌参数")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"允许误差数(kg):",prop:"allowratio"}},[a("el-input",{ref:"allowratio",staticClass:"filter-item",attrs:{placeholder:"正整数",type:"text"},model:{value:t.create.temp.allowratio,callback:function(e){t.$set(t.create.temp,"allowratio",e)},expression:"create.temp.allowratio"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"跳转重量域(kg):",prop:"autozone"}},[a("el-input",{ref:"autozone",staticClass:"filter-item",attrs:{disabled:"0"==t.create.temp.autosecond,placeholder:"0-20之间的整数",type:"text"},model:{value:t.create.temp.autozone,callback:function(e){t.$set(t.create.temp,"autozone",e)},expression:"create.temp.autozone"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"跳转延时:",prop:"autosecond"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"跳转延时"},on:{change:t.changeAutosecond},model:{value:t.create.temp.autosecond,callback:function(e){t.$set(t.create.temp,"autosecond",e)},expression:"create.temp.autosecond"}},t._l(t.jumpDelayList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"确认开始:",prop:"confirmstart"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterabler:"",placeholde:"确认开始"},on:{change:t.changeConfirmstart},model:{value:t.create.temp.confirmstart,callback:function(e){t.$set(t.create.temp,"confirmstart",e)},expression:"create.temp.confirmstart"}},t._l(t.confirmStartList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"是否启用"},model:{value:t.create.temp.enable,callback:function(e){t.$set(t.create.temp,"enable",e)},expression:"create.temp.enable"}},t._l(t.enableList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"继电器位置:",prop:"trgaddress"}},[a("el-input",{ref:"trgaddress",staticClass:"filter-item",attrs:{placeholder:"继电器位置",type:"number"},model:{value:t.create.temp.trgaddress,callback:function(e){t.$set(t.create.temp,"trgaddress",e)},expression:"create.temp.trgaddress"}})],1)],1)],1),a("el-row",[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[t._v("备用字段")])]),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备用字段01:",prop:"backup1"}},[a("el-input",{ref:"backup1",staticClass:"filter-item",attrs:{placeholder:"备用字段01",type:"text"},model:{value:t.create.temp.backup1,callback:function(e){t.$set(t.create.temp,"backup1",e)},expression:"create.temp.backup1"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备用字段02:",prop:"backup2"}},[a("el-input",{ref:"backup2",staticClass:"filter-item",attrs:{placeholder:"备用字段02",type:"text"},model:{value:t.create.temp.backup2,callback:function(e){t.$set(t.create.temp,"backup2",e)},expression:"create.temp.backup2"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"备用字段03:",prop:"backup3"}},[a("el-input",{ref:"backup3",staticClass:"filter-item",attrs:{placeholder:"备用字段03",type:"text"},model:{value:t.create.temp.backup3,callback:function(e){t.$set(t.create.temp,"backup3",e)},expression:"create.temp.backup3"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)]),a("el-dialog",{attrs:{title:t.textMap[t.feedBank.dialogStatus],visible:t.feedBank.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.feedBank,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.feedBank.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.feedBank.getdataListParm.parammaps,"fname",e)},expression:"feedBank.getdataListParm.parammaps.fname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterabler:"",placeholder:"关联状态",clearable:""},model:{value:t.feedBank.getdataListParm.parammaps.statue,callback:function(e){t.$set(t.feedBank.getdataListParm.parammaps,"statue",e)},expression:"feedBank.getdataListParm.parammaps.statue"}},t._l(t.associationStatusList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleFeedBankSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleFeedBankRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.feedBank.listLoading,expression:"feedBank.listLoading"}],key:t.feedBank.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:t.feedBank.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"来源","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sources))])]}}])}),a("el-table-column",{attrs:{label:"中国饲料号","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"价格","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.price))])]}}])}),a("el-table-column",{attrs:{label:"样品说明","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"干物质(DM%)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dry))])]}}])}),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.starch))])]}}])}),a("el-table-column",{attrs:{label:"粗蛋白(CP%DM)","min-width":"75px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cp))])]}}])}),a("el-table-column",{attrs:{label:"钙(Ca%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ca))])]}}])}),a("el-table-column",{attrs:{label:"磷(P%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.p))])]}}])}),a("el-table-column",{attrs:{label:"产奶净能(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.n))])]}}])}),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.adf))])]}}])}),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ndf))])]}}])}),a("el-table-column",{attrs:{label:"NDIP%","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ndip))])]}}])}),a("el-table-column",{attrs:{label:"粗灰分(Ash%)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ash))])]}}])}),a("el-table-column",{attrs:{label:"粗料","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.iscu))])]}}])}),a("el-table-column",{attrs:{label:"关联状态","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.statue?a("span",[t._v("否")]):t._e(),1==e.row.statue?a("span",[t._v("是")]):t._e()]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.feedBank.dialogFormVisible=!1}}},[t._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:t.textMap[t.relation.dialogStatus],visible:t.relation.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.relation,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.relation.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.relation.getdataListParm.parammaps,"fname",e)},expression:"relation.getdataListParm.parammaps.fname"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleRelationSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.relation.listLoading,expression:"relation.listLoading"}],key:t.relation.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:t.relation.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"来源","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sources))])]}}])}),a("el-table-column",{attrs:{label:"中国饲料号","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"价格","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.price))])]}}])}),a("el-table-column",{attrs:{label:"样品说明","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"干物质(DM%)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.dry))])]}}])}),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.starch))])]}}])}),a("el-table-column",{attrs:{label:"粗蛋白(CP%DM)","min-width":"75px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cp))])]}}])}),a("el-table-column",{attrs:{label:"钙(Ca%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ca))])]}}])}),a("el-table-column",{attrs:{label:"磷(P%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.p))])]}}])}),a("el-table-column",{attrs:{label:"产奶净能(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.n))])]}}])}),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.adf))])]}}])}),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ndf))])]}}])}),a("el-table-column",{attrs:{label:"NDIP%","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ndip))])]}}])}),a("el-table-column",{attrs:{label:"粗灰分(Ash%)","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ash))])]}}])}),a("el-table-column",{attrs:{label:"粗料","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.iscu))])]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"150px",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return["1"==i.statueRelation?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.disassociateData(i)}}},[t._v("取消关联")]):t._e(),"0"==i.statueRelation?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.relationData(i)}}},[t._v("关联")]):t._e()]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.relation.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:t.textMap[t.nutritive.dialogStatus],visible:t.nutritive.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.nutritive,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.nutritive.rules,model:t.nutritive.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"干物质(DM%):",prop:"dry"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"dry",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入干物质",type:"number",step:"0.01"},model:{value:t.nutritive.temp.dry,callback:function(e){t.$set(t.nutritive.temp,"dry",e)},expression:"nutritive.temp.dry"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"淀粉(%DM):",prop:"starch"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"starch",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入淀粉",type:"number",step:"0.01"},model:{value:t.nutritive.temp.starch,callback:function(e){t.$set(t.nutritive.temp,"starch",e)},expression:"nutritive.temp.starch"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"粗蛋白(CP%DM):",prop:"cp"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"cp",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入粗蛋白",type:"number",step:"0.01"},model:{value:t.nutritive.temp.cp,callback:function(e){t.$set(t.nutritive.temp,"cp",e)},expression:"nutritive.temp.cp"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"钙(Ca%DM):",prop:"ca"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"ca",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入钙",type:"number",step:"0.01"},model:{value:t.nutritive.temp.ca,callback:function(e){t.$set(t.nutritive.temp,"ca",e)},expression:"nutritive.temp.ca"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"磷(P%DM):",prop:"p"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"p",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入磷",type:"number",step:"0.01"},model:{value:t.nutritive.temp.p,callback:function(e){t.$set(t.nutritive.temp,"p",e)},expression:"nutritive.temp.p"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"产奶净能(%DM):",prop:"n"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"n",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入产奶净能",type:"number",step:"0.01"},model:{value:t.nutritive.temp.n,callback:function(e){t.$set(t.nutritive.temp,"n",e)},expression:"nutritive.temp.n"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"脂肪(%DM):",prop:"fat"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"fat",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入脂肪",type:"number",step:"0.01"},model:{value:t.nutritive.temp.fat,callback:function(e){t.$set(t.nutritive.temp,"fat",e)},expression:"nutritive.temp.fat"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"ADF(%DM):",prop:"adf"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"adf",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入ADF",type:"number",step:"0.01"},model:{value:t.nutritive.temp.adf,callback:function(e){t.$set(t.nutritive.temp,"adf",e)},expression:"nutritive.temp.adf"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"NDF(%DM):",prop:"ndf"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"ndf",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入NDF",type:"number",step:"0.01"},model:{value:t.nutritive.temp.ndf,callback:function(e){t.$set(t.nutritive.temp,"ndf",e)},expression:"nutritive.temp.ndf"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"NDIP(%):",prop:"ndip"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"ndip",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入NDIP",type:"number",step:"0.01"},model:{value:t.nutritive.temp.ndip,callback:function(e){t.$set(t.nutritive.temp,"ndip",e)},expression:"nutritive.temp.ndip"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"粗灰分(Ash%):",prop:"ash"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"ash",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"请输入粗灰分",type:"number",min:"0.00",step:"0.01"},model:{value:t.nutritive.temp.ash,callback:function(e){t.$set(t.nutritive.temp,"ash",e)},expression:"nutritive.temp.ash"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.nutritive.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"nutritive"===t.nutritive.dialogStatus&&t.isRoleEdit?a("el-button",{attrs:{type:"success",disabled:t.isokDisable},on:{click:function(e){return t.nutritiveData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("466d"),a("5319"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"FeedTable",components:{Pagination:o["a"]},directives:{limit:{update:function(t){t.onkeypress=function(t){var e=t.charCode;if(0!=e&&!String.fromCharCode(e).match(/[0-9\.]/))return!1},t.addEventListener("textInput",(function(t){t.target.value=t.target.value.replace(/[^0-9\.]/g,"")})),t.onkeyup=function(t){t.target.value=t.target.value.replace(/[^0-9\.]/g,"")}}}},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["跳转延时"]},{name:"getFeedclassByBig",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getDictByName2",offset:0,pagecount:0,params:["计划类型"]}],enableList:[{id:"1",name:"是"},{id:"0",name:"否"}],feedSourcesList:[{id:"0",name:"系统内置"},{id:"1",name:"用户自定义"}],confirmStartList:[{id:"0",name:"禁用"},{id:"1",name:"启用"}],associationStatusList:[{id:"1",name:"是"},{id:"0",name:"否"}],jumpDelayList:[],feedTypeList:[],planTypeList:[],table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeedList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:"",fclassid:"",source:"",autozone:"",autosecond:"",allowratio:"",printgroup:"",enable:""}}},arrowDown:!0,arrowUp:!1,create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),fname:"",fclassid:"",fclass:"",feedcode:"",source:"用户自定义",printgroupid:"1",printgroup:"无",unitweight:"",uprice:"",allowratio:"",autozone:"",autosecond:"0",autosecondname:"禁用",confirmstart:"0",confirmstartname:"禁用",enable:"1",trgaddress:"",backup1:"",backup2:"",backup3:""},rules:{fname:[{type:"string",required:!0,message:"必填",trigger:"blur"}],fclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedcode:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},feedBank:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeednurList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:"",statue:""}}},relation:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeednurRelation",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:""}}},nutritive:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{}},textMap:{create:"新增",update:"编辑",feedBank:"饲料库",relation:"关联",nutritive:"营养价值"},isokDisable:!1,selectList:[],requestParam:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},mounted:function(){var t=this;document.addEventListener("click",(function(e){void 0!==t.$refs.selectInput&&(t.$refs.selectInput.contains(e.target)?(t.arrowDown=!1,t.arrowUp=!0):(t.arrowDown=!0,t.arrowUp=!1))}))},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="FeedTable",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.jumpDelayList=e.data.getDictByName.list,t.feedTypeList=e.data.getFeedclassByBig.list,t.planTypeList=e.data.getDictByName2.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.fname="",this.table.getdataListParm.parammaps.fclassid="",this.table.getdataListParm.parammaps.source="",this.table.getdataListParm.parammaps.autozone="",this.table.getdataListParm.parammaps.autosecond="",this.table.getdataListParm.parammaps.allowratio="",this.table.getdataListParm.parammaps.printgroup="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),fname:"",fclassid:"",fclass:"",feedcode:"",source:"用户自定义",printgroupid:"1",printgroup:"无",unitweight:"",uprice:"",allowratio:"",autozone:"",autosecond:"0",autosecondname:"禁用",confirmstart:"0",confirmstartname:"禁用",enable:"1",trgaddress:"",backup1:"",backup2:"",backup3:""}},changePlanList:function(t){this.create.temp.printgroup=this.planTypeList.find((function(e){return e.value===t})).label},changeFeedList:function(t){this.create.temp.fclass=this.feedTypeList.find((function(e){return e.id===t})).mixname},changeAutosecond:function(t){this.create.temp.autosecondname=this.jumpDelayList.find((function(e){return e.value===t})).label},changeConfirmstart:function(t){this.create.temp.confirmstartname=this.confirmStartList.find((function(e){return e.id===t})).name},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){var a=/^[1-9]\d*$/;if(""!==t.create.temp.unitweight&&!a.test(parseFloat(t.create.temp.unitweight)))return t.$message({type:"error",message:"包装单位重量请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.create.temp.uprice&&!i.test(parseFloat(t.create.temp.uprice)))return t.$message({type:"error",message:"单价请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.autozone){var s=/^([0-9]|(1[0-9]|(20)))$/;if(!s.test(parseFloat(t.create.temp.autozone)))return t.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else t.create.temp.autozone="0";if(t.create.temp.trgaddress.length>8)return t.$message({type:"error",message:"继电器位置请输入1-8位数字",duration:2e3}),!1;var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(l.test(t.create.temp.fname))return t.$message({type:"error",message:"饲料名称不可输入特殊字符",duration:2e3}),!1;var n=/^[0-9]\d*$/;if(""!==t.create.temp.allowratio&&!n.test(parseFloat(t.create.temp.allowratio)))return t.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1;t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.name="insertFeed",t.requestParam.parammaps=t.create.temp,""==t.create.temp.allowratio&&(t.create.temp.allowratio="0"),""==t.create.temp.uprice&&(t.create.temp.uprice="0"),""==t.create.temp.unitweight&&(t.create.temp.unitweight="0"),""==t.create.temp.autozone&&(t.create.temp.autozone="0"),""==t.create.temp.trgaddress&&(t.create.temp.trgaddress="0"),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(Object(r["j"])(e,t.$notify),"0"==t.create.temp.allowratio&&(t.create.temp.allowratio=""),"0"==t.create.temp.uprice&&(t.create.temp.uprice=""),"0"==t.create.temp.unitweight&&(t.create.temp.unitweight=""),"0"==t.create.temp.autozone&&(t.create.temp.autozone=""),"0"==t.create.temp.trgaddress&&(t.create.temp.trgaddress=""))}))}}))},handleUpdate:function(t){console.log("点击了编辑"),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.fclassid=String(t.fclassid),t.printgroupid=String(t.printgroupid),t.autosecond=String(t.autosecond),t.confirmstart=String(t.confirmstart),t.enable=String(t.enable),this.create.temp=Object.assign({},t),"0"==this.create.temp.allowratio&&(this.create.temp.allowratio=""),"0.00"==this.create.temp.uprice&&(this.create.temp.uprice=""),"0"==this.create.temp.unitweight&&(this.create.temp.unitweight=""),"0"==this.create.temp.autozone&&(this.create.temp.autozone=""),"0"==this.create.temp.trgaddress&&(this.create.temp.trgaddress="")},updateData:function(){var t=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){var a=/^[1-9]\d*$/;if(""!==t.create.temp.unitweight&&!a.test(parseFloat(t.create.temp.unitweight)))return t.$message({type:"error",message:"包装单位重量请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.create.temp.uprice&&!i.test(parseFloat(t.create.temp.uprice)))return t.$message({type:"error",message:"单价请保留两位小数",duration:2e3}),!1;if(""!==t.create.temp.autozone){var s=/^([0-9]|(1[0-9]|(20)))$/;if(!s.test(parseFloat(t.create.temp.autozone)))return t.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else t.create.temp.autozone="0";if(t.create.temp.trgaddress.length>8)return t.$message({type:"error",message:"继电器位置请输入1-8位数字",duration:2e3}),!1;var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(l.test(t.create.temp.fname))return t.$message({type:"error",message:"饲料名称不可输入特殊字符",duration:2e3}),!1;var n=/^[0-9]\d*$/;if(""!==t.create.temp.allowratio&&!n.test(parseFloat(t.create.temp.allowratio)))return t.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1;t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.name="updateFeed",t.requestParam.parammaps=t.create.temp,""==t.create.temp.allowratio&&(t.create.temp.allowratio="0"),""==t.create.temp.uprice&&(t.create.temp.uprice="0"),""==t.create.temp.unitweight&&(t.create.temp.unitweight="0"),""==t.create.temp.autozone&&(t.create.temp.autozone="0"),""==t.create.temp.trgaddress&&(t.create.temp.trgaddress="0"),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(Object(r["j"])(e,t.$notify),"0"==t.create.temp.allowratio&&(t.create.temp.allowratio=""),"0"==t.create.temp.uprice&&(t.create.temp.uprice=""),"0"==t.create.temp.unitweight&&(t.create.temp.unitweight=""),"0"==t.create.temp.autozone&&(t.create.temp.autozone=""),"0"==t.create.temp.trgaddress&&(t.create.temp.trgaddress=""))}))}}))},handleFeedBank:function(){console.log("点击了饲料库"),this.feedBank.dialogStatus="feedBank",this.feedBank.dialogFormVisible=!0,this.getFeedBankList()},getFeedBankList:function(){var t=this;this.feedBank.listLoading=!0,Object(r["d"])(this.feedBank.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.feedBank.list=e.data.list,t.feedBank.pageNum=e.data.pageNum,t.feedBank.pageSize=e.data.pageSize,t.feedBank.total=e.data.total):t.feedBank.list=[],setTimeout((function(){t.feedBank.listLoading=!1}),100)}))},handleFeedBankSearch:function(){console.log("点击了饲料库搜索"),this.getFeedBankList(),this.feedBank.getdataListParm.offset=1},handleFeedBankRefresh:function(){console.log("点击了饲料库重置"),this.feedBank.getdataListParm.parammaps.fname="",this.feedBank.getdataListParm.parammaps.statue="",this.getFeedBankList()},handleRelation:function(t){console.log("点击了关联"),this.relation.dialogStatus="relation",this.relation.dialogFormVisible=!0,this.relation.temp=Object.assign({},t),this.relation.getdataListParm.parammaps.fid=this.relation.temp.id,this.getRelationList()},getRelationList:function(){var t=this;this.relation.listLoading=!0,Object(r["d"])(this.relation.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.relation.list=e.data.list,t.relation.pageNum=e.data.pageNum,t.relation.pageSize=e.data.pageSize,t.relation.total=e.data.total):t.relation.list=[],setTimeout((function(){t.relation.listLoading=!1}),100)}))},handleRelationSearch:function(){console.log("点击了关联搜索"),this.relation.getdataListParm.offset=1,this.getRelationList()},disassociateData:function(t){var e=this;console.log("点击了取消关联"),c["MessageBox"].confirm("是否确认取消关联?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="updateFeedrelation",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.relation.temp.pastureid,e.requestParam.parammaps.fid=e.relation.temp.id,e.requestParam.parammaps.id=t.id,Object(r["f"])(e.requestParam).then((function(t){console.log("取消关联保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getRelationList(),e.getList()):Object(r["j"])(t,e.$notify)}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},relationData:function(t){var e=this;console.log("点击了关联保存"),c["MessageBox"].confirm("是否确认关联?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="insertFeednur",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.relation.temp.pastureid,e.requestParam.parammaps.fid=e.relation.temp.id,e.requestParam.parammaps.fname=e.relation.temp.fname,e.requestParam.parammaps.feedcode=e.relation.temp.feedcode,e.requestParam.parammaps.price=t.price,e.requestParam.parammaps.remark=t.remark,e.requestParam.parammaps.dry=t.dry,e.requestParam.parammaps.starch=t.starch,e.requestParam.parammaps.cp=t.cp,e.requestParam.parammaps.ca=t.ca,e.requestParam.parammaps.p=t.p,e.requestParam.parammaps.n=t.n,e.requestParam.parammaps.fat=t.fat,e.requestParam.parammaps.adf=t.adf,e.requestParam.parammaps.ndf=t.ndf,e.requestParam.parammaps.ndip=t.ndip,e.requestParam.parammaps.ash=t.ash,e.requestParam.parammaps.fpercent=t.fpercent,e.requestParam.parammaps.iscu=t.iscu,e.requestParam.parammaps.feednurid=t.id,Object(r["f"])(e.requestParam).then((function(t){console.log("关联保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getRelationList(),e.getList()):Object(r["j"])(t,e.$notify)}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},handleNutritive:function(t){console.log("点击了营养价值",t),this.nutritive.dialogStatus="nutritive",this.nutritive.dialogFormVisible=!0,this.nutritive.temp=Object.assign({},t)},nutritiveData:function(){var t=this;console.log("点击了营养价值保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),void 0==this.nutritive.temp.dry&&this.$set(this.nutritive.temp,"dry",""),void 0==this.nutritive.temp.starch&&this.$set(this.nutritive.temp,"starch",""),void 0==this.nutritive.temp.cp&&this.$set(this.nutritive.temp,"cp",""),void 0==this.nutritive.temp.ca&&this.$set(this.nutritive.temp,"ca",""),void 0==this.nutritive.temp.p&&this.$set(this.nutritive.temp,"p",""),void 0==this.nutritive.temp.n&&this.$set(this.nutritive.temp,"n",""),void 0==this.nutritive.temp.fat&&this.$set(this.nutritive.temp,"fat",""),void 0==this.nutritive.temp.adf&&this.$set(this.nutritive.temp,"adf",""),void 0==this.nutritive.temp.ndf&&this.$set(this.nutritive.temp,"ndf",""),void 0==this.nutritive.temp.ndip&&this.$set(this.nutritive.temp,"ndip",""),void 0==this.nutritive.temp.ash&&this.$set(this.nutritive.temp,"ash","");var e=/^\d+(\.\d{1,2})?$/;return""===this.nutritive.temp.dry||e.test(parseFloat(this.nutritive.temp.dry))?(console.log(this.nutritive.temp.starch),(""===this.nutritive.temp.starch||e.test(parseFloat(this.nutritive.temp.starch)))&&(""===this.nutritive.temp.cp||e.test(parseFloat(this.nutritive.temp.cp)))&&(""===this.nutritive.temp.ca||e.test(parseFloat(this.nutritive.temp.ca)))&&(""===this.nutritive.temp.p||e.test(parseFloat(this.nutritive.temp.p)))&&(""===this.nutritive.temp.n||e.test(parseFloat(this.nutritive.temp.n)))&&(""===this.nutritive.temp.fat||e.test(parseFloat(this.nutritive.temp.fat)))&&(""===this.nutritive.temp.adf||e.test(parseFloat(this.nutritive.temp.adf)))&&(""===this.nutritive.temp.ndf||e.test(parseFloat(this.nutritive.temp.ndf)))&&(""===this.nutritive.temp.ndip||e.test(parseFloat(this.nutritive.temp.ndip)))&&(""===this.nutritive.temp.ash||e.test(parseFloat(this.nutritive.temp.ash)))?(this.requestParam.name="insertFeednur",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=this.nutritive.temp.pastureid,this.requestParam.parammaps.fid=this.nutritive.temp.id,this.requestParam.parammaps.fname=this.nutritive.temp.fname,this.requestParam.parammaps.feedcode=this.nutritive.temp.feedcode,this.requestParam.parammaps.price=this.nutritive.temp.uprice,this.requestParam.parammaps.remark=this.nutritive.temp.remark,this.requestParam.parammaps.dry=this.nutritive.temp.dry,this.requestParam.parammaps.starch=this.nutritive.temp.starch,this.requestParam.parammaps.cp=this.nutritive.temp.cp,this.requestParam.parammaps.ca=this.nutritive.temp.ca,this.requestParam.parammaps.p=this.nutritive.temp.p,this.requestParam.parammaps.n=this.nutritive.temp.n,this.requestParam.parammaps.fat=this.nutritive.temp.fat,this.requestParam.parammaps.adf=this.nutritive.temp.adf,this.requestParam.parammaps.ndf=this.nutritive.temp.ndf,this.requestParam.parammaps.ndip=this.nutritive.temp.ndip,this.requestParam.parammaps.ash=this.nutritive.temp.ash,this.requestParam.parammaps.fpercent=this.nutritive.temp.fpercent,this.requestParam.parammaps.iscu=this.nutritive.temp.iscu,this.requestParam.parammaps.feednurid="-1",void Object(r["f"])(this.requestParam).then((function(e){console.log("关联保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.nutritive.dialogFormVisible=!1):Object(r["j"])(e,t.$notify)}))):(this.$message({type:"error",message:"请输入自然数,最多保留俩位小数",duration:2e3}),!1)):(this.$message({type:"error",message:"请输入自然数,最多保留俩位小数",duration:2e3}),!1)},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deleteFeed",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(e.requestParam).then((function(){e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.getList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择饲料表信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deleteFeed",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=d,p=(a("b90f"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"1648315e",null);e["default"]=u.exports},bff9:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-基础数据",use:"icon-基础数据-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-基础数据"><defs><style type="text/css"></style></defs><path d="M754.456774 260.954839v508.696774h50.869678v-508.696774h-50.869678z m-508.696774 508.696774v-508.696774h-50.869677v508.696774h50.869677z" p-id="13016" fill="#ffffff" /><path d="M754.456774 761.063226c1.32129 18.498065-19.819355 45.584516-66.725161 66.725161-46.245161 21.140645-112.970323 35.014194-187.623226 35.014194-73.992258 0-141.378065-13.873548-187.623226-35.014194-47.566452-21.140645-68.046452-48.227097-66.725161-66.725161h-50.869677c8.588387 101.739355 146.663226 149.966452 305.218064 152.609032 158.554839-2.642581 296.629677-50.869677 305.218065-152.609032h-50.869678z" p-id="13017" fill="#ffffff" /><path d="M754.456774 591.277419c1.32129 18.498065-19.819355 45.584516-66.725161 66.725162-46.245161 21.140645-112.970323 35.014194-187.623226 35.014193-73.992258 0-141.378065-13.873548-187.623226-35.014193-47.566452-21.140645-68.046452-48.227097-66.725161-66.725162h-50.869677c8.588387 101.739355 146.663226 149.966452 305.218064 152.609033 158.554839-2.642581 296.629677-50.869677 305.218065-152.609033h-50.869678z" p-id="13018" fill="#ffffff" /><path d="M754.456774 422.152258c1.32129 18.498065-19.819355 45.584516-66.725161 66.725161-46.245161 21.140645-112.970323 35.014194-187.623226 35.014194-73.992258 0-141.378065-13.873548-187.623226-35.014194-47.566452-21.140645-68.046452-48.227097-66.725161-66.725161h-50.869677C203.47871 523.891613 341.553548 572.11871 500.108387 574.76129c158.554839-2.642581 296.629677-50.869677 305.218065-152.609032h-50.869678z" p-id="13019" fill="#ffffff" /><path d="M754.456774 235.189677c1.32129 18.498065-19.819355 45.584516-66.725161 66.725162-46.245161 21.140645-112.970323 35.014194-187.623226 35.014193-73.992258 0-141.378065-13.873548-187.623226-35.014193-47.566452-21.140645-68.046452-48.227097-66.725161-66.725162h-50.869677C203.47871 336.929032 341.553548 385.156129 500.108387 387.79871c158.554839-2.642581 296.629677-50.869677 305.218065-152.609033h-50.869678z" p-id="13020" fill="#ffffff" /><path d="M245.76 252.366452c-1.32129-18.498065 19.819355-45.584516 66.725161-66.725162 46.245161-21.140645 112.970323-35.014194 187.623226-35.014193 73.992258 0 141.378065 13.873548 187.623226 35.014193 47.566452 21.140645 68.046452 48.227097 66.725161 66.725162h50.869678c-8.588387-101.739355-146.663226-149.966452-305.218065-152.609033-158.554839 2.642581-296.629677 50.869677-305.218064 152.609033h50.869677z" p-id="13021" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},c01c:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-icon-news",use:"icon-icon-news-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-icon-news"><defs><style type="text/css"></style></defs><path d="M845.452427 313.583082c-18.324797-43.143443-44.517803-78.487395-77.880385-111.827071a363.060033 363.060033 0 0 0-115.262971-77.880386q-8.784449-3.722224-17.694882-6.986329A357.654218 357.654218 0 0 0 559.390899 98.495782q-3.332822-0.446667-6.688551-0.824616h-82.644832c-1.843933 0.206154-3.687865 0.435214-5.531798 0.675727a357.333534 357.333534 0 0 0-76.402949 18.622574q-8.910432 3.264104-17.694882 6.986329a363.060033 363.060033 0 0 0-115.262971 77.880386c-33.339677 33.339677-59.555589 68.717987-77.880385 111.827071a358.478834 358.478834 0 0 0-28.632495 140.952045V760.47906h13.308384l69.336449-69.33645V454.535127c0-123.337334 80.170985-224.868161 191.070363-262.147669a280.472465 280.472465 0 0 1 178.0254 0c110.933738 37.279508 191.070364 138.810334 191.070363 262.147669v235.462184L861.944744 760.47906h12.163084V454.535127a358.478834 358.478834 0 0 0-28.655401-140.952045z" p-id="2709" /><path d="M512.525232 0a123.761095 123.761095 0 0 0-122.547078 140.642814 426.498188 426.498188 0 0 1 76.150983-14.751461A47.529941 47.529941 0 1 1 560.627823 118.538528a46.544983 46.544983 0 0 1-0.68718 8.017099 425.284171 425.284171 0 0 1 74.914059 15.564624A125.731011 125.731011 0 0 0 636.217609 123.692377 123.692377 123.692377 0 0 0 512.525232 0zM603.267334 850.385093a93.605352 93.605352 0 0 1-1.1453 14.316247h-182.675316a93.605352 93.605352 0 0 1-1.1453-14.316247A92.18518 92.18518 0 0 1 448.388444 782.239756h124.952207a92.18518 92.18518 0 0 1 29.926683 68.145337z" p-id="2710" /><path d="M448.388444 782.239756a92.18518 92.18518 0 0 0-29.983949 68.145337 93.605352 93.605352 0 0 0 1.1453 14.316247H103.080557a66.656448 66.656448 0 0 1-35.355404-10.078638 63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.526838-0.950599-1.03077-1.912651-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A66.736619 66.736619 0 0 1 37.87864 782.239756zM987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061c-0.217607 0.526838-0.435214 1.042223-0.664274 1.557608-0.664274 1.557608-1.408719 3.080856-2.210428 4.581199-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188A66.656448 66.656448 0 0 1 920.824606 864.70134H602.167846a93.605352 93.605352 0 0 0 1.1453-14.316247 92.18518 92.18518 0 0 0-30.02976-68.145337h412.743137a66.736619 66.736619 0 0 1 1.798121 15.461547zM148.652036 657.173019v91.406376a67.022944 67.022944 0 0 0-90.375606-0.698633h-0.332137z" p-id="2711" /><path d="M231.296869 611.017437v80.170985L140.199724 782.239756l-70.802433 70.802433c-0.549744 0.538291-1.1453 1.065129-1.672138 1.580513a63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.515385-0.950599-1.019317-1.924104-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744a67.000038 67.000038 0 0 1 112.571516-49.121908V657.173019l37.359679-37.359679a41.230792 41.230792 0 0 1 45.159171-8.795903zM970.645147 752.565038v0.34359a67.000038 67.000038 0 0 0-96.537319-3.241198V656.027719z" p-id="2712" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061a73.284298 73.284298 0 0 1-2.874702 6.138807c-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188c-0.57265-0.515385-1.1453-1.042223-1.672138-1.580513L883.70544 782.239756l-92.242445-92.242445v-78.475942a41.230792 41.230792 0 0 1 46.430454 8.291971l36.214379 36.214379v93.639711A66.988585 66.988585 0 0 1 987.824644 797.701303zM170.080595 797.701303a67.011491 67.011491 0 0 1-102.355442 56.921399 63.621403 63.621403 0 0 1-3.768036-2.531112c-0.400855-0.286325-0.813163-0.584103-1.202565-0.893334s-0.984958-0.744445-1.465984-1.1453c-0.297778-0.22906-0.595556-0.469573-0.881881-0.721539s-0.423761-0.34359-0.629915-0.526838-0.652821-0.549744-0.984957-0.847521l-0.332137-0.297778-1.225471-1.1453c-0.45812-0.435214-0.91624-0.870428-1.362907-1.317095-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.340001c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.515385-0.950599-1.019317-1.924104-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A67.011491 67.011491 0 0 1 158.799392 760.47906q0.629915 0.939146 1.236924 1.924103L140.199724 782.239756h28.08275a66.736619 66.736619 0 0 1 1.798121 15.461547z" p-id="2713" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061a73.284298 73.284298 0 0 1-2.874702 6.138807c-0.400855 0.744445-0.813163 1.477437-1.236924 2.210429s-0.858975 1.443078-1.305642 2.153163-0.881881 1.362907-1.351454 2.027181a0.309231 0.309231 0 0 1-0.068718 0.11453c-0.469573 0.675727-0.950599 1.351454-1.443077 2.004274v0.057265c-0.492479 0.652821-0.996411 1.305642-1.500343 1.935557s-1.065129 1.294189-1.614873 1.924104-1.042223 1.1453-1.580514 1.752308a2.737266 2.737266 0 0 1-0.251966 0.263419c-0.412308 0.45812-0.847522 0.904787-1.294188 1.340001a4.168891 4.168891 0 0 1-0.389402 0.389402c-0.57265 0.57265-1.1453 1.1453-1.729403 1.660685s-1.065129 0.962052-1.614873 1.431624l-1.065128 0.904787-0.778804 0.629915-0.962052 0.755898c-0.22906 0.183248-0.45812 0.366496-0.698633 0.526838-0.423761 0.332137-0.858975 0.652821-1.294189 0.962052s-1.053676 0.744445-1.591966 1.1453-1.317095 0.881881-1.992822 1.294188a67.022944 67.022944 0 0 1-100.557322-72.382946h28.082751l-19.836592-19.836593q0.607009-0.973505 1.236924-1.924103a67.939183 67.939183 0 0 1 9.002056-10.81163A66.988585 66.988585 0 0 1 987.824644 797.701303zM61.277115 747.880762v97.350482h-5.405815c-0.767351-0.755898-1.511796-1.534702-2.290599-2.2906s-1.443078-1.614873-2.130258-2.439488c-0.34359-0.412308-0.68718-0.836069-1.019317-1.25983s-0.664274-0.847522-0.984958-1.282736-0.469573-0.629915-0.698633-0.950598-0.251966-0.332137-0.366496-0.503932c-0.274872-0.389402-0.549744-0.778804-0.813162-1.1453s-0.607009-0.893334-0.904787-1.351454l-0.80171-1.37436c-0.286325-0.469573-0.561197-0.927693-0.824616-1.397265s-0.538291-0.950599-0.80171-1.420172c-0.526838-0.950599-1.03077-1.912651-1.488889-2.897609s-0.939146-1.992822-1.362907-3.012138c-0.217607-0.492479-0.412308-0.984958-0.607009-1.477437s-0.400855-1.019317-0.595556-1.534701-0.412308-1.1453-0.607009-1.71795-0.412308-1.236924-0.595556-1.866839c-0.137436-0.446667-0.263419-0.881881-0.377949-1.328548s-0.274872-0.939146-0.389402-1.408718c-0.332137-1.271283-0.618462-2.554019-0.870428-3.848208-0.125983-0.584103-0.22906-1.1453-0.320683-1.763761v-0.34359c-0.11453-0.664274-0.217607-1.328548-0.297778-1.992822-0.194701-1.408719-0.332137-2.82889-0.423761-4.260515 0-0.526838-0.068718-1.065129-0.091624-1.60342s0-0.744445 0-1.1453v-1.889744A66.885508 66.885508 0 0 1 58.27643 747.880762z" p-id="2714" /><path d="M987.824644 797.701303v2.71436c0 0.57265 0 1.1453-0.091624 1.695044v0.103077c0 0.721539-0.103077 1.443078-0.183248 2.164617s-0.148889 1.454531-0.251966 2.187522-0.194701 1.397266-0.309231 2.095899v0.286325c-0.091624 0.561197-0.194701 1.1453-0.309231 1.660684 0 0.137436 0 0.274872-0.080171 0.412308-0.125983 0.664274-0.274872 1.317095-0.423761 1.958463s-0.22906 0.962052-0.355043 1.443078c0 0.194701-0.091624 0.389402-0.148889 0.584103l-0.206153 0.755897c-0.125983 0.45812-0.251966 0.91624-0.400855 1.362907q-0.251966 0.858975-0.549744 1.71795c-0.148889 0.446667-0.297778 0.881881-0.45812 1.317095l-0.481026 1.305641-0.618462 1.569061c-0.217607 0.526838-0.435214 1.042223-0.664274 1.557608H970.645147v-71.684314a66.81679 66.81679 0 0 1 17.179497 44.792675zM670.427714 782.239756h-97.144328a92.18518 92.18518 0 0 1 29.983948 68.145337 93.605352 93.605352 0 0 1-1.1453 14.316247 92.482958 92.482958 0 0 1-182.721128 0 93.605352 93.605352 0 0 1-1.1453-14.316247A92.18518 92.18518 0 0 1 448.388444 782.239756h-97.201593A172.940268 172.940268 0 0 0 337.294364 850.385093q0 7.238295 0.584103 14.316247a173.524371 173.524371 0 0 0 345.880536 0q0.584103-7.077953 0.584103-14.316247a172.940268 172.940268 0 0 0-13.915392-68.145337z" p-id="2715" /></symbol>'});l.a.add(n);e["default"]=n},c1f7:function(t,e,a){"use strict";var i,s,r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?a("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),a("sidebar",{staticClass:"sidebar-container"}),a("div",{staticClass:"main-container",class:{hasTagsView:t.needTagsView}},[a("div",{class:{"fixed-header":t.fixedHeader}},[a("navbar"),a("tags-view")],1),a("app-main")],1)],1)},l=[],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"navbar"},[a("div",{staticClass:"left-menu"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}})],1),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("span",{staticStyle:{"font-size":"12px"}},[t._v("欢迎您,"+t._s(t.employename))]),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[t._v(" 主页 ")])],1),a("el-dropdown-item",{attrs:{divided:""}},[a("span",{staticStyle:{display:"block"},on:{click:t.logout}},[t._v("注销")])]),a("router-link",{attrs:{to:"/console/Changpwd"}},[a("el-dropdown-item",[t._v(" 修改密码 ")])],1)],1)],1)],1)])},o=[],c=(a("96cf"),a("1da1")),d=a("be94"),m=a("2f62"),p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[a("svg",{staticClass:"hamburger",class:{"is-active":t.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"}})])])},u=[],h={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},f=h,g=(a("1009"),a("2877")),b=Object(g["a"])(f,p,u,!1,null,"7a082f33",null),w=b.exports,v={components:{Hamburger:w},data:function(){return{sumAmount:"",meslist:""}},computed:Object(d["a"])({},Object(m["b"])(["sidebar","avatar","employename","employeid","pastureid","departmentid","sumamount"])),created:function(){},methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("user/logout");case 2:t.$store.dispatch("tagsView/delAllViews").then((function(e){e.visitedViews;t.$router.push("/login}")}));case 3:case"end":return e.stop()}}),e)})))()}}},y=v,x=(a("ffb4"),a("b8a0"),Object(g["a"])(y,n,o,!1,null,"8284096a",null)),L=x.exports,_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:{"has-logo":t.showLogo}},[t.showLogo?a("logo",{attrs:{collapse:t.isCollapse}}):t._e(),a("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[a("el-menu",{attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!1,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},t._l(t.permission_routes,(function(t){return a("sidebar-item",{key:t.path,attrs:{item:t,"base-path":t.path}})})),1)],1)],1)},k=[],S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[i("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse?i("router-link",{key:"collapse",staticClass:"sidebar-logo-link",staticStyle:{background:"#fff"},attrs:{to:"/"}},[i("img",{staticClass:"sidebar-logo",attrs:{src:a("b189")}})]):i("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[i("img",{attrs:{src:a("6c5b")}})])],1)],1)},P=[],A={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{}}},C=A,$=(a("a4a2"),Object(g["a"])(C,S,P,!1,null,"61365b6c",null)),D=$.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.item.hidden?t._e():a("div",{staticClass:"menu-wrapper"},[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?a("el-submenu",{ref:"subMenu",attrs:{index:t.resolvePath(t.item.path),"popper-append-to-body":""}},[a("template",{slot:"title"},[t.item.meta?a("item",{attrs:{icon:t.item.meta&&t.item.meta.icon,title:t.item.meta.title}}):t._e()],1),t._l(t.item.children,(function(e){return["Changpwd"!=e.path&&"ChartPanel"!=e.path&&"Addboard"!=e.path?a("sidebar-item",{key:e.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.path)}}):t._e()]}))],2):[t.onlyOneChild.meta?a("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.path)}},[a("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.path)}},[a("item",{attrs:{icon:t.onlyOneChild.meta.icon||t.item.meta&&t.item.meta.icon,title:t.onlyOneChild.meta.title}})],1)],1):t._e()]],2)},F=[],q=(a("4de4"),a("df7c")),E=a.n(q),O=a("61f7"),N={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var a=e.props,i=a.icon,s=a.title,r=[];return i&&r.push(t("svg-icon",{attrs:{"icon-class":i}})),s&&r.push(t("span",{slot:"title"},[s])),r}},R=N,z=Object(g["a"])(R,i,s,!1,null,null,null),B=z.exports,M=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},j=[],V={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(O["a"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},I=V,H=Object(g["a"])(I,M,j,!1,null,null,null),U=H.exports,W={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var a=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&a(e)}}}}},K={name:"SidebarItem",components:{Item:B,AppLink:U},mixins:[W],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},a),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(O["a"])(t)?t:Object(O["a"])(this.basePath)?this.basePath:E.a.resolve(this.basePath,t)}}},G=K,Y=Object(g["a"])(G,T,F,!1,null,null,null),J=Y.exports,Q=a("cf1e"),Z=a.n(Q),X={components:{SidebarItem:J,Logo:D},computed:Object(d["a"])(Object(d["a"])({},Object(m["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var t=this.$route,e=t.meta,a=t.path;return e.activeMenu?e.activeMenu:a},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Z.a},isCollapse:function(){return!this.sidebar.opened}})},tt=X,et=Object(g["a"])(tt,_,k,!1,null,null,null),at=et.exports,it=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"app-main"},[a("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[a("keep-alive",{attrs:{include:t.cachedViews}},[a("router-view",{key:t.key})],1)],1)],1)},st=[],rt={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},lt=rt,nt=(a("0ea2"),a("028b"),Object(g["a"])(lt,it,st,!1,null,"c044908e",null)),ot=nt.exports,ct=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[a("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper"},t._l(t.visitedViews,(function(e){return a("router-link",{key:e.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:t.isActive(e)?"active":"",attrs:{to:{path:e.path,query:e.query,fullPath:e.fullPath,id:e.id},tag:"span"},nativeOn:{mouseup:function(a){return"button"in a&&1!==a.button?null:t.closeSelectedTag(e)},contextmenu:function(a){return a.preventDefault(),t.openMenu(e,a)}}},[t._v(" "+t._s(e.title)+" "),e.meta.affix?t._e():a("span",{staticClass:"el-icon-close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),t.closeSelectedTag(e)}}})])})),1),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:t.left+"px",top:t.top+"px"}},[a("li",{on:{click:function(e){return t.refreshSelectedTag(t.selectedTag)}}},[t._v("刷新")]),t.selectedTag.meta&&t.selectedTag.meta.affix?t._e():a("li",{on:{click:function(e){return t.closeSelectedTag(t.selectedTag)}}},[t._v("关闭")]),a("li",{on:{click:t.closeOthersTags}},[t._v("关闭其他")]),a("li",{on:{click:function(e){return t.closeAllTags(t.selectedTag)}}},[t._v("关闭所有")])])],1)},dt=[],mt=(a("a4d3"),a("e01a"),a("d28b"),a("99af"),a("4160"),a("fb6a"),a("45fc"),a("b0c0"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("159b"),a("ddb0"),a("2909")),pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(e){return e.preventDefault(),t.handleScroll(e)}}},[t._t("default")],2)},ut=[],ht=(a("c740"),4),ft={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},methods:{handleScroll:function(t){var e=t.wheelDelta||40*-t.deltaY,a=this.scrollWrapper;a.scrollLeft=a.scrollLeft+e/4},moveToTarget:function(t){var e=this.$refs.scrollContainer.$el,a=e.offsetWidth,i=this.scrollWrapper,s=this.$parent.$refs.tag,r=null,l=null;if(s.length>0&&(r=s[0],l=s[s.length-1]),r===t)i.scrollLeft=0;else if(l===t)i.scrollLeft=i.scrollWidth-a;else{var n=s.findIndex((function(e){return e===t})),o=s[n-1],c=s[n+1],d=c.$el.offsetLeft+c.$el.offsetWidth+ht,m=o.$el.offsetLeft-ht;d>i.scrollLeft+a?i.scrollLeft=d-a:m<i.scrollLeft&&(i.scrollLeft=m)}}}},gt=ft,bt=(a("d975"),Object(g["a"])(gt,pt,ut,!1,null,"31255e61",null)),wt=bt.exports,vt={components:{ScrollPane:wt},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(t){t?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(t){return t.path===this.$route.path},filterAffixTags:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var s=E.a.resolve(a,t.path);i.push({fullPath:s,path:s,name:t.name,id:t.id,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(i=[].concat(Object(mt["a"])(i),Object(mt["a"])(r)))}})),i},initTags:function(){var t=this.affixTags=this.filterAffixTags(this.routes),e=!0,a=!1,i=void 0;try{for(var s,r=t[Symbol.iterator]();!(e=(s=r.next()).done);e=!0){var l=s.value;l.name&&this.$store.dispatch("tagsView/addVisitedView",l)}}catch(n){a=!0,i=n}finally{try{e||null==r.return||r.return()}finally{if(a)throw i}}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var a=!0,i=!1,s=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(n),n.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(o){i=!0,s=o}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}}))},refreshSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delCachedView",t).then((function(){var a=t.fullPath;e.$nextTick((function(){e.$router.replace({path:"/redirect"+a})}))}))},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(a){var i=a.visitedViews;e.isActive(t)&&e.toLastView(i,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(a){var i=a.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(i,t)}))},toLastView:function(t,e){var a=t.slice(-1)[0];a?this.$router.push(a):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var a=105,i=this.$el.getBoundingClientRect().left,s=this.$el.offsetWidth,r=s-a,l=e.clientX-i+15;this.left=l>r?r:l,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},yt=vt,xt=(a("d6b8"),a("cfaa"),Object(g["a"])(yt,ct,dt,!1,null,"da2d6eb0",null)),Lt=xt.exports,_t=a("4360"),kt=document,St=kt.body,Pt=992,At={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&_t["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(_t["a"].dispatch("app/toggleDevice","mobile"),_t["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=St.getBoundingClientRect();return t.width-1<Pt},$_resizeHandler:function(){if(!document.hidden){var t=this.$_isMobile();_t["a"].dispatch("app/toggleDevice",t?"mobile":"desktop"),t&&_t["a"].dispatch("app/closeSideBar",{withoutAnimation:!0})}}}},Ct={name:"Layout",components:{Navbar:L,Sidebar:at,AppMain:ot,TagsView:Lt},mixins:[At],computed:{sidebar:function(){return this.$store.state.app.sidebar},device:function(){return this.$store.state.app.device},needTagsView:function(){return this.$store.state.settings.tagsView},fixedHeader:function(){return this.$store.state.settings.fixedHeader},classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}},methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},$t=Ct,Dt=(a("0c62"),Object(g["a"])($t,r,l,!1,null,"b1c0c66a",null));e["a"]=Dt.exports},c638:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=a("1c1e");function s(t){return Object(i["a"])({url:"/chart/delete",method:"POST",data:t})}},c653:function(t,e,a){var i={"./app.js":"d9cd","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function s(t){var e=r(t);return a(e)}function r(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}s.keys=function(){return Object.keys(i)},s.resolve=r,t.exports=s,s.id="c653"},c684:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"库存统计",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left",width:"250px","margin-bottom":"10px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left",width:"245px","margin-bottom":"10px"},attrs:{placeholder:"饲料名称"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-left":"10px","margin-bottom":"10px"},on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.table.listLoading,expression:"tab.table.listLoading"}],key:t.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bigcowclass))])]}}])}),a("el-table-column",{attrs:{label:"期初","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期初库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期初金额(元)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"用量","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"入库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"系统出库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"人工用料重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"损耗重量(kg)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"期末","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期末库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期末金额(元)","min-width":"120"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tab.table.total>=0,expression:"tab.table.total>=0"}],attrs:{total:t.tab.table.total,page:t.tab.table.getdataListParm.offset,limit:t.tab.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.tab.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.tab.table.getdataListParm,"pagecount",e)},pagination:t.getTabList}})],1)]),a("el-tab-pane",{attrs:{label:"用料分析",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab2.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("牲畜类别")]),a("el-radio",{attrs:{label:"2"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("日期")]),a("el-radio",{attrs:{label:"4"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("TMR设备编号")]),a("el-radio",{attrs:{label:"5"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("班次")]),a("el-radio",{attrs:{label:"6"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},[t._v("车次")]),t.tab2.isRadio1?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜类别"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),t.tab2.isRadio2?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),t.tab2.isRadio3?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"日期"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),t.tab2.isRadio4?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"TMR设备编号"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),t.tab2.isRadio5?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"班次"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),t.tab2.isRadio6?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"车次"},model:{value:t.tab2.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"source",e)},expression:"tab2.table.getdataListParm.parammaps.source"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("el-table",{attrs:{data:t.tab2.table.list,"max-height":"420"}},t._l(t.tab2.table.tableConfig,(function(e){return a("el-table-column",{key:e.id,attrs:{align:"center",label:e.label,prop:e.prop,width:e.width}},t._l(e.children,(function(i){return e.children||e.children.length>0?a("el-table-column",{key:i.id,attrs:{align:"center",label:i.label,prop:i.prop,width:i.width}},t._l(i.children,(function(e){return i.children||i.children.length>0?a("el-table-column",{key:e.id,attrs:{label:e.label,prop:e.prop,width:e.width}}):t._e()})),1):t._e()})),1)})),1)],1),a("el-tab-pane",{attrs:{label:"价格分析",name:"third"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab3.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:t.changeRadio3},model:{value:t.tab3.radio,callback:function(e){t.$set(t.tab3,"radio",e)},expression:"tab3.radio"}},[t._v("牲畜类别")]),a("el-radio",{attrs:{label:"2"},on:{change:t.changeRadio3},model:{value:t.tab3.radio,callback:function(e){t.$set(t.tab3,"radio",e)},expression:"tab3.radio"}},[t._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:t.changeRadio3},model:{value:t.tab3.radio,callback:function(e){t.$set(t.tab3,"radio",e)},expression:"tab3.radio"}},[t._v("日期")]),a("el-radio",{attrs:{label:"4"},on:{change:t.changeRadio3},model:{value:t.tab3.radio,callback:function(e){t.$set(t.tab3,"radio",e)},expression:"tab3.radio"}},[t._v("TMR设备编号")]),a("el-input",{staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:t.tab3.table.getdataListParm.parammaps.sourc3,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"sourc3",e)},expression:"tab3.table.getdataListParm.parammaps.sourc3"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("el-table",{attrs:{data:t.tab3.table.list,"max-height":"420"}},t._l(t.tab3.table.tableConfig,(function(e){return a("el-table-column",{key:e.id,attrs:{align:"center",label:e.label,prop:e.prop,width:e.width}},t._l(e.children,(function(i){return e.children||e.children.length>0?a("el-table-column",{key:i.id,attrs:{align:"center",label:i.label,prop:i.prop,width:i.width}},t._l(i.children,(function(e){return i.children||i.children.length>0?a("el-table-column",{key:e.id,attrs:{label:e.label,prop:e.prop,width:e.width}}):t._e()})),1):t._e()})),1)})),1)],1)],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c={name:"InventoryManagement",components:{Pagination:o["a"]},data:function(){return{fileComment:[{label:"商务文件评分",children:[{label:"1"},{label:"2"},{label:"管理员"}]}],activeName:"first",tab:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[],total:0,listLoading:!0}},tab2:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!0},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1,isRadio5:!1,isRadio6:!1},tab3:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!0},radio:"1"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList()},methods:{handleTabClick:function(){"first"==this.activeName?this.getTabList():"second"==this.activeName?this.getTab2List():"third"==this.activeName&&this.getTab3List()},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(r["d"])(this.tab.table.getdataListParm).then((function(e){console.log("库存统计table数据",e.data.list),null!==e.data.list?(t.tab.table.list=e.data.list,t.tab.table.total=e.data.total):t.tab.table.list=[],setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},handleSearch:function(){},handleExport:function(){},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(r["d"])(this.tab2.table.getdataListParm).then((function(e){console.log("库存统计table数据",e.data.list),t.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],t.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"牲畜类别",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}],setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},changeRadio2:function(){console.log(this.tab.radio),"1"==this.tab2.radio?(this.tab2.isRadio1=!0,this.tab2.isRadio2=!1,this.tab2.isRadio3=!1,this.tab2.isRadio4=!1,this.tab2.isRadio5=!1,this.tab2.isRadio6=!1,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"牲畜类别",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"2"==this.tab2.radio?(this.tab2.isRadio1=!1,this.tab2.isRadio2=!0,this.tab2.isRadio3=!1,this.tab2.isRadio4=!1,this.tab2.isRadio5=!1,this.tab2.isRadio6=!1,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"栏舍名称",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"3"==this.tab2.radio?(this.tab2.isRadio1=!1,this.tab2.isRadio2=!1,this.tab2.isRadio3=!0,this.tab2.isRadio4=!1,this.tab2.isRadio5=!1,this.tab2.isRadio6=!1,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"日期",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"4"==this.tab2.radio?(this.tab2.isRadio1=!1,this.tab2.isRadio2=!1,this.tab2.isRadio3=!1,this.tab2.isRadio4=!0,this.tab2.isRadio5=!1,this.tab2.isRadio6=!1,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"TMR设备编号",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"5"==this.tab2.radio?(this.tab2.isRadio1=!1,this.tab2.isRadio2=!1,this.tab2.isRadio3=!1,this.tab2.isRadio4=!1,this.tab2.isRadio5=!0,this.tab2.isRadio6=!1,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"班次",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"6"==this.tab2.radio&&(this.tab2.isRadio1=!1,this.tab2.isRadio2=!1,this.tab2.isRadio3=!1,this.tab2.isRadio4=!1,this.tab2.isRadio5=!1,this.tab2.isRadio6=!0,this.tab2.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab2.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"车次",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}])},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,Object(r["d"])(this.tab3.table.getdataListParm).then((function(e){console.log("库存统计table数据",e.data.list),t.tab3.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],t.tab3.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"牲畜类别",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}],setTimeout((function(){t.tab3.table.listLoading=!1}),100)}))},changeRadio3:function(){console.log(this.tab.radio),"1"==this.tab3.radio?(this.tab3.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab3.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"牲畜类别",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"2"==this.tab3.radio?(this.tab3.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab3.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"栏舍名称",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"3"==this.tab3.radio?(this.tab3.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab3.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"日期",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}]):"4"==this.tab3.radio&&(this.tab3.table.list=[{districtName:10,timeDimension1:"00001",timeDimension2:"00002",timeDimension3:"00003",timeDimension4:"00004"},{districtName:11,timeDimension1:"11111",timeDimension2:"11112",timeDimension3:"11113",timeDimension4:"11114"},{districtName:12,timeDimension1:"22221",timeDimension2:"22222",timeDimension3:"22223",timeDimension4:"22224"},{districtName:13,timeDimension1:"33331",timeDimension2:"33332",timeDimension3:"33333",timeDimension4:"33334"}],this.tab3.table.tableConfig=[{id:90,label:"饲料名称",prop:"",width:"",children:[{id:91,label:"TMR设备编号",prop:"districtName",width:""}]},{id:100,label:"饲料01",prop:"",width:"",children:[{id:101,label:"理论",prop:"timeDimension1",width:""},{id:102,label:"实际",prop:"timeDimension2",width:""},{id:103,label:"误差值",prop:"timeDimension2",width:""},{id:104,label:"误差率",prop:"timeDimension2",width:""}]},{id:110,label:"饲料02",prop:"",width:"",children:[{id:111,label:"理论",prop:"timeDimension3",width:""},{id:112,label:"实际",prop:"timeDimension4",width:""},{id:113,label:"误差值",prop:"timeDimension2",width:""},{id:114,label:"误差率",prop:"timeDimension2",width:""}]}])}}},d=c,m=(a("6270"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"5cf36ac6",null);e["default"]=p.exports},c989:function(t,e,a){"use strict";var i=a("3392"),s=a.n(i);s.a},c9ed:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-file3",use:"icon-file3-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file3"><defs><style type="text/css"></style></defs><path d="M848.8576 199.1936H415.7568c0-26.5728-21.5424-48.128-48.128-48.128H175.1424c-26.5728 0-48.128 21.5424-48.128 48.128V343.5648c0 26.5984 21.5424 48.1408 48.128 48.1408h673.728c26.5728 0 48.128-21.5424 48.128-48.1408v-96.2432c-0.0128-26.5856-21.5552-48.128-48.1408-48.128z" fill="#CCA352" p-id="8967" /><path d="M800.7424 247.3088H223.2576c-26.5728 0-48.128 21.5424-48.128 48.128v48.128c0 26.5984 21.5424 48.1408 48.128 48.1408h577.472c26.5728 0 48.128-21.5424 48.128-48.1408v-48.128c0-26.5728-21.5424-48.128-48.1152-48.128z" fill="#FFFFFF" p-id="8968" /><path d="M848.8576 295.4368H175.1424c-26.5728 0-48.128 21.5424-48.128 48.128v481.2544c0 26.5472 21.5424 48.128 48.128 48.128h673.728c26.5728 0 48.128-21.568 48.128-48.128V343.552c-0.0128-26.5728-21.5552-48.1152-48.1408-48.1152z" fill="#FFCC66" p-id="8969" /></symbol>'});l.a.add(n);e["default"]=n},cad6:function(t,e,a){"use strict";var i=a("84f5"),s=a.n(i);s.a},caed:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_table",use:"icon-chart_table-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_table"><defs><style type="text/css"></style></defs><path d="M128 412.444h768v85.334H128z m0 199.112h768v85.333H128z" fill="#29C287" p-id="1693" /><path d="M113.778 184.889V839.11h796.444V184.89H113.778z m28.444 625.778v-512h227.556v512H142.222z m256 0v-512h256v512h-256z m483.556 0H682.667v-512h199.11v512z" fill="#706EE7" p-id="1694" /></symbol>'});l.a.add(n);e["default"]=n},caf8:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-粪便筛",use:"icon-粪便筛-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-粪便筛"><defs><style type="text/css"></style></defs><path d="M675.328 117.717333a21.333333 21.333333 0 0 1-16.341333 39.402667A382.762667 382.762667 0 0 0 512 128C299.925333 128 128 299.925333 128 512s171.925333 384 384 384 384-171.925333 384-384c0-51.114667-9.984-100.8-29.12-146.986667a21.333333 21.333333 0 0 1 39.402667-16.341333A425.429333 425.429333 0 0 1 938.666667 512c0 235.648-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333c56.746667 0 112 11.093333 163.328 32.384zM682.666667 384H362.666667l106.666666 142.229333v220.309334a21.333333 21.333333 0 1 1-42.666666 0.064v-206.165334L328.533333 409.6c-24.682667-32.896-7.104-68.266667 34.026667-68.266667h320.213333c41.130667 0 58.794667 35.264 34.026667 68.266667L618.666667 540.437333V640a21.333333 21.333333 0 1 1-42.666667-0.064v-113.706667L682.666667 384z" fill="#ffffff" p-id="25308" /></symbol>'});l.a.add(n);e["default"]=n},cafe:function(t,e,a){},cb9d:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[t._v(" 价格分析 ")])},s=[],r={name:"PriceAnalysis",data:function(){return{}},created:function(){},methods:{}},l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},cba3:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-首页",use:"icon-首页-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-首页"><defs><style type="text/css"></style></defs><path d="M960.856566 463.515152L586.294949 88.824242c-20.428283-20.428283-47.450505-31.547475-76.282828-31.547474s-55.854545 11.248485-76.282828 31.547474L63.046465 459.636364c-9.050505 9.050505-9.050505 23.789899 0 32.969697 9.050505 9.050505 23.789899 9.050505 32.969697 0l38.141414-38.141415v369.519192c0 38.141414 14.610101 73.955556 41.115151 100.848485 26.634343 27.022222 62.319192 42.020202 100.460606 42.020202h469.333334c79.127273 0 143.515152-64.129293 143.515151-142.868687V456.921212l39.434344 39.434344c4.525253 4.525253 10.472727 6.852525 16.420202 6.852525s11.894949-2.327273 16.420202-6.852525c9.179798-9.050505 9.179798-23.789899 0-32.840404zM621.20404 920.177778h-218.50505v-250.828283c0-9.309091 7.49899-16.808081 16.808081-16.808081h184.888889c9.309091 0 16.808081 7.49899 16.80808 16.808081v250.828283z m220.832324-96.323233c0 53.139394-43.442424 96.323232-96.969697 96.323233h-77.317172v-250.828283c0-34.909091-28.444444-63.353535-63.353535-63.353535h-184.888889c-34.909091 0-63.353535 28.444444-63.353536 63.353535v250.828283h-80.549495c-52.363636 0-95.030303-43.183838-95.030303-96.323233v-415.030303H179.668687l287.030303-287.030303c11.636364-11.636364 27.022222-17.971717 43.313131-17.971717s31.806061 6.335354 43.313132 17.971717l288.581818 288.581819v413.478787z" fill="#ffffff" p-id="5216" /></symbol>'});l.a.add(n);e["default"]=n},cbee:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方模板",use:"icon-配方模板-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方模板"><defs><style type="text/css"></style></defs><path d="M800 368V208c0-52.8-43.2-96-96-96h-128V80H320v32h-128c-52.8 0-96 43.2-96 96v640c0 52.8 43.2 96 96 96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H192c-17.6 0-32-14.4-32-32V208c0-17.6 14.4-32 32-32h128v32h256v-32h128c17.6 0 32 14.4 32 32v160c0 17.6 14.4 32 32 32s32-14.4 32-32z" p-id="21825" fill="#ffffff" /><path d="M256 352h384c17.6 0 32-14.4 32-32s-14.4-32-32-32H256c-17.6 0-32 14.4-32 32s14.4 32 32 32zM480 432H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM480 576H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM480 720H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM928 640h-128c-17.6 0-32 14.4-32 32v240c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32V672c0-17.6-14.4-32-32-32z m-32 240h-64V704h64v176zM928 432h-128c-17.6 0-32 14.4-32 32v112c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32v-112c0-17.6-14.4-32-32-32z m-32 112h-64v-48h64v48zM704 432h-128c-17.6 0-32 14.4-32 32v240c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32V464c0-17.6-14.4-32-32-32z m-32 240h-64V496h64v176zM704 768h-128c-17.6 0-32 14.4-32 32v112c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32v-112c0-17.6-14.4-32-32-32z m-32 112h-64v-48h64v48z" p-id="21826" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},cde0:function(t,e,a){},cdee:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"panel-header",staticStyle:{"margin-bottom":"20px"},attrs:{"body-style":"padding:0;"}},[a("div",{staticStyle:{display:"flex","justify-content":"space-between"},attrs:{slot:"header"},slot:"header"},[a("span",[a("span",{staticClass:"back-button",on:{click:function(e){return t.$router.push({name:"BoardEchartManagement",params:{tab:"second"}})}}},[a("i",{staticClass:"el-icon-back"}),a("span",[t._v("返回")])]),"create"==this.$route.params.id?a("span",[t._v("新增图表")]):t._e(),"view"==this.$route.params.isEdit?a("span",[t._v("查看图表")]):t._e(),"edit"==this.$route.params.isEdit&&"create"!=this.$route.params.id?a("span",[t._v("编辑图表")]):t._e()]),a("span",[t._e(),"edit"==this.$route.params.isEdit?a("el-button",{staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{size:"mini",type:"primary"},on:{click:t.handleLinkDB}},[t._v("添加到仪表盘")]):t._e(),"edit"==this.$route.params.isEdit?a("el-button",{staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{size:"mini",type:"primary",icon:"el-icon-save"},on:{click:t.handleSave}},[t._v("保存")]):t._e(),t._e()],1)])]),a("div",{staticClass:"app-container",staticStyle:{display:"flex"}},[a("el-card",{staticStyle:{width:"300px","margin-right":"20px","text-align":"center"},attrs:{id:"dataPanel"}},[a("data-panel",{ref:"dataPanel",attrs:{"result-loading":t.loading,"data-src":t.dataSrc,isEdit:this.$route.params.isEdit||this.$store.state.user.dashchartidisedit},on:{change:t.handleDataSrcChange}})],1),a("el-card",{staticStyle:{width:"100%"},attrs:{"body-style":"padding: 10px 20px;"}},[a("div",{staticClass:"form-wrapper"},[a("el-form",{staticClass:"analysis-form",attrs:{id:"formPanel",size:"mini"}},[a("el-form-item",{attrs:{id:"dimensionInput",label:"维度"}},[a("draggable",{staticClass:"draggable-wrapper",attrs:{group:{name:"col",pull:!0,put:!0}},on:{change:t.handleDimensionChange},model:{value:t.sharedState.dimensions,callback:function(e){t.$set(t.sharedState,"dimensions",e)},expression:"sharedState.dimensions"}},t._l(t.sharedState.dimensions,(function(e){return a("el-tag",{key:e.Column,staticClass:"draggable-item",attrs:{size:"small",closable:""},on:{close:function(a){return t.handleCloseDimensionTag(e)}}},[t._v(" "+t._s(e.Comment)+" ")])})),1)],1),a("el-form-item",{attrs:{id:"fieldInput",label:"数值(主)"}},[a("draggable",{staticClass:"draggable-wrapper",attrs:{group:{name:"col",pull:!0,put:!0}},on:{change:t.handleColChange},model:{value:t.sharedState.caculCols,callback:function(e){t.$set(t.sharedState,"caculCols",e)},expression:"sharedState.caculCols"}},t._l(t.sharedState.caculCols,(function(e){return a("el-tag",{key:e.Column,staticClass:"selected-field",attrs:{size:"small",closable:""},on:{close:function(a){return t.handleCloseColTag(e)}}},[a("el-select",{staticClass:"draggable-item",staticStyle:{background:"rgba(0,0,0,0)"},attrs:{size:"mini",closable:""},model:{value:e.calculFunc,callback:function(a){t.$set(e,"calculFunc",a)},expression:"col.calculFunc"}},t._l(e.availableFunc,(function(t,i){return a("el-option",{key:i,attrs:{label:e.Comment+"("+t.name+")",value:t.func}})})),1)],1)})),1)],1),a("el-form-item",{attrs:{id:"fieldInput2",label:"数值(次)"}},[a("draggable",{staticClass:"draggable-wrapper",attrs:{group:{name:"col",pull:!0,put:!0}},on:{change:t.handleColChange2},model:{value:t.sharedState.caculCols2,callback:function(e){t.$set(t.sharedState,"caculCols2",e)},expression:"sharedState.caculCols2"}},t._l(t.sharedState.caculCols2,(function(e){return a("el-tag",{key:e.Column,staticClass:"selected-field",attrs:{size:"small",closable:""},on:{close:function(a){return t.handleCloseColTag2(e)}}},[a("el-select",{staticClass:"draggable-item",staticStyle:{background:"rgba(0,0,0,0)"},attrs:{size:"mini",closable:""},model:{value:e.calculFunc,callback:function(a){t.$set(e,"calculFunc",a)},expression:"col.calculFunc"}},t._l(e.availableFunc,(function(t,i){return a("el-option",{key:i,attrs:{label:e.Comment+"("+t.name+")",value:t.func}})})),1)],1)})),1)],1),a("orderPanel",{model:{value:t.orderByStrs,callback:function(e){t.orderByStrs=e},expression:"orderByStrs"}}),a("filterPanel",{attrs:{filters:t.currentFilters,disabled:!t.allSelected||0===t.allSelected.length},on:{"update:filters":function(e){t.currentFilters=e},change:t.handleAddFilter}}),a("el-form-item",[a("div",{staticClass:"limit-input"},[a("span",{directives:[{name:"show",rawName:"v-show",value:!t.editLimit,expression:"!editLimit"}]},[t._v(" "+t._s(t.$t("chart.limit",[t.limit]))+" "),a("el-button",{attrs:{type:"text"},on:{click:function(e){t.editLimit=!0}}},[t._v(t._s(t.$t("common.edit")))])],1),a("span",{directives:[{name:"show",rawName:"v-show",value:t.editLimit,expression:"editLimit"}]},[a("el-input-number",{staticStyle:{width:"100px"},attrs:{disabled:t.loading,size:"mini",max:6e4},on:{blur:function(e){t.editLimit=!1}},model:{value:t.limit,callback:function(e){t.limit=e},expression:"limit"}}),a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.editLimit=!1}}},[t._v("确认")])],1)])])],1),a("el-form",{staticClass:"chart-form",attrs:{size:"mini","label-position":"top"}},[a("el-form-item",{attrs:{label:"图表名称:"}},[a("el-input",{attrs:{size:"mini",placeholder:t.$t("chart.namePlaceholder")},model:{value:t.chartName,callback:function(e){t.chartName=e},expression:"chartName"}})],1),a("el-form-item",{attrs:{label:"图表描述:"}},[a("el-input",{attrs:{size:"mini",placeholder:t.$t("chart.descPlaceholder")},model:{value:t.chartDesc,callback:function(e){t.chartDesc=e},expression:"chartDesc"}})],1)],1)],1),a("visualize-panel",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{id:"vizPanel",data:t.result,"chart-type":t.chartType,schema:t.allSelected},on:{"update:chartType":function(e){t.chartType=e},"update:chart-type":function(e){t.chartType=e}}})],1)],1),a("el-dialog",{attrs:{title:t.$t("chart.myChart"),visible:t.showMyCharts},on:{"update:visible":function(e){t.showMyCharts=e}}},[a("el-table",{attrs:{data:t.myChartList}},[a("el-table-column",{attrs:{label:t.$t("chart.chartName"),width:"200",prop:"chart_name"}}),a("el-table-column",{attrs:{label:t.$t("chart.chartDesc"),prop:"desc"}}),a("el-table-column",{attrs:{label:t.$t("common.operation"),width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(a){return t.switchChart(e.row)}}},[t._v(" "+t._s(t.$t("common.edit"))+" ")]),a("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(a){return t.deleteChart(e.row)}}},[t._v(" "+t._s(t.$t("common.delete"))+" ")])]}}])})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){t.showMyCharts=!1}}},[t._v(t._s(t.$t("common.close")))])],1)],1),a("el-dialog",{attrs:{title:"仪表盘列表",visible:t.showDashboards,width:"390px"},on:{"update:visible":function(e){t.showDashboards=e}}},[a("p",{staticStyle:{"margin-right":"110px"}},[t._v("请选择仪表盘")]),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-select",{attrs:{size:"small"},model:{value:t.selectedDb,callback:function(e){t.selectedDb=e},expression:"selectedDb"}},t._l(t.dashboardList,(function(t){return a("el-option",{key:t.objectId,attrs:{label:t.name,value:t.dashboard_id}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.showDashboards=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.linkDb}},[t._v("添加到仪表盘")])],1)]),t._e()],1)},s=[],r=(a("99af"),a("7db0"),a("d81d"),a("13d5"),a("d3b7"),a("ac1f"),a("5319"),a("1276"),a("310e")),l=a.n(r),n=a("c24c"),o=a.n(n),c=(a("01d7"),a("2934")),d=a("ef81"),m=a("88fe"),p=a("4ab3"),u=a("e4fd"),h=a("a78e"),f=a.n(h),g=a("c638"),b=a("5fd4"),w=a("f77d"),v=a("ed08"),y=a("a5e0"),x=a("9225"),L=[{element:"#dataPanel",popover:{title:x["a"].t("guide.dataPanel"),description:x["a"].t("guide.dataPanelDesc"),position:"right"}},{element:"#formPanel",popover:{title:x["a"].t("guide.formPanel"),description:x["a"].t("guide.formPanelDesc"),position:"bottom"}},{element:"#dimensionInput",popover:{title:x["a"].t("guide.dimensionInput"),description:x["a"].t("guide.dimensionInputDesc"),position:"top"}},{element:"#fieldInput",popover:{title:x["a"].t("guide.fieldInput"),description:x["a"].t("guide.fieldInputDesc"),position:"bottom"}},{element:"#vizPanel",popover:{title:x["a"].t("guide.vizPanel"),description:x["a"].t("guide.vizPanelDesc"),position:"top"}}],_=L,k=a("3537"),S=new o.a,P={name:"ChartPanel",components:{visualizePanel:p["default"],dataPanel:u["default"],draggable:l.a,filterPanel:d["default"],orderPanel:m["default"]},data:function(){return{loading:!1,result:[],dataSrc:{},limit:200,orderByStrs:[],filterStr:void 0,editLimit:!1,currentFilters:[],sharedState:k["a"].state,chartType:"table",chartName:void 0,chartDesc:void 0,showMyCharts:!1,myChartList:[],showDashboards:!1,dashboardList:[],selectedDb:void 0,linkedDbIds:[],execInstance:null,LastInsertId:""}},computed:{allSelected:function(){return k["a"].state.dimensions.concat(k["a"].state.caculCols).concat(k["a"].state.caculCols2)},sqlSentence:function(){return Object(y["b"])({dataSrc:this.dataSrc.table,selectedCalcul:this.sharedState.caculCols,selectedCalcul2:this.sharedState.caculCols2,selectedDimension:this.sharedState.dimensions,orderByStrs:this.orderByStrs,filterStr:this.filterStr,limit:this.limit})}},watch:{sqlSentence:function(t){t?this.fetchData(t):this.result=[]},"$route.params.id":{immediate:!0,handler:function(){var t=this;if(console.log("this.$route.params.id=====================",this.$route.params.id),"create"!==this.$route.params.id)if(console.log("我是编辑图表哦~~~"),console.log("this.$route.params.id",this.$route.params.id),console.log("localStorage==========",localStorage.getItem("ChartPanelIsEditId")),console.log("this.$store.state.user.dashchartid==========",this.$store.state.user.dashchartid),this.$route.params.id){console.log("我是编辑图表第一次跳转~~~");var e={name:"getChartDetail",parammaps:{pastureid:f.a.get("pastureid"),id:this.$route.params.id}};Object(c["d"])(e).then((function(e){console.log("图表数据",e.data.list);var a=e.data.list[0];t.chartName=a.chart_name,t.chartDesc=a.desc;var i=JSON.parse(a.content)||{};t.dataSrc.table=i.dataSrc,t.dataSrc.source_id=a.source_id,t.chartType=i.chartType,t.limit=i.limit||200,t.currentFilters=i.filters,t.orderByStrs=i.orderByStrs,k["a"].setCaculColsAction(i.selectedCalcul),k["a"].setCaculColsAction2(i.selectedCalcul2),k["a"].setDimensionsAction(i.selectedDimension),t.$refs.dataPanel.initWithDataSrc(t.dataSrc)}))}else{console.log("我是编辑图表切换跳转~~~");e={name:"getChartDetail",parammaps:{pastureid:f.a.get("pastureid"),id:localStorage.getItem("ChartPanelIsEditId")}};Object(c["d"])(e).then((function(e){console.log("图表数据",e.data.list);var a=e.data.list[0];t.chartName=a.chart_name,t.chartDesc=a.desc;var i=JSON.parse(a.content)||{};t.dataSrc.table=i.dataSrc,t.dataSrc.source_id=a.source_id,t.chartType=i.chartType,t.limit=i.limit||200,t.currentFilters=i.filters,t.orderByStrs=i.orderByStrs,k["a"].setCaculColsAction(i.selectedCalcul),k["a"].setCaculColsAction2(i.selectedCalcul2),k["a"].setDimensionsAction(i.selectedDimension),t.$refs.dataPanel.initWithDataSrc(t.dataSrc)}))}else console.log("我是新增图标哦~~~"),this.chartName=void 0,this.chartDesc=void 0,k["a"].setCaculColsAction([]),k["a"].setCaculColsAction2([]),k["a"].setDimensionsAction([]),this.$nextTick((function(){t.$refs.dataPanel.initWithDataSrc()}))}}},created:function(){},methods:{fetchData:function(t){var e=this;this.loading&&this.execInstance&&this.execInstance.cancel(),this.loading=!0,this.execInstance=Object(w["a"])(),this.sharedState.caculCols2.map((function(t){return t.is_second=!0}));var a={dataSrc:this.dataSrc.table,source_id:this.dataSrc.source_id,orderByStrs:this.orderByStrs,limit:this.limit,selectedCalcul:this.sharedState.caculCols,selectedCalcul2:this.sharedState.caculCols2,selectedDimension:this.sharedState.dimensions,chartType:this.chartType,filters:this.currentFilters},i={source_id:this.dataSrc.source_id,content:a,pastureid:f.a.get("pastureid")};Object(c["a"])(i).then((function(t){console.log("ExeSql发的数据======",i),console.log("图的数据",t.data.list),null!==t.data?(e.loading=!1,e.result=t.data):(e.loading=!1,e.result=[])}))},handleDataSrcChange:function(t){console.log("dataSrc======================",t),this.dataSrc=t,k["a"].setCaculColsAction([]),k["a"].setCaculColsAction2([]),k["a"].setDimensionsAction([]),this.filterStr=void 0,this.orderByStrs=[]},handleColChange:function(t){t.added&&k["a"].addCaculColAction(t.added.element)},handleColChange2:function(t){t.added&&k["a"].addCaculColAction2(t.added.element)},handleDimensionChange:function(t){console.log("handleDimensionChange的evt",t),t.added&&k["a"].addDimensionAction(t.added.element)},handleCloseColTag:function(t){k["a"].deleteCaculColAction(t)},handleCloseColTag2:function(t){k["a"].deleteCaculColAction2(t)},handleCloseDimensionTag:function(t){k["a"].deleteDimensionAction(t)},handleAddFilter:function(t){this.filterStr=t},handleSave:function(){var t=this;if(this.chartName){var e="create"===localStorage.getItem("ChartPanelIsEditId")?void 0:localStorage.getItem("ChartPanelIsEditId"),a={dataSrc:this.dataSrc.table,source_id:this.dataSrc.source_id,orderByStrs:this.orderByStrs,limit:this.limit,selectedCalcul:this.sharedState.caculCols,selectedCalcul2:this.sharedState.caculCols2,selectedDimension:this.sharedState.dimensions,chartType:this.chartType,filters:this.currentFilters},i={name:"insertChart",parammaps:{id:e,cname:this.chartName,source_id:this.dataSrc.source_id,desc:this.chartDesc,display:this.chartDesc,pastureid:f.a.get("pastureid"),empid:f.a.get("employeid"),emp:f.a.get("employename"),content:a}},s={name:"updateChartV2",parammaps:{id:e,cname:this.chartName,source_id:this.dataSrc.source_id,desc:this.chartDesc,display:this.chartDesc,pastureid:f.a.get("pastureid"),empid:f.a.get("employeid"),emp:f.a.get("employename"),content:a}};e?Object(c["f"])(s).then((function(e){console.log("编辑保存发送参数",i),t.$message({type:"success",message:t.$t("common.saveSuccess")})})):Object(c["f"])(i).then((function(e){console.log("新增保存发送参数",i),t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.LastInsertId=e.data.LastInsertId}))}else this.$message({type:"warning",message:this.$t("chart.chartNameWarning")})},handleLinkDB:function(){var t=this;this.showDashboards=!0;var e={name:"getdashboards",parammaps:{pastureid:f.a.get("pastureid"),empid:f.a.get("employeid"),emp:f.a.get("employename")}};Object(c["i"])(e).then((function(e){console.log("看板列表数据:",e),t.dashboardList=e.data.list}))},getDbByChart:function(t){var e=this;Object(b["a"])(t).then((function(t){e.linkedDbIds=t.data||[]}))},isDbDisbaled:function(t){return!!this.linkedDbIds.find((function(e){return e===t.objectId}))},linkDb:function(){var t=this;this.showDashboards=!1,console.log(this.$route.params.id),console.log("仪表盘列表ID:",this.selectedDb);var e=localStorage.getItem("ChartPanelIsEditId");e="create"==e?this.LastInsertId:localStorage.getItem("ChartPanelIsEditId");var a={name:"insertdashboard_chart",parammaps:{did:this.selectedDb,cid:e,pastureid:f.a.get("pastureid")}};Object(c["f"])(a).then((function(e){console.log("看板保存发送参数",a),t.$message({type:"success",message:t.$t("common.saveSuccess")})}))},viewAllChart:function(){this.showMyCharts=!0,this.myChartList=[{name:"kook",desc:"",content:'{"layout": [{"id": "035573f4-bf71-4472-814a-f1747b6bd8e0", "x": 0, "y": 7, "w": 5, "h": 6, "i": "035573f4-bf71-4472-814a-f1747b6bd8e0", "moved": false, "yOffSet": 13, "xOffSet": 5, "bottomLine": [[0, 13], [5, 13]], "topLine": [[0, 7], [5, 7]]}, {"id": "02c012be-db57-431b-b9aa-40d1640a2592", "x": 2, "y": 29, "w": 7, "h": 6, "i": "02c012be-db57-431b-b9aa-40d1640a2592", "yOffSet": 35, "xOffSet": 9, "bottomLine": [[2, 35], [9, 35]], "topLine": [[2, 29], [9, 29]], "moved": false}, {"id": "087df61d-b02e-49a5-a954-b2d9124df685", "x": 6, "y": 0, "w": 7, "h": 7, "i": "087df61d-b02e-49a5-a954-b2d9124df685", "moved": false, "yOffSet": 7, "xOffSet": 13, "bottomLine": [[6, 7], [13, 7]], "topLine": [[6, 0], [13, 0]]}, {"id": "045ad6b0-8f7e-47db-92a7-8c4a31b7683d", "x": 5, "y": 16, "w": 10, "h": 6, "i": "045ad6b0-8f7e-47db-92a7-8c4a31b7683d", "moved": false, "yOffSet": 22, "xOffSet": 15, "bottomLine": [[5, 22], [15, 22]], "topLine": [[5, 16], [15, 16]]}, {"id": "182d02ef-ced5-4ded-a648-630c94f4a790", "x": 9, "y": 22, "w": 9, "h": 9, "i": "182d02ef-ced5-4ded-a648-630c94f4a790", "moved": false, "yOffSet": 31, "xOffSet": 18, "bottomLine": [[9, 31], [18, 31]], "topLine": [[9, 22], [18, 22]]}, {"id": "0755ae6e-6869-4e09-8630-62dd3118a2fc", "x": 0, "y": 0, "w": 6, "h": 7, "i": "0755ae6e-6869-4e09-8630-62dd3118a2fc", "moved": false, "yOffSet": 7, "xOffSet": 6, "bottomLine": [[0, 7], [6, 7]], "topLine": [[0, 0], [6, 0]]}, {"id": "3e4408f1-67c2-45c7-8315-136a6eec6980", "x": 5, "y": 22, "w": 4, "h": 7, "i": "3e4408f1-67c2-45c7-8315-136a6eec6980", "moved": false, "yOffSet": 29, "xOffSet": 9, "bottomLine": [[5, 29], [9, 29]], "topLine": [[5, 22], [9, 22]]}, {"id": "00af7fdb-b486-4855-ac7c-85014d283f2c", "x": 5, "y": 7, "w": 5, "h": 9, "i": "00af7fdb-b486-4855-ac7c-85014d283f2c", "moved": false, "yOffSet": 16, "xOffSet": 10, "bottomLine": [[5, 16], [10, 16]], "topLine": [[5, 7], [10, 7]]}, {"id": "3e39e265-684b-4d62-be3c-4613fd8730cd", "x": 14, "y": 7, "w": 8, "h": 9, "i": "3e39e265-684b-4d62-be3c-4613fd8730cd", "moved": false}]}',is_private:!0,status:1,creator:1,created_at:"2020-05-13T06:08:39.438Z",updated_at:"2020-09-14T07:48:58.477Z",dashboard_id:"dd02cfe9-8ee9-48fa-83b3-98b604d87b57"}]},switchChart:function(t){var e=this;this.$confirm(this.$t("chart.beforeLeaveConfirm"),this.$t("common.confirm")).then((function(){e.$router.replace("/chartpanel/".concat(t.chart_id)),e.showMyCharts=!1}))},deleteChart:function(t){var e=this;this.$confirm(this.$t("chart.deleteConfirm",t.chart_name),this.$t("common.confirm")).then((function(){Object(g["a"])({chart_id:t.chart_id}).then((function(){localStorage.getItem("ChartPanelIsEditId")===t.chart_id?(e.$router.push("/chartpanel/create"),e.showMyCharts=!1):e.viewAllChart(),e.$message({type:"success",message:e.$t("common.deleteSuccess")})}))}))},handleHelp:function(t){"guide"===t&&(S.defineSteps(_),S.start())},handleDownload:function(){var t=this;Promise.all([a.e("chunk-4de06b78"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.allSelected.map((function(t){return t.Column})),i=a,s=t.formatJson(i,t.result);e.export_json_to_excel({header:a,data:s,filename:"DataExport"+Object(v["e"])(Date.now(),"{m}{d}{h}{i}{s}"),autoWidth:!0})}))},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){var a=t.split(".");return a.length<=1?e[t]:a.reduce((function(t,e){return t[e]?t[e]:"--"}),e)}))}))}}},A=P,C=(a("6b2e"),a("2877")),$=Object(C["a"])(A,i,s,!1,null,"d2e054c2",null);e["default"]=$.exports},ce24:function(t,e,a){},ced4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),a("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit(e)}],blur:t.doneEdit}})])},s=[],r=(a("498a"),{name:"Todo",directives:{focus:function(t,e,a){var i=e.value,s=a.context;i&&s.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,a=t.value;this.$emit("editTodo",{todo:e,value:a})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),a=this.todo;e?this.editing&&(this.editTodo({todo:a,value:e}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}}),l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},cf1e:function(t,e,a){t.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},cfaa:function(t,e,a){"use strict";var i=a("e1eb"),s=a.n(i);s.a},d05e:function(t,e,a){},d0b6:function(t,e,a){},d25d:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-准确性分析",use:"icon-准确性分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-准确性分析"><defs><style type="text/css"></style></defs><path d="M735.658667 170.666667H288.298667A117.76 117.76 0 0 0 170.666667 288.298667v447.402666a117.76 117.76 0 0 0 117.632 117.632H405.333333a21.333333 21.333333 0 0 0 0-42.666666H288.298667A75.050667 75.050667 0 0 1 213.333333 735.701333V288.298667c0-41.344 33.621333-74.965333 74.965334-74.965334h447.36c41.386667 0 75.008 33.621333 75.008 74.965334v289.493333a21.333333 21.333333 0 1 0 42.666666 0V288.298667A117.76 117.76 0 0 0 735.658667 170.666667" p-id="16768" fill="#ffffff" /><path d="M516.266667 271.616l-133.461334 128.853333L332.8 348.629333a21.333333 21.333333 0 0 0-30.72 29.653334L366.933333 445.44a21.205333 21.205333 0 0 0 30.165334 0.512l148.821333-143.616a21.333333 21.333333 0 1 0-29.653333-30.677333M704 385.792a21.333333 21.333333 0 0 0 0-42.666667h-126.250667a21.333333 21.333333 0 0 0 0 42.666667H704zM321.749333 723.541333h170.666667a21.333333 21.333333 0 0 0 0-42.666666h-170.666667a21.333333 21.333333 0 0 0 0 42.666666M300.416 535.125333a21.333333 21.333333 0 0 0 21.333333 21.333334H704a21.333333 21.333333 0 0 0 0-42.666667H321.749333a21.333333 21.333333 0 0 0-21.333333 21.333333M844.885333 658.474667c-1.706667-1.408-3.541333-2.176-5.418666-2.986667a20.821333 20.821333 0 0 0-10.282667-3.029333h-65.109333a21.333333 21.333333 0 0 0 0 42.666666h21.589333l-70.613333 83.029334-100.821334-80.469334a21.333333 21.333333 0 0 0-29.013333 2.218667l-108.501333 117.888a21.418667 21.418667 0 0 0 15.701333 35.797333c5.76 0 11.52-2.304 15.701333-6.869333l95.061334-103.296 101.418666 80.981333c9.045333 7.168 22.101333 5.973333 29.525334-2.858666L810.666667 731.605333v10.112a21.333333 21.333333 0 1 0 42.666666 0v-65.066666a20.949333 20.949333 0 0 0-2.773333-9.984 21.034667 21.034667 0 0 0-5.674667-8.192" p-id="16769" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},d2c3:function(t,e,a){"use strict";var i=a("bafb"),s=a.n(i);s.a},d2cf:function(t,e,a){},d346:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_pie_disabled",use:"icon-chart_pie_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_pie_disabled"><defs><style type="text/css"></style></defs><path d="M483.556 540.444V145.067C292.978 159.289 142.222 318.577 142.222 512c0 204.8 164.978 369.778 369.778 369.778 193.422 0 352.711-150.756 366.933-341.334H483.556z" fill="#909399" p-id="2082" /><path d="M540.444 116.622v366.934h366.934C896 287.289 736.71 128 540.444 116.622z" fill="#909399" p-id="2083" /></symbol>'});l.a.add(n);e["default"]=n},d3b8:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{ref:"template",staticClass:"template"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:t.handleCreate}},[t._v("新生成")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"80px"},on:{click:t.handleHistoryRecord}},[t._v("历史记录")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleMaterialPlan}},[t._v("撒料计划")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handlePremixedPlan}},[t._v("预混计划")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleShedFormula}},[t._v("栏舍配方")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:t.handleRecipeemplate}},[t._v("配方模板")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"150px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeDate},model:{value:t.table.getdataListParm.parammaps.mydate,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"mydate",e)},expression:"table.getdataListParm.parammaps.mydate"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"计划类型",clearable:""},on:{change:t.changePlanType},model:{value:t.table.getdataListParm.parammaps.lpplantype,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"lpplantype",e)},expression:"table.getdataListParm.parammaps.lpplantype"}},t._l(t.planTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.lable,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},on:{change:t.changeFrequency},model:{value:t.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"times",e)},expression:"table.getdataListParm.parammaps.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"打印类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.printingTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"计划维度",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.planningDimensionList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"导出类型",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.exportTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-button",{staticClass:"export",on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.tableRowClick}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"计划名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.projname))])]}}])}),a("el-table-column",{attrs:{label:"计划类型",prop:"weight","min-width":"130px",align:"center",formatter:t.lpplantype}}),a("el-table-column",{attrs:{label:"TMR编号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrtname))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.driver))])]}}])}),a("el-table-column",{attrs:{label:"已执行","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.havebutton))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"理论量","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lweight))])]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.plantime))])]}}])}),a("el-table-column",{attrs:{label:"发料位","min-width":"180px",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barnames))])]}}])})],1)],1)]),a("div",{staticClass:"content"},[a("div",{staticClass:"table2"},[a("p",{staticClass:"contentOperation"}),a("div",{staticClass:"content-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table2.list,fit:"","highlight-current-row":"",height:"450","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作序号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称",prop:"fname","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"设计重量(KG)",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.weight))])]}}])})],1)],1)]),a("div",{staticClass:"table3"},[a("p",{staticClass:"stallRetails"}),a("div",{staticClass:"content-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table3.listLoading,expression:"table3.listLoading"}],key:t.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,height:"450",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:" 操作序号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"栏舍编号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"设计重量(KG)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.weight))])]}}])})],1)],1)])]),a("el-dialog",{attrs:{title:t.textMap[t.newGeneration.dialogStatus],"destroy-on-close":!0,visible:t.newGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(e){return t.$set(t.newGeneration,"dialogFormVisible",e)}}},[a("div",{staticClass:"newGeneration"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.newGeneration.rules,model:t.newGeneration.temp,"label-position":"right","label-width":"155px"}},[a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"时间范围:",prop:"inputDatetime"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:t.newGeneration.temp.inputDatetime,callback:function(e){t.$set(t.newGeneration.temp,"inputDatetime",e)},expression:"newGeneration.temp.inputDatetime"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.newGeneration.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.newGenerationData()}}},[t._v("确认")])],1)],1)])],1)},s=[],r=(a("b680"),a("2934")),l=(a("5c96"),a("ed08")),n=a("a78e"),o=a.n(n),c={name:"DailyExecutionPlan",data:function(){return{requestParams:[],planTypeList:[{lable:"撒料计划",value:"2"},{lable:"预混计划",value:"3"},{lable:"剩料计划",value:"4"}],printingTypeList:[{lable:"所有",value:"0"},{lable:"精料",value:"1"},{lable:"铲车",value:"2"}],frequencyList:[],planningDimensionList:[{lable:"发料顺序",value:"0"},{lable:"TMR",value:"1"}],exportTypeList:[{lable:"投料简打",value:"0"},{lable:"投料简打",value:"1"}],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),inforname:"times"}}},table:{getdataListParm:{name:"getDownloadedplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",mydate:Object(l["e"])(new Date,"{y}-{m}-{d}"),times:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"getDownloadplandtl1List",page:1,offset:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:"",flpid:""}},tableKey:0,list:[],total:0,listLoading:!1},table3:{getdataListParm:{name:"getDownloadplandt2List",page:1,offset:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:"",flpid:""}},tableKey:0,list:[],total:0,listLoading:!1},newGeneration:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"checkLLPIsDistribution",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},temp:{},rules:{inputDatetime:[{type:"array",required:!0,message:"必填",trigger:"blur"}]}},textMap:{newGeneration:"新生成"},isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},mounted:function(){this.table.getdataListParm.parammaps.mydate=Object(l["e"])(new Date,"{y}-{m}-{d}")},methods:{getIsDisplay:function(){var t=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(e){console.log(e.data.list[0].inforvalue),1==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"}]:2==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==e.data.list[0].inforvalue&&(t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getDownList:function(){Object(r["e"])(this.requestParams).then((function(t){}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.mydate&&null!==this.table.getdataListParm.parammaps.mydate){this.table.getdataListParm.parammaps.mydate=new Date(this.table.getdataListParm.parammaps.mydate);var t=new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate()-1));this.table.getdataListParm.parammaps.mydate=Object(l["e"])(t,"{y}-{m}-{d}"),this.getList()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.mydate&&null!==this.table.getdataListParm.parammaps.mydate){this.table.getdataListParm.parammaps.mydate=new Date(this.table.getdataListParm.parammaps.mydate);var t=new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate()+1));this.table.getdataListParm.parammaps.mydate=Object(l["e"])(t,"{y}-{m}-{d}"),this.getList()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total,t.table2.getdataListParm.parammaps.flpid=e.data.list[0].pid,t.table3.getdataListParm.parammaps.flpid=e.data.list[0].pid,t.getList2(),t.getList3()):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},lpplantype:function(t){return 2==t.lpplantype?"撒料":3==t.lpplantype?"预混":4==t.lpplantype?"剩料":void 0},changeDate:function(t){console.log("选择了日期",t),this.getList(),this.getList2(),this.getList3()},changePlanType:function(t){console.log("选择了计划类型",t),this.getList(),this.getList2(),this.getList3()},changeFrequency:function(t){console.log("选择了班次",t),this.getList(),this.getList2(),this.getList3()},tableRowClick:function(t,e,a){console.log(t,e,a),this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.flpid=t.pid,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.flpid=t.pid,this.getList2(),this.getList3()},getList2:function(){var t=this;this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,Object(r["d"])(this.table2.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){t.table2.list=e.data.list;for(var a=[],i=0,s=t.table2.list[0].sort,r=0,l=0;l<t.table2.list.length;l++)s!==parseInt(t.table2.list[l].sort)&&(s=t.table2.list[l].sort,a.push({sort:"小计",weight:i.toFixed(2)}),i=0),i+=parseFloat(t.table2.list[l].weight),r+=parseFloat(t.table2.list[l].weight),a.push(t.table2.list[l]);a.push({sort:"小计",weight:i}),a.push({sort:"总计",weight:r.toFixed(2)}),t.table2.list=a,console.log(t.table2.list),t.table2.pageNum=e.data.pageNum,t.table2.pageSize=e.data.pageSize,t.table2.total=e.data.total}else t.table2.list=[];setTimeout((function(){t.table2.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table3.listLoading=!0,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,Object(r["d"])(this.table3.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table3.list=e.data.list,t.table3.pageNum=e.data.pageNum,t.table3.pageSize=e.data.pageSize,t.table3.total=e.data.total):t.table3.list=[],setTimeout((function(){t.table3.listLoading=!1}),100)}))},handleCreate:function(){var t=this;console.log("点击了新生成"),this.newGeneration.temp={},this.newGeneration.dialogStatus="newGeneration",this.newGeneration.dialogFormVisible=!0,Object(r["d"])(this.newGeneration.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list&&"存在未分配"==e.data.list[0].vmsg&&t.$message({type:"warning",message:"撒料计划中存在未分配完栏舍,建议及时进行分配",duration:2e3})}))},newGenerationData:function(){var t=this;console.log("点击了新生成保存",this.newGeneration.temp),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){e&&(t.newGeneration.temp.startTime=Object(l["e"])(t.newGeneration.temp.inputDatetime[0],"{y}-{m}-{d}"),t.newGeneration.temp.stopTime=Object(l["e"])(t.newGeneration.temp.inputDatetime[1],"{y}-{m}-{d}"),t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"checkDLPIsStart",type:"e",parammaps:{pastureid:o.a.get("pastureid"),startTime:t.newGeneration.temp.startTime}},t.requestParam.data[1]={name:"createdownloadedplan",type:"e",parammaps:{pastureid:o.a.get("pastureid"),startTime:t.newGeneration.temp.startTime,stopTime:t.newGeneration.temp.stopTime}},Object(r["b"])(t.requestParam).then((function(e){console.log("新生成保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.newGeneration.dialogFormVisible=!1,t.getList())})))}))},handleRecipeemplate:function(){console.log("点击了配方模板,页面待画")},handleShedFormula:function(){console.log("点击了栏舍配方,页面待画")},handlePremixedPlan:function(){console.log("点击了预混计划,页面待画")},handleMaterialPlan:function(){console.log("点击了撒料计划,页面待画")},handleHistoryRecord:function(){console.log("点击了历史记录,页面待画")},handleExport:function(){console.log("点击了导出")}}},d=c,m=(a("7212"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"7c5076d8",null);e["default"]=p.exports},d4c2:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-驾驶员",use:"icon-驾驶员-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-驾驶员"><defs><style type="text/css"></style></defs><path d="M928.53 890.13C902.06 736.47 793.49 615.3 651.69 566.68 722.14 521 768.95 441.8 768.95 351.74c0-141.23-114.84-256.13-256-256.13s-256 114.9-256 256.13c0 90.07 46.82 169.27 117.27 214.94-141.76 48.63-250.3 169.8-276.75 323.46-3 17.42 8.69 33.98 26.09 36.99 1.84 0.31 3.67 0.47 5.47 0.47 15.3 0 28.83-11.01 31.5-26.59 29.03-168.57 174.88-291.16 347.71-293.37 1.58 0.03 3.12 0.24 4.71 0.24 1.59 0 3.13-0.21 4.71-0.24 172.88 2.21 318.75 124.81 347.8 293.38 3 17.42 19.42 29.16 36.97 26.11 17.43-3.01 29.1-19.57 26.1-37zM320.95 351.74c0-105.92 86.13-192.1 192-192.1s192 86.18 192 192.1c0 104.33-83.6 189.33-187.29 191.86-1.58-0.02-3.12-0.21-4.71-0.21-1.59 0-3.13 0.19-4.71 0.21-103.68-2.53-187.29-87.53-187.29-191.86z" p-id="37391" fill="#ffffff" /><path d="M659.75 703.6L490.33 873.02c-12.45 12.45-12.45 32.81 0 45.25s32.81 12.45 45.25 0L705 748.86c12.45-12.45 12.45-32.81 0-45.25s-32.81-12.45-45.25-0.01z" p-id="37392" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},d4fc:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-剩料计划",use:"icon-剩料计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-剩料计划"><defs><style type="text/css"></style></defs><path d="M791.852 55.402h-559.7c-91.439 0-117.831 27.809-117.831 117.831v677.533c0 90.023 26.395 117.831 117.831 117.831h559.7c91.439 0 117.831-27.809 117.831-117.831v-677.533c0-90.023-26.395-117.831-117.831-117.831zM864.11 864.11c0 34.201-32.139 61.243-61.243 61.243h-581.735c-44.983 0-61.243-25.038-61.243-61.243v-704.222c0-43.156 18.234-61.243 61.243-61.243h581.735c31.077 0 61.243 32.020 61.243 61.243v704.222zM715.966 674.106h-302.798c-9.307 0-16.82 4.891-16.82 11.018v22.034c0 6.069 7.513 11.018 16.82 11.018h302.798c9.307 0 16.82-4.949 16.82-11.018v-22.034c0-6.097-7.513-11.018-16.82-11.018zM312.214 467.636h-33.641c-9.307 0-16.82 4.831-16.82 10.782v21.591c0 5.95 7.513 10.782 16.82 10.782h33.641c9.307 0 16.82-4.831 16.82-10.782v-21.591c0-5.95-7.513-10.782-16.82-10.782zM312.214 674.106h-33.641c-9.307 0-16.82 4.891-16.82 11.018v22.034c0 6.069 7.513 11.018 16.82 11.018h33.641c9.307 0 16.82-4.949 16.82-11.018v-22.034c0-6.097-7.513-11.018-16.82-11.018zM312.214 261.785h-33.641c-9.307 0-16.82 5.125-16.82 11.489v22.949c0 6.334 7.513 11.489 16.82 11.489h33.641c9.307 0 16.82-5.125 16.82-11.489v-22.949c0-6.364-7.513-11.489-16.82-11.489zM715.966 467.636h-302.798c-9.307 0-16.82 4.831-16.82 10.782v21.591c0 5.95 7.513 10.782 16.82 10.782h302.798c9.307 0 16.82-4.831 16.82-10.782v-21.591c0-5.95-7.513-10.782-16.82-10.782zM715.966 261.785h-302.798c-9.307 0-16.82 5.125-16.82 11.489v22.949c0 6.334 7.513 11.489 16.82 11.489h302.798c9.307 0 16.82-5.125 16.82-11.489v-22.949c0-6.364-7.513-11.489-16.82-11.489z" p-id="40522" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},d660:function(t,e,a){},d6b8:function(t,e,a){"use strict";var i=a("5b63"),s=a.n(i);s.a},d6fd:function(t,e,a){"use strict";var i=a("1725"),s=a.n(i);s.a},d79a:function(t,e,a){"use strict";var i=a("22e1"),s=a.n(i);s.a},d7ec:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" id="icon-eye-open"><defs><style></style></defs><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol>'});l.a.add(n);e["default"]=n},d880:function(t,e,a){},d975:function(t,e,a){"use strict";var i=a("5f05"),s=a.n(i);s.a},d9cd:function(t,e,a){"use strict";a.r(e);var i=a("a78e"),s=a.n(i),r={sidebar:{opened:!s.a.get("sidebarStatus")||!!+s.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},l={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?s.a.set("sidebarStatus",1):s.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){s.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e}},n={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var a=t.commit,i=e.withoutAnimation;a("CLOSE_SIDEBAR",i)},toggleDevice:function(t,e){var a=t.commit;a("TOGGLE_DEVICE",e)}};e["default"]={namespaced:!0,state:r,mutations:l,actions:n}},d9d2:function(t,e,a){},da07:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍生产",use:"icon-栏舍生产-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍生产"><defs><style type="text/css"></style></defs><path d="M270.304 483.392L512 604.224l241.696-120.832a32 32 0 1 1 28.608 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 28.608-57.216z m0 128L512 732.224l241.696-120.832a32 32 0 0 1 28.608 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 28.608-57.216zM327.584 384L512 476.224 696.448 384 512 291.776 327.552 384z m198.72-156.608l256 128a32 32 0 0 1 0 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 0-57.216l256-128a32 32 0 0 1 28.608 0z" p-id="11372" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},dac4:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-首页-选中",use:"icon-首页-选中-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-首页-选中"><defs><style type="text/css"></style></defs><path d="M960.856566 463.515152L586.294949 88.824242c-20.428283-20.428283-47.450505-31.547475-76.282828-31.547474s-55.854545 11.248485-76.282828 31.547474L63.046465 459.636364c-9.050505 9.050505-9.050505 23.789899 0 32.969697 9.050505 9.050505 23.789899 9.050505 32.969697 0l38.141414-38.141415v369.519192c0 38.141414 14.610101 73.955556 41.115151 100.848485 26.634343 27.022222 62.319192 42.020202 100.460606 42.020202h469.333334c79.127273 0 143.515152-64.129293 143.515151-142.868687V456.921212l39.434344 39.434344c4.525253 4.525253 10.472727 6.852525 16.420202 6.852525s11.894949-2.327273 16.420202-6.852525c9.179798-9.050505 9.179798-23.789899 0-32.840404zM621.20404 920.177778h-218.50505v-250.828283c0-9.309091 7.49899-16.808081 16.808081-16.808081h184.888889c9.309091 0 16.808081 7.49899 16.80808 16.808081v250.828283z m220.832324-96.323233c0 53.139394-43.442424 96.323232-96.969697 96.323233h-77.317172v-250.828283c0-34.909091-28.444444-63.353535-63.353535-63.353535h-184.888889c-34.909091 0-63.353535 28.444444-63.353536 63.353535v250.828283h-80.549495c-52.363636 0-95.030303-43.183838-95.030303-96.323233v-415.030303H179.668687l287.030303-287.030303c11.636364-11.636364 27.022222-17.971717 43.313131-17.971717s31.806061 6.335354 43.313132 17.971717l288.581818 288.581819v413.478787z" fill="#009966" p-id="5216" /></symbol>'});l.a.add(n);e["default"]=n},db0c:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCreate}},[t._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:t.handleDelete}},[t._v("减少车次")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleHistoryRecords}},[t._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id"},on:{"selection-change":t.handleSelect}},[a("el-table-column",{attrs:{type:"selection","min-width":"50"}}),a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.sort))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort",a)},expression:"scope.row.sort"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeformulaName(a,e.row)}},model:{value:e.row.ftid,callback:function(a){t.$set(e.row,"ftid",a)},expression:"scope.row.ftid"}},t._l(t.formulaNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.tmrcode))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeTMRNumber(a,e.row)}},model:{value:e.row.tmrid,callback:function(a){t.$set(e.row,"tmrid",a)},expression:"scope.row.tmrid"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.times))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeTimes(a,e.row)}},model:{value:e.row.times,callback:function(a){t.$set(e.row,"times",a)},expression:"scope.row.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"撒料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.lppcode))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){t.changeCarFollow(a,e.row)}},model:{value:e.row.lppid,callback:function(a){t.$set(e.row,"lppid",a)},expression:"scope.row.lppid"}},t._l(t.carFollowList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.lppcode,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.ptime))]):t._e(),e.row.Edit?a("el-time-picker",{staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"datetime",placeholder:"选择时间",format:"HH:mm","value-format":"HH:mm"},model:{value:e.row.ptime,callback:function(a){t.$set(e.row,"ptime",a)},expression:"scope.row.ptime"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"单车操作重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"混料重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.operateweight))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.operateweight,callback:function(a){t.$set(e.row,"operateweight",a)},expression:"scope.row.operateweight"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}},[t._v("保存")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.createCancel(i)}}},[t._v("取消")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}},[t._v("保存")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(e){return t.updateCancel(i)}}},[t._v("取消")]):t._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.history.dialogStatus],"destroy-on-close":!0,visible:t.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.history,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-history"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"180px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.history.getdataListParm.parammaps.date,callback:function(e){t.$set(t.history.getdataListParm.parammaps,"date",e)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleApplication}},[t._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.history.listLoading,expression:"history.listLoading"}],key:t.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.history.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftname))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrcode))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"发料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.lppcode))])]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{disabled:1==e.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ptime))])]}}])}),a("el-table-column",{attrs:{label:"单车操作重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"混料重量","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operateweight))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.history.total>0,expression:"history.total>0"}],attrs:{total:t.history.total,page:t.history.getdataListParm.offset,limit:t.history.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.history.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.history.getdataListParm,"pagecount",e)},pagination:t.getHistoryList}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("aa47"),n=a("333d"),o=a("a78e"),c=a.n(o),d=a("5c96"),m={name:"PremixedPlan",components:{Pagination:n["a"]},data:function(){return{requestParams:[{name:"getTMRYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getFTYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],formulaNameList:[],TMRNumberList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},carFollowList:[],table:{getdataListParm:{name:"getPremixplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataDateParm:{name:"getPPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},getdataListParm:{name:"getPremixplanListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}}},textMap:{history:"历史记录"},selectList:[],isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.TMRNumberList=e.data.getTMRYHList.list,t.formulaNameList=e.data.getFTYHList.list}))},getIsDisplay:function(){var t=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(e){1==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"}]:2==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==e.data.list[0].inforvalue?t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==e.data.list[0].inforvalue&&(t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){if(console.log("table数据",e.data.list),null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"Edit",!1),t.$set(e.data.list[a],"NoEdit",!0),t.$set(e.data.list[a],"groupEdit",!1),t.$set(e.data.list[a],"groupNoEdit",!0),t.$set(e.data.list[a],"isCreate",!1),t.$set(e.data.list[a],"isUpdate",!0),t.$set(e.data.list[a],"isUpdateSave",!1);t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.rowDrop(),t.table.total=e.data.total}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},changeformulaName:function(t,e){e.ftname=this.formulaNameList.find((function(e){return e.id==t})).tname},changeTMRNumber:function(t,e){e.tmrcode=this.TMRNumberList.find((function(e){return e.id==t})).tname,e.maxweight=this.TMRNumberList.find((function(e){return e.id==t})).maxstirfeed},changeCarFollow:function(t,e){e.lppcode=this.carFollowList.find((function(e){return e.id==t})).lppcode},changeTimes:function(t,e){console.log(t,e),this.getCarFollowParm.parammaps.times=t,this.getCarFollowList(e)},getCarFollowList:function(t){var e=this;Object(r["d"])(this.getCarFollowParm).then((function(a){console.log("撒料计划车次跟随列表数据",a.data.list),null!==a.data.list&&(e.carFollowList=a.data.list,t.lppid=e.carFollowList[0].id,t.lppcode=e.carFollowList[0].lppcode)}))},handleEnableChange:function(){console.log("点击了生效")},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var t=document.querySelector("#table .el-table__body-wrapper tbody"),e=this,a=l["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1==e.dropState&&a.destroy()},onEnd:function(t){var a=t.newIndex,i=t.oldIndex,s=e.table.list.splice(i,1)[0];e.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",e.table.list[a-1]),console.log("下",e.table.list[a+1])}})},handleCreate:function(){this.dropState=!0,console.log("点击了新增车次");for(var t=0;t<this.table.list.length;t++)if(!0===this.table.list[t].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:parseInt(this.table.list[this.table.list.length-1].sort)+1,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",ptime:"",maxweight:"",operateweight:""})},createData:function(t){var e=this;if(console.log("点击了新增保存",t),""==t.ftid&&""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"班次/混料重量不能为空",duration:2e3}),!1;if(""==t.ftid)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==t.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.operateweight)return this.$message({type:"error",message:"混料重量不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.sort&&!i.test(parseFloat(t.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertPremixplan",this.requestParam.parammaps=t,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},createCancel:function(t){console.log("点击了新增取消"),this.dropState=!1;for(var e=0;e<this.table.list.length;e++){if(t.myId===this.table.list[e].myId)var a=this.table.list.indexOf(this.table.list[e]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,t.lppid=String(t.lppid),this.getCarFollowParm.parammaps.times=t.times,this.getCarFollowList(t),this.dropState=!0},updateData:function(t){var e=this;if(console.log("点击了编辑保存",t),""==t.ftid&&""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"班次/混料重量不能为空",duration:2e3}),!1;if(""==t.ftid)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==t.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.operateweight)return this.$message({type:"error",message:"混料重量不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(t.sort==this.table.list[a].sort&&t.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.sort&&!i.test(parseFloat(t.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updatePremixplan",this.requestParam.parammaps=t,Object(r["f"])(this.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):Object(r["j"])(t,e.$notify)}))},updateCancel:function(t){console.log("点击了编辑取消"),t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){console.log("勾选数据",t),this.selectList=t},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["d"])(this.history.getdataDateParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.history.getdataListParm.parammaps.date=e.data.list[0].maxdate,t.getHistoryList()):t.history.getdataListParm.parammaps.date=""}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var t=this;console.log("点击了应用"),d["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFPdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=c.a.get("pastureid"),t.requestParam.parammaps.date=t.history.getdataListParm.parammaps.date,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getHistoryIsDisplay(),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消应用"})}))},getHistoryList:function(){var t=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(console.log("table数据",e.data.list),t.history.list=e.data.list,t.history.pageNum=e.data.pageNum,t.history.pageSize=e.data.pageSize,t.history.total=e.data.total):t.history.list=[],setTimeout((function(){t.history.listLoading=!1}),100)}))},handleRowDelete:function(t){var e=this;console.log(t,"点击了行删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deletePremixplan",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deletePremixplan",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},p=m,u=(a("3f33"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"db5f8e60",null);e["default"]=h.exports},dbb3:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 2"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);e["default"]=n.exports},dbc7:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="M49.217 41.329l-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212l18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol>'});l.a.add(n);e["default"]=n},dc49:function(t,e,a){},dc6a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container",staticStyle:{position:"relactive"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.editBtn,expression:"editBtn"}],staticStyle:{position:"absolute",top:"170px",right:"100px","z-index":"1"}},[a("el-button",{attrs:{type:"primary",size:"mini",loading:t.control_btn_l},on:{click:function(e){return t.control_edit()}}},[t._v(" "+t._s(t.control_btn)+" ")])],1),a("el-card",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"dashboard-list",attrs:{"body-style":"padding: 0px;",shadow:"never"}},[a("ul",[a("draggable",{staticClass:"draggable-wrapper",attrs:{group:{name:"dashboard",pull:!0}},on:{change:t.handleOrderChange},model:{value:t.dashboardList,callback:function(e){t.dashboardList=e},expression:"dashboardList"}},t._l(t.dashboardList,(function(e){return a("li",{key:e.dashboard_id,class:{"dashboard-list-item":!0,"high-light-dashboard":t.currentDashboard.dashboard_id===e.dashboard_id}},[a("span",{on:{click:function(a){return t.switchDb(e)}}},[a("i",{staticClass:"el-icon-document"}),a("span",[t._v(t._s(e.name))])]),a("el-dropdown",{attrs:{szie:"mini",trigger:"click"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:{type:"edit",target:e}}},[t._v(" "+t._s(t.$t("common.edit"))+" ")]),a("el-dropdown-item",{attrs:{command:{type:"delete",target:e}}},[t._v(" "+t._s(t.$t("common.delete"))+" ")])],1)],1)],1)})),0)],1)]),a("dashboardItem",{attrs:{dashboard:t.currentDashboard,mode:t.isEdit,title:t.isTitle},on:{fatherMethod:t.getList}}),a("el-dialog",{attrs:{title:t.$t("dashboard.addOrEditDashboard"),width:"750px",visible:t.editDialogVisible},on:{"update:visible":function(e){t.editDialogVisible=e}}},[a("el-form",{attrs:{"label-width":"160px"}},[a("el-form-item",{attrs:{label:t.$t("dashboard.dashboardName")}},[a("el-input",{staticStyle:{width:"450px"},attrs:{size:"small",placeholder:t.$t("dashboard.dashboardNamePlaceholder")},model:{value:t.dbObj.name,callback:function(e){t.$set(t.dbObj,"name",e)},expression:"dbObj.name"}})],1),a("el-form-item",{attrs:{label:t.$t("dashboard.dashboardDesc")}},[a("el-input",{staticStyle:{width:"450px"},attrs:{type:"textarea",rows:5,size:"small",placeholder:t.$t("dashboard.dashboardDescPlaceholder")},model:{value:t.dbObj.desc,callback:function(e){t.$set(t.dbObj,"desc",e)},expression:"dbObj.desc"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.editDialogVisible=!1}}},[t._v(" "+t._s(t.$t("common.cancel")))]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleSubmit}},[t._v(" "+t._s(t.$t("common.confirm")))])],1)],1)],1)},s=[],r=(a("99af"),a("7db0"),a("d81d"),a("b0c0"),a("ac1f"),a("1276"),a("310e")),l=a.n(r),n=a("4300"),o=a("2934"),c=a("a78e"),d=a.n(c),m=a("5fd4"),p={name:"Addboard",components:{dashboardItem:n["default"],draggable:l.a},data:function(){return{isEdit:"view",dashboardList:[],currentDashboard:void 0,editDialogVisible:!1,dbObj:{},loading:!1,isCollapse:!1,did:void 0,isTitle:"2",editBtn:!1,control_btn:"编辑",control_btn_l:!1,get_role_data:{name:"getChartRole",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid"),type:"1",id:localStorage.getItem("AddboardIsEditId")}}}},created:function(){this.did=window.location.href.split("~")[1],this.haha=window.location.href.split("~")[2],console.log("this.did",this.did),console.log("this.haha",this.haha),3==this.haha?(console.log("this.haha333333333"),this.isTitle="3",this.editBtn=!1):(this.isTitle="2",this.get_Role()),this.getList()},methods:{get_Role:function(){var t=this;Object(o["d"])(this.get_role_data).then((function(e){console.log("权限数据",e.data),"editOk"==e.data.list[0].statue?t.editBtn=!0:t.editBtn=!1}))},control_edit:function(){this.isEdit="edit","编辑"==this.control_btn?(this.control_btn="正在编辑",this.control_btn_l=!0):(this.control_btn="编辑",this.control_btn_l=!1)},getList:function(){var t=this;this.loading=!0,this.did?this.did=this.did:this.did=localStorage.getItem("AddboardIsEditId");var e={name:"getdashboardsV2",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid"),did:this.did}};console.log("进入大页面================="),Object(o["i"])(e).then((function(e){t.loading=!1,t.dashboardList=[],console.log("看板列表数据:",e),console.log("看板列表优化数据list:",e.data.list),console.log("看板列表优化数据dashboards:",e.data.dashboards),t.dashboardList=t.dashboardList.concat(e.data.dashboards);var a=t.dashboardList.find((function(t){return t.dashboard_id===localStorage.getItem("AddboardIsEditId")}));t.currentDashboard=a||t.dashboardList[0],console.log("this.currentDashboard",t.currentDashboard),console.log("this.dashboardList",t.dashboardList),t.currentDashboard}))},switchDb:function(t){t.dashboard_id!==this.currentDashboard.dashboard_id?(this.currentDashboard=t,this.$router.push("/dashboard?id=".concat(this.currentDashboard.dashboard_id))):this.getList()},addDashboard:function(){this.dbObj={},this.editDialogVisible=!0},editDashboard:function(t){this.dbObj=Object.assign({},t),this.editDialogVisible=!0},handleCommand:function(t){"edit"===t.type?this.editDashboard(t.target):this.deleteDashboard(t.target)},handleSubmit:function(){var t=this;if(this.dbObj.dashboard_id)Object(m["e"])(this.dbObj).then((function(e){t.getList(),t.editDialogVisible=!1}));else{console.log("this.dbObj",this.dbObj);var e={name:"insertDashboard",parammaps:{dname:this.dbObj.name,display:this.dbObj.desc,pastureid:d.a.get("pastureid"),empid:d.a.get("employeid"),emp:d.a.get("employename")}};Object(o["f"])(e).then((function(a){console.log("新增保存发送参数",e),t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.getList(),t.editDialogVisible=!1}))}},handleOrderChange:function(t){var e={order:this.dashboardList.map((function(t){return t.dashboard_id}))};Object(m["b"])(e)},deleteDashboard:function(t){var e=this;this.$confirm(this.$t("dashboard.deleteConfirm",t.name),this.$t("common.confirm")).then((function(){Object(m["c"])({dashboard_id:t.dashboard_id}).then((function(){e.getList(),e.$message({type:"success",message:e.$t("common.deleteSuccess")})}))}))}}},u=p,h=(a("4a15"),a("2877")),f=Object(h["a"])(u,i,s,!1,null,"1d22a62a",null);e["default"]=f.exports},dcf8:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol>'});l.a.add(n);e["default"]=n},ddd9:function(t,e,a){},deb1:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"集团名称",name:"first"}},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.assetCode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"assetCode",e)},expression:"table.getdataListParm.parammaps.assetCode"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团ID","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"集团名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"联系方式","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>0,expression:"table.total>0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1)]),a("el-tab-pane",{attrs:{label:"牧场管理",name:"second"}},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.assetCode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"assetCode",e)},expression:"table.getdataListParm.parammaps.assetCode"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table2.pageNum-1)*t.table2.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团ID","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场ID","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.brandName))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table2.total>0,expression:"table2.total>0"}],attrs:{total:t.table2.total,page:t.table2.getdataListParm.offset,limit:t.table2.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table2.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table2.getdataListParm,"pagecount",e)},pagination:t.getList2}})],1)])],1)],1)},s=[],r=(a("b0c0"),a("ade3")),l=a("2934"),n=a("333d"),o={name:"GroupInformation",components:{Pagination:n["a"]},data:function(){return{activeName:"first",table:{getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{enable:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{enable:""}},tableKey:0,list:[],total:0,listLoading:!0},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.activeName="first"},methods:Object(r["a"])({handleTabClick:function(t){console.log(t),"first"===t.name?this.getList():"second"===t.name&&this.getList2()},getList:function(){var t=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(e){console.log("集团信息table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了集团信息查询"),this.getList()},getList2:function(){var t=this;this.table2.listLoading=!0,Object(l["d"])(this.table2.getdataListParm).then((function(e){console.log("牧场管理table数据",e.data.list),null!==e.data.list?(t.table2.list=e.data.list,t.table2.pageNum=e.data.pageNum,t.table2.pageSize=e.data.pageSize,t.table2.total=e.data.total):t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))}},"handleSearch",(function(){console.log("点击了牧场管理查询"),this.getList()}))},c=o,d=(a("1ed7"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"5277e70f",null);e["default"]=m.exports},df2e:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-chart_bar_disabled",use:"icon-chart_bar_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-chart_bar_disabled"><defs><style type="text/css"></style></defs><path d="M142.222 526.222h142.222v312.89H142.222z" fill="#909399" p-id="1951" /><path d="M341.333 184.889h142.223V839.11H341.333z" fill="#909399" p-id="1952" /><path d="M540.444 412.444h142.223v426.667H540.444z" fill="#909399" p-id="1953" /><path d="M739.556 611.556h142.222V839.11H739.556z" fill="#909399" p-id="1954" /></symbol>'});l.a.add(n);e["default"]=n},df54:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-file2",use:"icon-file2-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file2"><defs><style type="text/css"></style></defs><path d="M0 81.92m102.4 0l819.2 0q102.4 0 102.4 102.4l0 737.28q0 102.4-102.4 102.4l-819.2 0q-102.4 0-102.4-102.4l0-737.28q0-102.4 102.4-102.4Z" fill="#FFC643" p-id="3969" /><path d="M0 0m102.4 0l184.32 0q102.4 0 102.4 102.4l0 102.4q0 102.4-102.4 102.4l-184.32 0q-102.4 0-102.4-102.4l0-102.4q0-102.4 102.4-102.4Z" fill="#FFC643" p-id="3970" /><path d="M112.64 184.32h798.72v276.48H112.64z" fill="#FFFFFF" p-id="3971" /><path d="M133.12 204.8h757.76v235.52H133.12z" fill="#C7E66F" p-id="3972" /><path d="M84.6848 353.90464l770.3552-210.944L928.07168 409.6 157.696 620.544z" fill="#FFFFFF" p-id="3973" /><path d="M109.84448 368.25088L840.704 168.09984l62.208 227.15392L172.032 595.4048z" fill="#B0A6C9" p-id="3974" /><path d="M180.9408 364.10368l795.82208-68.00384 23.552 275.456-795.82208 68.00384z" fill="#FFFFFF" p-id="3975" /><path d="M203.08992 382.76096l755.00544-64.512L978.15552 552.96l-755.01568 64.512z" fill="#FF8989" p-id="3976" /><path d="M0 542.72h1024v378.88a102.4 102.4 0 0 1-102.4 102.4H102.4A102.4 102.4 0 0 1 0 921.6V542.72z" fill="#FDCE62" p-id="3977" /><path d="M0 378.88h860.16l163.84 163.84H0V378.88z" fill="#FDCE62" p-id="3978" /><path d="M860.16 542.72h163.84v378.88a102.4 102.4 0 0 1-102.4 102.4h-61.44V542.72z" fill="#ECBB4A" p-id="3979" /><path d="M266.24 378.88h593.92v645.12" fill="#ECBB4A" p-id="3980" /><path d="M860.16 378.88l163.84 163.84H860.16V378.88z" fill="#FFD87E" p-id="3981" /><path d="M1024 706.56L860.16 542.72h163.84v163.84z" fill="#D29C26" p-id="3982" /></symbol>'});l.a.add(n);e["default"]=n},e10e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleImport}},[t._v("导入")]):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(1)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(2)}}},[t._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"barid",e)},expression:"table.getdataListParm.parammaps.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"times",e)},expression:"table.getdataListParm.parammaps.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.times))])]}}])}),a("el-table-column",{attrs:{label:"第一层",align:"center"}},[a("el-table-column",{attrs:{prop:"onerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第四层",align:"center"}},[a("el-table-column",{attrs:{prop:"fourrate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"fourweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("编辑")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(e){return t.handleRowDelete(i)}}},[t._v("删除")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.create.dialogStatus],visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBar},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.houseNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,filterable:"",placeholder:"班次"},model:{value:t.create.temp.times,callback:function(e){t.$set(t.create.temp,"times",e)},expression:"create.temp.times"}},t._l(t.frequencyList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("重量比例")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第一层重量(g):",prop:"oneweight"}},[a("el-input",{ref:"oneweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.oneweight,callback:function(e){t.$set(t.create.temp,"oneweight",e)},expression:"create.temp.oneweight"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第二层重量(g):",prop:"twoweight"}},[a("el-input",{ref:"twoweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.twoweight,callback:function(e){t.$set(t.create.temp,"twoweight",e)},expression:"create.temp.twoweight"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第三层重量(g):",prop:"threeweight"}},[a("el-input",{ref:"threeweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.threeweight,callback:function(e){t.$set(t.create.temp,"threeweight",e)},expression:"create.temp.threeweight"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第四层重量(g):",prop:"fourweight"}},[a("el-input",{ref:"fourweight",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多两位小数",type:"number",step:"0.01"},on:{blur:t.blurWeight},model:{value:t.create.temp.fourweight,callback:function(e){t.$set(t.create.temp,"fourweight",e)},expression:"create.temp.fourweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第一层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.onerate))]),a("span",[t._v(t._s(t.create.temp.onerange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第二层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.tworate))]),a("span",[t._v(t._s(t.create.temp.tworange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第三层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.threerate))]),a("span",[t._v(t._s(t.create.temp.threerange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第四层比例 (%):"}},[a("span",[t._v(t._s(t.create.temp.fourrate))]),a("span",[t._v(t._s(t.create.temp.fourrange))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[t._v("操作详情")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:t.blurEmp},model:{value:t.create.temp.emp,callback:function(e){t.$set(t.create.temp,"emp",e)},expression:"create.temp.emp"}},t._l(t.create.noteTakerList,(function(t){return a("el-option",{key:t.myId,attrs:{label:t.emp,value:t.emp}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作日期:",prop:"operatetime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"update"==t.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.changeOperatetime},model:{value:t.create.temp.operatetime,callback:function(e){t.$set(t.create.temp,"operatetime",e)},expression:"create.temp.operatetime"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"1-255字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:t.create.temp.remark,callback:function(e){t.$set(t.create.temp,"remark",e)},expression:"create.temp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createDataAgain()}}},[t._v("确认新增")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"PennsylvaniaSieve",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getPennsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",fourweight:"",onerate:"",tworate:"",threerate:"",fourrate:"",tworange:"",threerange:"",fourrange:"",remark:"",ccid:"",ccname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],oneweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],twoweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],threeweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],fourweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getPennsieveEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getPennsieveRange",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="PennsylvaniaSieve",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){if(t.houseNameList=e.data.getBarListEnable.list,null!==e.data.getSysoptEnable.list)for(var a=1;a<=e.data.getSysoptEnable.list[0].inforvalue;a++){var i={};i.id=String(a),1==a?i.name="第一班":2==a?i.name="第二班":3==a?i.name="第三班":4==a&&(i.name="第四班"),t.frequencyList.push(i)}else t.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",fourweight:"",onerate:"",tworate:"",threerate:"",fourrate:"",tworange:"",threerange:"",fourrange:"",remark:"",ccid:"",ccname:""}},blurEmp:function(t){this.create.temp.emp=t.target.value},changeBar:function(t){this.create.temp.barname=this.houseNameList.find((function(e){return e.id===t})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var t=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(e){null!==e.data.list?(t.create.temp.onerange=e.data.list[0].oneRange,t.create.temp.tworange=e.data.list[0].twoRange,t.create.temp.threerange=e.data.list[0].threeRange,t.create.temp.fourrange=e.data.list[0].fourRange,t.create.temp.ccid=e.data.list[0].ccid,t.create.temp.ccname=e.data.list[0].ccname):(t.create.temp.onerange="",t.create.temp.tworange="",t.create.temp.threerange="",t.create.temp.fourrange="",t.create.temp.ccid="",t.create.temp.ccname="")}))},getNoteTakerList:function(){var t=this;Object(r["d"])(this.create.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)e.data.list[a].myId=a;t.create.noteTakerList=e.data.list,console.log("记录人数据",e.data.list),console.log(t.create.noteTakerList)}else t.create.noteTakerList=[]}))},blurWeight:function(){if(this.create.temp.oneweight&&this.create.temp.twoweight&&this.create.temp.threeweight&&this.create.temp.fourweight){var t=parseFloat(this.create.temp.oneweight)+parseFloat(this.create.temp.twoweight)+parseFloat(this.create.temp.threeweight)+parseFloat(this.create.temp.fourweight);this.create.temp.onerate=(parseFloat(this.create.temp.oneweight)/t*100).toFixed(2),this.create.temp.tworate=(parseFloat(this.create.temp.twoweight)/t*100).toFixed(2),this.create.temp.threerate=(parseFloat(this.create.temp.threeweight)/t*100).toFixed(2),this.create.temp.fourrate=(100-this.create.temp.onerate-this.create.temp.tworate-this.create.temp.threerate).toFixed(2),this.create.temp.onerate=String(this.create.temp.onerate),this.create.temp.tworate=String(this.create.temp.tworate),this.create.temp.threerate=String(this.create.temp.threerate),this.create.temp.fourrate=String(this.create.temp.fourrate)}},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight))||!a.test(parseFloat(t.create.temp.fourweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertPennsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},createDataAgain:function(){var t=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight))||!a.test(parseFloat(t.create.temp.fourweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="insertPennsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.resetTemp(),t.getList(),t.getNoteTakerList()):Object(r["j"])(e,t.$notify)}))}}))},handleUpdate:function(t){console.log("点击了编辑",t),t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.create.temp.oneweight))||!a.test(parseFloat(t.create.temp.twoweight))||!a.test(parseFloat(t.create.temp.threeweight))||!a.test(parseFloat(t.create.temp.fourweight)))return t.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;t.requestParam.name="updatePennsieve",t.requestParam.parammaps=t.create.temp,""==t.create.temp.emp&&(t.create.temp.emp=n.a.get("employename")),Object(r["f"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):Object(r["j"])(e,t.$notify)}))}}))},handleRowDelete:function(t){var e=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam.name="deletePennsieve",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(r["f"])(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.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){console.log("勾选数据",t),this.selectList=t},handleDelete:function(){var t=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择宾州筛",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},t.requestParam.data[0].children=[],t.requestParam.data[0].children[0]={name:"deletePennsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleCopy:function(){var t=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择宾州筛",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="copyPennsieve",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.selectList[0].pastureid,t.requestParam.parammaps.id=t.selectList[0].id,Object(r["f"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条宾州筛",duration:2e3})},handleExport:function(t){1==t?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("9de4"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"74468384",null);e["default"]=h.exports},e178:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-粪便评分",use:"icon-粪便评分-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-粪便评分"><defs><style type="text/css"></style></defs><path d="M991.132668 303.109843a41.631954 41.631954 0 0 0-9.495008-29.945792L728.194009 13.146933A45.28388 45.28388 0 0 0 696.787447 0H75.960057a43.82311 43.82311 0 0 0-43.82311 43.82311v936.35378a43.82311 43.82311 0 0 0 43.82311 43.82311h526.607703a43.82311 43.82311 0 1 0 0-87.64622H119.783167V87.64622h503.235378v295.805991h281.198288v87.64622a43.82311 43.82311 0 0 0 87.64622 0c0-75.229672-0.730385-167.988588-0.730385-167.988588z m-280.467903-7.303852V121.243937l168.718973 174.562054z" fill="#ffffff" p-id="34218" /><path d="M582.116976 438.231098h-292.154066a43.82311 43.82311 0 0 0 0 87.64622h292.154066a43.82311 43.82311 0 0 0 0-87.64622zM582.116976 657.346648h-292.154066a43.82311 43.82311 0 0 0 0 87.646219h292.154066a43.82311 43.82311 0 1 0 0-87.646219zM935.623395 625.2097a44.553495 44.553495 0 0 0-59.161198 19.7204l-146.077033 292.154065a45.28388 45.28388 0 0 0 19.720399 59.161199 48.205421 48.205421 0 0 0 19.7204 4.382311 44.553495 44.553495 0 0 0 39.440799-24.102711l146.077033-292.154065a45.28388 45.28388 0 0 0-19.7204-59.161199z" fill="#ffffff" p-id="34219" /></symbol>'});l.a.add(n);e["default"]=n},e1eb:function(t,e,a){},e28b:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.feedNameList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.fname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table.listLoading,expression:"table.listLoading"}],key:t.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"批号","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.pcpde))])]}}])}),a("el-table-column",{attrs:{label:"当前库存重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"金额(元)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSee(i)}}},[t._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.table.total>=0,expression:"table.total>=0"}],attrs:{total:t.table.total,page:t.table.getdataListParm.offset,limit:t.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.see.dialogStatus],visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-see"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.see.activeName,callback:function(e){t.$set(t.see,"activeName",e)},expression:"see.activeName"}},[a("el-tab-pane",{attrs:{label:"入库记录",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.see.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.see.getdataListParm.parammaps,"inputDatetime",e)},expression:"see.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch1}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.listLoading,expression:"see.listLoading"}],key:t.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.see.pageNum-1)*t.see.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"入库日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.laiddate))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"金额(元)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.see.total>=0,expression:"see.total>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:t.see.total,page:t.see.getdataListParm.offset,limit:t.see.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.see.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.see.getdataListParm,"pagecount",e)},pagination:t.getSeeList}})],1),a("el-tab-pane",{attrs:{label:"出库记录",name:"second"}},[a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"出库类型",clearable:""},model:{value:t.see.getdataListParm2.parammaps.usetype,callback:function(e){t.$set(t.see.getdataListParm2.parammaps,"usetype",e)},expression:"see.getdataListParm2.parammaps.usetype"}},t._l(t.deliveryTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.value}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.see.getdataListParm2.parammaps.inputDatetime,callback:function(e){t.$set(t.see.getdataListParm2.parammaps,"inputDatetime",e)},expression:"see.getdataListParm2.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch2}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.listLoading2,expression:"see.listLoading2"}],key:t.see.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.list2,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.see.pageNum2-1)*t.see.pageSize2+1))])]}}])}),a("el-table-column",{attrs:{label:"出库日期","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"出库类型","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.usetype))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(" "+t._s(e.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.remark))])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.see.total2>=0,expression:"see.total2>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:t.see.total2,page:t.see.getdataListParm2.offset,limit:t.see.getdataListParm2.pagecount},on:{"update:page":function(e){return t.$set(t.see.getdataListParm2,"offset",e)},"update:limit":function(e){return t.$set(t.see.getdataListParm2,"pagecount",e)},pagination:t.getSeeList2}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancel",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"Statistics",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getDictByNameUse",offset:0,pagecount:0,params:["人工用量操作类型"]}],feedNameList:[],deliveryTypeList:[],table:{getdataListParm:{name:"getFeedstorageList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{see:"库存"},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},getdataListParm:{name:"getFsLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",feedid:"",inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,list:[],total:0,listLoading:!0,activeName:"first",getdataListParm2:{name:"getFsUseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",feedid:"",inputDatetime:"",startTime:"",stopTime:"",usetype:""}},tableKey2:0,list2:[],total2:0,listLoading2:!0},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var t="Statistics",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["e"])(this.requestParams).then((function(e){t.feedNameList=e.data.getFeedListEnable.list,t.deliveryTypeList=e.data.getDictByNameUse.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize,t.table.total=e.data.total):t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.getList()},handleRefresh:function(){console.log("点击了重置")},handleSee:function(t){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.list=[],this.see.getdataListParm.offset=1,this.see.getdataListParm2.offset=1,this.see.getdataListParm.parammaps.pastureid=t.pastureid,this.see.getdataListParm.parammaps.feedid=t.feedid,this.see.getdataListParm2.parammaps.pastureid=t.pastureid,this.see.getdataListParm2.parammaps.feedid=t.feedid,this.see.activeName="first",this.getSeeList(),this.getSeeList2()},getSeeList:function(){var t=this;this.see.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(e){console.log("table数据",e.data.list),null!==e.data.list?(t.see.list=e.data.list,t.see.pageNum=e.data.pageNum,t.see.pageSize=e.data.pageSize,t.see.total=e.data.total):t.see.list=[],setTimeout((function(){t.see.listLoading=!1}),100)}))},getSeeList2:function(){var t=this;this.see.listLoading2=!0,Object(r["d"])(this.see.getdataListParm2).then((function(e){console.log("table数据2",e.data.list),null!==e.data.list?(t.see.list2=e.data.list,t.see.pageNum2=e.data.pageNum,t.see.pageSize2=e.data.pageSize,t.see.total2=e.data.total):t.see.list2=[],setTimeout((function(){t.see.listLoading2=!1}),100)}))},handleTabClick:function(t){"first"===t.name?this.getSeeList():"second"===t.name&&this.getSeeList2()},handleSearch1:function(){console.log("点击了库存入库记录查询"),""!==this.see.getdataListParm.parammaps.inputDatetime&&null!==this.see.getdataListParm.parammaps.inputDatetime?(this.see.getdataListParm.parammaps.startTime=Object(c["e"])(this.see.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm.parammaps.stopTime=Object(c["e"])(this.see.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.see.getdataListParm.parammaps.inputDatetime="",this.see.getdataListParm.parammaps.startTime="",this.see.getdataListParm.parammaps.stopTime=""),this.getSeeList()},handleSearch2:function(){console.log("点击了库存出库记录查询"),""!==this.see.getdataListParm2.parammaps.inputDatetime&&null!==this.see.getdataListParm2.parammaps.inputDatetime?(this.see.getdataListParm2.parammaps.startTime=Object(c["e"])(this.see.getdataListParm2.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm2.parammaps.stopTime=Object(c["e"])(this.see.getdataListParm2.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.see.getdataListParm2.parammaps.inputDatetime="",this.see.getdataListParm2.parammaps.startTime="",this.see.getdataListParm2.parammaps.stopTime=""),this.getSeeList2()}}},m=d,p=(a("a7d3"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"6bc9b2f1",null);e["default"]=u.exports},e42e:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-barline_chart_disabled",use:"icon-barline_chart_disabled-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-barline_chart_disabled"><defs><style type="text/css"></style></defs><path d="M563.2 583.68v242.346667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053334c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24v-324.266667l-119.466667 109.226667-23.893333-27.306667zM61.44 826.026667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053334c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24v-249.173334l-150.186667 129.706667 6.826667 119.466667z m252.586667-334.506667v334.506667c0 3.413333 0 10.24 3.413333 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333H443.733333c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413334-10.24v-334.506667l-75.093334-68.266667-68.266666 68.266667z m498.346666 334.506667c0 3.413333 0 10.24 3.413334 10.24 3.413333 3.413333 6.826667 3.413333 10.24 3.413333h116.053333c3.413333 0 6.826667-3.413333 10.24-3.413333 3.413333-3.413333 3.413333-6.826667 3.413333-10.24V276.48l-150.186666 136.533333 6.826666 413.013334z m85.333334-709.973334l-303.786667 273.066667-204.8-184.32-327.68 283.306667v122.88l324.266667-283.306667 204.8 184.32L955.733333 180.906667" fill="#909399" p-id="4365" /><path d="M61.44 873.813333h901.12v34.133334H61.44z" fill="#909399" p-id="4366" /></symbol>'});l.a.add(n);e["default"]=n},e474:function(t,e,a){},e4fd:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{style:{"overflow-y":"auto",height:t.htSize+"px"}},[a("el-form",{staticClass:"panel",staticStyle:{"text-align":"left"},attrs:{"label-position":"top"}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:t.$t("common.dataSource")+":"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{size:"mini",filterable:"",placeholder:t.$t("dataSource.sourcePlaceholder"),clearable:""},on:{change:t.handleBaseChange},model:{value:t.selectedBase,callback:function(e){t.selectedBase=e},expression:"selectedBase"}},t._l(t.baseList,(function(t){return a("el-option",{key:t.source_id,attrs:{label:t.base_alias||t.database,value:t.source_id}})})),1)],1),a("el-form-item",{attrs:{label:"数据类型:"}},[a("el-radio-group",{on:{change:t.handleDataSrcChange},model:{value:t.selectedTable,callback:function(e){t.selectedTable=e},expression:"selectedTable"}},[a("el-radio-button",{attrs:{label:"trainnumber"}},[t._v("车次")]),a("el-radio-button",{attrs:{label:"barroport"}},[t._v("栏舍")])],1)],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:t.$t("dataSource.table")+":"}},[a("span",{staticStyle:{"font-size":"12px","margin-right":"5px"}},[t._v(t._s(t.selectedTableName))]),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.editDataSrc}},[t._v(" "+t._s(t.$t("common.edit"))+" ")])],1),a("el-form-item",{attrs:{label:t.$t("dataSource.fields")+":"}},["edit"==t.isEdit?a("draggable",{directives:[{name:"loading",rawName:"v-loading",value:t.schemaLoading,expression:"schemaLoading"}],attrs:{group:{name:"col",pull:"clone",put:!1},move:t.handleMove},model:{value:t.tableSchema,callback:function(e){t.tableSchema=e},expression:"tableSchema"}},t._l(t.tableSchema,(function(e){return a("div",{key:e.Column,staticClass:"drag-list-item"},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"12px",color:"#409EFF"}}),t._v(" "+t._s(e.Comment)+" ")])})),0):t._e(),t._l(t.tableSchema,(function(e){return"view"==t.isEdit?a("div",{key:e.Column,staticClass:"drag-list-item"},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"12px",color:"#409EFF"}}),t._v(" "+t._s(e.Comment)+" ")]):t._e()}))],2)],1)],1)},s=[];a("99af"),a("7db0"),a("d81d"),a("1c1e");var r=a("2934"),l=a("310e"),n=a.n(l),o=(a("f77d"),a("3537")),c={components:{draggable:n.a},props:{resultLoading:{default:!1},dataSrc:{requred:!0},isEdit:""},watch:{isEdit:function(t){console.log("isEdit:",t),this.isEdit=t}},data:function(){return{radio1:"上海",schemaLoading:!1,baseList:[],tableList:[],selectedTable:void 0,tableSchema:void 0,dataSrcVisible:!0,existWarning:null,selectedBase:void 0}},computed:{allSelected:function(){return o["a"].state.dimensions.concat(o["a"].state.caculCols).concat(o["a"].state.caculCols2)},selectedBaseName:function(){var t=this,e=this.baseList.find((function(e){return e.source_id===t.selectedBase}));return e?e.base_alias||e.database:""},selectedTableName:function(){var t=this,e=this.tableList.find((function(e){return e.table===t.selectedTable}));return e?e.table_alias||e.table:""}},created:function(){console.log("this.dataSrc",this.dataSrc),console.log("height",document.documentElement.clientHeight);var t=document.documentElement.clientHeight-260;this.htSize=t},methods:{get_table_list:function(){var t=this,e={name:"getTABLESV2",page:1,offset:1};Object(r["d"])(e).then((function(e){console.log("tableList数据",e.data.list),null!==e.data.list?t.tableList=e.data.list:t.tableList=[]}))},initWithDataSrc:function(t){console.log("dataSrc:",t),t?(this.selectedTable=t.table,this.selectedBase=t.source_id,this.fetchSchema()):(this.selectedBase="",this.selectedTable="trainnumber",this.fetchSchema(),o["a"].setAllColsAction([]),this.$emit("change",{table:this.selectedTable,source_id:this.selectedBase}))},editDataSrc:function(){this.dataSrcVisible=!0,this.selectedTable=void 0},handleBaseChange:function(){this.fetchTables()},handleDataSrcChange:function(t){console.log("selectedTable:",this.selectedTable),this.dataSrcVisible=!1,this.fetchSchema(),o["a"].setAllColsAction([]),this.$emit("change",{table:this.selectedTable,source_id:this.selectedBase})},fetchSchema:function(){var t=this;console.log("selectedTable:",this.selectedTable),this.schemaLoading=!0;var e={name:"getColumnName",page:1,offset:1,returntype:"Map",parammaps:{table_name:this.selectedTable}};Object(r["d"])(e).then((function(e){console.log("字段数据:",e.data.list),null!==e.data.list?(t.schemaLoading=!1,t.tableSchema=e.data.list.map((function(t,e){return{Column:t.Field,Type:t.Type,id:e,Comment:t.Comment}})),o["a"].setAllColsAction(t.tableSchema)):t.tableSchema=[],console.log("tableSchema数据:",t.tableSchema)}))},handleMove:function(t,e){var a=this;if(this.allSelected.find((function(e){return e.Column===t.draggedContext.element.Column})))return this.existWarning||(this.existWarning=this.$message({type:"warning",message:this.$t("chart.fieldExisted"),onClose:function(t){a.existWarning=null}})),!1}}},d=c,m=(a("4fe7"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"f9185fa6",null);e["default"]=p.exports},e65c:function(t,e,a){"use strict";var i=a("7e5a"),s=a.n(i);s.a},e6e5:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":t.handleTabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"库存统计",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left",width:"250px","margin-bottom":"10px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.tab.table.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"inputDatetime",e)},expression:"tab.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticStyle:{float:"left",width:"245px","margin-bottom":"10px"},attrs:{placeholder:"配方名称"},model:{value:t.tab.table.getdataListParm.parammaps.source,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"source",e)},expression:"tab.table.getdataListParm.parammaps.source"}}),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-left":"10px","margin-bottom":"10px"},on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:t.handleExport}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab.table.listLoading,expression:"tab.table.listLoading"}],key:t.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bigcowclass))])]}}])}),a("el-table-column",{attrs:{label:"期初","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期初库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期初金额(元)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"用量","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"入库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"系统出库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"人工用料重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"损耗重量(kg)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"期末","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期末库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"bigcowclass",align:"center",label:"期末金额(元)","min-width":"120"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tab.table.total>=0,expression:"tab.table.total>=0"}],attrs:{total:t.tab.table.total,page:t.tab.table.getdataListParm.offset,limit:t.tab.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.tab.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.tab.table.getdataListParm,"pagecount",e)},pagination:t.getTabList}})],1)]),a("el-tab-pane",{attrs:{label:"用料分析",name:"second"}},[t._v("用料分析")]),a("el-tab-pane",{attrs:{label:"价格分析",name:"third"}},[t._v("价格分析")])],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c={name:"InventoryManagement",components:{Pagination:o["a"]},data:function(){return{activeName:"first",tab:{table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:1,list:[],total:0,listLoading:!0}},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList()},methods:{handleTabClick:function(){},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(r["d"])(this.tab.table.getdataListParm).then((function(e){console.log("库存统计table数据",e.data.list),null!==e.data.list?(t.tab.table.list=e.data.list,t.tab.table.total=e.data.total):t.tab.table.list=[],setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},handleSearch:function(){},handleExport:function(){}}},d=c,m=(a("6497"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"609569c8",null);e["default"]=p.exports},e871:function(t,e,a){},e9bc:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);e["default"]=n.exports},eb1b:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063l1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol>'});l.a.add(n);e["default"]=n},ed08:function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return l})),a.d(e,"d",(function(){return n})),a.d(e,"f",(function(){return c}));a("4160"),a("a630"),a("c975"),a("a15b"),a("baa5"),a("d81d"),a("fb6a"),a("b64b"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("6062"),a("3ca3"),a("466d"),a("5319"),a("1276"),a("159b"),a("ddb0");var i=a("53ca");function s(t,e){if(0===arguments.length)return null;var a,s=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?a=t:("string"===typeof t&&/^[0-9]+$/.test(t)&&(t=parseInt(t)),"number"===typeof t&&10===t.toString().length&&(t*=1e3),a=new Date(t));var r={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},l=s.replace(/{(y|m|d|h|i|s|a)+}/g,(function(t,e){var a=r[e];return"a"===e?["日","一","二","三","四","五","六"][a]:(t.length>0&&a<10&&(a="0"+a),a||0)}));return l}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var a=new Date(t),i=Date.now(),r=(i-a)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?s(t,e):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function l(t,e,a){var i,s,r,l,n,o=function o(){var c=+new Date-l;c<e&&c>0?i=setTimeout(o,e-c):(i=null,a||(n=t.apply(r,s),i||(r=s=null)))};return function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];r=this,l=+new Date;var m=a&&!i;return i||(i=setTimeout(o,e)),m&&(n=t.apply(r,c),r=c=null),n}}function n(t,e,i,s){Promise.all([a.e("chunk-4de06b78"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(a){var r=[],l=[],n=[];for(var c in t)r.push(t[c].tHeader),l.push(o(t[c].filterVal,t[c].tableDatas)),n.push(t[c].sheetName);a.export_json_to_excel2({header:r,data:l,sheetname:n,filename:e,autoWidth:i,bookType:s})}))}function o(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?s(e[t]):e[t]}))}))}function c(t){return new Promise((function(e){var a=new FileReader;a.readAsBinaryString(t),a.onload=function(t){e(t.target.result)}}))}},eddc:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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:t.handleCreate}},[t._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"菜单名称","header-align":"center",width:"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:t._f("menutypeFilter")(e.row.menutype),size:"small"}},[a("span",[t._v(t._s(e.row.name))])])]}}])}),a("el-table-column",{attrs:{label:"标题",width:"140px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.title))])]}}])}),a("el-table-column",{attrs:{label:"路径",width:"100px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.path))])]}}])}),a("el-table-column",{attrs:{label:"组件","min-width":"150px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.component))])]}}])}),a("el-table-column",{attrs:{label:"图标",width:"100px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.icon))])]}}])}),a("el-table-column",{attrs:{label:"重定向",width:"100px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.redirect))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"上级菜单",prop:"parentid"}},[a("tree-select",{attrs:{disabled:t.disabled,height:280,width:200,size:"small",data:t.parent,"default-props":t.defaultProps,clearable:"","node-key":t.nodeKey,"checked-keys":t.defaultCheckedKeys},on:{popoverHide:t.popoverHide}})],1),a("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:t.deptform.name,callback:function(e){t.$set(t.deptform,"name",e)},expression:"deptform.name"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"menutype"}},[a("el-radio-group",{ref:"menutype",on:{change:t.menutypechange},model:{value:t.deptform.menutype,callback:function(e){t.$set(t.deptform,"menutype",e)},expression:"deptform.menutype"}},[a("el-radio",{attrs:{label:"menu"}},[t._v("菜单")]),a("el-radio",{attrs:{label:"button"}},[t._v("按钮")])],1)],1),a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{ref:"title",model:{value:t.deptform.title,callback:function(e){t.$set(t.deptform,"title",e)},expression:"deptform.title"}})],1),a("el-form-item",{attrs:{label:"路径",prop:"path"}},[a("el-input",{ref:"path",model:{value:t.deptform.path,callback:function(e){t.$set(t.deptform,"path",e)},expression:"deptform.path"}})],1),"menu"===t.deptform.menutype?a("el-form-item",{attrs:{label:"组件",prop:"component"}},[a("el-input",{ref:"component",model:{value:t.deptform.component,callback:function(e){t.$set(t.deptform,"component",e)},expression:"deptform.component"}})],1):t._e(),"menu"===t.deptform.menutype?a("el-form-item",{attrs:{label:"图标",prop:"icon"}},[a("el-input",{ref:"icon",model:{value:t.deptform.icon,callback:function(e){t.$set(t.deptform,"icon",e)},expression:"deptform.icon"}})],1):t._e(),"menu"===t.deptform.menutype?a("el-form-item",{attrs:{label:"重定向",prop:"redirect"}},[a("el-input",{ref:"redirect",model:{value:t.deptform.redirect,callback:function(e){t.$set(t.deptform,"redirect",e)},expression:"deptform.redirect"}})],1):t._e(),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:t.deptform.sort,callback:function(e){t.$set(t.deptform,"sort",e)},expression:"deptform.sort"}})],1),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:t.deptform.enable,callback:function(e){t.$set(t.deptform,"enable",e)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("a4d3"),a("e01a"),a("d28b"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("5c96"),d={name:"Menu",components:{TreeSelect:r["a"]},directives:{waves:l["a"]},filters:{menutypeFilter:function(t){var e={menu:"",button:"warning"};return e[t]}},data:function(){return{disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parent:[],parentmenu:[],parentButton:[],listLoading:!0,requestParam:{name:"createdept",params:[]},deptform:{id:"",name:"",title:"",path:"",component:"",icon:"",redirect:"",sort:"",parnetid:"",menutype:"",enable:""},getListParm:{name:"getMenuAndButtonRecu"},getRecuListParm:{name:"getMenuListRecu"},getRecuListBParm:{name:"getMenuListBRecu",idname:"id",parammaps:{id:-2}},rules:{name:[{type:"string",required:!0,message:"菜单名称必填",trigger:"change"}],title:[{type:"string",required:!0,message:"菜单标题必填",trigger:"change"}],path:[{type:"string",required:!0,message:"路径必填",trigger:"change"}],component:[{type:"string",required:!0,message:"组件必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"title"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.getList()},methods:{popoverHide:function(t,e){this.deptform.parentid=t},menutypechange:function(){"menu"===this.deptform.menutype?this.parent=this.parentmenu:this.parent=this.parentButton},getList:function(){var t=this;this.listLoading=!0,Object(o["d"])(this.getListParm).then((function(e){if(null!==e.data.list){console.log(t.list,"-----------------");for(var a=0;a<e.data.list.length;a++)e.data.list[a].enable=parseInt(e.data.list[a].enable);t.list=Object(o["m"])(e.data.list,"id","parentid","children")}t.getDownList(),setTimeout((function(){t.listLoading=!1}),500)}))},getDownList:function(){var t=this;Object(o["d"])(this.getRecuListParm).then((function(e){null!==e.data.list&&(t.parentmenu=Object(o["m"])(e.data.list,"id","parentid","children"))}))},refreshDownList:function(){var t=!0,e=!1,a=void 0;try{for(var i,s=this.parentmenu[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var r=i.value;this.parent=[],("noredirect"===r.redirect&&"menu"===this.deptform.menutype||"button"===this.deptform.menutype)&&this.parent.push({id:r.id,title:r.title,parentid:r.parentid})}}catch(l){e=!0,a=l}finally{try{t||null==s.return||s.return()}finally{if(e)throw a}}},resetRequestParam:function(){this.deptform.id="",this.deptform.parentid="-1",this.deptform.name="",this.deptform.title="",this.deptform.path="",this.deptform.component="Layout",this.deptform.icon="",this.deptform.redirect="",this.deptform.sort="0",this.deptform.menutype="",this.deptform.enable="1"},handleCreate:function(){var t=this;this.resetRequestParam(),this.dialogStatus="create",this.parent=this.parentmenu,this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.name.focus()}))},createData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createMenu",t.requestParam.params=[],""===t.deptform.parentid&&(t.deptform.parentid="-1"),t.requestParam.params[0]=t.deptform.parentid,t.requestParam.params[1]=t.deptform.name,t.requestParam.params[2]=t.deptform.title,t.requestParam.params[3]=t.deptform.path,t.requestParam.params[4]=t.deptform.component,t.requestParam.params[5]=t.deptform.icon,t.requestParam.params[6]=t.deptform.redirect,t.requestParam.params[7]=t.deptform.sort,t.requestParam.params[8]=t.deptform.menutype,t.requestParam.params[9]=t.deptform.enable,Object(o["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createMenu",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.parentid,t.requestParam.params[1]=t.deptform.name,t.requestParam.params[2]=t.deptform.title,t.requestParam.params[3]=t.deptform.path,t.requestParam.params[4]=t.deptform.component,t.requestParam.params[5]=t.deptform.icon,t.requestParam.params[6]=t.deptform.redirect,t.requestParam.params[7]=t.deptform.sort,t.requestParam.params[8]=t.deptform.menutype,t.requestParam.params[9]=t.deptform.enable,Object(o["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.$refs["name"].focus()})),t.getList(),t.requestParam={name:"createMenu",params:[]},t.resetRequestParam(),t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(t){var e=this;this.defaultCheckedKeys=[t.parentid],this.deptform.parentid=t.parentid,this.deptform.name=t.name,this.deptform.title=t.title,this.deptform.path=t.path,this.deptform.component=t.component,this.deptform.icon=t.icon,this.deptform.redirect=t.redirect,this.deptform.sort=t.sort,this.deptform.id=t.id,this.deptform.menutype=t.menutype,this.deptform.enable=t.enable,this.dialogStatus="update",this.menutypechange(),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["name"].focus()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updateMenu",t.requestParam.params=[],t.requestParam.params[0]=t.deptform.parentid,t.requestParam.params[1]=t.deptform.name,t.requestParam.params[2]=t.deptform.title,t.requestParam.params[3]=t.deptform.path,t.requestParam.params[4]=t.deptform.component,t.requestParam.params[5]=t.deptform.icon,t.requestParam.params[6]=t.deptform.redirect,t.requestParam.params[7]=t.deptform.sort,t.requestParam.params[8]=t.deptform.menutype,t.requestParam.params[9]=t.deptform.enable,t.requestParam.params[10]=t.deptform.id,console.log(t.requestParam),Object(o["f"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updateMenu",this.requestParam.params=[],this.requestParam.params[0]=e.parentid,this.requestParam.params[1]=e.name,this.requestParam.params[2]=e.title,this.requestParam.params[3]=e.path,this.requestParam.params[4]=e.component,this.requestParam.params[5]=e.icon,this.requestParam.params[6]=e.redirect,this.requestParam.params[7]=e.sort,this.requestParam.params[8]=e.menutype,this.requestParam.params[9]=e.enable,this.requestParam.params[10]=e.id,Object(o["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;c["MessageBox"].confirm("菜单名称:"+t.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteMenu",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(o["f"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);e["default"]=u.exports},eea3:function(t,e,a){},ef81:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form-item",{attrs:{label:t.$t("chart.filters")}},[t._l(t.currentFilters,(function(e,i){return a("el-tag",{key:i,attrs:{closable:""},on:{close:function(e){return t.handleClosefilter(i)},click:function(a){return t.handleEditFilter(e)}}},[t._v(" "+t._s(t.generateFilterSentence(e))+" ")])})),a("el-button",{staticStyle:{width:"150px"},attrs:{disabled:t.disabled,type:"primary",size:"mini"},on:{click:function(e){t.visible=!0}}},[t._v(" 添加筛选条件 ")]),a("el-dialog",{attrs:{visible:t.visible,width:"500px",title:"添加筛选条件","before-close":t.handleClose}},[a("el-form",{attrs:{"label-width":"150px"}},[a("el-form-item",{staticClass:"el-form-item",attrs:{label:"筛选字段"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{size:"mini",placeholder:t.$t("chart.selectFilterField")},model:{value:t.filteCol,callback:function(e){t.filteCol=e},expression:"filteCol"}},t._l(t.sharedState.allCols,(function(t){return a("el-option",{key:t.Column,attrs:{label:t.Column,value:t.Column}})})),1)],1),a("el-form-item",{staticClass:"el-form-item",attrs:{label:"筛选操作符"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{size:"mini",placeholder:t.$t("chart.selectFilterOperator")},model:{value:t.filterOperator,callback:function(e){t.filterOperator=e},expression:"filterOperator"}},t._l(t.filterOperatorOpts,(function(t){return a("el-option",{key:t.name,attrs:{label:t.name+" ("+t.operator+")",value:t.operator}})})),1)],1),-1===t.currentOperatorParamNum?a("el-form-item",{staticClass:"el-form-item",attrs:{label:t.$t("chart.comparedValue")}},[t._l(t.arrValue,(function(e,i){return a("el-tag",{key:i,attrs:{closable:""},on:{close:t.handleRemove}},[t._v(" "+t._s(e)+" ")])})),a("el-input",{staticStyle:{width:"220px"},attrs:{size:"mini",type:"text"},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}}),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleAdd}},[t._v(" Add ")])],2):a("el-form-item",{staticClass:"el-form-item",attrs:{label:t.$t("chart.comparedValue")}},[a("el-input",{staticStyle:{width:"220px"},attrs:{size:"mini",type:"text"},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),a("span",{directives:[{name:"show",rawName:"v-show",value:2===t.currentOperatorParamNum,expression:"currentOperatorParamNum===2"}]},[t._v("~")]),a("el-input",{directives:[{name:"show",rawName:"v-show",value:2===t.currentOperatorParamNum,expression:"currentOperatorParamNum===2"}],staticStyle:{width:"220px"},attrs:{type:"text"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleConfirm}},[t._v("确认")])],1)],1)],2)},s=[],r=(a("7db0"),a("c740"),a("c975"),a("a15b"),a("d81d"),a("a434"),a("b0c0"),a("ac1f"),a("1276"),a("aa35")),l=a("a5e0"),n=a("3537"),o={props:{disabled:{default:!1},filters:{type:Array}},data:function(){return{visible:!1,filterOperatorOpts:Object(r["b"])(),filterStrs:[],filteCol:void 0,filterOperator:void 0,value1:void 0,value2:void 0,value3:void 0,arrValue:[],currentFilters:[],sharedState:n["a"].state}},computed:{currentOperatorParamNum:function(){var t=this,e=Object(r["b"])().find((function(e){return e.operator===t.filterOperator}));return e?e.paramNum:1},lang:function(){return this.$store.state.app.lang}},watch:{filters:{deep:!0,handler:function(t){this.currentFilters=t}},lang:function(t){this.filterOperatorOpts=Object(r["b"])()}},methods:{handleClose:function(){this.visible=!1},handleClosefilter:function(t){this.currentFilters.splice(t,1),this.handleSubmit()},handleEditFilter:function(t){this.visible=!0,this.filteCol=t.filteCol,this.filterOperator=t.filterOperator,this.value1=t.value.value1,this.value2=t.value.value2,this.arrValue=t.value.arrValue},handleAdd:function(){this.arrValue.push(this.value3),this.value3=void 0},handleRemove:function(t){this.arrValue.splice(this.arrValue.indexOf(t),1)},handleConfirm:function(){var t=this;if(this.filteCol&&this.filterOperator){var e={filteCol:this.filteCol,colType:this.sharedState.allCols.find((function(e){return e.Column===t.filteCol})).Type,filterOperator:this.filterOperator,value:{value1:this.value1,value2:this.value2,arrValue:this.arrValue},operatorParamNum:this.operatorParamNum(this.filterOperator)},a=this.currentFilters.findIndex((function(e){return e.filteCol===t.filteCol&&e.filterOperator===t.filterOperator}));a>=0?this.currentFilters.splice(a,1,e):this.currentFilters.push(e),this.handleSubmit()}else this.$message({type:"warning",message:this.$t("chart.filterCantBeEmpty")})},handleSubmit:function(){var t=this.currentFilters.map(l["a"]);this.$emit("change",t.join(" and ")),this.$emit("update: filters",this.currentFilters),this.visible=!1},generateFilterSentence:function(t){return Object(l["a"])(t)},operatorParamNum:function(t){var e=Object(r["b"])().find((function(e){return e.operator===t}));return e?e.paramNum:1},needQuotation:function(t){var e=this.sharedState.allCols.find((function(e){return e.Column===t})).Type;return e.indexOf("(")>=0?r["a"].find((function(t){return t.name===e.split("(")[0].toLowerCase()})).needQuotation:r["a"].find((function(t){return t.name===e.toLowerCase()})).needQuotation},addQuotation:function(t){return{value1:"'".concat(t.value1,"'"),value2:"'".concat(t.value2,"'"),arrValue:t.arrValue.map((function(t){return"'".concat(t,"'")}))}}}},c=o,d=(a("f286"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"b44981ca",null);e["default"]=m.exports},f1831:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;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:t.getdataListParm.parammaps.empCode,callback:function(e){t.$set(t.getdataListParm.parammaps,"empCode",e)},expression:"getdataListParm.parammaps.empCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:t.getdataListParm.parammaps.empname,callback:function(e){t.$set(t.getdataListParm.parammaps,"empname",e)},expression:"getdataListParm.parammaps.empname"}}),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("搜索")]),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleCreate}},[t._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.username))])]}}])}),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.empname))])]}}])}),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.deptname))])]}}])}),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.roleName))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.$index,e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(e){return t.handleRole(i)}}},[t._v(" 角色 ")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.handleDelete(i)}}},[t._v(" 删除 ")]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>=0,expression:"total>=0"}],attrs:{total:t.total,page:t.getdataListParm.offset,limit:t.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParm,"pagecount",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,model:t.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":t.formNameSearch,placeholder:"请输入内容"},on:{select:t.handleformNameSelect},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[t._v("姓名: "+t._s(i.empname))]),a("span",{staticClass:"addr"},[t._v(" 职位:"+t._s(i.position))])]}}]),model:{value:t.dataform.empname,callback:function(e){t.$set(t.dataform,"empname",e)},expression:"dataform.empname"}})],1),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:t.dataform.username,callback:function(e){t.$set(t.dataform,"username",e)},expression:"dataform.username"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:t.dataform.sort,callback:function(e){t.$set(t.dataform,"sort",e)},expression:"dataform.sort"}})],1),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:t.dataform.enable,callback:function(e){t.$set(t.dataform,"enable",e)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.dialogStatus],visible:t.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisibleAdd=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,model:t.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":t.formNameSearch,placeholder:"请输入内容"},on:{select:t.handleformNameSelect},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[t._v("姓名: "+t._s(i.empname))]),a("span",{staticClass:"addr"},[t._v(" 职位:"+t._s(i.position))])]}}]),model:{value:t.dataform.empname,callback:function(e){t.$set(t.dataform,"empname",e)},expression:"dataform.empname"}})],1),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:t.dataform.username,callback:function(e){t.$set(t.dataform,"username",e)},expression:"dataform.username"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.dataform.selectedRole,callback:function(e){t.$set(t.dataform,"selectedRole",e)},expression:"dataform.selectedRole"}},t._l(t.rolelist,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),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:t.dataform.enable,callback:function(e){t.$set(t.dataform,"enable",e)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createData()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogFormVisibleAdd=!1}}},[t._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:t.textMap["role"],visible:t.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogRoleVisible=e}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:t.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{filterable:"",multiple:"",placeholder:"请选择"},model:{value:t.selectedRole,callback:function(e){t.selectedRole=e},expression:"selectedRole"}},t._l(t.rolelist,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateRole()}}},[t._v(" 确认 ")]),a("el-button",{on:{click:function(e){t.dialogRoleVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("ddb0"),a("6724")),l=a("61f7"),n=a("2934"),o=a("333d"),c=a("5c96"),d=a("a78e"),m=a.n(d),p={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}},{name:"getEmpall",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,selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),empCode:"",empname:""}},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:l["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},rowStyle:{maxHeight:"50px",height:"45px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{deptenter:function(){var t=this;this.$nextTick((function(){t.$refs["remark"].focus()}))},getList:function(){var t=this;this.listLoading=!0,Object(n["e"])(this.requestParams).then((function(e){t.rolelist=e.data.getRoleall.list,t.emplist=e.data.getEmpall.list,Object(n["d"])(t.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),500)}))}))},handleFilter:function(){this.listLoading=!0,this.getdataListParm.offset=1,this.getList()},resetRequestParam:function(){this.dataform.username="",this.dataform.fullname="",this.dataform.empid="",this.dataform.id="",this.dataform.empname="",this.dataform.position="",this.dataform.sort="0",this.dataform.enable=1,this.dataform.selectedRole=""},handleCreate:function(){this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisibleAdd=!0},createData:function(){for(var t=this,e=[],a=0;a<this.dataform.selectedRole.length;a++){var i={};this.$set(i,"role_id",this.dataform.selectedRole[a]),e.push(i)}this.dataform.selectedRole=e,console.log(this.dataform),this.$refs["dataForm"].validate((function(e){if(e){if(t.dataform.selectedRole.length<=0)return t.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;t.postDataPramas.common={returnmap:"0"},t.postDataPramas.data=[],t.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:t.dataform.username,empid:t.dataform.empid,sort:"0",enable:t.dataform.enable}},t.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:t.dataform.selectedRole}},t.postDataPramas.data[1].children=[],t.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},Object(n["b"])(t.postDataPramas).then((function(e){if(console.log("新增保存发送参数",t.postDataPramas),"fail"===e.msg){var a=new RegExp("username");a.test(e.data)?t.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3})}else t.dialogFormVisibleAdd=!1,t.getList(),t.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}}))},createData_again:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="createUser",t.requestParam.params=[],t.requestParam.params[0]=t.dataform.username,t.requestParam.params[1]=t.dataform.empid,t.requestParam.params[2]=t.dataform.sort,t.requestParam.params[3]=t.dataform.enable,Object(n["f"])(t.requestParam).then((function(e){if("fail"!==e.msg)t.getList(),t.resetRequestParam(),t.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("username");a.test(e.data)?t.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3})}})))}))},handleRole:function(t){var e=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=t.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=t.id,this.dialogRoleVisible=!0,Object(n["d"])(this.requestParam).then((function(t){e.selectedRole=t.data.lists.role_id}))},updateRole:function(){var t=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(n["g"])(this.UpdateDataRelationParam).then((function(){t.dialogRoleVisible=!1,t.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),t.getList()}))},handleUpdate:function(t){var e=this;this.dataform.id=t.id,this.dataform.username=t.username,this.dataform.empid=t.empid,this.dataform.sort=t.sort,this.dataform.enable=t.enable,this.dataform.empname=t.empname,this.dataform.position=t.position,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.requestParam.name="updateUser",t.requestParam.params=[],t.requestParam.params[0]=t.dataform.username,t.requestParam.params[1]=t.dataform.empid,t.requestParam.params[2]=t.dataform.sort,t.requestParam.params[3]=t.dataform.enable,t.requestParam.params[4]=t.dataform.id,Object(n["f"])(t.requestParam).then((function(){t.$nextTick((function(){t.getList(),t.resetRequestParam()})),t.dialogFormVisible=!1})))}))},handleEnableChange:function(t,e){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=e.username,this.requestParam.params[1]=e.empid,this.requestParam.params[2]=e.sort,this.requestParam.params[3]=e.enable,this.requestParam.params[4]=e.id,Object(n["f"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(t){var e=this;c["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="deleteUser",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(n["f"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(t,e){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=t,Object(n["d"])(this.requestFilterParams).then((function(t){e(t.data.list)}))},handleformNameSelect:function(t){this.dataform.username=t.empCode,this.dataform.empid=t.id,this.$set(this.dataform,"empname",t.empname),this.$set(this.dataform,"position",t.position)}}},u=p,h=a("2877"),f=Object(h["a"])(u,i,s,!1,null,null,null);e["default"]=f.exports},f286:function(t,e,a){"use strict";var i=a("aa29"),s=a.n(i);s.a},f351:function(t,e,a){},f4b6:function(t,e,a){"use strict";var i=a("3c0e"),s=a.n(i);s.a},f51c:function(t,e,a){},f764:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-铲车管理",use:"icon-铲车管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-铲车管理"><defs><style type="text/css"></style></defs><path d="M590.060308 320.708923c7.640615 0 14.099692 5.671385 15.596307 13.193846l0.315077 3.347693v137.767384h0.118154l127.803077 133.001846 76.918154-80.029538v-32.019692c0-43.401846 32.334769-79.044923 73.294769-82.195693l5.907692-0.236307h54.86277c5.907692 0 11.224615 3.347692 13.902769 8.585846l1.142154 2.756923 63.330461 202.161231a16.659692 16.659692 0 0 1-12.051692 21.267692l-3.072 0.275692h-118.232615c-6.892308 0-13.627077-0.945231-20.007385-2.678154l-6.301538-1.96923-96.571077 99.643076c-17.092923 17.723077-44.859077 18.904615-63.330462 3.544616l-3.780923-3.544616-93.814154-97.792v131.465847c0 7.955692-5.513846 14.651077-12.721231 16.187077l-3.150769 0.354461H541.577846c-7.837538 57.028923-54.941538 101.021538-111.852308 101.021539-54.626462 0-100.391385-40.566154-110.749538-94.247385l-1.142154-6.774154h-29.656615c-7.758769 57.028923-54.902154 101.021538-111.812923 101.021539-54.626462 0-100.352-40.566154-110.749539-94.247385l-1.102769-6.774154H15.872a16.029538 16.029538 0 0 1-15.517538-13.193846L0.039385 777.255385v-35.761231c0-9.058462 7.089231-16.502154 15.832615-16.502154 7.640615 0 14.060308 5.671385 15.556923 13.193846l0.315077 3.308308v19.298461h32.649846c7.798154-57.107692 54.980923-101.100308 111.852308-101.100307 54.626462 0 100.352 40.566154 110.749538 94.286769l1.10277 6.774154h29.656615c7.798154-57.028923 54.941538-101.060923 111.852308-101.060923 54.626462 0 100.352 40.566154 110.749538 94.286769l1.102769 6.774154h32.807385V337.250462c0-9.137231 7.089231-16.541538 15.793231-16.541539z m-160.33477 371.908923c-44.819692 0-81.289846 37.888-81.289846 84.519385 0 46.670769 36.470154 84.598154 81.289846 84.598154s81.289846-37.927385 81.289847-84.598154c0-46.631385-36.470154-84.519385-81.289847-84.519385z m-253.36123 0c-44.859077 0-81.289846 37.888-81.289846 84.519385 0 46.670769 36.430769 84.598154 81.289846 84.598154s81.289846-37.927385 81.289846-84.598154c0-46.631385-36.430769-84.519385-81.289846-84.519385z m0 52.696616c16.935385 0 30.601846 14.257231 30.601846 31.822769a31.153231 31.153231 0 0 1-30.601846 31.822769c-16.935385 0-30.601846-14.257231-30.601846-31.822769 0-17.565538 13.705846-31.822769 30.601846-31.822769z m253.36123 0c16.935385 0 30.601846 14.257231 30.601847 31.822769 0 17.565538-13.666462 31.822769-30.601847 31.822769-16.935385 0-30.601846-14.257231-30.601846-31.822769 0-17.565538 13.705846-31.822769 30.601846-31.822769z m176.364308-223.744v78.690461c0.315077 0.118154 6.616615 6.695385 16.305231 16.502154 31.980308 32.886154 100.036923 103.463385 100.036923 103.463385 5.277538 5.513846 13.784615 6.222769 19.928615 2.087384l2.441847-2.087384 26.112-27.136-110.946462-115.475693-53.878154-56.044307z m205.193846 52.696615l-30.326154 31.625846-24.576 25.521231 37.297231 38.833231 24.536616-25.6 0.078769 0.118153 17.526154-18.432a82.707692 82.707692 0 0 1-24.576-52.066461zM558.592 157.538462c24.536615 0 44.780308 19.495385 47.222154 44.386461l0.236308 5.041231V249.304615c0 9.058462-7.168 16.541538-15.872 16.541539a16.147692 16.147692 0 0 1-15.596308-13.233231l-0.315077-3.308308V206.966154a16.384 16.384 0 0 0-12.603077-16.147692l-3.190154-0.354462H366.513231c-24.576 0-44.819692 19.456-47.261539 44.347077L319.054769 239.852308v264.822154a16.423385 16.423385 0 0 1-12.681846 16.147692l-3.150769 0.393846H79.320615c-24.576 0-44.819692 19.416615-47.261538 44.268308l-0.236308 5.04123v82.944c0 9.097846-7.168 16.462769-15.832615 16.46277a15.950769 15.950769 0 0 1-15.596308-13.036308l-0.315077-3.268923V570.683077c0-43.401846 32.374154-79.044923 73.334154-82.195692l5.907692-0.236308H139.460923v-94.523077h-9.570461a16.068923 16.068923 0 0 1-15.517539-13.154462l-0.315077-3.308307V320.118154c0-7.955692 5.435077-14.651077 12.642462-16.147692l3.190154-0.393847h92.908307c7.68 0 14.099692 5.710769 15.556923 13.193847l0.315077 3.347692V377.304615a16.384 16.384 0 0 1-12.681846 16.147693L222.798769 393.846154h-9.531077v94.523077H287.153231V239.970462c0-43.401846 32.334769-79.084308 73.294769-82.235077L366.395077 157.538462h192.196923zM62.464 593.683692h88.615385c8.743385 0 15.872 7.404308 15.872 16.46277a16.423385 16.423385 0 0 1-12.681847 16.226461l-3.150769 0.315077H62.424615a16.265846 16.265846 0 0 1-15.911384-16.541538c0-7.916308 5.513846-14.572308 12.721231-16.147693l3.150769-0.315077h88.654769z m472.891077 0c8.782769 0 15.911385 7.404308 15.911385 16.46277a16.384 16.384 0 0 1-12.681847 16.187076l-3.229538 0.354462H218.663385a16.187077 16.187077 0 0 1-15.872-16.541538c0-7.955692 5.474462-14.572308 12.681846-16.147693l3.150769-0.315077h316.731077zM933.454769 446.542769h-43.441231c-24.576 0-44.780308 19.456-47.222153 44.347077l-0.236308 5.080616v70.301538c0 25.6 18.668308 46.631385 42.614154 49.152l4.844307 0.275692h96.413539L933.454769 446.542769z m-533.267692 89.915077c8.743385 0 15.872 7.483077 15.872 16.541539 0 9.058462-7.128615 16.541538-15.872 16.541538H353.713231a16.265846 16.265846 0 0 1-15.832616-16.541538c0-9.058462 7.128615-16.541538 15.872-16.541539z m139.303385-329.373538c7.68 0 14.060308 5.671385 15.556923 13.193846l0.315077 3.308308v281.088a16.423385 16.423385 0 0 1-12.642462 16.187076l-3.229538 0.354462H353.752615a16.147692 16.147692 0 0 1-15.556923-13.233231l-0.354461-3.308307V256.472615c0-25.560615 18.747077-46.592 42.692923-49.112615l4.844308-0.275692h154.112z m-357.848616 186.683077h-10.594461v94.523077h10.594461v-94.523077z m342.134154-153.796923H385.457231a16.068923 16.068923 0 0 0-15.517539 13.193846l-0.354461 3.308307v231.817847h154.072615l0.118154-248.32zM206.926769 336.738462H145.801846v24.182153h61.124923V336.738462z" fill="#ffffff" p-id="45070" /></symbol>'});l.a.add(n);e["default"]=n},f77d:function(t,e,a){"use strict";var i=a("1c1e"),s=a("bc3a"),r=a.n(s);e["a"]=function(){var t=r.a.CancelToken.source();return{cancel:function(){t.cancel("cancel")},fetch:function(e){return Object(i["a"])({url:"/authdata/exesql",cancelToken:t.token,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST",data:e})}}}},f782:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol>'});l.a.add(n);e["default"]=n},f834:function(t,e,a){"use strict";var i=a("a26c"),s=a.n(i);s.a},f92c:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-供应商管理",use:"icon-供应商管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-供应商管理"><defs><style type="text/css"></style></defs><path d="M209.833 608v301.906c0 16.567 9.244 27.236 16.458 27.236h570.515c7.186 0 16.458-10.669 16.458-27.236v-301.906h54.858v301.906c0 45.34-32.036 82.092-71.315 82.092h-570.515c-39.387 0-71.315-36.835-71.315-82.092v-301.906h54.855zM154.978 608h54.855v301.906c0 16.567 9.244 27.236 16.458 27.236h570.515c7.186 0 16.458-10.669 16.458-27.236v-301.906h54.858v301.906c0 45.34-32.036 82.092-71.315 82.092h-570.515c-39.387 0-71.315-36.835-71.315-82.092v-301.906z" fill="#ffffff" p-id="69789" /><path d="M154.978 608c0 0.002 0 0.004 0 0.005 0 15.148 12.277 27.43 27.43 27.43 15.148 0 27.427-12.282 27.427-27.43 0-0.002 0-0.004 0-0.006 0-0.001 0-0.003 0-0.005 0-15.148-12.277-27.43-27.427-27.43-15.148 0-27.43 12.282-27.43 27.43s0 0.004 0 0.006z" fill="#ffffff" p-id="69790" /><path d="M813.265 608c0 0 0 0 0 0 0 15.148 12.277 27.43 27.43 27.43 15.148 0 27.43-12.282 27.43-27.43 0 0 0 0 0 0 0 0 0 0 0 0 0-15.148-12.282-27.427-27.43-27.427-15.148 0-27.43 12.282-27.43 27.427s0 0 0 0z" fill="#ffffff" p-id="69791" /><path d="M907.647 339.31l-94.794-235.885c-2.963-7.351-16.541-16.567-24.327-16.567h-559.324c-7.737 0-21.34 9.216-24.303 16.595l-103.186 256.676c-1.040 2.202-1.687 4.775-1.781 7.487l1.89 6.305-0.63 8.174c-0.164 1.956-0.259 4.228-0.259 6.525 0 45.445 36.841 82.285 82.285 82.285 26.851 0 50.698-12.861 65.718-32.761l44.009-58.631 43.858 58.423c15.127 20.071 38.923 32.915 65.719 32.915 0.048 0 0.097 0 0.144 0 26.243 0 50.351-12.315 65.847-32.915l43.858-58.423 43.858 58.423c15.129 20.071 38.923 32.915 65.719 32.915 0.048 0 0.097 0 0.144 0 26.243 0 50.351-12.315 65.85-32.915l43.858-58.423 43.858 58.423c14.939 22.42 40.117 36.991 68.697 36.991 45.445 0 82.285-36.841 82.285-82.285 0-18.384-6.028-35.363-16.218-49.061l-2.778-4.279zM292.945 470.857s-24.714 25.975-41.143 36.481c-19.673 11.554-43.326 18.379-68.578 18.379-75.742 0-137.142-61.401-137.142-137.142 0-3.765 0.151-7.494 0.449-11.181-2.528-10.733-1.291-23.76 4.303-37.696l103.132-256.676c11.355-28.195 45.147-51.017 75.264-51.017h559.324c30.226 0 63.908 22.875 75.236 51.017l92.791 230.866c13.887 21.087 22.155 46.948 22.155 74.739 0 75.742-61.401 137.142-137.142 137.142-25.266 0-48.938-6.833-69.267-18.752-16.908-10.951-40.495-36.129-40.495-36.129s-24.63 25.344-41.143 36.481c-20.158 11.657-43.612 18.35-68.572 18.35-24.961 0-48.412-6.693-68.572-18.377-18.187-12.069-41.143-36.481-41.143-36.481s-24.028 24.987-41.143 36.481c-20.158 11.685-43.612 18.377-68.572 18.377-24.961 0-48.412-6.693-68.572-18.377-17.499-10.807-41.143-36.481-41.143-36.481z" fill="#ffffff" p-id="69792" /><path d="M154.978 169.143h740.572v54.858h-740.572z" fill="#ffffff" p-id="69793" /></symbol>'});l.a.add(n);e["default"]=n},fa3e:function(t,e,a){"use strict";var i=a("f351"),s=a.n(i);s.a},faf2:function(t,e,a){"use strict";var i=a("6154"),s=a.n(i);s.a},fb4f:function(t,e,a){},fc08:function(t,e,a){"use strict";a.r(e);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-人工用量",use:"icon-人工用量-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-人工用量"><defs><style type="text/css"></style></defs><path d="M199.155852 367.689267v521.514701c0 25.352411-51.197032 25.255197-51.197032 0V400.22938l-48.468898 34.675754c-20.690228 14.765285-50.300616-28.079522-29.804817-42.745546l398.690328-283.056728c26.614148-19.911492 43.157939-20.144806 71.617108 1.128707l395.306254 281.928021c20.494777 14.569834-5.730515 57.413618-26.420742 42.745546l-48.178279-34.28792v86.779435c0 26.480094-53.453423 26.384927-53.453423 0V364.595812L508.250606 151.954831c-3.497661-2.622734-6.79987-2.622734-10.199293-0.195452L199.155852 367.689267z" p-id="89019" fill="#ffffff" /><path d="M276.163737 472.497311h70.421886c6.994298 0 12.724813 5.730515 12.724813 12.723789v70.520123c0 6.992251-5.731538 12.723789-12.724813 12.72379H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.72379v-70.520123c-0.097214-6.895037 5.729491-12.723789 12.723789-12.723789z m167.206186 0h70.421886c6.993275 0 12.723789 5.730515 12.723789 12.723789v70.520123c0 6.992251-5.730515 12.723789-12.723789 12.72379h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.72379v-70.520123c-0.097214-6.895037 5.729491-12.723789 12.724812-12.723789zM276.163737 642.384559h70.421886c6.994298 0 12.724813 5.731538 12.724813 12.72379v70.325695c0 7.187703-5.731538 12.919241-12.724813 12.91924H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.91924v-70.325695c-0.097214-6.992251 5.729491-12.723789 12.723789-12.72379z m0 169.692821h70.421886c6.994298 0 12.724813 5.731538 12.724813 12.91924v70.325695c0 7.187703-5.731538 12.919241-12.724813 12.919241H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.919241v-70.325695c-0.097214-7.187703 5.729491-12.919241 12.723789-12.91924z m169.596629-169.692821h70.421886c6.993275 0 12.723789 5.731538 12.72379 12.72379v70.325695c0 7.187703-5.730515 12.919241-12.72379 12.91924h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.91924v-70.325695c-0.097214-6.992251 5.730515-12.723789 12.724812-12.72379z m0 169.692821h70.421886c6.993275 0 12.723789 5.731538 12.72379 12.91924v70.325695c0 7.187703-5.730515 12.919241-12.72379 12.919241h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.919241v-70.325695c-0.097214-7.187703 5.730515-12.919241 12.724812-12.91924z" p-id="89020" fill="#ffffff" /><path d="M561.732681 873.556593c0 13.06762 13.06762 21.779026 21.779026 21.779025 8.711406 0 13.06762-4.356214 17.423835-13.06762 43.559075-69.694315 99.18907-107.375519 181.951005-103.020328v82.761935c0 13.06762 8.711406 21.779026 21.779026 21.779026 8.711406 0 13.06762-4.356214 17.423834-8.711405l120.94149-134.00911c8.711406-8.711406 17.423835-17.423835 17.423835-30.491455s-4.356214-21.779026-13.06762-30.491455l-120.94149-131.699508c-4.356214-4.356214-8.711406-8.711406-17.423835-8.711405-13.06762 0-26.13524 13.06762-26.13524 26.13524v69.694315c-222.150566 13.068643-216.798674 198.849884-221.153866 238.052745z m36.045961-44.384883c12.549827-66.934458 55.497988-162.218592 206.098985-162.218592h12.549827v-76.144214l102.538351 111.837134c4.183276 4.183276 4.183276 8.366551 4.183276 8.366551l-8.366552 8.366552-99.558483 114.065895v-91.010806h-36.447097c-71.116711 0-134.981251 32.352849-180.998307 86.73748z" p-id="89021" fill="#ffffff" /></symbol>'});l.a.add(n);e["default"]=n},fd2f:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container common-list-page"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.sumAmountDCL,name:"first"}},[a("el-table",{attrs:{data:t.listDCL,"row-style":t.rowStyle,"cell-style":t.cellStyle,"show-header":!1},on:{"cell-click":t.cellClickDCL}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalDCL>0,expression:"totalDCL>0"}],attrs:{total:t.totalDCL,page:t.getdataListParmDCL.offset,limit:t.getdataListParmDCL.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParmDCL,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParmDCL,"pagecount",e)},pagination:t.getListDCL}})],1),a("el-tab-pane",{attrs:{label:t.sumAmountAll,name:"second"}},[a("el-table",{attrs:{data:t.listAll,"row-style":t.rowStyle,"cell-style":t.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalAll>0,expression:"totalAll>0"}],attrs:{total:t.totalAll,page:t.getdataListParmAll.offset,limit:t.getdataListParmAll.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParmAll,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParmAll,"pagecount",e)},pagination:t.getListALL}})],1),a("el-tab-pane",{attrs:{label:t.sumAmountYCL,name:"third"}},[a("el-table",{attrs:{data:t.listYCL,"row-style":t.rowStyle,"cell-style":t.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),a("el-table-column",{attrs:{prop:"repairCode","min-width":"180"}}),a("el-table-column",{attrs:{prop:"mesTime","min-width":"180"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalYCL>0,expression:"totalYCL>0"}],attrs:{total:t.totalYCL,page:t.getdataListParmYCL.offset,limit:t.getdataListParmYCL.pagecount},on:{"update:page":function(e){return t.$set(t.getdataListParmYCL,"offset",e)},"update:limit":function(e){return t.$set(t.getdataListParmYCL,"pagecount",e)},pagination:t.getListYCL}})],1)],1)],1)},s=[],r=(a("b0c0"),a("ac1f"),a("466d"),a("2934")),l=a("333d"),n=(a("a78e"),{components:{Pagination:l["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.getListDCL(),this.getNoMesCount(),this.getAllMesCount(),this.getMesCount()},methods:{getNoMesCount:function(){var t=this;Object(r["d"])(this.getNoMesCountParm).then((function(e){console.log("待处理数据",e.data.list),t.sumAmountDCL="待处理("+e.data.list[0].sumAmount+")"}))},getAllMesCount:function(){var t=this;Object(r["d"])(this.getAllMesCountParm).then((function(e){console.log("全部数据",e.data.list),t.sumAmountAll="全部数据("+e.data.list[0].sumAmount+")"}))},getMesCount:function(){var t=this;Object(r["d"])(this.getMesCountParm).then((function(e){console.log("已处理",e.data.list),t.sumAmountYCL="已处理("+e.data.list[0].sumAmount+")"}))},handleClick:function(t){"second"===t.name?this.getListALL():"third"===t.name?this.getListYCL():this.getListDCL()},getListDCL:function(){var t=this;this.listLoadingDCL=!0,Object(r["d"])(this.getdataListParmDCL).then((function(e){console.log("待处理table数据",e.data.list),t.listDCL=e.data.list,t.pageNumDCL=e.data.pageNum,t.pageSizeDCL=e.data.pageSize,t.totalDCL=e.data.total,setTimeout((function(){t.listLoadingDCL=!1}),100)}))},getListALL:function(){var t=this;this.listLoadingAll=!0,Object(r["d"])(this.getdataListParmAll).then((function(e){console.log("全部table数据",e.data.list),t.listAll=e.data.list,t.pageNumAll=e.data.pageNum,ths.ageSizAll=e.data.pageSize,e.data.total&&(t.totalAll=e.data.total),setTimeout((function(){t.listLoadingAll=!1}),100)}))},getListYCL:function(){var t=this;this.listLoadingYCL=!0,Object(r["d"])(this.getdataListParmYCL).then((function(e){console.log("已处理table数据",e.data.list),t.listYCL=e.data.list,t.paNumYCL=e.data.pageNum,t.pageSizeYCL=e.data.pageSize,t.totalYCL=e.data.total,setTimeout((function(){t.listLoadingYCL=!1}),100)}))},cellClickDCL:function(t){console.log(t.remark);var e=/\【(.+?)\】/g,a=t.remark.match(e)[0],i=a.substring(1,a.length-1);"合同审核"===i?this.$router.push("/customs/Contract"):"申购审核"===i?this.$router.push("/customs/Subscribe"):"采购配单"===i?this.$router.push("/customs/Purchase"):"领用审核"===i?this.$router.push("/customs/Receive"):"退货审核"===i?this.$router.push("/customs/Returngoods"):"设备审核"===i?this.$router.push({path:"/asset/Basics",query:{tabName:"second"}}):"设备保养"===i||"保养审核"===i?this.$router.push("/maintenance/Maintain"):"维修接单"===i||"维修派单"===i||"维修审核"===i?this.$router.push("/maintenance/Repair"):"备件审核"===i?this.$router.push({path:"/customs/Basic",query:{tabName:"second"}}):"配单审核"===i&&this.$router.push({path:"/customs/Purchase",query:{activeName:"fouth"}})}}}),o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,"6df9c104",null);e["default"]=d.exports},fe3f:function(t,e,a){},feca:function(t,e,a){var i={"./404.vue":"8cdb","./basicData/defaultParameter/index.vue":"54de","./basicData/driver/index.vue":"88eb","./basicData/equipmentTMR/index.vue":"b947","./basicData/feedClassification/index.vue":"9de1","./basicData/feedTable/index.vue":"bf45","./basicData/forkliftManagement/index.vue":"4fbd","./basicData/groupColumn/index.vue":"218b","./basicData/livestockCategory/index.vue":"949a","./basicData/standardParameters/index.vue":"1521","./basicData/supplier/index.vue":"3a04","./console/apisql/index.vue":"3c49","./console/changpwd/changpwd.vue":"ad2e","./console/dept/index.vue":"5346","./console/dict/index.vue":"afd5","./console/menu/index.vue":"eddc","./console/role/index.vue":"55ad","./console/user/index.vue":"f1831","./customboard/ChartPanel/components/dataPanel.vue":"e4fd","./customboard/ChartPanel/components/filterPanel.vue":"ef81","./customboard/ChartPanel/components/orderPanel.vue":"88fe","./customboard/ChartPanel/components/visualizePanel.vue":"4ab3","./customboard/ChartPanel/index.vue":"cdee","./customboard/addboard/dashboardItem.vue":"4300","./customboard/addboard/fullScreenDb.vue":"acd4","./customboard/addboard/index.vue":"dc6a","./dashboard/admin/components/BarChart.vue":"5f84","./dashboard/admin/components/BoxCard.vue":"8269","./dashboard/admin/components/LineChart.vue":"36ef","./dashboard/admin/components/PanelGroup.vue":"6768","./dashboard/admin/components/PieChart.vue":"2044","./dashboard/admin/components/RaddarChart.vue":"7b75","./dashboard/admin/components/TodoList/Todo.vue":"ced4","./dashboard/admin/components/TodoList/index.vue":"2544","./dashboard/admin/components/TransactionTable.vue":"2f3f","./dashboard/admin/index.vue":"3f2c","./dashboard/editor/index.vue":"5851","./dashboard/index.vue":"9406","./formulationPlan/dailyExecutionPlan/index.vue":"d3b8","./formulationPlan/dhedFormula/index.vue":"256c","./formulationPlan/materialIssuancePlan/index.vue":"1745","./formulationPlan/premixedPlan/index.vue":"db0c","./formulationPlan/recipeTemplate/index.vue":"047c","./formulationPlan/surplusMaterialPlan/index.vue":"980b","./inventoryManagement/feedContract/index.vue":"4f68","./inventoryManagement/inventoryList/index.vue":"1a53","./inventoryManagement/laborConsumption/index.vue":"601f","./inventoryManagement/statistics/index.vue":"e28b","./inventoryManagement/systemConsumption/index.vue":"bdf4","./inventoryManagement/warehousing/index.vue":"400d","./inventoryManagement/warning/index.vue":"620a","./login/index.vue":"9ed6","./nested/menu1/index.vue":"e9bc","./nested/menu1/menu1-1/index.vue":"91b3","./nested/menu1/menu1-2/index.vue":"55cd","./nested/menu1/menu1-2/menu1-2-1/index.vue":"65825","./nested/menu1/menu1-2/menu1-2-2/index.vue":"b6fb","./nested/menu1/menu1-3/index.vue":"8d8b","./nested/menu2/index.vue":"dbb3","./news/news.vue":"fd2f","./shedProduction/dungScores/index.vue":"1698","./shedProduction/dutyRecord/index.vue":"7342","./shedProduction/fecalScreen/index.vue":"badd","./shedProduction/formulaDryMatter/index.vue":"5a9a","./shedProduction/materialRemainingRecord/index.vue":"3415","./shedProduction/pennsylvaniaSieve/index.vue":"e10e","./shedProduction/performance/index.vue":"5326","./shedProduction/physicalConditionScore/index.vue":"6a67","./statisticalAnalysis/efficiencyAnalysis/index.vue":"b30b","./statisticalAnalysis/efficiencyStatistics/index.vue":"afc7","./statisticalAnalysis/errorAnalysis/index.vue":"1e09","./statisticalAnalysis/feedingEfficiency/index.vue":"7f67","./statisticalAnalysis/inventoryManagement/index - 副本.vue":"e6e5","./statisticalAnalysis/inventoryManagement/index.vue":"c684","./statisticalAnalysis/materialAnalysis/index.vue":"9380","./statisticalAnalysis/priceAnalysis/index.vue":"cb9d","./statisticalAnalysis/processAnalysis/index.vue":"9875","./statisticalAnalysis/realTimeMonitoring/index.vue":"05f7","./statisticalChart/formulaStatistics/index.vue":"6200","./statisticalChart/shedStatistics/index.vue":"9c18","./systemManagement/boardEchartManagement/index.vue":"7f0e","./systemManagement/groupInformation/index.vue":"deb1","./systemManagement/operation/index.vue":"0f994","./systemManagement/ranchInformation/index.vue":"a983","./systemManagement/role/index.vue":"31f0","./systemManagement/user/index.vue":"67b0","./table/index.vue":"90fe","./tree/index.vue":"69dd"};function s(t){var e=r(t);return a(e)}function r(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}s.keys=function(){return Object.keys(i)},s.resolve=r,t.exports=s,s.id="feca"},ffb4:function(t,e,a){"use strict";var i=a("3b4a"),s=a.n(i);s.a}},[[1,"runtime","chunk-elementUI","chunk-libs"]]]);